Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6387548rwr; Tue, 9 May 2023 14:36:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7jg/MU7Y0SE8WNXRqdcsmLQXIw653GZx9fSnzN6ajfm1jRNS29oA07DCHUV2K9sG1sBZeS X-Received: by 2002:a05:6a00:1582:b0:643:b37d:d350 with SMTP id u2-20020a056a00158200b00643b37dd350mr19522422pfk.31.1683668169830; Tue, 09 May 2023 14:36:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683668169; cv=none; d=google.com; s=arc-20160816; b=v8FFBKc3VWGQrVABAQ252SjiBCHslNGEkfVDR6oGiQpJwjRA4bCdY6jdXxFtSQVIN1 YUu35GSt4EBD8XGs79WwFMaJxND61gY789QblQtXW2C7816TIpyt0iNhcIlAGjKkRr/4 zwmjllwByERGcibClduFmxhGms9SLjCFuaUlOPGTT96ga35YF7WRMK+CvcDC8H7cyvlB T+XFhvSVS9DgSN0kMtfSJGgsoM/xGcOPIO42FYYYS1phtbBRA8Rafma89XDLhiUSWHU4 UPmsQIRSsnFsbA6aFRKXSIpgJpI2Eoc3MwiCd0bPZ0jkN6M27Fg6j1njMJYVzjvQYyNM wCSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=l2uKtV3HyrHBpeagAiYLU5NnJmTLuNiBM1Cg4AcrcLg=; b=jlK98qXf/vQzdKFJzqn970FC65bDRXdxflE1vrOZhG1URrLLjjtoIz8EbSHcCmeCGo svMidt9kKN5CV9KE8ESOQfX1wsNY8Iwk/kJ3ayUsR60+9m/YfrcJIY3fXNG34WJvj5oz h0o3CoWTacMhKOUB/hEMWEunXzT0STXoEi9FmCc5PwLJOegHJTnrHTIscQUqp27i+eLG cf5WhcMvG+FBMUwx8zkJ1gvxCW1o5FpcwKVr7v8n+jr2cQtVzjjsEsOdDEM5Tmj/Nxvv LxpXFcccD0fykKzsebeXoI99nDnF6H5+Jg9lqCs9Ruf/foCaqeJ+q2e736qrKC7ktd0p 2I5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aV7Opjzg; 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 x7-20020aa79a47000000b0064380c6010fsi3065351pfj.397.2023.05.09.14.35.56; Tue, 09 May 2023 14:36:09 -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=aV7Opjzg; 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 S230064AbjEIUyq (ORCPT + 99 others); Tue, 9 May 2023 16:54:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbjEIUyo (ORCPT ); Tue, 9 May 2023 16:54:44 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66F0D6EA0; Tue, 9 May 2023 13:54:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683665660; x=1715201660; h=date:from:to:cc:subject:message-id:mime-version; bh=YDsfLsmKSQhk72LLYzXf4zfetkEmnRzr+xoglAtz1qY=; b=aV7Opjzgqi7wBucoycma7xHKs0V3XY7MCUcuzPvs6Y012Ie7AuOCHSup c9tY6Mv3dx9JBlJ1t63bvu8BdHN9T/XUuNYghoH3GUHPbKz9UJyWXzmy2 /S7UpZkH3bBg2xqBSrCtU3tHCkM+R2f1q7XtoXetG9NMVC6u71GZSmypp fZ+KT294AkwPNfYvCmi2O+sYo8+8B4BOC+W4lhnNTKK5gpZWR+CvpPho+ 3cHePy+zvLPYJWTB8GUDVjm+vUiYUhwosWOClEYt9lBmq0qXvp+DvFOxm VesmT9WRJ3ecWkkT2geCn/rFT8V/wcyXWjaGPw8jujRhT/qd8xU+G0Ju5 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="350081846" X-IronPort-AV: E=Sophos;i="5.99,262,1677571200"; d="scan'208";a="350081846" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2023 13:52:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="649486666" X-IronPort-AV: E=Sophos;i="5.99,262,1677571200"; d="scan'208";a="649486666" Received: from lkp-server01.sh.intel.com (HELO dea6d5a4f140) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 09 May 2023 13:52:50 -0700 Received: from kbuild by dea6d5a4f140 with local (Exim 4.96) (envelope-from ) id 1pwUKH-0002UK-0N; Tue, 09 May 2023 20:52:49 +0000 Date: Wed, 10 May 2023 04:51:58 +0800 From: kernel test robot To: Mauro Carvalho Chehab Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c:1175:34: warning: unused variable 'c8sectpfe_match' Message-ID: <202305100443.8KKSnL1P-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Mauro, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 16a8829130ca22666ac6236178a6233208d425c3 commit: e7b8153e2a4f0c9c8d1450aa7328d54ea64fe8b2 media: platform: place stm32/ and sti/ under st/ dir date: 1 year, 2 months ago config: s390-randconfig-r014-20230509 (https://download.01.org/0day-ci/archive/20230510/202305100443.8KKSnL1P-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 # 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=e7b8153e2a4f0c9c8d1450aa7328d54ea64fe8b2 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout e7b8153e2a4f0c9c8d1450aa7328d54ea64fe8b2 # 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 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash drivers/media/platform/st/sti/c8sectpfe/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202305100443.8KKSnL1P-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c:16: In file included from include/linux/dma-mapping.h:10: In file included from include/linux/scatterlist.h:9: 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/st/sti/c8sectpfe/c8sectpfe-core.c:16: In file included from include/linux/dma-mapping.h:10: In file included from include/linux/scatterlist.h:9: 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/st/sti/c8sectpfe/c8sectpfe-core.c:16: In file included from include/linux/dma-mapping.h:10: In file included from include/linux/scatterlist.h:9: 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/st/sti/c8sectpfe/c8sectpfe-core.c:1175:34: warning: unused variable 'c8sectpfe_match' [-Wunused-const-variable] static const struct of_device_id c8sectpfe_match[] = { ^ 13 warnings generated. vim +/c8sectpfe_match +1175 drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-core.c c5f5d0f99794cf drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c Peter Griffin 2015-07-30 1174 c5f5d0f99794cf drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c Peter Griffin 2015-07-30 @1175 static const struct of_device_id c8sectpfe_match[] = { c5f5d0f99794cf drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c Peter Griffin 2015-07-30 1176 { .compatible = "st,stih407-c8sectpfe" }, c5f5d0f99794cf drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c Peter Griffin 2015-07-30 1177 { /* sentinel */ }, c5f5d0f99794cf drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c Peter Griffin 2015-07-30 1178 }; c5f5d0f99794cf drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c Peter Griffin 2015-07-30 1179 MODULE_DEVICE_TABLE(of, c8sectpfe_match); c5f5d0f99794cf drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c Peter Griffin 2015-07-30 1180 :::::: The code at line 1175 was first introduced by commit :::::: c5f5d0f99794cfb675ecacfe37a1b33b352b9752 [media] c8sectpfe: STiH407/10 Linux DVB demux support :::::: TO: Peter Griffin :::::: CC: Mauro Carvalho Chehab -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests