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 49809C5320E for ; Sun, 25 Aug 2024 16:48:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A07DE6B0342; Sun, 25 Aug 2024 12:48:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 997C56B034C; Sun, 25 Aug 2024 12:48:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 746CE6B0342; Sun, 25 Aug 2024 12:48:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 4D0F26B0334 for ; Sun, 25 Aug 2024 12:48:51 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id DB4BA1A0751 for ; Sun, 25 Aug 2024 16:48:50 +0000 (UTC) X-FDA: 82491352020.25.F32FDE6 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by imf19.hostedemail.com (Postfix) with ESMTP id 1DE4D1A000E for ; Sun, 25 Aug 2024 16:48:47 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=MQj1c6ao; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 198.175.65.11 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=1724604445; 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=m+SHGGwj9oaojM8USN8AgWalo6a4Yz3qYPWhdbB2UVI=; b=L9uc+/YhdF1I0/DiHGodVM5jhlctX5Lca9ZZQvKIV95o57ecdIR16NWiEnpKpJUoMhL38W R5VNiQxrj9hI6spLeY7DXBnudRXVNQHc8IvAZkATxyOAn1m85KkvBt22Wclv9Rt4MyEhkP 3xm1VKvPB8M+G0st38ujachPaz0xb3c= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724604445; a=rsa-sha256; cv=none; b=7qmu5woHayMJdmtG8kTQ9aUeZ90ttzymygZqfxmy77ORIebmNNSTTe3A3Yu8j66v4L7wHF nq8sacZGJID4TB6uShSWbQICWtLx76ECAjkSlAePPu/LZVJ2eftJF6HR04cXNBvL8hsMQZ LTbES5XhrqPGHApuWzJEHMh4Ke5vAjg= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=MQj1c6ao; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 198.175.65.11 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=1724604528; x=1756140528; h=date:from:to:cc:subject:message-id:mime-version; bh=ed8m98regKmwizNIyAhDc2DwKS15Z1BN2tFi+BmPX6Y=; b=MQj1c6aomqLu9ZOaqAruhpRwksxhbX9qYrcbgAkmdO7dF+YqSjFmdB3f Zl3PlUyVlRC3Q1oS0mwiRP8EaKY5BXOAAnCJQaAoCw78BWvNgD989HbnZ h8ENdC6kvaK1cr2WgazfX1jlsTmE3Nz5YqtmalhXOkz5jHO/2XYmqx56W 6bl5snXLEDE0zNzLZPxGqJbIwDFRhMhb+GWtCxtyIl1diIiX6sRZ6kiXk 20z0Sb0EKAmyecFFqUL/rpYqD9w0+hpuCIaWl+274WQHnh4KgngQDMvlc VVohLkTUUJ+uQojviC/WFY8zxHmfzJa5INwiftRYEP5uPtBwLnVoaKUla g==; X-CSE-ConnectionGUID: 1SrO5924Swq/LqfufMLxYw== X-CSE-MsgGUID: Lho9PsE4SYmak6U3m5idMg== X-IronPort-AV: E=McAfee;i="6700,10204,11175"; a="33586235" X-IronPort-AV: E=Sophos;i="6.10,175,1719903600"; d="scan'208";a="33586235" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2024 09:48:46 -0700 X-CSE-ConnectionGUID: B7uGRQWLRX6wdmimILDY9g== X-CSE-MsgGUID: E6v4i7ZTS/OW6y7YiDS4dQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,175,1719903600"; d="scan'208";a="62260648" Received: from lkp-server01.sh.intel.com (HELO 9a732dc145d3) ([10.239.97.150]) by fmviesa008.fm.intel.com with ESMTP; 25 Aug 2024 09:48:44 -0700 Received: from kbuild by 9a732dc145d3 with local (Exim 4.96) (envelope-from ) id 1siGPy-000FJb-26; Sun, 25 Aug 2024 16:48:42 +0000 Date: Mon, 26 Aug 2024 00:48:13 +0800 From: kernel test robot To: Kefeng Wang Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Andrew Morton Subject: [linux-next:master 6060/6439] mm/memory_hotplug.c:1811:33: error: implicit declaration of function 'unmap_posioned_folio'; did you mean 'unmap_poisoned_folio'? Message-ID: <202408260054.ka3zWBLH-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 1DE4D1A000E X-Stat-Signature: 7gxk4kawj5ieoxone3q7qg8dnkkudmkj X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1724604527-172013 X-HE-Meta: U2FsdGVkX18GJMZ+j/4Xa5wijvojok9hkJst+L0qKFeDdqh6+cQ/+uhRp+EThsrg9pCb02HII7z8ul7oIdn2Q7Fv7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jHclFdwyaS1wPnPnlcxQKUyEmord4xDxjbSuKfidJuX/xpuZzzLR9N+i5c2tfZQY6JUneNVO9Fm/caf2s7ugURX+8slQdh9MIESx6C0g76BdZisPyoKISPd8cYM0pQhTmq9RQJg/qHItDV6F6tUH440/AReMBCChEtNWXpjfljaJf0Qa7ieOJPwMy0gHm5TPfZTevvQIE9y1XDOmyMYCCMVKialTOA/wc8qfR0G7J1fcHJsaGnIv8RVHngENB1K2ccOM8RKL9EeDg== 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: c79c85875f1af04040fe4492ed94ce37ad729c4d commit: fb3b45758493a2451a9fdcf7f8c034d614d85939 [6060/6439] mm: memory_hotplug: check hwpoisoned page firstly in do_migrate_range() config: x86_64-rhel-8.3-ltp (https://download.01.org/0day-ci/archive/20240826/202408260054.ka3zWBLH-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240826/202408260054.ka3zWBLH-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/202408260054.ka3zWBLH-lkp@intel.com/ Note: the linux-next/master HEAD c79c85875f1af04040fe4492ed94ce37ad729c4d builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): mm/memory_hotplug.c: In function 'do_migrate_range': >> mm/memory_hotplug.c:1811:33: error: implicit declaration of function 'unmap_posioned_folio'; did you mean 'unmap_poisoned_folio'? [-Werror=implicit-function-declaration] 1811 | unmap_posioned_folio(folio, TTU_IGNORE_MLOCK); | ^~~~~~~~~~~~~~~~~~~~ | unmap_poisoned_folio cc1: some warnings being treated as errors vim +1811 mm/memory_hotplug.c 1772 1773 static void do_migrate_range(unsigned long start_pfn, unsigned long end_pfn) 1774 { 1775 unsigned long pfn; 1776 struct page *page; 1777 LIST_HEAD(source); 1778 static DEFINE_RATELIMIT_STATE(migrate_rs, DEFAULT_RATELIMIT_INTERVAL, 1779 DEFAULT_RATELIMIT_BURST); 1780 1781 for (pfn = start_pfn; pfn < end_pfn; pfn++) { 1782 struct folio *folio; 1783 bool isolated; 1784 1785 if (!pfn_valid(pfn)) 1786 continue; 1787 page = pfn_to_page(pfn); 1788 folio = page_folio(page); 1789 1790 /* 1791 * No reference or lock is held on the folio, so it might 1792 * be modified concurrently (e.g. split). As such, 1793 * folio_nr_pages() may read garbage. This is fine as the outer 1794 * loop will revisit the split folio later. 1795 */ 1796 if (folio_test_large(folio)) 1797 pfn = folio_pfn(folio) + folio_nr_pages(folio) - 1; 1798 1799 /* 1800 * HWPoison pages have elevated reference counts so the migration would 1801 * fail on them. It also doesn't make any sense to migrate them in the 1802 * first place. Still try to unmap such a page in case it is still mapped 1803 * (e.g. current hwpoison implementation doesn't unmap KSM pages but keep 1804 * the unmap as the catch all safety net). 1805 */ 1806 if (folio_test_hwpoison(folio) || 1807 (folio_test_large(folio) && folio_test_has_hwpoisoned(folio))) { 1808 if (WARN_ON(folio_test_lru(folio))) 1809 folio_isolate_lru(folio); 1810 if (folio_mapped(folio)) > 1811 unmap_posioned_folio(folio, TTU_IGNORE_MLOCK); 1812 continue; 1813 } 1814 1815 if (folio_test_hugetlb(folio)) { 1816 isolate_hugetlb(folio, &source); 1817 continue; 1818 } 1819 1820 if (!get_page_unless_zero(page)) 1821 continue; 1822 /* 1823 * We can skip free pages. And we can deal with pages on 1824 * LRU and non-lru movable pages. 1825 */ 1826 if (PageLRU(page)) 1827 isolated = isolate_lru_page(page); 1828 else 1829 isolated = isolate_movable_page(page, ISOLATE_UNEVICTABLE); 1830 if (isolated) { 1831 list_add_tail(&page->lru, &source); 1832 if (!__PageMovable(page)) 1833 inc_node_page_state(page, NR_ISOLATED_ANON + 1834 page_is_file_lru(page)); 1835 1836 } else { 1837 if (__ratelimit(&migrate_rs)) { 1838 pr_warn("failed to isolate pfn %lx\n", pfn); 1839 dump_page(page, "isolation failed"); 1840 } 1841 } 1842 put_page(page); 1843 } 1844 if (!list_empty(&source)) { 1845 nodemask_t nmask = node_states[N_MEMORY]; 1846 struct migration_target_control mtc = { 1847 .nmask = &nmask, 1848 .gfp_mask = GFP_USER | __GFP_MOVABLE | __GFP_RETRY_MAYFAIL, 1849 .reason = MR_MEMORY_HOTPLUG, 1850 }; 1851 int ret; 1852 1853 /* 1854 * We have checked that migration range is on a single zone so 1855 * we can use the nid of the first page to all the others. 1856 */ 1857 mtc.nid = page_to_nid(list_first_entry(&source, struct page, lru)); 1858 1859 /* 1860 * try to allocate from a different node but reuse this node 1861 * if there are no other online nodes to be used (e.g. we are 1862 * offlining a part of the only existing node) 1863 */ 1864 node_clear(mtc.nid, nmask); 1865 if (nodes_empty(nmask)) 1866 node_set(mtc.nid, nmask); 1867 ret = migrate_pages(&source, alloc_migration_target, NULL, 1868 (unsigned long)&mtc, MIGRATE_SYNC, MR_MEMORY_HOTPLUG, NULL); 1869 if (ret) { 1870 list_for_each_entry(page, &source, lru) { 1871 if (__ratelimit(&migrate_rs)) { 1872 pr_warn("migrating pfn %lx failed ret:%d\n", 1873 page_to_pfn(page), ret); 1874 dump_page(page, "migration failure"); 1875 } 1876 } 1877 putback_movable_pages(&source); 1878 } 1879 } 1880 } 1881 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki