From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 75EEB3D69 for ; Thu, 9 Jun 2022 21:19:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654809592; x=1686345592; h=date:from:to:cc:subject:message-id:mime-version; bh=5sAU2Ig67BTLOTd4lRYOYpFpghiJtCgqxprRCYAiNvw=; b=HuBWEPc7ybzCyIEL5DMKHiRFbIgNmmVijSjCpp1aJzu35OxCthEmlUrl L6NaRnwdlUS21LFTn+RCbSscTaUsMR9P3qVoantZ+bCHjL2ml5Ao9Nzh+ tV9CtpX5Gtxs/hXPsyf84Qi9eM3GvE+NJxMKk+71vWe6xY+mCZg7Cnw9X Fc+2QFiW3LZJrfYOyJ+FmI4md8Be7s7R4JEcvHChUt3O2wog0BJXRuIAC SlSDTLl9NuIJzj5QXHvFdhlln8SIG0BNKTqbrkwuQiND7O8lBT4HbmJ4S wTeR6mrTd/wrYd7K8wGWJ03/qLetXYM0gQwcqAuAhVOscLwxPQZMn9dO4 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10373"; a="278229316" X-IronPort-AV: E=Sophos;i="5.91,288,1647327600"; d="scan'208";a="278229316" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2022 14:19:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,288,1647327600"; d="scan'208";a="616095702" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 09 Jun 2022 14:19:49 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nzPZF-000GOt-7O; Thu, 09 Jun 2022 21:19:49 +0000 Date: Fri, 10 Jun 2022 05:19:07 +0800 From: kernel test robot To: Mauro Carvalho Chehab Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c:3126:34: warning: unused variable 'samsung_jpeg_match' Message-ID: <202206100528.noekKuMz-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Mauro, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6bfb56e93bcef41859c2d5ab234ffd80b691be35 commit: f4104b7851a8d8b9a70899dcbecdb393eb16cd8a media: platform: rename s5p-jpeg/ to samsung/s5p-jpeg/ date: 3 months ago config: s390-randconfig-r022-20220609 (https://download.01.org/0day-ci/archive/20220610/202206100528.noekKuMz-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project b92436efcb7813fc481b30f2593a4907568d917a) 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 # install s390 cross compiling tool for clang build # apt-get install binutils-s390x-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f4104b7851a8d8b9a70899dcbecdb393eb16cd8a git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout f4104b7851a8d8b9a70899dcbecdb393eb16cd8a # 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=s390 SHELL=/bin/bash drivers/media/platform/samsung/s5p-jpeg/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c:15: 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/media/platform/samsung/s5p-jpeg/jpeg-core.c:15: 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/media/platform/samsung/s5p-jpeg/jpeg-core.c:15: 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/media/platform/samsung/s5p-jpeg/jpeg-core.c:3126:34: warning: unused variable 'samsung_jpeg_match' [-Wunused-const-variable] static const struct of_device_id samsung_jpeg_match[] = { ^ 13 warnings generated. vim +/samsung_jpeg_match +3126 drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c 6c96dbbc2aa9f5b drivers/media/platform/s5p-jpeg/jpeg-core.c Andrzej Pietrasiewicz 2015-09-18 3125 80529ae5c13725e drivers/media/platform/s5p-jpeg/jpeg-core.c Jacek Anaszewski 2013-12-18 @3126 static const struct of_device_id samsung_jpeg_match[] = { 80529ae5c13725e drivers/media/platform/s5p-jpeg/jpeg-core.c Jacek Anaszewski 2013-12-18 3127 { 80529ae5c13725e drivers/media/platform/s5p-jpeg/jpeg-core.c Jacek Anaszewski 2013-12-18 3128 .compatible = "samsung,s5pv210-jpeg", 80529ae5c13725e drivers/media/platform/s5p-jpeg/jpeg-core.c Jacek Anaszewski 2013-12-18 3129 .data = &s5p_jpeg_drvdata, 3246fdaa0ac2d93 drivers/media/platform/s5p-jpeg/jpeg-core.c Jacek Anaszewski 2014-07-11 3130 }, { 3246fdaa0ac2d93 drivers/media/platform/s5p-jpeg/jpeg-core.c Jacek Anaszewski 2014-07-11 3131 .compatible = "samsung,exynos3250-jpeg", 3246fdaa0ac2d93 drivers/media/platform/s5p-jpeg/jpeg-core.c Jacek Anaszewski 2014-07-11 3132 .data = &exynos3250_jpeg_drvdata, 80529ae5c13725e drivers/media/platform/s5p-jpeg/jpeg-core.c Jacek Anaszewski 2013-12-18 3133 }, { 80529ae5c13725e drivers/media/platform/s5p-jpeg/jpeg-core.c Jacek Anaszewski 2013-12-18 3134 .compatible = "samsung,exynos4210-jpeg", 3246fdaa0ac2d93 drivers/media/platform/s5p-jpeg/jpeg-core.c Jacek Anaszewski 2014-07-11 3135 .data = &exynos4_jpeg_drvdata, 80529ae5c13725e drivers/media/platform/s5p-jpeg/jpeg-core.c Jacek Anaszewski 2013-12-18 3136 }, { 80529ae5c13725e drivers/media/platform/s5p-jpeg/jpeg-core.c Jacek Anaszewski 2013-12-18 3137 .compatible = "samsung,exynos4212-jpeg", 80529ae5c13725e drivers/media/platform/s5p-jpeg/jpeg-core.c Jacek Anaszewski 2013-12-18 3138 .data = &exynos4_jpeg_drvdata, 7c15fd4bf3d367b drivers/media/platform/s5p-jpeg/jpeg-core.c Andrzej Pietrasiewicz 2015-03-09 3139 }, { 7c15fd4bf3d367b drivers/media/platform/s5p-jpeg/jpeg-core.c Andrzej Pietrasiewicz 2015-03-09 3140 .compatible = "samsung,exynos5420-jpeg", 7c15fd4bf3d367b drivers/media/platform/s5p-jpeg/jpeg-core.c Andrzej Pietrasiewicz 2015-03-09 3141 .data = &exynos5420_jpeg_drvdata, 6c96dbbc2aa9f5b drivers/media/platform/s5p-jpeg/jpeg-core.c Andrzej Pietrasiewicz 2015-09-18 3142 }, { 6c96dbbc2aa9f5b drivers/media/platform/s5p-jpeg/jpeg-core.c Andrzej Pietrasiewicz 2015-09-18 3143 .compatible = "samsung,exynos5433-jpeg", 6c96dbbc2aa9f5b drivers/media/platform/s5p-jpeg/jpeg-core.c Andrzej Pietrasiewicz 2015-09-18 3144 .data = &exynos5433_jpeg_drvdata, 80529ae5c13725e drivers/media/platform/s5p-jpeg/jpeg-core.c Jacek Anaszewski 2013-12-18 3145 }, 80529ae5c13725e drivers/media/platform/s5p-jpeg/jpeg-core.c Jacek Anaszewski 2013-12-18 3146 {}, 80529ae5c13725e drivers/media/platform/s5p-jpeg/jpeg-core.c Jacek Anaszewski 2013-12-18 3147 }; 80529ae5c13725e drivers/media/platform/s5p-jpeg/jpeg-core.c Jacek Anaszewski 2013-12-18 3148 :::::: The code at line 3126 was first introduced by commit :::::: 80529ae5c13725e12ba0377e29b2160794ba6b25 [media] s5p-jpeg: JPEG codec :::::: TO: Jacek Anaszewski :::::: CC: Mauro Carvalho Chehab -- 0-DAY CI Kernel Test Service https://01.org/lkp