* [PATCH] mm/hugetlb: fix get_hwpoison_hugetlb_folio() stub
@ 2023-01-19 11:19 Arnd Bergmann
2023-01-19 17:38 ` Sidhartha Kumar
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2023-01-19 11:19 UTC (permalink / raw)
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, linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
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 <arnd@arndb.de>
---
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;
}
--
2.39.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mm/hugetlb: fix get_hwpoison_hugetlb_folio() stub
2023-01-19 11:19 [PATCH] mm/hugetlb: fix get_hwpoison_hugetlb_folio() stub Arnd Bergmann
@ 2023-01-19 17:38 ` Sidhartha Kumar
0 siblings, 0 replies; 2+ messages in thread
From: Sidhartha Kumar @ 2023-01-19 17:38 UTC (permalink / raw)
To: Arnd Bergmann, Mike Kravetz, Muchun Song, Andrew Morton,
Matthew Wilcox (Oracle),
Naoya Horiguchi
Cc: Arnd Bergmann, Peter Xu, Hugh Dickins, Qi Zheng, linux-mm, linux-kernel
On 1/19/23 3:19 AM, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> 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 <arnd@arndb.de>
> ---
Hello,
I also posted a v3 of this patch with the build fix here:
https://lore.kernel.org/linux-mm/20230119011057.91349-1-sidhartha.kumar@oracle.com/T/#u
I'm fine with either picking up this patch as a fix or picking up v3.
Thanks,
Sidhartha Kumar
> 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;
> }
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-19 17:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-19 11:19 [PATCH] mm/hugetlb: fix get_hwpoison_hugetlb_folio() stub Arnd Bergmann
2023-01-19 17:38 ` Sidhartha Kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox