From: Muchun Song Date: Wed, 2 Jun 2021 03:52:56 +0000 (+1000) Subject: mm: migrate: fix missing update page_private to hugetlb_page_subpool X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=470548fd386498b4dc8607173704dff707921bdb;p=users%2Fjedix%2Flinux-maple.git mm: migrate: fix missing update page_private to hugetlb_page_subpool fix compiler error when !CONFIG_HUGETLB_PAGE reported by Randy Link: https://lkml.kernel.org/r/20210521022747.35736-1-songmuchun@bytedance.com Fixes: d6995da31122 ("hugetlb: use page.private for hugetlb specific page flags") Signed-off-by: Muchun Song Reported-by: Anshuman Khandual Reported-by: Randy Dunlap Reviewed-by: Mike Kravetz Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 9f192ce440888..e11a2e9aa5144 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h @@ -915,6 +915,11 @@ static inline bool is_hugetlb_free_vmemmap_enabled(void) #else /* CONFIG_HUGETLB_PAGE */ struct hstate {}; +static inline struct hugepage_subpool *hugetlb_page_subpool(struct page *hpage) +{ + return NULL; +} + static inline int isolate_or_dissolve_huge_page(struct page *page, struct list_head *list) {