Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp414249rwr; Wed, 19 Apr 2023 08:08:56 -0700 (PDT) X-Google-Smtp-Source: AKy350ZEvVoSM/T4yWDUCMPFoRpCx7aA7jnEeI0o6oTDmWkJZiAe9LPUkekidnWiBnS+UU9yGHz1 X-Received: by 2002:a17:902:c78a:b0:1a8:637:8b17 with SMTP id w10-20020a170902c78a00b001a806378b17mr4168840pla.2.1681916936398; Wed, 19 Apr 2023 08:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681916936; cv=none; d=google.com; s=arc-20160816; b=WOB1v/7JJm9DZIx65vOgTJoBe/cKwJkHoMuHQDoI2I4thWUoiOk2mCMv7o4QXTb8ao vJLzFY45xWgz+EX3fysayPxtQfd4ntmCsRz067GLAGuz59f74E+OVi3CvC4oLOD9HeZ1 Ipg3fbvkeVBpVT2ve16NmX9ZQRP2/INWOVo4zcewvSFY1DW0XHVfSXcz7gZbkgWIKwr2 rYZ6mijhNWAbVAEIgom199LoYqBLBeBrk0x2KMy9mtmBDRPo1WAT8xuvMkbGxYWa/ywL tX04PmuEe5e13Q+hnAGv2TXYVI2ctP1HBV/j7WoFxG5ujIvAsHq5TdnwaRhqWKNBWngI JoLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PioxP245HkI3/lMZIaMnFy0hIxY42H6vDCOSw0q22SE=; b=LfkWIOscmKGm6QflRra82bnz5fSUVRWlfJIplzfycpEFVI417P6myuQ8NWRy3hz2sj asJ+uaH2+26HOHJVjI9mL2FoT9hdC3zCm1EI9DJG0yLfuSuHtHr1fEuIBsDmC8mE8yoG xK/n6AK0T5In35VvpG0yDucU/+Q5i0bcRcyDfkFOiXM9qZ+H8nIK0eKu0i08r8JgF9lc 1/81FLRyY/wDyI6IS7ad42D66l6pQ4pjaY5mWFiRwo2yDWzNRA8Fo8laXQ9Ie/rflvGt hZO8UMNIklxqTxiraQZiuLouMlBEsawtYo/StRmFzFRDzX73xxOqQ5anhDmjwM7TUhsm 8YRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fF3I6Boc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p13-20020a170902e74d00b001a1defc30cbsi14640505plf.479.2023.04.19.08.08.39; Wed, 19 Apr 2023 08:08:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fF3I6Boc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232582AbjDSPCg (ORCPT + 99 others); Wed, 19 Apr 2023 11:02:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231822AbjDSPCe (ORCPT ); Wed, 19 Apr 2023 11:02:34 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCCA910EB; Wed, 19 Apr 2023 08:02:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681916553; x=1713452553; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=XBiJTfIgTend9c6JUHceG7etl4rakE4n2xhOljQ08Ns=; b=fF3I6BocbVy8c3+l49qn7oSHg122SKJQ3bdbFDqwf3qMsuNOMpQ5Pzlf ENpb2ZNwiwDRm61ZpIAOXjDhvfV4kgtydr56g3gUYffU8OnYs6ElVatY3 nPo4Yx/CfpFe6/GUUzw0t3yZ7m/47WDPm+ZT4oLgg9LWe5Xa8081VigId cZ9CAO1NQ6pc5lOw5B+F5/0u/68cOnPrEOEC8EckbEcuLFEl1tApsnC3C As46FZbgRfP3TBu0OiHfyn5Q4HIjbyY3f9rLVCwK6krxbqufvBg9mJDed 9MIyKq50YEB1EbA/YDIqQa6wiOPeKXctSBxTqdq618aAmYk+9oe/rcB6A w==; X-IronPort-AV: E=McAfee;i="6600,9927,10685"; a="334281333" X-IronPort-AV: E=Sophos;i="5.99,208,1677571200"; d="scan'208";a="334281333" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2023 08:02:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10685"; a="724079780" X-IronPort-AV: E=Sophos;i="5.99,208,1677571200"; d="scan'208";a="724079780" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 19 Apr 2023 08:01:58 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pp9Jg-000ewD-0s; Wed, 19 Apr 2023 15:01:52 +0000 Date: Wed, 19 Apr 2023 23:01:26 +0800 From: kernel test robot To: nick.hawkins@hpe.com, verdun@hpe.com, linus.walleij@linaro.org, brgl@bgdev.pl, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jdelvare@suse.com, linux@roeck-us.net, linux@armlinux.org.uk, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev Subject: Re: [PATCH v1 2/9] hwmon: (gxp_fan_ctrl) Give GPIO access to fan data Message-ID: <202304192243.9hwJ1Cad-lkp@intel.com> References: <20230418152824.110823-3-nick.hawkins@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230418152824.110823-3-nick.hawkins@hpe.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, kernel test robot noticed the following build warnings: [auto build test WARNING on groeck-staging/hwmon-next] [also build test WARNING on robh/for-next linus/master v6.3-rc7] [cannot apply to brgl/gpio/for-next next-20230418] [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/nick-hawkins-hpe-com/gpio-gxp-Add-HPE-GXP-GPIO/20230418-233513 base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next patch link: https://lore.kernel.org/r/20230418152824.110823-3-nick.hawkins%40hpe.com patch subject: [PATCH v1 2/9] hwmon: (gxp_fan_ctrl) Give GPIO access to fan data config: hexagon-randconfig-r045-20230419 (https://download.01.org/0day-ci/archive/20230419/202304192243.9hwJ1Cad-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 437b7602e4a998220871de78afcb020b9c14a661) reproduce (this is a W=1 build): 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/be3722d7f32fea1ea375090d05cbfdd3dd4e04d3 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review nick-hawkins-hpe-com/gpio-gxp-Add-HPE-GXP-GPIO/20230418-233513 git checkout be3722d7f32fea1ea375090d05cbfdd3dd4e04d3 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash block/partitions/ drivers/hwmon/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304192243.9hwJ1Cad-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/hwmon/gxp-fan-ctrl.c:7: 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/hwmon/gxp-fan-ctrl.c:7: 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/hwmon/gxp-fan-ctrl.c:7: 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/hwmon/gxp-fan-ctrl.c:32:4: warning: no previous prototype for function 'get_fans_installed' [-Wmissing-prototypes] u8 get_fans_installed(void) ^ drivers/hwmon/gxp-fan-ctrl.c:32:1: note: declare 'static' if the function is not intended to be used outside of this translation unit u8 get_fans_installed(void) ^ static >> drivers/hwmon/gxp-fan-ctrl.c:52:4: warning: no previous prototype for function 'get_fans_failed' [-Wmissing-prototypes] u8 get_fans_failed(void) ^ drivers/hwmon/gxp-fan-ctrl.c:52:1: note: declare 'static' if the function is not intended to be used outside of this translation unit u8 get_fans_failed(void) ^ static 8 warnings generated. vim +/get_fans_installed +32 drivers/hwmon/gxp-fan-ctrl.c 31 > 32 u8 get_fans_installed(void) 33 { 34 static u8 val; 35 36 val = readb(drvdata->plreg + OFS_FAN_INST); 37 38 return val; 39 } 40 EXPORT_SYMBOL(get_fans_installed); 41 42 static long fan_failed(struct device *dev, int fan) 43 { 44 struct gxp_fan_ctrl_drvdata *drvdata = dev_get_drvdata(dev); 45 u8 val; 46 47 val = readb(drvdata->plreg + OFS_FAN_FAIL); 48 49 return !!(val & BIT(fan)); 50 } 51 > 52 u8 get_fans_failed(void) 53 { 54 static u8 val; 55 56 val = readb(drvdata->plreg + OFS_FAN_FAIL); 57 58 return val; 59 } 60 EXPORT_SYMBOL(get_fans_failed); 61 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests