Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp506490ybt; Fri, 26 Jun 2020 05:01:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPurspQhRDStRXjEorJfgtisiUU71BHD26GRKyxpQtFvZYb7qd/TpCZ5itGs+oLt1uHoFp X-Received: by 2002:a05:6402:1604:: with SMTP id f4mr3039242edv.379.1593172878976; Fri, 26 Jun 2020 05:01:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593172878; cv=none; d=google.com; s=arc-20160816; b=QNjCVuhEWQMPXVh8U87WMtEvK+y/O1nLvMHenu4STN0vhG2q8omdJTpLBfyz4GbPkC AQ3YK8wgu+itVy66EFikevsyT6ZKNxD9gKcEjIMKKXf6764vtZh8kgVAj5kJO1hdlgKj 1p9OF4trC2+5D+svKjMMz3fWQOWwHmHXQyWzucKkDQ2w9TiVqQSOZHdzvStM6LITa6ks UeBir1UPW7AlmmNOtBGQQJbX+Gu+aiHpAh5Vakuths4Qt50T0Sc6vSuXAPQP/WqgqoKz MXg9jqZqRFxFWLfrgoq+57zvBJHy6gW1o7fnh2QU5jrqk8//B0FdWYqjaxA1UZV/zrBU MdYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=KYDzmMHF1Qp0LAAurhh9+nUPlQiWEhWQ/6Qr1mrSGVo=; b=llXr7KblgNV+ot9lgbv3UfQLhrN/59sx3IJRvlnnPa+xOyP9apCwugsevT3S4207ug wd2mGw8bfVYlT4MVeVw2IGd5T4p2xGTgJkAo2+lUABH8DrPjNKpOwC5TJNyu0M33tdx6 n2lDjWuCQHZiaykqXysrY3y3zAH1RW7Ro/t/TDRkp3OyycIcSwjdyjo/PrEbwV7kyAPc kucnPJ2XZUjjVFmsrpREh8+DAJixH/JBCw+9P6nYWRFN8+GoTd5lGj0FA5YQS4vJdja3 y1GPFzKlSXOAucKeyX5AsPa88DYWXRLY77lUWpltW287j6s8BTiEqv0YlFt3wHQ2JIVX u0Kw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e24si5851034eje.102.2020.06.26.05.00.32; Fri, 26 Jun 2020 05:01:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728012AbgFZKiS convert rfc822-to-8bit (ORCPT + 99 others); Fri, 26 Jun 2020 06:38:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726778AbgFZKiR (ORCPT ); Fri, 26 Jun 2020 06:38:17 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E170FC08C5C1 for ; Fri, 26 Jun 2020 03:38:17 -0700 (PDT) Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jolkN-00052u-M3; Fri, 26 Jun 2020 12:38:15 +0200 Received: from pza by lupine with local (Exim 4.92) (envelope-from ) id 1jolkL-0000fO-FW; Fri, 26 Jun 2020 12:38:13 +0200 Message-ID: <69be7e39936ced4501107aeff6a93ca930e62f49.camel@pengutronix.de> Subject: Re: [PATCH v1] reset: intel: fix a compile warning about REG_OFFSET redefined From: Philipp Zabel To: Dejin Zheng , broonie@kernel.org Cc: linux-kernel@vger.kernel.org, kernel test robot Date: Fri, 26 Jun 2020 12:38:13 +0200 In-Reply-To: <20200604153039.22957-1-zhengdejin5@gmail.com> References: <20200604153039.22957-1-zhengdejin5@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dejin, On Thu, 2020-06-04 at 23:30 +0800, Dejin Zheng wrote: > kernel test robot reports a compile warning about REG_OFFSET redefined > in the reset-intel-gw.c after merging commit e44ab4e14d6f4 ("regmap: > Simplify implementation of the regmap_read_poll_timeout() macro"). the > warning is like that: > > drivers/reset/reset-intel-gw.c:18:0: warning: "REG_OFFSET" redefined > #define REG_OFFSET GENMASK(31, 16) > > In file included from ./arch/arm/mach-ixp4xx/include/mach/hardware.h:30:0, > from ./arch/arm/mach-ixp4xx/include/mach/io.h:15, > from ./arch/arm/include/asm/io.h:198, > from ./include/linux/io.h:13, > from ./include/linux/iopoll.h:14, > from ./include/linux/regmap.h:20, > from drivers/reset/reset-intel-gw.c:12: > ./arch/arm/mach-ixp4xx/include/mach/platform.h:25:0: note: this is the location of the previous definition > #define REG_OFFSET 3 > > Reported-by: kernel test robot > Fixes: e44ab4e14d6f4 ("regmap: Simplify implementation of the regmap_read_poll_timeout() macro") Hm, shouldn't this rather be: Fixes: c9aef213e38c ("reset: intel: Add system reset controller driver") even though e44ab4e14d6f4 triggered the issue by including iopoll.h? > Signed-off-by: Dejin Zheng > --- > drivers/reset/reset-intel-gw.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/reset/reset-intel-gw.c b/drivers/reset/reset-intel-gw.c > index 854238444616..5cfb4892b399 100644 > --- a/drivers/reset/reset-intel-gw.c > +++ b/drivers/reset/reset-intel-gw.c > @@ -15,7 +15,7 @@ > #define RCU_RST_STAT 0x0024 > #define RCU_RST_REQ 0x0048 > > -#define REG_OFFSET GENMASK(31, 16) > +#define REG_OFFSET_MASK GENMASK(31, 16) > #define BIT_OFFSET GENMASK(15, 8) > #define STAT_BIT_OFFSET GENMASK(7, 0) Could you add the _MASK suffix to BIT_OFFSET and STAT_BIT_OFFSET as well, for consistency? regards Philipp