From: Haifeng Xu Date: Mon, 10 Jul 2023 09:37:50 +0000 (+0000) Subject: mm/mm_init.c: mark check_for_memory() as __init X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b894da0468640f610d47624e872dc11f2ae5bb4b;p=linux.git mm/mm_init.c: mark check_for_memory() as __init The only caller of check_for_memory() is free_area_init(), which is annotated with __init, so it should be safe to also mark the former as __init. Link: https://lkml.kernel.org/r/20230710093750.1294-1-haifeng.xu@shopee.com Signed-off-by: Haifeng Xu Reviewed-by: Mike Rapoport (IBM) Reviewed-by: Anshuman Khandual Signed-off-by: Andrew Morton --- diff --git a/mm/mm_init.c b/mm/mm_init.c index f90db54e2b21d..2daae1dd57555 100644 --- a/mm/mm_init.c +++ b/mm/mm_init.c @@ -1736,7 +1736,7 @@ static void __init free_area_init_node(int nid) } /* Any regular or high memory on that node ? */ -static void check_for_memory(pg_data_t *pgdat) +static void __init check_for_memory(pg_data_t *pgdat) { enum zone_type zone_type;