From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2EE34C433EF for ; Wed, 23 Mar 2022 04:48:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3A0A06B0072; Wed, 23 Mar 2022 00:48:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 329076B0073; Wed, 23 Mar 2022 00:48:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1A2F16B0074; Wed, 23 Mar 2022 00:48:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0139.hostedemail.com [216.40.44.139]) by kanga.kvack.org (Postfix) with ESMTP id 05B476B0072 for ; Wed, 23 Mar 2022 00:48:55 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id B14A918289DD9 for ; Wed, 23 Mar 2022 04:48:54 +0000 (UTC) X-FDA: 79274420988.21.DDE831D Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf16.hostedemail.com (Postfix) with ESMTP id 71EF418001F for ; Wed, 23 Mar 2022 04:48:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648010933; x=1679546933; h=date:from:to:cc:subject:message-id:mime-version: content-transfer-encoding; bh=e9j3SDuyNi13ugmnYweIETUnYu9zaonhx9Bo/kDo19w=; b=R54NOV+du588eKAyrer489ei50YpV/Gq+D+8YwI91f9hqrovPJJXl+Tr gj0DN2E1cDj5NLQwpUe84egJ2mzb7nAQpnKsAwTknZC2fAB1EJpqXfFZn aa3GuQeaILUtALQZGFxyWjkYie3SI1el9QC2a94aqq2xaiJVNcpUtdTk2 8D3HO+OPWuoeItL/NZhkGhS7eZMr3HhSW5fJkzjedsYtZ6+7tVEMjrntc 8N6a7ZUAaOlcSWMEJ8dyPrNlXJZlQwu+IBOAz/aE4FnfNupTZ5zra+nAE clMpiBhZx8wgnKx3XkQWg7dwLqBn4+97IrBzTo92Su8jvmLG8BJVtHCuv A==; X-IronPort-AV: E=McAfee;i="6200,9189,10294"; a="240181034" X-IronPort-AV: E=Sophos;i="5.90,203,1643702400"; d="scan'208";a="240181034" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2022 21:48:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,203,1643702400"; d="scan'208";a="500868506" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 22 Mar 2022 21:48:49 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nWsvQ-000JfJ-P8; Wed, 23 Mar 2022 04:48:48 +0000 Date: Wed, 23 Mar 2022 12:48:28 +0800 From: kernel test robot To: Luiz Angelo Daros de Luca Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List , Linus Walleij , Alvin =?utf-8?Q?=C5=A0ipraga?= , Florian Fainelli Subject: [linux-next:master 2075/14215] drivers/net/dsa/realtek/realtek-smi.c:496:34: warning: unused variable 'realtek_smi_of_match' Message-ID: <202203231233.Xx73Y40o-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspam-User: X-Stat-Signature: 5p39b7riquwtozczb1qfzdmu789qjh94 Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=R54NOV+d; spf=none (imf16.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.126) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 71EF418001F X-HE-Tag: 1648010933-826041 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Luiz, First bad commit (maybe !=3D root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.g= it master head: f8833a2b23562be2dae91775127c8014c44d8566 commit: 765c39a4fafe6f7ea0d370aa5f30c811579cf8eb [2075/14215] net: dsa: r= ealtek: convert subdrivers into modules config: s390-randconfig-r005-20220323 (https://download.01.org/0day-ci/ar= chive/20220323/202203231233.Xx73Y40o-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 902f= 4708fe1d03b0de7e5315ef875006a6adc319) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/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/next/linux-next= .git/commit/?id=3D765c39a4fafe6f7ea0d370aa5f30c811579cf8eb git remote add linux-next https://git.kernel.org/pub/scm/linux/ke= rnel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 765c39a4fafe6f7ea0d370aa5f30c811579cf8eb # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Ds390 SHELL=3D/bin/bash drivers/net/dsa/realtek/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from drivers/net/dsa/realtek/realtek-smi.c:32: In file included from include/linux/skbuff.h:31: 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 arithmeti= c on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val =3D __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:477:61: warning: performing pointer arithmeti= c on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val =3D __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE += addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/big_endian.h:37:59: note: expanded from m= acro '__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/net/dsa/realtek/realtek-smi.c:32: In file included from include/linux/skbuff.h:31: 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 arithmeti= c on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val =3D __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE += addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/big_endian.h:35:59: note: expanded from m= acro '__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/net/dsa/realtek/realtek-smi.c:32: In file included from include/linux/skbuff.h:31: 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 arithmeti= c 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 arithmeti= c on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + add= r); ~~~~~~~~~~ ^ include/asm-generic/io.h:521:59: warning: performing pointer arithmeti= c on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + add= r); ~~~~~~~~~~ ^ include/asm-generic/io.h:609:20: warning: performing pointer arithmeti= c 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 arithmeti= c 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 arithmeti= c 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 arithmeti= c 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 arithmeti= c 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 arithmeti= c on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ >> drivers/net/dsa/realtek/realtek-smi.c:496:34: warning: unused variable= 'realtek_smi_of_match' [-Wunused-const-variable] static const struct of_device_id realtek_smi_of_match[] =3D { ^ 13 warnings generated. vim +/realtek_smi_of_match +496 drivers/net/dsa/realtek/realtek-smi.c 0650bf52b31ff35 drivers/net/dsa/realtek-smi-core.c Vladimir Oltean = 2021-09-17 495 =20 d8652956cf37c5c drivers/net/dsa/realtek-smi.c Linus Walleij = 2018-07-14 @496 static const struct of_device_id realtek_smi_of_m= atch[] =3D { 765c39a4fafe6f7 drivers/net/dsa/realtek/realtek-smi.c Luiz Angelo Daros d= e Luca 2022-01-28 497 #if IS_ENABLED(CONFIG_NET_DSA_REALTEK_RTL8366RB) d8652956cf37c5c drivers/net/dsa/realtek-smi.c Linus Walleij = 2018-07-14 498 { d8652956cf37c5c drivers/net/dsa/realtek-smi.c Linus Walleij = 2018-07-14 499 .compatible =3D "realtek,rtl8366rb", d8652956cf37c5c drivers/net/dsa/realtek-smi.c Linus Walleij = 2018-07-14 500 .data =3D &rtl8366rb_variant, d8652956cf37c5c drivers/net/dsa/realtek-smi.c Linus Walleij = 2018-07-14 501 }, 765c39a4fafe6f7 drivers/net/dsa/realtek/realtek-smi.c Luiz Angelo Daros d= e Luca 2022-01-28 502 #endif d8652956cf37c5c drivers/net/dsa/realtek-smi.c Linus Walleij = 2018-07-14 503 { d8652956cf37c5c drivers/net/dsa/realtek-smi.c Linus Walleij = 2018-07-14 504 /* FIXME: add support for RTL8366S and more */ d8652956cf37c5c drivers/net/dsa/realtek-smi.c Linus Walleij = 2018-07-14 505 .compatible =3D "realtek,rtl8366s", d8652956cf37c5c drivers/net/dsa/realtek-smi.c Linus Walleij = 2018-07-14 506 .data =3D NULL, d8652956cf37c5c drivers/net/dsa/realtek-smi.c Linus Walleij = 2018-07-14 507 }, 765c39a4fafe6f7 drivers/net/dsa/realtek/realtek-smi.c Luiz Angelo Daros d= e Luca 2022-01-28 508 #if IS_ENABLED(CONFIG_NET_DSA_REALTEK_RTL8365MB) 4af2950c50c8634 drivers/net/dsa/realtek-smi-core.c Alvin =C5=A0ipraga = 2021-10-18 509 { 4af2950c50c8634 drivers/net/dsa/realtek-smi-core.c Alvin =C5=A0ipraga = 2021-10-18 510 .compatible =3D "realtek,rtl8365mb", 4af2950c50c8634 drivers/net/dsa/realtek-smi-core.c Alvin =C5=A0ipraga = 2021-10-18 511 .data =3D &rtl8365mb_variant, 4af2950c50c8634 drivers/net/dsa/realtek-smi-core.c Alvin =C5=A0ipraga = 2021-10-18 512 }, 765c39a4fafe6f7 drivers/net/dsa/realtek/realtek-smi.c Luiz Angelo Daros d= e Luca 2022-01-28 513 #endif d8652956cf37c5c drivers/net/dsa/realtek-smi.c Linus Walleij = 2018-07-14 514 { /* sentinel */ }, d8652956cf37c5c drivers/net/dsa/realtek-smi.c Linus Walleij = 2018-07-14 515 }; d8652956cf37c5c drivers/net/dsa/realtek-smi.c Linus Walleij = 2018-07-14 516 MODULE_DEVICE_TABLE(of, realtek_smi_of_match); d8652956cf37c5c drivers/net/dsa/realtek-smi.c Linus Walleij = 2018-07-14 517 =20 :::::: The code at line 496 was first introduced by commit :::::: d8652956cf37c5caa8c19e0b99ce5ca235c6d5de net: dsa: realtek-smi: Ad= d Realtek SMI driver :::::: TO: Linus Walleij :::::: CC: David S. Miller --=20 0-DAY CI Kernel Test Service https://01.org/lkp