From patchwork Thu Jan 19 11:19:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13107721 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 C75FFC00A5A for ; Thu, 19 Jan 2023 11:19:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 654736B0072; Thu, 19 Jan 2023 06:19:29 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 604826B0073; Thu, 19 Jan 2023 06:19:29 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4CC926B0074; Thu, 19 Jan 2023 06:19:29 -0500 (EST) 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 3EE756B0072 for ; Thu, 19 Jan 2023 06:19:29 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 1895E14015F for ; Thu, 19 Jan 2023 11:19:29 +0000 (UTC) X-FDA: 80371302858.04.8BF64EE Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf28.hostedemail.com (Postfix) with ESMTP id B216EC0005 for ; Thu, 19 Jan 2023 11:19:26 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="mr6N/Gc1"; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf28.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1674127166; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=ZlODwk4GxrygCpq2Ch9gn2XASWmQJ3pjs1EKIIOL56Q=; b=oOf+6g3Aga81I2D4KkjTZB97P4wC1KsmsBK62BQVBsQEE2sZFei9MniCSWGGOAx0rxqw/b o5H1zRfDQFrfKPPwaX1vESxN/q1fyta04DEYudVF/EFp+aXs8uzuqKzJ7i1hDOvFDecPRZ tRQ+lTyy4nom/I0H7sgrin2rY5HEuWo= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="mr6N/Gc1"; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf28.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1674127166; a=rsa-sha256; cv=none; b=PvKhecdEDwMK+zyp113p2RgS5AdqL3cMcXwwSPfON/X/RDCnrViYelB7LdVDm8KmPiBYuH tqjUrqA0oYRQr6mferohcNzET92TFXCb7L5ZAIIt4edJ8V/4L74HWhX4PToifLIT7LeaFw iwApYtNHr3nMuu7MoGLeXbX15EJkHtQ= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 02BE9611F8; Thu, 19 Jan 2023 11:19:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D73BCC433D2; Thu, 19 Jan 2023 11:19:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674127165; bh=AHRTvCqcDRguckzlPkzDt+9TRgs80cyxqkFM/YPHV7o=; h=From:To:Cc:Subject:Date:From; b=mr6N/Gc1WC1pfdDU+E3cH/JuHYj74oI2DxlcPM8GbYV2NquDGomHGTrr6gzPGL1NW cbyothn/+4lhwaltHb5T5xso1/6BpcEIKtoB4Imynmftnh0AMnJ5A7tHPrJkmu7sOr Y9206pb9QBDkxFs2ESv/q5cIidJWn6jreRXaSFqT2ZLfnEXlmo0RNY6W+6WOr8/lMb jUT0F7vwy3UxM8E9kg4DZlQ6CmQIz34+SpfJm881EachTteJphCYY8xpnBBtDv2rc1 1M5fEYR+RNyffmYPoji+m1TnlSDDcFSsdbAxPVnwNFa1cAoytbAGf018JvPcCI89f8 ifXdCkIayrKyw== From: Arnd Bergmann To: Mike Kravetz , Muchun Song , Andrew Morton , Sidhartha Kumar , "Matthew Wilcox (Oracle)" , Naoya Horiguchi Cc: Arnd Bergmann , Peter Xu , Hugh Dickins , Qi Zheng , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm/hugetlb: fix get_hwpoison_hugetlb_folio() stub Date: Thu, 19 Jan 2023 12:19:12 +0100 Message-Id: <20230119111920.635260-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: B216EC0005 X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: zbk7ce5xbdaqpqz1e51zamw1m9yktjre X-HE-Tag: 1674127166-914233 X-HE-Meta: U2FsdGVkX18BUCMpEVdVr41xbbhF8sOf7QSthQQvw0UL0JEMb7d0r0E3rWJZJiFTGa6q9CzV8U0iJrOZwA2yhSE+qPtBIl0bQuGyvGeskCO++RXogNYNCr9xqnHpdT4RPmDoe128fPVWU5nNlYJiCTzHs9Tpp1orEcEituqw9OwKWN9TLK8qfYGTC4vez/m1GR8posdoP58nB+7xIGUCgRgUS6mHOcEW7f+MzDtsVec6lLfV4pd50h8UUdihcMMWUb9Cmn1jUrsJmHfk98x/cIj1qU7MRMkSSKBaHCMa3xfVVtK0jwSxMN9jRmqIUbVbXZoMPy4X+Wl6/dxYRckiYKp24B5gSPEummrmCT+aCtslQgE9CHl70xbpKn1RIVjvYD0311XDYihEhYsnZeRMbDWfXwFSu3YEKURsadSAHr2ylal266mvwpfldfY55SpUJjzvgGTVxc5EDcOwVaK5ipbc0RmSu/tmf5qitDQULGtDUr4gkxOa86Q1A0LdBo7eTV0AJkJf4H7tOVRp9M9vZNov7EpAmY10xV4LF47D4mjAHBRgqHSo+XXN83eGpmzU+ekXZV3FCskPDcDSSNL76sT5lBxKX4V5o+zJt3X2p67SXFjye3jlf8svWKrIk+y2foFMy1nGmY4H1C26oAoakYTgqk0ciB4KRZH9tmk2swY6t6/ii4oMZ/A29C/uD0IKAO3rnHopdUzSbrmACzJ0ACxYXOSWLcaF/C3/M0CKOuzEIVMRy0YxLGP2b8uw/BFDK02odwALZHJBOwtG6xJoLacG0rANA+NGcij0+mvCq5rqvN4oG2nEdbToBnmUArucXCtCqrLrmslDeI+86VfsKaxZnnNo8gcM6EF9tE7dj054oV1hq7Wr4g6ylnfwagFMo/j+hlhHPqaJ/7DTSNqIWNh87LYBXmIqjErHVLMFUJeTI0uV1NUea/gUPUoqEjsx4LAGi3uno3xmZWDhT7f P4d+PgeW Ay6Pa7mwymqeNh/eISQTNwQIJVq6Phvf/XVTvBFTTL5K001F6hJZHn6dPUTutyqzk/vXaJBuyJNdBzX0hxBZjKeEFVjeVsPD32xHWzvKwMV0+RoC036n/w9WE9Q== 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: From: Arnd Bergmann The folio conversion patch only changed one of the two implementations, the empty stub one still needs the corresponding change: mm/memory-failure.c: In function '__get_hwpoison_page': mm/memory-failure.c:1335:15: error: implicit declaration of function 'get_hwpoison_hugetlb_folio'; did you mean 'get_hwpoison_huge_page'? [-Werror=implicit-function-declaration] 1335 | ret = get_hwpoison_hugetlb_folio(folio, &hugetlb, false); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | get_hwpoison_huge_page Fixes: 92e109a2c5a7 ("mm/hugetlb: convert get_hwpoison_huge_page() to folios") Signed-off-by: Arnd Bergmann --- include/linux/hugetlb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index f14a6bd2a6ed..06eb59711e4a 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h @@ -417,7 +417,7 @@ static inline int isolate_hugetlb(struct folio *folio, struct list_head *list) return -EBUSY; } -static inline int get_hwpoison_huge_page(struct page *page, bool *hugetlb, bool unpoison) +static inline int get_hwpoison_hugetlb_folio(struct folio *folio, bool *hugetlb, bool unpoison) { return 0; }