From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88105944D for ; Thu, 31 Aug 2023 11:53:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693482831; x=1725018831; h=date:from:to:cc:subject:message-id:mime-version; bh=HQ6+VA6JJTM48wDwzE22Km8ypQnkKf8nyjBJE6Lpjiw=; b=LSWyike9EI91619CW3+D3FfXHMQyxHyPWYi9ZZPb5qBkrpQwr8/csiZX iUSOsgLiHo4vSWVkl0nEP+Wvx843YBdWxU6fWdTuhtwH/4YIzChcpzApm 2u+MA94ShdGAp7uw0VeYbqfXe0d6ly4pGxVo5cRXW221h8tSouqRB4w3c HErLsV/AKymuj8um0xxFrYOoCMBTP+Ua5LZJIiaPNItPgpNmoJcXy02r0 xCaoknaqWaphR8LCbOIZJvsGnX07dv29XgxT8VnVySgdRRGwIy85JoO0C zPJTgvpu5fBH53wl15argW1StDLzOjzLxNYnxA98AZGXEAVmplTvXa2N2 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10818"; a="373315035" X-IronPort-AV: E=Sophos;i="6.02,216,1688454000"; d="scan'208";a="373315035" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2023 04:53:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10818"; a="1070231630" X-IronPort-AV: E=Sophos;i="6.02,216,1688454000"; d="scan'208";a="1070231630" Received: from lkp-server01.sh.intel.com (HELO 5d8055a4f6aa) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 31 Aug 2023 04:53:47 -0700 Received: from kbuild by 5d8055a4f6aa with local (Exim 4.96) (envelope-from ) id 1qbgF7-00006H-0D; Thu, 31 Aug 2023 11:53:45 +0000 Date: Thu, 31 Aug 2023 19:52:53 +0800 From: kernel test robot To: Otavio Salvador Cc: oe-kbuild-all@lists.linux.dev Subject: [freescale-fslc:5.15-2.2.x-imx 14031/24604] drivers/soc/imx/soc-imx9.c:105:34: warning: unused variable 'imx9_soc_of_match' Message-ID: <202308311942.fKXwJyzs-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Alice, FYI, the error/warning still remains. tree: https://github.com/Freescale/linux-fslc 5.15-2.2.x-imx head: 7c13adcd3af7dcd541144655102e1cdb941ad538 commit: 0c6c9e418a7d12f042ea7eb3499d97e813d463f0 [14031/24604] MLK-25903-1 driver: soc: imx9: add i.MX93 SoC device register function config: s390-randconfig-r012-20230831 (https://download.01.org/0day-ci/archive/20230831/202308311942.fKXwJyzs-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230831/202308311942.fKXwJyzs-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202308311942.fKXwJyzs-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/soc/imx/soc-imx9.c:10: In file included from include/linux/of_address.h:7: In file included from include/linux/io.h:13: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:464: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:477: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/big_endian.h:37:59: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x)) ^ include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16' #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x)) ^ In file included from drivers/soc/imx/soc-imx9.c:10: In file included from include/linux/of_address.h:7: In file included from include/linux/io.h:13: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:490: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/big_endian.h:35:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32' #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) ^ In file included from drivers/soc/imx/soc-imx9.c:10: In file included from include/linux/of_address.h:7: In file included from include/linux/io.h:13: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:501: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:511: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:521: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); ~~~~~~~~~~ ^ include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ >> drivers/soc/imx/soc-imx9.c:105:34: warning: unused variable 'imx9_soc_of_match' [-Wunused-const-variable] static const struct of_device_id imx9_soc_of_match[] = { ^ 13 warnings generated. vim +/imx9_soc_of_match +105 drivers/soc/imx/soc-imx9.c 104 > 105 static const struct of_device_id imx9_soc_of_match[] = { 106 { .compatible = "fsl,imx93-soc", }, 107 { } 108 }; 109 MODULE_DEVICE_TABLE(of, imx9_soc_of_match); 110 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki