Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp856903ybh; Wed, 15 Jul 2020 18:00:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2N+gvWesnJ5NqGnGySGmPtDnu/0HBQSYwBprj/3qpKK/NvK+dngucvWf6tXQR5mIByRTB X-Received: by 2002:a05:6402:22c1:: with SMTP id dm1mr2223352edb.187.1594861251550; Wed, 15 Jul 2020 18:00:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594861251; cv=none; d=google.com; s=arc-20160816; b=dXHVGhbcnNAuorPZ6NnOuIEfLis3pmE6z5TLkcRpnhFGjgPNWAf53OvU+jJNyCzCuk rRsGq9kblg5jK5r2++9vzzjTlmGE/jAQm9XLGGESb5BSuMN77j37NaAfHRh9EmANhSPn ZFGD+ZTG34NfOKJEQzCsD7KTWi9thsIxLzGnlMzIhIMiw3NNDgjs45IXcTL7/dIRyjv6 q1q9E1pJTCPgJsGrwq6Yrh9OTq/GSbDB2h/7qf9wQWdCmf6SnI7Suv2Hfe5N2vmMUkjx kOymHj/XBopggTRmZ85qKF5YF2ht9hwADsU9DhJCxj2fyOqHTPczONbBAtcH8S/9zUSn Ua7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=1koSW3gKyJUgdBmKRmrdFTyJDk1Pmma3NMn+EQ0R6T8=; b=MbP0LY5Vcl6PBafnzFc3Jh0oKiu3pAKsklO4YEJNACN3I2SQXtc0CIrJPuA5OLTLYW gsglMiGWZ1J0veMkA+IFeXXUZxJZDsoIy3C0VUbmOjbb81Trr62mtTSkGjqNOxRVQgje BtER8G+1tnnvEjZxCi6hjocGcpv4m6VX9pPkgyBHw4nNqtJxfWfPNEsKUIb5AK9dPgnu 9XSQN49We4fsBfDMNUXlmpERB/BEUyboGFdizmtQiHmmpd78UihyCHQB/jQrflEEPNAs 1sfkNNTc0rzqmtnfmk+hf7R2/p5z7FR94u4gQJSX/0FQaOtngvLLqlDDyGobfqZvsl/2 xb/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lB+dv5rA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y18si2207679edw.583.2020.07.15.18.00.28; Wed, 15 Jul 2020 18:00:51 -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; dkim=pass header.i=@kernel.org header.s=default header.b=lB+dv5rA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726984AbgGPBAS (ORCPT + 99 others); Wed, 15 Jul 2020 21:00:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:36832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726776AbgGPBAS (ORCPT ); Wed, 15 Jul 2020 21:00:18 -0400 Received: from kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 270CF2077D; Thu, 16 Jul 2020 01:00:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594861218; bh=EfHJnarvNG/86632LUS98Ny1D7rHG3S4L10bIx8jeIM=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=lB+dv5rAC/0qNlXHk7jlCeiwIc338r+YiPuKHNWs171PqWRZugcXjOEan6lXIi5Ld iXZtgbGvrHWylJLyGvUJGXZ6MyjEZf5TOd82AWemam12Q3i2Dv0nyk8LHCdSRFS7ZK h8rP8jMoTSH8036vDdZO9eGuZ6izaEdZsJghxXlk= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1594098579-25050-7-git-send-email-Anson.Huang@nxp.com> References: <1594098579-25050-1-git-send-email-Anson.Huang@nxp.com> <1594098579-25050-7-git-send-email-Anson.Huang@nxp.com> Subject: Re: [PATCH V6 6/6] clk: imx6sl: Fix build warning reported by kernel test robot From: Stephen Boyd Cc: Linux-imx@nxp.com To: Anson Huang , Georg.Waibel@wiedemann-group.com, abel.vesa@nxp.com, aisheng.dong@nxp.com, andrew.smirnov@gmail.com, chen.fang@nxp.com, daniel.baluta@nxp.com, festevam@gmail.com, fugang.duan@nxp.com, georg.waibel@wiedemann-group.de, horia.geanta@nxp.com, j.remmet@phytec.de, kernel@pengutronix.de, laurent.pinchart@ideasonboard.com, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, mturquette@baylibre.com, peng.fan@nxp.com, s.hauer@pengutronix.de, sfr@canb.auug.org.au, shawnguo@kernel.org, yuehaibing@huawei.com Date: Wed, 15 Jul 2020 18:00:17 -0700 Message-ID: <159486121748.1987609.16422613903444902156@swboyd.mtv.corp.google.com> User-Agent: alot/0.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Anson Huang (2020-07-06 22:09:39) > Use readl_relaxed() instead of __raw_readl(), and use BIT(x) > instead of (1 << X) to fix below build warning reported by kernel > test robot: >=20 > drivers/clk/imx/clk-imx6sl.c:149:49: warning: Shifting signed 32-bit > value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] > while (!(__raw_readl(anatop_base + PLL_ARM) & BM_PLL_ARM_LOCK)) >=20 > Signed-off-by: Anson Huang > Reported-by: kernel test robot > --- The subject is poor. Please improve it so that it summarizes the change instead of the reaction to a warning from a robot. > New patch. > --- > drivers/clk/imx/clk-imx6sl.c | 15 ++++++++------- > 1 file changed, 8 insertions(+), 7 deletions(-) >=20 This should come earlier in the series too so that the build warning doesn't come out before this patch is applied.