The quilt patch titled Subject: mm: page_alloc: avoid defining unused function has been removed from the -mm tree. Its filename was mm-page_alloc-consolidate-free-page-accounting-fix-4.patch This patch was dropped because it was folded into mm-page_alloc-consolidate-free-page-accounting.patch ------------------------------------------------------ From: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Subject: mm: page_alloc: avoid defining unused function Date: Tue, 23 Apr 2024 19:14:43 +0300 In some configurations I got mm/page_alloc.c:656:20: warning: unused function 'add_to_free_list' [-Wunused-function] Because the only user is guarded with a certain ifdeffery, do the same for add_to_free_list(). Link: https://lkml.kernel.org/r/20240423161506.2637177-1-andriy.shevchenko@xxxxxxxxxxxxxxx Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Reviewed-by: Miaohe Lin <linmiaohe@xxxxxxxxxx> Cc: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Vlastimil Babka <vbabka@xxxxxxx> Cc: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_alloc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) --- a/mm/page_alloc.c~mm-page_alloc-consolidate-free-page-accounting-fix-4 +++ a/mm/page_alloc.c @@ -673,14 +673,6 @@ static inline void __add_to_free_list(st area->nr_free++; } -static inline void add_to_free_list(struct page *page, struct zone *zone, - unsigned int order, int migratetype, - bool tail) -{ - __add_to_free_list(page, zone, order, migratetype, tail); - account_freepages(zone, 1 << order, migratetype); -} - /* * Used for pages which are on another list. Move the pages to the tail * of the list - so the moved pages won't immediately be considered for @@ -6770,6 +6762,14 @@ bool is_free_buddy_page(struct page *pag EXPORT_SYMBOL(is_free_buddy_page); #ifdef CONFIG_MEMORY_FAILURE +static inline void add_to_free_list(struct page *page, struct zone *zone, + unsigned int order, int migratetype, + bool tail) +{ + __add_to_free_list(page, zone, order, migratetype, tail); + account_freepages(zone, 1 << order, migratetype); +} + /* * Break down a higher-order page in sub-pages, and keep our target out of * buddy allocator. _ Patches currently in -mm which might be from andriy.shevchenko@xxxxxxxxxxxxxxx are mm-page_alloc-consolidate-free-page-accounting.patch xarray-use-bits_per_longs.patch xarray-dont-use-proxy-headers.patch devres-switch-to-use-dev_err_probe-for-unification.patch devres-dont-use-proxy-headers.patch media-rc-add-missing-ioh.patch media-stih-cec-add-missing-ioh.patch kfifo-dont-use-proxy-headers.patch