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 5C2D7C41513 for ; Mon, 16 Oct 2023 22:36:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AAC458D00C7; Mon, 16 Oct 2023 18:36:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A5C108D00B8; Mon, 16 Oct 2023 18:36:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 94AA28D00C7; Mon, 16 Oct 2023 18:36:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 8432D8D00B8 for ; Mon, 16 Oct 2023 18:36:58 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 4E8C0140C31 for ; Mon, 16 Oct 2023 22:36:58 +0000 (UTC) X-FDA: 81352786116.21.18E27A8 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by imf28.hostedemail.com (Postfix) with ESMTP id B1235C000F for ; Mon, 16 Oct 2023 22:36:55 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Pg6mfAHO; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 192.55.52.115 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697495816; a=rsa-sha256; cv=none; b=VUFYuZ9ijR98J+qsQEqH3vtabJtrCentluNAFaEsNNanDH2fxCccNzn5iVGQe/odpwxv3O kKsj2wYXy9FYs8d3EI1YheUC4hKQPXEQSJZ66MtQ/25zS+uN7dtxYypRdN1ZvFlyB4Efzx slb2gWMs/B4R26nBOSbZ8lzIm/CCDcc= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Pg6mfAHO; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 192.55.52.115 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697495816; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=3Dl8wbJlxOomBqT+a2uSssUSMTk45d/0El6xP0ttY9A=; b=I8LmBeAnwAYIQZlIkMwaENtuyWKey5+Wiq7N47qs8Y3318cDWjkogdIldGoUwFPtoC4wFK wGl4wz+qu7pUnpZbhWzBnI9j31BzR4GBc9dU1v3urLo3zsyU9O/cxWrOlxEDVKPpLe/WoS yWMLQQli/osjDWCRJY/OVFwgxrRxjOM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697495815; x=1729031815; h=date:from:to:cc:subject:message-id:mime-version; bh=CWqCyZzV0joUCz7OlSbGc9UpVA31Ozg8TMUsJ6VS1f0=; b=Pg6mfAHODYjFss30l8KmlU20dY7fX6iV4lDSM4qoFYpk33WGr2IUfuFU B5D5+fakU6IkROy3/oxHufim0BgwqNlQgKExYLGPMPm1AEE0QfVk8ThX3 tbUvMgyU7nzYeh83sbxuwqd8UMmGtCg81/18EJKhsQ/uBCs5+p7zpywjF Xhl7XCzcCclqKDMAs1RUUviUHfhA45v1n7wUohsl2SAjpWg9xyxyaamu1 GaEJxTg8ifA6GjUdReaDVqYnWt4aTBf5353whl9eO4WfkpVoAfthQp0Pu CqotPcNNvjrg+tmuNODXsFAv4A6e+G4FKjSK9ZIMfqipI8BIcE0HFjaZ1 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="385492512" X-IronPort-AV: E=Sophos;i="6.03,230,1694761200"; d="scan'208";a="385492512" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 15:36:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="1087250685" X-IronPort-AV: E=Sophos;i="6.03,230,1694761200"; d="scan'208";a="1087250685" Received: from lkp-server02.sh.intel.com (HELO f64821696465) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 16 Oct 2023 15:36:51 -0700 Received: from kbuild by f64821696465 with local (Exim 4.96) (envelope-from ) id 1qsWCg-0008ix-26; Mon, 16 Oct 2023 22:36:50 +0000 Date: Tue, 17 Oct 2023 06:36:17 +0800 From: kernel test robot To: Rob Herring Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 11468/12451] drivers/net/ethernet/apm/xgene/xgene_enet_main.c:2004:34: warning: unused variable 'xgene_enet_of_match' Message-ID: <202310170627.2Kvf6ZHY-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: B1235C000F X-Stat-Signature: psf641h14geg4jkuza1nay3dionn3nws X-HE-Tag: 1697495815-685437 X-HE-Meta: U2FsdGVkX1/g11UJ5cREa0mFgCTijon/lECqW9rcHECktTT+eR2BwPUzBYw/zJk+ssD81PTbjz2Sjc1DAy9/9sswJhPK/eH46BpGfef5Buq43ZJibMSRW3aT8OVs2SVRMiLCQLY2khqHgMSJDCzlQyGigiOUXgpSRlZmCRBn6ghEOt3YhG+MDaeJ8DjPTRNIc5GwHnke4JINib7uihvAvYgA09ixvGEduN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X+GwrPppXKMjMNvLcs7UpjoASQH1lrWvyYY1Y4Y55Cnh/xNUAEqEZcI6XNQj+baFjiZMZTItk7WUSs0FlxNeCWnv7qk7UMG/KlCvTGRu4H/WGgX 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 4d0515b235dec789578d135a5db586b25c5870cb commit: b0377116decdeecb8c6a928d59cd4bea00a4af6e [11468/12451] net: ethernet: Use device_get_match_data() config: hexagon-randconfig-r005-20221019 (https://download.01.org/0day-ci/archive/20231017/202310170627.2Kvf6ZHY-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231017/202310170627.2Kvf6ZHY-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/202310170627.2Kvf6ZHY-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/net/ethernet/apm/xgene/xgene_enet_main.c:11: In file included from drivers/net/ethernet/apm/xgene/xgene_enet_main.h:15: In file included from include/linux/efi.h:20: In file included from include/linux/rtc.h:17: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:337: include/asm-generic/io.h:547: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:560: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/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from drivers/net/ethernet/apm/xgene/xgene_enet_main.c:11: In file included from drivers/net/ethernet/apm/xgene/xgene_enet_main.h:15: In file included from include/linux/efi.h:20: In file included from include/linux/rtc.h:17: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:337: include/asm-generic/io.h:573: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/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from drivers/net/ethernet/apm/xgene/xgene_enet_main.c:11: In file included from drivers/net/ethernet/apm/xgene/xgene_enet_main.h:15: In file included from include/linux/efi.h:20: In file included from include/linux/rtc.h:17: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:337: include/asm-generic/io.h:584: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:594: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:604: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); ~~~~~~~~~~ ^ >> drivers/net/ethernet/apm/xgene/xgene_enet_main.c:2004:34: warning: unused variable 'xgene_enet_of_match' [-Wunused-const-variable] static const struct of_device_id xgene_enet_of_match[] = { ^ 7 warnings generated. vim +/xgene_enet_of_match +2004 drivers/net/ethernet/apm/xgene/xgene_enet_main.c 1f3d62090d3ba4 Arnd Bergmann 2017-02-01 2003 1f3d62090d3ba4 Arnd Bergmann 2017-02-01 @2004 static const struct of_device_id xgene_enet_of_match[] = { 1f3d62090d3ba4 Arnd Bergmann 2017-02-01 2005 {.compatible = "apm,xgene-enet", .data = (void *)XGENE_ENET1}, 1f3d62090d3ba4 Arnd Bergmann 2017-02-01 2006 {.compatible = "apm,xgene1-sgenet", .data = (void *)XGENE_ENET1}, 1f3d62090d3ba4 Arnd Bergmann 2017-02-01 2007 {.compatible = "apm,xgene1-xgenet", .data = (void *)XGENE_ENET1}, 1f3d62090d3ba4 Arnd Bergmann 2017-02-01 2008 {.compatible = "apm,xgene2-sgenet", .data = (void *)XGENE_ENET2}, 1f3d62090d3ba4 Arnd Bergmann 2017-02-01 2009 {.compatible = "apm,xgene2-xgenet", .data = (void *)XGENE_ENET2}, 1f3d62090d3ba4 Arnd Bergmann 2017-02-01 2010 {}, 1f3d62090d3ba4 Arnd Bergmann 2017-02-01 2011 }; 1f3d62090d3ba4 Arnd Bergmann 2017-02-01 2012 :::::: The code at line 2004 was first introduced by commit :::::: 1f3d62090d3ba4d0c14e5271be87812fc577b197 xgene_enet: remove bogus forward declarations :::::: TO: Arnd Bergmann :::::: CC: David S. Miller -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki