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 4AEE8CD1292 for ; Thu, 11 Apr 2024 04:26:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 57CD86B0083; Thu, 11 Apr 2024 00:26:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 52D166B0085; Thu, 11 Apr 2024 00:26:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3F4416B0087; Thu, 11 Apr 2024 00:26:12 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 20F576B0083 for ; Thu, 11 Apr 2024 00:26:12 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 9CC3EA0949 for ; Thu, 11 Apr 2024 04:26:11 +0000 (UTC) X-FDA: 81995963742.12.95CA5D6 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by imf28.hostedemail.com (Postfix) with ESMTP id 0FC24C000E for ; Thu, 11 Apr 2024 04:26:08 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=YFZI8cMJ; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 198.175.65.17 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=1712809569; 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=MB1CNEThxuMdhoymO6erwLqXvRpG11fzBL7u3PX+V4o=; b=mPoGgT7llAWXprTsjuqcHUD0f992zWV+vnYtoNtWJD3e0cdBWpqKkYFHL+W42n3tgeoLjU M1ua96avxTaO31omaUwwm0NiZpZYRBWBm2Q26fXzUe5GUfvEi2mcA0RWtJzgl/zStNagK9 gOBcvwI8IPGf/4TiBLZ7c4hXrpLPQSg= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=YFZI8cMJ; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 198.175.65.17 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1712809569; a=rsa-sha256; cv=none; b=64oLrsEFRXUQH0RoGDSDrq4ClmW7sAOL/P4zVTY8+3f5DYG3maLo/qKKwXgaFHopoUg8ne cfGtzGjS4GCrgY56ZUKy6dFy9MYaChbdF3vGbxNd2hWN+OZwgaYuRFpFBsGKLqdKXfS4T4 w/u89ohRf6Uoea1233fTxWDB3HnxYjw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712809569; x=1744345569; h=date:from:to:cc:subject:message-id:mime-version; bh=1TseMfNL3Av924ErNrA2ZA+DXVbPmpBf/pOqyGb3OlI=; b=YFZI8cMJxdyJXf58ZzWNC1CFbG1W0yMUvQIaClMozwk9FOz5C/IVKxTR tfxGMh9Og+Rhpee/CMoTupUqunUPSSWw6JhrIN5qyC1H4ILpKrS6cQtQb KFNLIAs+IumB8qdXX5og25n+t/e76ONrm4odNorLaWkB1QBbC7b1xYijA 4Yz563XdrwVxLSUOJ2sDilM9JGcHUhzOqcAApCsLZBezzXv2YyfGWaRAe AaT0+7zGz8wg5ZZZvb9UWmPM+wxSareajzKPrGZh8vnNX+HTSKIXsMjiw JraGD1R1qUp5uihqpA25oNE5uM3EsxlsVxr2WSjhgeNwmmyInNhaYJYi7 A==; X-CSE-ConnectionGUID: WRJdZ25mTImROQEqIhSHtQ== X-CSE-MsgGUID: dhy0ermuSpiMLJnJByat/w== X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="8310782" X-IronPort-AV: E=Sophos;i="6.07,192,1708416000"; d="scan'208";a="8310782" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2024 21:26:07 -0700 X-CSE-ConnectionGUID: 3WEaZcZ8TWermu8VkjYwtw== X-CSE-MsgGUID: nQ1E6CO/RuqfKcWv6WEwJA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,192,1708416000"; d="scan'208";a="25546962" Received: from lkp-server01.sh.intel.com (HELO e61807b1d151) ([10.239.97.150]) by orviesa004.jf.intel.com with ESMTP; 10 Apr 2024 21:26:06 -0700 Received: from kbuild by e61807b1d151 with local (Exim 4.96) (envelope-from ) id 1rum0h-0008DQ-1Z; Thu, 11 Apr 2024 04:26:03 +0000 Date: Thu, 11 Apr 2024 12:25:14 +0800 From: kernel test robot To: Chuanhua Han Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List , Barry Song Subject: [akpm-mm:mm-unstable 360/372] include/linux/swap.h:565:6: warning: no previous prototype for function 'swap_free_nr' Message-ID: <202404111223.DDjEQDHj-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 0FC24C000E X-Stat-Signature: 7n3om3c36k3ggztt6z9ofxp9dz8b13o8 X-Rspam-User: X-HE-Tag: 1712809568-384932 X-HE-Meta: U2FsdGVkX184o+gbS9RByXiHGxzp4/4E0QJanLUIEQirrZx6q5eFse9yLPPHcrGWxxscYIIbbSzvwcLr6cY4tdx6UNcCkE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InhVNSyiBVk01XRbEes4O10jNjcbvYSeBFOt8PZb+lu5vbxe63oGQicduKZhUG+goAj4uIAm0jc8SIhy7RuWQ867TXsItGiD+IX7MOIfaQpB6owaSOv80hSIMPxt5fF8B4v1kWT+FlL96dNWqo0mZ4MQKuVa3InSdoh 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/akpm/mm.git mm-unstable head: de14d5f2a9ff2df737a01575ee95bc5a35f5853d commit: ca23b4d4cae5d32a9d22fb3c39550dcf43df83f9 [360/372] mm: swap: introduce swap_free_nr() for batched swap_free() config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20240411/202404111223.DDjEQDHj-lkp@intel.com/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240411/202404111223.DDjEQDHj-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/202404111223.DDjEQDHj-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: >> include/linux/swap.h:565:6: warning: no previous prototype for function 'swap_free_nr' [-Wmissing-prototypes] 565 | void swap_free_nr(swp_entry_t entry, int nr_pages) | ^ include/linux/swap.h:565:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 565 | void swap_free_nr(swp_entry_t entry, int nr_pages) | ^ | static 1 warning generated. -- In file included from arch/x86/kernel/reboot.c:33: In file included from arch/x86/include/asm/efi.h:7: In file included from arch/x86/include/asm/tlb.h:8: In file included from include/asm-generic/tlb.h:15: >> include/linux/swap.h:565:6: warning: no previous prototype for function 'swap_free_nr' [-Wmissing-prototypes] 565 | void swap_free_nr(swp_entry_t entry, int nr_pages) | ^ include/linux/swap.h:565:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 565 | void swap_free_nr(swp_entry_t entry, int nr_pages) | ^ | static arch/x86/kernel/reboot.c:972:20: warning: unused function 'nmi_shootdown_cpus_on_restart' [-Wunused-function] 972 | static inline void nmi_shootdown_cpus_on_restart(void) { } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. -- In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: >> include/linux/swap.h:565:6: warning: no previous prototype for function 'swap_free_nr' [-Wmissing-prototypes] 565 | void swap_free_nr(swp_entry_t entry, int nr_pages) | ^ include/linux/swap.h:565:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 565 | void swap_free_nr(swp_entry_t entry, int nr_pages) | ^ | static 1 warning generated. vim +/swap_free_nr +565 include/linux/swap.h 564 > 565 void swap_free_nr(swp_entry_t entry, int nr_pages) 566 { 567 } 568 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki