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 4B138C433F5 for ; Wed, 23 Mar 2022 06:41:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D35BC6B0073; Wed, 23 Mar 2022 02:41:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CBF676B0074; Wed, 23 Mar 2022 02:41:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B393B6B0075; Wed, 23 Mar 2022 02:41:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.27]) by kanga.kvack.org (Postfix) with ESMTP id A1B716B0073 for ; Wed, 23 Mar 2022 02:41:24 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 630CD24080 for ; Wed, 23 Mar 2022 06:41:24 +0000 (UTC) X-FDA: 79274704488.13.DF2E8BD Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by imf12.hostedemail.com (Postfix) with ESMTP id 951664003F for ; Wed, 23 Mar 2022 06:41:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648017683; x=1679553683; h=date:from:to:cc:subject:message-id:mime-version; bh=h+oRGlJ72z8/lH8SNlRnHFEAUKYfGt77wkFKe9sexnU=; b=jW6gYAQLlZCXNeIFMFctFzsCJJmC9I6mSLXpGNuE1LaOfDcmuEPGeXxU 9xkc+fdxtulgCPhYqOgdlPUI2YKr2j2yiQkngoVEEcbV62ObXNvIUIukf +6EpsxptS6KmoAvviuqNRDg4RVUTsbtxjJ/SYsEXXrUdIK0QTW505zZ9Y 73gJRL+BWt8a916aTdkRRBdAJZUiMrn3Y0MFy1w03F6k7JYIkR7yZ6dy5 4FQBp618zGNh1Egh6+QyfFm/mpgoybw8MrVQpy35rpa5fUyoVa2CwRBNq /hqVWkhM8uilFZP/ZgBslh5ctKMUxtJvby2vuOluNw3rpNyGxi3uGCAzB w==; X-IronPort-AV: E=McAfee;i="6200,9189,10294"; a="255598059" X-IronPort-AV: E=Sophos;i="5.90,203,1643702400"; d="scan'208";a="255598059" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2022 23:41:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,203,1643702400"; d="scan'208";a="500894799" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 22 Mar 2022 23:41:20 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nWugJ-000Jkg-R6; Wed, 23 Mar 2022 06:41:19 +0000 Date: Wed, 23 Mar 2022 14:40:25 +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 Subject: [linux-next:master 2076/14215] drivers/net/dsa/realtek/realtek-mdio.c:203:34: warning: unused variable 'realtek_mdio_of_match' Message-ID: <202203231439.ycl0jg50-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Stat-Signature: nmet6myysfwmdgedfqsyihg4aimyjkaf Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=jW6gYAQL; spf=none (imf12.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.93) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 951664003F X-HE-Tag: 1648017683-631171 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, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: f8833a2b23562be2dae91775127c8014c44d8566 commit: aac94001067da183455d6d37959892744fa01d9d [2076/14215] net: dsa: realtek: add new mdio interface for drivers config: s390-randconfig-r005-20220323 (https://download.01.org/0day-ci/archive/20220323/202203231439.ycl0jg50-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 902f4708fe1d03b0de7e5315ef875006a6adc319) 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/next/linux-next.git/commit/?id=aac94001067da183455d6d37959892744fa01d9d git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout aac94001067da183455d6d37959892744fa01d9d # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/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-mdio.c:24: In file included from include/linux/regmap.h:20: In file included from include/linux/iopoll.h:14: 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/net/dsa/realtek/realtek-mdio.c:24: In file included from include/linux/regmap.h:20: In file included from include/linux/iopoll.h:14: 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/net/dsa/realtek/realtek-mdio.c:24: In file included from include/linux/regmap.h:20: In file included from include/linux/iopoll.h:14: 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/net/dsa/realtek/realtek-mdio.c:203:34: warning: unused variable 'realtek_mdio_of_match' [-Wunused-const-variable] static const struct of_device_id realtek_mdio_of_match[] = { ^ 13 warnings generated. vim +/realtek_mdio_of_match +203 drivers/net/dsa/realtek/realtek-mdio.c 202 > 203 static const struct of_device_id realtek_mdio_of_match[] = { 204 #if IS_ENABLED(CONFIG_NET_DSA_REALTEK_RTL8366RB) 205 { .compatible = "realtek,rtl8366rb", .data = &rtl8366rb_variant, }, 206 #endif 207 #if IS_ENABLED(CONFIG_NET_DSA_REALTEK_RTL8365MB) 208 { .compatible = "realtek,rtl8365mb", .data = &rtl8365mb_variant, }, 209 #endif 210 { /* sentinel */ }, 211 }; 212 MODULE_DEVICE_TABLE(of, realtek_mdio_of_match); 213 -- 0-DAY CI Kernel Test Service https://01.org/lkp