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 46C75C43334 for ; Fri, 3 Jun 2022 00:28:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 60F706B0072; Thu, 2 Jun 2022 20:28:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5BE6B6B0073; Thu, 2 Jun 2022 20:28:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4AB906B0074; Thu, 2 Jun 2022 20:28:05 -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 387F76B0072 for ; Thu, 2 Jun 2022 20:28:05 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 0238334C71 for ; Fri, 3 Jun 2022 00:28:04 +0000 (UTC) X-FDA: 79535037330.23.D239A5F Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by imf15.hostedemail.com (Postfix) with ESMTP id 0140AA0058 for ; Fri, 3 Jun 2022 00:27:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654216084; x=1685752084; h=date:from:to:cc:subject:message-id:mime-version; bh=vU1nJMXXTXKHedGcCpyD8EeoPuKqkJR5BHcP5RCD+KQ=; b=fd40pUNb1fXSFbeFGGQsdJD/2mZJHJUMyiMjeu2vJl6PuIsztCxbW8bk rpOhZqWn/XzglwDw7M2xOAp//d9b3b12C09hGwUvApp20U33nGYG5aIU0 r5EHrCIeAOrcGt4E6aC1iA55oXmQmBlpmGmpYvcSsOPABJ2/AVIFgCBlC XlOLfeYtrJdldVBjTppL9+yYOVZkHGG6vIIqhYIo4BY0OLlh6tuQtol8f AEBUclrZSRoyiwabLchrNLdmr7uAOfHqhV839ys5i3lNttWQOAgA73wQd 7uhE3QCgHI078VcyskWWrTejGPomX7g8MVXN7o7pIhu8eFAr0+939MWE1 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10366"; a="274927434" X-IronPort-AV: E=Sophos;i="5.91,273,1647327600"; d="scan'208";a="274927434" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2022 17:27:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,273,1647327600"; d="scan'208";a="563564317" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 02 Jun 2022 17:27:55 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nwvAQ-0005Y9-O1; Fri, 03 Jun 2022 00:27:54 +0000 Date: Fri, 3 Jun 2022 08:27:50 +0800 From: kernel test robot To: Naoya Horiguchi Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List Subject: [akpm-mm:mm-unstable 154/159] mm/memory-failure.c:1538:9: error: implicit declaration of function 'hugetlb_set_page_hwpoison' Message-ID: <202206030829.0eS2kZa0-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 0140AA0058 X-Stat-Signature: 686x5kep4hku4rfbrr6cor3pkgcs31di X-Rspam-User: Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=fd40pUNb; spf=none (imf15.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.120) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-HE-Tag: 1654216059-787654 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/akpm/mm.git mm-unstable head: 1bdf44dbc966e31c635199d413ee064a7d320844 commit: d4edf38ab95397f32ae017848deeeb3b6d2c5bb7 [154/159] mm, hwpoison, hugetlb: introduce SUBPAGE_INDEX_HWPOISON to save raw error page config: x86_64-kexec (https://download.01.org/0day-ci/archive/20220603/202206030829.0eS2kZa0-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-1) 11.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?id=d4edf38ab95397f32ae017848deeeb3b6d2c5bb7 git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git git fetch --no-tags akpm-mm mm-unstable git checkout d4edf38ab95397f32ae017848deeeb3b6d2c5bb7 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): mm/memory-failure.c: In function '__get_huge_page_for_hwpoison': >> mm/memory-failure.c:1538:9: error: implicit declaration of function 'hugetlb_set_page_hwpoison' [-Werror=implicit-function-declaration] 1538 | hugetlb_set_page_hwpoison(head, page); | ^~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/hugetlb_set_page_hwpoison +1538 mm/memory-failure.c 1498 1499 /* 1500 * Called from hugetlb code with hugetlb_lock held. 1501 * 1502 * Return values: 1503 * 0 - free hugepage 1504 * 1 - in-use hugepage 1505 * 2 - not a hugepage 1506 * -EBUSY - the hugepage is busy (try to retry) 1507 * -EHWPOISON - the hugepage is already hwpoisoned 1508 */ 1509 int __get_huge_page_for_hwpoison(unsigned long pfn, int flags) 1510 { 1511 struct page *page = pfn_to_page(pfn); 1512 struct page *head = compound_head(page); 1513 int ret = 2; /* fallback to normal page handling */ 1514 bool count_increased = false; 1515 1516 if (!PageHeadHuge(head)) 1517 goto out; 1518 1519 if (flags & MF_COUNT_INCREASED) { 1520 ret = 1; 1521 count_increased = true; 1522 } else if (HPageFreed(head)) { 1523 ret = 0; 1524 } else if (HPageMigratable(head)) { 1525 ret = get_page_unless_zero(head); 1526 if (ret) 1527 count_increased = true; 1528 } else { 1529 ret = -EBUSY; 1530 goto out; 1531 } 1532 1533 if (TestSetPageHWPoison(head)) { 1534 ret = -EHWPOISON; 1535 goto out; 1536 } 1537 > 1538 hugetlb_set_page_hwpoison(head, page); 1539 1540 return ret; 1541 out: 1542 if (count_increased) 1543 put_page(head); 1544 return ret; 1545 } 1546 -- 0-DAY CI Kernel Test Service https://01.org/lkp