Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6950526rwr; Wed, 10 May 2023 01:28:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5OiN3bAxKXuGCXZbLwpKcpNmcTpLs2Nr/9o40x11iL3e6gFbcGFOqLX72S2V4WRrHlBxTe X-Received: by 2002:a05:6a00:248d:b0:63a:8f4c:8be1 with SMTP id c13-20020a056a00248d00b0063a8f4c8be1mr25117585pfv.10.1683707329824; Wed, 10 May 2023 01:28:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683707329; cv=none; d=google.com; s=arc-20160816; b=JjnDaW16Tyjf2ezNBJltkmm+vtCbiSe37flazTBoBmhI2UZZoPaocUgdl9xUFPaM7B yV1eSe0DjUjLbEfpLs0G8+PJlBzcIPUsiHFpFmCF1eSGC2tI7NMM89reFo/gPM1DF9dj NJOquFy/mUlbWsHci9YD6taKgIbDUmbhY2DQ4O5xxxB+t6eo8JN8a2ITlQn/fqyaBMkL HdZWNGDyZeteA8L190eeo2E+WhjqxQJrgLt1fcIkw5hc4IvI6EpxCgSpFL8PyZ0ULGJ7 9KpzpvVI3wIU7XbhgqhdBrrsb4nIbg9lgsbj+GvbisD3p++VCki7FVCYOYWO8p5OpN6X Bw7Q== 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=A4yxJVaa83v9L4i0gJSjW3mPKxeY8qUltFeZ/8Vo9+4=; b=lUO9esIy2W3ltdnnWxs/0/ZpnAoTS+fZGAB+Oe0TibNurc5OtvTIioW0LSA4zuJzbm KhikrZKp2QQJKTgOnXEeccujF8kTdkQ0DP5JYNpr9oj9s7ayjaMsj4ln/WYp9T1fSUvX 3YTMhiAv0BWkqpGpJgIU4eH8i1xsvmCc68HbhbMwHdzCFY3Xzq1nau7wsTca79d+fjU+ Mi+TanJnj0L8VzVXG0IMxgRzgYtrJ6Pjwz3Y+DoH09f5CCINYDih7S0J2eeuzTMFkvY2 JEj+E1Z+be0EJOO3v2YpwPHMglH4GBuyRpTtBzALIOx4zV9gkviY4sNd9xvwL7FX5WZ5 jn4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XcYa5M5Y; 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 g206-20020a6252d7000000b0063f032d78efsi4702253pfb.269.2023.05.10.01.28.36; Wed, 10 May 2023 01:28:49 -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=XcYa5M5Y; 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 S235541AbjEJIS3 (ORCPT + 99 others); Wed, 10 May 2023 04:18:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230197AbjEJIS1 (ORCPT ); Wed, 10 May 2023 04:18:27 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6427D8F; Wed, 10 May 2023 01:18:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683706706; x=1715242706; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=I+vGMDDEGxtiu3VkujCFgaDu4FJdh9q/ZxqvG7WTFVs=; b=XcYa5M5YYObL/rl5R8t2HccGbHnGS0pFr/aBgLt2gK3g3AgvpRNl+mDo rk28XyZn5/BGZPBRJWIT2uZZNx3Lr4pE6m+UhiIZZ+pJvi7SK17ejGqy3 hzRbPepPqd0B7jrwQZkeM4PTNxwympVBTUkERnukkl2WkoEHJ1h8nupxl FvkiGChcWO+F2Bwa6h7r/Vyr6xwKmptsCu4Psi4mz/MU2/VWXhiKQrAPj OeuEXZNSTW0fxpjrnqBwYd4FXJGtobjn4roGDXnznLhV3BtEoMIPISVwV hl27B6YqRlX58SPq4BgBlyyAvXYojsXFyqrxl4ZroVMkXF0QcHZ5tWIQm w==; X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="330521030" X-IronPort-AV: E=Sophos;i="5.99,264,1677571200"; d="scan'208";a="330521030" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2023 01:18:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="676761148" X-IronPort-AV: E=Sophos;i="5.99,264,1677571200"; d="scan'208";a="676761148" Received: from lkp-server01.sh.intel.com (HELO dea6d5a4f140) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 10 May 2023 01:18:22 -0700 Received: from kbuild by dea6d5a4f140 with local (Exim 4.96) (envelope-from ) id 1pwf1h-00033A-1v; Wed, 10 May 2023 08:18:21 +0000 Date: Wed, 10 May 2023 16:18:17 +0800 From: kernel test robot To: Souradeep Chowdhury , Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Bjorn Andersson , Rob Herring Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Sibi Sankar , Rajendra Nayak , Souradeep Chowdhury Subject: Re: [PATCH V6 2/3] soc: qcom: boot_stat: Add Driver Support for Boot Stats Message-ID: <202305101517.ld1hBheg-lkp@intel.com> References: <35863b47c04c2edd7ae49c57d23682aba6111d4f.1683628357.git.quic_schowdhu@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <35863b47c04c2edd7ae49c57d23682aba6111d4f.1683628357.git.quic_schowdhu@quicinc.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, 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 Souradeep, kernel test robot noticed the following build warnings: [auto build test WARNING on robh/for-next] [also build test WARNING on krzk-dt/for-next linus/master v6.4-rc1 next-20230510] [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/Souradeep-Chowdhury/dt-bindings-sram-qcom-imem-Add-Boot-Stat-region-within-IMEM/20230509-185332 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next patch link: https://lore.kernel.org/r/35863b47c04c2edd7ae49c57d23682aba6111d4f.1683628357.git.quic_schowdhu%40quicinc.com patch subject: [PATCH V6 2/3] soc: qcom: boot_stat: Add Driver Support for Boot Stats config: hexagon-allyesconfig (https://download.01.org/0day-ci/archive/20230510/202305101517.ld1hBheg-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b0fb98227c90adf2536c9ad644a74d5e92961111) 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/7883e99da179c8b49f6834b84a91259b03679e56 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Souradeep-Chowdhury/dt-bindings-sram-qcom-imem-Add-Boot-Stat-region-within-IMEM/20230509-185332 git checkout 7883e99da179c8b49f6834b84a91259b03679e56 # 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 drivers/hwmon/ drivers/net/can/usb/ drivers/soc/qcom/ drivers/watchdog/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202305101517.ld1hBheg-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/soc/qcom/boot_stats.c:9: 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/qcom/boot_stats.c:9: 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/qcom/boot_stats.c:9: 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/qcom/boot_stats.c:76:6: warning: no previous prototype for function 'boot_stats_remove' [-Wmissing-prototypes] void boot_stats_remove(struct platform_device *pdev) ^ drivers/soc/qcom/boot_stats.c:76:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void boot_stats_remove(struct platform_device *pdev) ^ static 7 warnings generated. vim +/boot_stats_remove +76 drivers/soc/qcom/boot_stats.c 75 > 76 void boot_stats_remove(struct platform_device *pdev) 77 { 78 struct bs_data *drvdata = platform_get_drvdata(pdev); 79 80 debugfs_remove_recursive(drvdata->dbg_dir); 81 } 82 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests