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 15951C3600C for ; Tue, 8 Apr 2025 10:06:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CF5EC6B000A; Tue, 8 Apr 2025 06:06:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CA4D86B000C; Tue, 8 Apr 2025 06:06:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B6D1A6B000D; Tue, 8 Apr 2025 06:06:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 969446B000A for ; Tue, 8 Apr 2025 06:06:19 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 0CAAF1A09FB for ; Tue, 8 Apr 2025 10:06:21 +0000 (UTC) X-FDA: 83310446562.16.FD95AA6 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) by imf06.hostedemail.com (Postfix) with ESMTP id 0138518000A for ; Tue, 8 Apr 2025 10:06:17 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=XxLFO+NG; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf06.hostedemail.com: domain of lkp@intel.com designates 192.198.163.10 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1744106779; a=rsa-sha256; cv=none; b=21Lonoc19E4nhZkLi+m+wq8OLays5DN2N5MAGlAzmmMTKjVJyrI8oF6jwWXghIw9e8JMyz p38NCYcHfcl1pzDYHlzpOjW5BJGUbNujg4tlJfdvY25PK4EN5Flsv02XM8MdK17UZarenI 3UitnOoEVVWn9hL9qpQEFfECzaTT56Q= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=XxLFO+NG; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf06.hostedemail.com: domain of lkp@intel.com designates 192.198.163.10 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=1744106779; 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=Z8Cy+tMZOiWRJbb0iOOXnrFDvZJnEvPBqooEyJByB9U=; b=5PRvkRxA8GNshylNQwm6JvNDhRhcvtsTc2QSher39BcQ16f4M2mmeqB5FYyQvXK62JyJqQ WrCcLy/+o06qEQ2NDj4t2RSihyMYvcw/0W1PHCcEhEEXyNx3Ga1veipv1rlQMZWuloy6Im iJj+BvhRrcVWe4WtuyXPFt41hs65znk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1744106778; x=1775642778; h=date:from:to:cc:subject:message-id:mime-version; bh=s3ewf70GUtyRkVUZxjwHUTDIHL5XEAWZvrDiWPV2Byc=; b=XxLFO+NGryjPjEUZyKHa6d4oxH2YFpmxWV8Uuwn3JKWdyFnyAMWDopuP OLlJaOzJXuqyHs36PtNiFPCgi7oKw5IPchD4iv7BSzLbfJwXS6gKCCYPj dnCUl2v6WrLr8lWyXl0lpsbvY3BHuNc4yLYf/HQsIMLKBtDVOcs9tdnJR ZZ0Xgkix49l58JsIKsRhNRJnz2JaGlCNBoKMpB6ULn16pLRgIn7bEECA1 pzGiHMGZIwD4UEwrPQaPny/26VIzgur7dwfXHk0FDI6jGoLc+/LBnzm+I 2lPCZOG4ypWsglMR/CVpiLUJvAxTdOLGRIB7h2OJPvLVm2HGP0UaVBDfh g==; X-CSE-ConnectionGUID: fWVhEMOZRrO3c7G+h8Hvcw== X-CSE-MsgGUID: DBZS8lCYT263SHhK/egMAQ== X-IronPort-AV: E=McAfee;i="6700,10204,11397"; a="56900215" X-IronPort-AV: E=Sophos;i="6.15,197,1739865600"; d="scan'208";a="56900215" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2025 03:06:17 -0700 X-CSE-ConnectionGUID: MQU1NfxCQwOYawB8aI4fxg== X-CSE-MsgGUID: qwngGTGaSRChjQM16XR/mQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,197,1739865600"; d="scan'208";a="127963960" Received: from lkp-server01.sh.intel.com (HELO b207828170a5) ([10.239.97.150]) by orviesa009.jf.intel.com with ESMTP; 08 Apr 2025 03:06:15 -0700 Received: from kbuild by b207828170a5 with local (Exim 4.96) (envelope-from ) id 1u25qO-0004Qd-1w; Tue, 08 Apr 2025 10:06:12 +0000 Date: Tue, 8 Apr 2025 18:06:11 +0800 From: kernel test robot To: Kemeng Shi Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List , Tim Chen , Baoquan He Subject: [linux-next:master 1753/1936] mm/swapfile.c:1517:20: warning: function 'swap_is_last_ref' is not needed and will not be emitted Message-ID: <202504081841.jbL7yL0r-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 0138518000A X-Stat-Signature: xucy8brscogpgwm4fdjnidid61rdhur1 X-Rspam-User: X-Rspamd-Server: rspam06 X-HE-Tag: 1744106777-279879 X-HE-Meta: U2FsdGVkX1/i1hXO0bQZ/29qTs/S1TPR7tf7iBcFZYGku/4C1J5NRmYBeERU7KxCZ5fe4+icsaXkeGvufK/tIOwbv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xMwDLOTlT3WFc38JtLvOgsJIQEs6Bbq29AUJo0rWQnwDS9rWoHTsoMRFZUb9mFqOt0z6pXVx3mA3La95vZPJXl+n3AB6s5xFXtbGtKiZEqurEey0eR9ozZj6Rje/3f/PMwAJt7ZKiynmCjsxXyjmFGb4We51heDmGN8TtrjGh7RRyXaunK6ko/+9EYjzuhkhJ+livO1VnnVkGqHYFA+QHgxk9k6g2PfUrwJ0ZjAwOixSnTRDV5A== 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/next/linux-next.git master head: 7702d0130dc002bab2c3571ddb6ff68f82d99aea commit: 6bb001b6b64ec20d900d0d81294a0f031af59c3e [1753/1936] mm: swap: enable swap_entry_range_free() to drop any kind of last ref config: hexagon-randconfig-001-20250408 (https://download.01.org/0day-ci/archive/20250408/202504081841.jbL7yL0r-lkp@intel.com/config) compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 92c93f5286b9ff33f27ff694d2dc33da1c07afdd) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250408/202504081841.jbL7yL0r-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/202504081841.jbL7yL0r-lkp@intel.com/ All warnings (new ones prefixed by >>): >> mm/swapfile.c:1517:20: warning: function 'swap_is_last_ref' is not needed and will not be emitted [-Wunneeded-internal-declaration] 1517 | static inline bool swap_is_last_ref(unsigned char count) | ^~~~~~~~~~~~~~~~ 1 warning generated. vim +/swap_is_last_ref +1517 mm/swapfile.c 1512 1513 /* 1514 * Drop the last ref(1, SWAP_HAS_CACHE or SWAP_MAP_SHMEM) of swap entries, 1515 * caller have to ensure all entries belong to the same cgroup and cluster. 1516 */ > 1517 static inline bool swap_is_last_ref(unsigned char count) 1518 { 1519 return (count == SWAP_HAS_CACHE) || (count == 1) || 1520 (count == SWAP_MAP_SHMEM); 1521 } 1522 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki