From patchwork Wed Jun 26 14:46:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 167808 Delivered-To: patch@linaro.org Received: by 2002:ac9:6410:0:0:0:0:0 with SMTP id r16csp870639ock; Wed, 26 Jun 2019 07:47:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxswgRZwkhSTzvAwA/6sROcne7ECDhGAvzUMd6OAp6wjFnjibFHYmUvz4iJ6uQefh8MyT9T X-Received: by 2002:a17:902:ba82:: with SMTP id k2mr6114471pls.323.1561560443274; Wed, 26 Jun 2019 07:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561560443; cv=none; d=google.com; s=arc-20160816; b=Q3L9/KLAzZJ2qfoBJUNaosYJKhUTzXdTUqjn4lrSC3zBsTFUqXlN64Oj0CbwubTE5A TRlmJGag3gdl7JaKFtDHAzJw9Ze7oW3Kd9qoAGEQ615LgRImTUD3WSaCWWaQSW5VPecf vC3h+xlqDIsOTJmuKAbNcWwAtyOrzhlcVQuA8s3fy/XiLAmsyeJrl1YLRl27suZCPCYk RYyIa7PL9KwrzdakkUIlLZNNYHVUBiH5+LtrJoEEsuETvHHiPZ3rwoi1W41iUw5DNOJT vtbjZEOlNC1KhjhsnD16s6o+8tPOWa1TQhr8ttlMTMxhW6MoToZChs6hiODHyXNgGtdC jI6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=fNYOymAKKEH/tI650TaMtzoROF9PuK3S14KyC5Y7dck=; b=HFd5HFIJm47DHgyl1wgYzbb86HW1CPF3RKCqh120nP06J3rNQiOUgyfMyU5RKDfzPZ v8RdJl5CeVMoeXwgfCFGyDdI4C11iwm7n70nUev0ftm6o3kFoqpaI5Q6LRGdwDr1oXYK jEoDj4pCi4uuQwxuf0BGGUKP1f6fXfknIJhWw9nLitQV01p94RWoxQr6+AIpiaFIELjr 2xon5k2re/oB3mEWqioaYNWSch0bmxNcA6CYMK6Let0+FdiiYHydDu7fnwJJkqPHnN6J qV7xDkGYXm30+xP4B/3iM1/a5ObI/zaSLnbavpBbCXHStzxP6wNqHWyCLxP1bVMnbmq/ i0AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h2BSh+mB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3si3453314plv.26.2019.06.26.07.47.22; Wed, 26 Jun 2019 07:47:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h2BSh+mB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728231AbfFZOrV (ORCPT + 30 others); Wed, 26 Jun 2019 10:47:21 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:54759 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727562AbfFZOrR (ORCPT ); Wed, 26 Jun 2019 10:47:17 -0400 Received: by mail-wm1-f66.google.com with SMTP id g135so2400954wme.4 for ; Wed, 26 Jun 2019 07:47:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fNYOymAKKEH/tI650TaMtzoROF9PuK3S14KyC5Y7dck=; b=h2BSh+mBbKB/aAzQ/gQlS+Wj5rwnDzY9BvtREtVrYXOVriKwhIKpHmd+rJkVSbmG+7 leuCcbHhQpcbswklQB9CS5AFvmAK3Q0l2OJQtqmvEdPvYb+CaC/+FpLEqsB0CvfU5HtF x2gP4Z8dfJEIDFqZr7kggg+1ZO6Edh/MzRyPFaps22Ey8JWbglZHGoV3505OjL9D2c3q yrrbJcAxDIjQkN5JvsrMw/qvtZkH0JZZWEIfjiz9/U3M3NAogydbjEc5OxSU8KRCEzKU iBnLuanOJQETHsnRwmp4BiPnYRnbMRXwgArRpKaMSOKwM4mFB7yDl5EJ8rGO9jdxCWWE F5lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fNYOymAKKEH/tI650TaMtzoROF9PuK3S14KyC5Y7dck=; b=b7OkoP14Y7qblagKoczZQYVyX76IKMYVjV/i7sO0VGUPta3TusUzGxAgcgahf6ET51 g+YPRQ5iWUhNCSO45ChFkpSu/ruXQjMsseJaWFZfSnOqrOMDfpWNMN8ehpxsT2KvQJSL w4pR6BL8BjgXY8XAYC0+XQiBXzlupag54G8gi0p0XC00Xgkjw0XOG7C+DrG17hgYprf5 0oMkUM919WVukq+PlJ1mgcDLfvvrXYy1Jj4ws0cUFwtwhEJPDvrK7coJh4y/ZBtFSNVB FhrVmDYlUCC5t4fwN95jSVK0/HKEORRhllZpk4f18/17NjCCPgDblQ55vMC46EgqJiKB YJWw== X-Gm-Message-State: APjAAAXbSs0IrRGdH+dedu91g5xl8ZpYPx7ihvK3p+m8t+4f7xRvs421 3wYCxIXHoqSBGkdU2PRuPJJKPA== X-Received: by 2002:a7b:c313:: with SMTP id k19mr2932893wmj.2.1561560435122; Wed, 26 Jun 2019 07:47:15 -0700 (PDT) Received: from mai.imgcgcw.net (26.92.130.77.rev.sfr.net. [77.130.92.26]) by smtp.gmail.com with ESMTPSA id h84sm2718557wmf.43.2019.06.26.07.47.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jun 2019 07:47:14 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Vineet Gupta , linux-snps-arc@lists.infradead.org (open list:SYNOPSYS ARC ARCHITECTURE) Subject: [PATCH 03/25] clocksource/drivers/arc_timer: Use BIT() instead of _BITUL() Date: Wed, 26 Jun 2019 16:46:29 +0200 Message-Id: <20190626144651.16742-3-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190626144651.16742-1-daniel.lezcano@linaro.org> References: <20190626144651.16742-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masahiro Yamada This is in-kernel C code, so there is no reason to use _BITUL(). Replace it with equivalent BIT(). I added #include explicitly although it has been included by other headers eventually. Signed-off-by: Masahiro Yamada Signed-off-by: Daniel Lezcano --- drivers/clocksource/arc_timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/clocksource/arc_timer.c b/drivers/clocksource/arc_timer.c index b28970ca4a7a..b1f21bf3b83c 100644 --- a/drivers/clocksource/arc_timer.c +++ b/drivers/clocksource/arc_timer.c @@ -16,6 +16,7 @@ */ #include +#include #include #include #include @@ -142,7 +143,7 @@ static u64 arc_read_rtc(struct clocksource *cs) l = read_aux_reg(AUX_RTC_LOW); h = read_aux_reg(AUX_RTC_HIGH); status = read_aux_reg(AUX_RTC_CTRL); - } while (!(status & _BITUL(31))); + } while (!(status & BIT(31))); return (((u64)h) << 32) | l; }