From: "Kiryl Shutsemau (Meta)" The last caller, memory_failure()'s try_to_split_thp_page(), was converted to the folio-native split_folio_to_order() in the previous change. split_huge_page_to_order() now has no users; the folio helpers (split_folio_to_order(), split_folio_to_list_to_order()) cover uniform splits and split_huge_page() covers the order-0 case. Remove it. No functional change. Signed-off-by: Kiryl Shutsemau (Meta) --- include/linux/huge_mm.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h index ad20f7f8c179..77483c613f84 100644 --- a/include/linux/huge_mm.h +++ b/include/linux/huge_mm.h @@ -414,10 +414,6 @@ static inline int split_huge_page_to_list_to_order(struct page *page, struct lis { return __split_huge_page_to_list_to_order(page, list, new_order); } -static inline int split_huge_page_to_order(struct page *page, unsigned int new_order) -{ - return split_huge_page_to_list_to_order(page, NULL, new_order); -} static inline int split_huge_page(struct page *page) { @@ -633,11 +629,6 @@ split_huge_page_to_list_to_order(struct page *page, struct list_head *list, VM_WARN_ON_ONCE_PAGE(1, page); return -EINVAL; } -static inline int split_huge_page_to_order(struct page *page, unsigned int new_order) -{ - VM_WARN_ON_ONCE_PAGE(1, page); - return -EINVAL; -} static inline int split_huge_page(struct page *page) { VM_WARN_ON_ONCE_PAGE(1, page); -- 2.54.0