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 45465D5CC94 for ; Wed, 30 Oct 2024 11:14:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AD9056B00C6; Wed, 30 Oct 2024 07:14:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A88306B00C9; Wed, 30 Oct 2024 07:14:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 92ACF6B00CB; Wed, 30 Oct 2024 07:14:13 -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 720FA6B00C6 for ; Wed, 30 Oct 2024 07:14:13 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 2F345A0A62 for ; Wed, 30 Oct 2024 11:14:13 +0000 (UTC) X-FDA: 82730008284.03.B04961B Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by imf18.hostedemail.com (Postfix) with ESMTP id 0CC871C0002 for ; Wed, 30 Oct 2024 11:13:58 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=AqKDIEWT; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 198.175.65.19 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1730286690; 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=hR2DCsHYwG77ExiYBwGliMo9V83sHIG1Q4xaDTnVy7o=; b=MSpnBs5Z7TrfWjYiCDKVyhFkCUIN3CrZykJvpnGjmG9R8Yo1AIp0jvmoL78eCI6WNufiZK 9+GHG0As+DKPxsdzO23k8rhL4/Wv4Hagi3axDX1LbOFqNOSN44r0rZDd09azzwRAND3oyb tL04ojj7m9PRRxb9nLYOsNZX0jnGzro= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1730286690; a=rsa-sha256; cv=none; b=ko8OmA5fL5NMOHl4buzinqjcE/Z++zcU0HLVsYFof5sxvM9UN+kxvDO+8L5L95w2/si2rK C1W430kaYBdEcxkSbtWIYdDtlffrH6jvfpFJ6T21u4aS004hAK6cSyholYhhzbGxk8vU42 uFhTEBYdepPrSZtEw3fRuDbNUJqZc5M= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=AqKDIEWT; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 198.175.65.19 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730286851; x=1761822851; h=date:from:to:cc:subject:message-id:mime-version; bh=epJkqfQnN8GvDah3KyLDapzleTyWUAgUNd9i42Dwz2I=; b=AqKDIEWTlcOZACtuWce1gcWkVcol5zAHiPtq9vZTXblifvDbvQ4qKO59 O5g2jzq76lVNEG7CcDJE0AxHgj61l9FURaZKOJz81QEaVrzNsLXqSSvWr nf4cM+/DVZhC0A/9VJYtJ3YQQDdXOmlej9B+1/CziRI2scPAO/PduhelR cCZBK8y4rlUNxaiYtGTdg7RRwVYbz0K3wpm0BKfXu/hoJDD+wOpMAfibm 68LI7ZPaenkn0ZOzVHnCp9ShP8BhVALC05FJPKy51CtYxBYIzezz8RO76 P/86fUFp81gtLS16I2IamnDQ4B+jDxl1KdJo6C/kk+RF+7/so0pPeVNrv A==; X-CSE-ConnectionGUID: DLaWczbpQf+IWUD1OwoZpg== X-CSE-MsgGUID: /k6ED2P4QySS5ZiRvnThuQ== X-IronPort-AV: E=McAfee;i="6700,10204,11222"; a="29823676" X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="29823676" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2024 04:14:09 -0700 X-CSE-ConnectionGUID: 5rlRU9fhQZS0AlsKGnMFSQ== X-CSE-MsgGUID: k0mU+RedQlizu1rzEo6hkw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,245,1725346800"; d="scan'208";a="105598237" Received: from lkp-server01.sh.intel.com (HELO a48cf1aa22e8) ([10.239.97.150]) by fmviesa002.fm.intel.com with ESMTP; 30 Oct 2024 04:14:06 -0700 Received: from kbuild by a48cf1aa22e8 with local (Exim 4.96) (envelope-from ) id 1t66eK-000em0-1Z; Wed, 30 Oct 2024 11:14:04 +0000 Date: Wed, 30 Oct 2024 19:14:00 +0800 From: kernel test robot To: Ignat Korchagin Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List , Baoquan He Subject: fs/proc/vmcore.c:458:42: warning: unused variable 'vmcore_mmap_ops' Message-ID: <202410301936.GcE8yUos-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Stat-Signature: 8nhbt49519u3439oh9sutnddex4t7fr3 X-Rspamd-Queue-Id: 0CC871C0002 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1730286838-27700 X-HE-Meta: U2FsdGVkX1/dVZgN0+U4PO+A2aePLB8VYtDJ30ZnPTfcpMNZEAOROUwd3V5hcfuRhflEUvQ361MRC8RP9SNrR9SENba0SG9doKFvu29Cl6aVmAq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J+ivSSA73zcZQwIvwKcJ3pvqoQ+xgELVxurWlouepE4AbLvWbYFpMihEpRnPmtulaI0TB7IwGiZLIQ3DLM9Hu+deG4yHzYrq24DVMcQTqLD+I5EbOV5joyNXRhKln6Kmh4Wu7Mjz0zBvF9dETcM0/XXZkIvCutEJPK12ksGZrilSBo/18bW80nH33arPRypicvhNNEPCsFYNkkW9V+FrXIkY9cVc0u3MKWlrbGqqmliq95AagztVKoxE= 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: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c1e939a21eb111a6d6067b38e8e04b8809b64c4e commit: c41bd2514184d75db087fe4c1221237fb7922875 kexec: drop dependency on ARCH_SUPPORTS_KEXEC from CRASH_DUMP date: 11 months ago config: riscv-randconfig-r054-20241030 (https://download.01.org/0day-ci/archive/20241030/202410301936.GcE8yUos-lkp@intel.com/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 639a7ac648f1e50ccd2556e17d401c04f9cce625) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241030/202410301936.GcE8yUos-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/202410301936.GcE8yUos-lkp@intel.com/ All warnings (new ones prefixed by >>): 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/riscv/include/asm/io.h:136: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 584 | __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] 594 | __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] 604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:743:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 743 | insb(addr, buffer, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:104:53: note: expanded from macro 'insb' 104 | #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) | ~~~~~~~~~~ ^ In file included from fs/proc/vmcore.c:18: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/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/riscv/include/asm/io.h:136: include/asm-generic/io.h:751:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 751 | insw(addr, buffer, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:105:53: note: expanded from macro 'insw' 105 | #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) | ~~~~~~~~~~ ^ In file included from fs/proc/vmcore.c:18: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/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/riscv/include/asm/io.h:136: include/asm-generic/io.h:759:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 759 | insl(addr, buffer, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:106:53: note: expanded from macro 'insl' 106 | #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) | ~~~~~~~~~~ ^ In file included from fs/proc/vmcore.c:18: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/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/riscv/include/asm/io.h:136: include/asm-generic/io.h:768:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 768 | outsb(addr, buffer, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:118:55: note: expanded from macro 'outsb' 118 | #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count) | ~~~~~~~~~~ ^ In file included from fs/proc/vmcore.c:18: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/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/riscv/include/asm/io.h:136: include/asm-generic/io.h:777:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 777 | outsw(addr, buffer, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:119:55: note: expanded from macro 'outsw' 119 | #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count) | ~~~~~~~~~~ ^ In file included from fs/proc/vmcore.c:18: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/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/riscv/include/asm/io.h:136: include/asm-generic/io.h:786:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 786 | outsl(addr, buffer, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/riscv/include/asm/io.h:120:55: note: expanded from macro 'outsl' 120 | #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count) | ~~~~~~~~~~ ^ In file included from fs/proc/vmcore.c:18: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/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/riscv/include/asm/io.h:136: include/asm-generic/io.h:1115:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 1115 | return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; | ~~~~~~~~~~ ^ >> fs/proc/vmcore.c:458:42: warning: unused variable 'vmcore_mmap_ops' [-Wunused-const-variable] 458 | static const struct vm_operations_struct vmcore_mmap_ops = { | ^~~~~~~~~~~~~~~ 15 warnings generated. vim +/vmcore_mmap_ops +458 fs/proc/vmcore.c 9cb218131de1c5 Michael Holzheu 2013-09-11 457 9cb218131de1c5 Michael Holzheu 2013-09-11 @458 static const struct vm_operations_struct vmcore_mmap_ops = { 9cb218131de1c5 Michael Holzheu 2013-09-11 459 .fault = mmap_vmcore_fault, 9cb218131de1c5 Michael Holzheu 2013-09-11 460 }; 9cb218131de1c5 Michael Holzheu 2013-09-11 461 :::::: The code at line 458 was first introduced by commit :::::: 9cb218131de1c59dca9063b2efe876f053f316af vmcore: introduce remap_oldmem_pfn_range() :::::: TO: Michael Holzheu :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki