The patch titled Subject: mm/hugetlb.c: export PageHeadHuge() has been added to the -mm tree. Its filename is mm-export-pageheadhuge.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/mm-export-pageheadhuge.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/mm-export-pageheadhuge.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: David Howells <dhowells@xxxxxxxxxx> Subject: mm/hugetlb.c: export PageHeadHuge() Export PageHeadHuge() - it's used by folio_test_hugetlb() and thence by such as folio_file_page() and folio_contains(). Matthew suggested I use the first of those instead of doing the same calculation manually - but I can't call it from a module. Kirill suggested rearranging things to put it in a header, but that introduces header dependencies because of where constants are defined. Link: https://lkml.kernel.org/r/2494562.1646054576@xxxxxxxxxxxxxxxxxxxxxx Link: https://lore.kernel.org/r/163707085314.3221130.14783857863702203440.stgit@xxxxxxxxxxxxxxxxxxxxxx/ Signed-off-by: David Howells <dhowells@xxxxxxxxxx> Cc: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> Cc: Kirill A. Shutemov <kirill@xxxxxxxxxxxxx> Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx> Cc: Mike Kravetz <mike.kravetz@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/hugetlb.c | 1 + 1 file changed, 1 insertion(+) --- a/mm/hugetlb.c~mm-export-pageheadhuge +++ a/mm/hugetlb.c @@ -1855,6 +1855,7 @@ int PageHeadHuge(struct page *page_head) return page_head[1].compound_dtor == HUGETLB_PAGE_DTOR; } +EXPORT_SYMBOL(PageHeadHuge); /* * Find and lock address space (mapping) in write mode. _ Patches currently in -mm which might be from dhowells@xxxxxxxxxx are mm-export-pageheadhuge.patch mutex-subsystem-synchro-test-module.patch