From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A1C81C77B7A for ; Fri, 2 Jun 2023 13:52:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HIj3i4WpdzwZJSlorp3VinIAqHjlxIr4TtKRU+BXD8g=; b=31y7W2WiW3Dvyb SVkNyPVx4udXDufrEKColFcZtg9YaHRc0dTZ4wwdIOyYwe9NFD2PwFMfSA+0JiQ840+rZ76QqjxJJ Cs8E5PTJpyvl3923n+lsM/ty1cA+i1iKUAez4n026cC28NnGGl3wZ6UVQAC7B5dDHgw0KaVoWnmoQ pF3EIquP0a5cGs3oEMpV0O1AbytU2Qzv8mhxPh7Q/BCc4eXgvsXI6oRQaQrlwDCeE4vp1Tv+01BbJ Eixsp8p1KzJsgNpshY2Iq4HssajgRPe2c+M0jaRFgE18jBtK/MwFD9UR38RTp7oCSiFfX4W/02b3Z 1ZrwkPyfMg1OAwWaGBJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q55Bz-0073Pw-0z; Fri, 02 Jun 2023 13:51:47 +0000 Received: from mga17.intel.com ([192.55.52.151]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q55Bv-0073O8-0l for linux-arm-kernel@lists.infradead.org; Fri, 02 Jun 2023 13:51:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685713903; x=1717249903; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=c/07fBv2e57QftVltVTK+v/AFpok7g468L/WXtTWLpI=; b=K/RIX1ayHQLM1ev9QdQmhUlz9B+LCQiA8Zh8ZXgTrOKLctH/hbwY7fdR RI+lv66ggz97VeWT2ejOIb4wf0tHTeoTPlsLHL8rPbY15cb+dRe1/K0Fs Yz105iHkgGjlFUbLPfp0xlZu78vtCJ+/cgwc4NFyata/pBDJqjr5tX6ru kQR/1Po2HxnswJqS6z2zkubtoLJCxRwctLB7H3yL5uEFzuVNQ2Sb02oPc nDv2vIztkN3PnR95Zzvw3YoJ/pJhZevBPhBvTO/op5EUanDC92TaWCftn OxG45jNXSOxCTeAAI7vq3YiIrjrmUP5K0QM9LPNnsPX0huP24EDJ3Y9uO w==; X-IronPort-AV: E=McAfee;i="6600,9927,10729"; a="336235044" X-IronPort-AV: E=Sophos;i="6.00,213,1681196400"; d="scan'208";a="336235044" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2023 06:51:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10729"; a="772890379" X-IronPort-AV: E=Sophos;i="6.00,213,1681196400"; d="scan'208";a="772890379" Received: from lkp-server01.sh.intel.com (HELO 15ab08e44a81) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 02 Jun 2023 06:51:34 -0700 Received: from kbuild by 15ab08e44a81 with local (Exim 4.96) (envelope-from ) id 1q55Bl-0000Vd-1f; Fri, 02 Jun 2023 13:51:33 +0000 Date: Fri, 2 Jun 2023 21:51:30 +0800 From: kernel test robot To: Geert Uytterhoeven , Michael Turquette , Stephen Boyd , Yoshihiro Shimoda , Magnus Damm , Joerg Roedel , Robin Murphy Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Tomasz Figa , Sylwester Nawrocki , Will Deacon , Arnd Bergmann , Wolfram Sang , Dejin Zheng , Kai-Heng Feng , Nicholas Piggin , Heiko Carstens , Peter Zijlstra , Russell King , John Stultz , Thomas Gleixner , Tony Lindgren , Krzysztof Kozlowski , Tero Kristo , Ulf Hansson , "Rafael J . Wysocki" , Vincent Guittot , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-pm@vger.kernel.org, iommu@lists.linux.dev Subject: Re: [PATCH v3 6/7] soc: renesas: rmobile-sysc: Convert to readl_poll_timeout_atomic() Message-ID: <202306022137.eAP4Q3hL-lkp@intel.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230602_065143_284966_3EEC384F X-CRM114-Status: GOOD ( 15.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Geert, kernel test robot noticed the following build warnings: [auto build test WARNING on geert-renesas-drivers/renesas-clk] [also build test WARNING on joro-iommu/next clk/clk-next linus/master v6.4-rc4 next-20230602] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Geert-Uytterhoeven/iopoll-Call-cpu_relax-in-busy-loops/20230602-165454 base: https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git renesas-clk patch link: https://lore.kernel.org/r/ae4bf03ab8fd5a557c683086958d6764babc0723.1685692810.git.geert%2Brenesas%40glider.be patch subject: [PATCH v3 6/7] soc: renesas: rmobile-sysc: Convert to readl_poll_timeout_atomic() config: hexagon-randconfig-r031-20230531 (https://download.01.org/0day-ci/archive/20230602/202306022137.eAP4Q3hL-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 4faf3aaf28226a4e950c103a14f6fc1d1fdabb1b) reproduce (this is a W=1 build): mkdir -p ~/bin wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/2198e2f3fd21eb62861b6ada08eeec7d6f420ee3 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Geert-Uytterhoeven/iopoll-Call-cpu_relax-in-busy-loops/20230602-165454 git checkout 2198e2f3fd21eb62861b6ada08eeec7d6f420ee3 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=hexagon olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/soc/renesas/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202306022137.eAP4Q3hL-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/soc/renesas/rmobile-sysc.c:15: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from drivers/soc/renesas/rmobile-sysc.c:15: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from drivers/soc/renesas/rmobile-sysc.c:15: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ >> drivers/soc/renesas/rmobile-sysc.c:78:10: warning: variable 'ret' is uninitialized when used here [-Wuninitialized] return ret; ^~~ drivers/soc/renesas/rmobile-sysc.c:75:9: note: initialize the variable 'ret' to silence this warning int ret; ^ = 0 7 warnings generated. vim +/ret +78 drivers/soc/renesas/rmobile-sysc.c 8f45b112fc66ef arch/arm/mach-shmobile/pm-rmobile.c Kuninori Morimoto 2012-07-05 71 445aeb081bc713 arch/arm/mach-shmobile/pm-rmobile.c Geert Uytterhoeven 2018-11-29 72 static int __rmobile_pd_power_up(struct rmobile_pm_domain *rmobile_pd) 8f45b112fc66ef arch/arm/mach-shmobile/pm-rmobile.c Kuninori Morimoto 2012-07-05 73 { 2198e2f3fd21eb drivers/soc/renesas/rmobile-sysc.c Geert Uytterhoeven 2023-06-02 74 unsigned int val, mask = BIT(rmobile_pd->bit_shift); 2198e2f3fd21eb drivers/soc/renesas/rmobile-sysc.c Geert Uytterhoeven 2023-06-02 75 int ret; 8f45b112fc66ef arch/arm/mach-shmobile/pm-rmobile.c Kuninori Morimoto 2012-07-05 76 8b6bed678428b6 drivers/soc/renesas/rmobile-sysc.c Geert Uytterhoeven 2020-11-19 77 if (readl(rmobile_pd->base + PSTR) & mask) 445aeb081bc713 arch/arm/mach-shmobile/pm-rmobile.c Geert Uytterhoeven 2018-11-29 @78 return ret; 8f45b112fc66ef arch/arm/mach-shmobile/pm-rmobile.c Kuninori Morimoto 2012-07-05 79 8b6bed678428b6 drivers/soc/renesas/rmobile-sysc.c Geert Uytterhoeven 2020-11-19 80 writel(mask, rmobile_pd->base + SWUCR); 8f45b112fc66ef arch/arm/mach-shmobile/pm-rmobile.c Kuninori Morimoto 2012-07-05 81 2198e2f3fd21eb drivers/soc/renesas/rmobile-sysc.c Geert Uytterhoeven 2023-06-02 82 ret = readl_poll_timeout_atomic(rmobile_pd->base + SWUCR, val, 2198e2f3fd21eb drivers/soc/renesas/rmobile-sysc.c Geert Uytterhoeven 2023-06-02 83 (val & mask), PSTR_DELAY_US, 2198e2f3fd21eb drivers/soc/renesas/rmobile-sysc.c Geert Uytterhoeven 2023-06-02 84 PSTR_RETRIES * PSTR_DELAY_US); 8f45b112fc66ef arch/arm/mach-shmobile/pm-rmobile.c Kuninori Morimoto 2012-07-05 85 8f45b112fc66ef arch/arm/mach-shmobile/pm-rmobile.c Kuninori Morimoto 2012-07-05 86 pr_debug("%s: Power on, 0x%08x -> PSTR = 0x%08x\n", 25717b85736076 arch/arm/mach-shmobile/pm-rmobile.c Geert Uytterhoeven 2014-12-03 87 rmobile_pd->genpd.name, mask, 8b6bed678428b6 drivers/soc/renesas/rmobile-sysc.c Geert Uytterhoeven 2020-11-19 88 readl(rmobile_pd->base + PSTR)); 8f45b112fc66ef arch/arm/mach-shmobile/pm-rmobile.c Kuninori Morimoto 2012-07-05 89 8f45b112fc66ef arch/arm/mach-shmobile/pm-rmobile.c Kuninori Morimoto 2012-07-05 90 return ret; 8f45b112fc66ef arch/arm/mach-shmobile/pm-rmobile.c Kuninori Morimoto 2012-07-05 91 } 8f45b112fc66ef arch/arm/mach-shmobile/pm-rmobile.c Kuninori Morimoto 2012-07-05 92 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel