Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm: page_alloc: remove alloc_contig_dump_pages() stub

DEFINE_DYNAMIC_DEBUG_METADATA and DYNAMIC_DEBUG_BRANCH already has stub
definitions without dynamic debug feature, remove unnecessary
alloc_contig_dump_pages() stub.

Link: https://lkml.kernel.org/r/20230516063821.121844-7-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: David Hildenbrand <david@redhat.com>
Cc: "Huang, Ying" <ying.huang@intel.com>
Cc: Iurii Zaikin <yzaikin@google.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Len Brown <len.brown@intel.com>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Rafael J. Wysocki <rafael@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Kefeng Wang and committed by
Andrew Morton
e9f2b529 5b855aa3

-7
-7
mm/page_alloc.c
··· 6213 6213 } 6214 6214 6215 6215 #ifdef CONFIG_CONTIG_ALLOC 6216 - #if defined(CONFIG_DYNAMIC_DEBUG) || \ 6217 - (defined(CONFIG_DYNAMIC_DEBUG_CORE) && defined(DYNAMIC_DEBUG_MODULE)) 6218 6216 /* Usage: See admin-guide/dynamic-debug-howto.rst */ 6219 6217 static void alloc_contig_dump_pages(struct list_head *page_list) 6220 6218 { ··· 6226 6228 dump_page(page, "migration failure"); 6227 6229 } 6228 6230 } 6229 - #else 6230 - static inline void alloc_contig_dump_pages(struct list_head *page_list) 6231 - { 6232 - } 6233 - #endif 6234 6231 6235 6232 /* [start, end) must belong to a single zone. */ 6236 6233 int __alloc_contig_migrate_range(struct compact_control *cc,