summaryrefslogtreecommitdiff
path: root/mm/mm_init.c
diff options
context:
space:
mode:
authorHaifeng Xu <haifeng.xu@shopee.com>2023-07-10 09:37:50 +0000
committerAndrew Morton <akpm@linux-foundation.org>2023-08-18 10:12:18 -0700
commitb894da0468640f610d47624e872dc11f2ae5bb4b (patch)
tree1279581a28649db86fe747350719318e9eee5ff7 /mm/mm_init.c
parentf9044f170c5e89a12116066d1b9b932e934b9efb (diff)
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 <haifeng.xu@shopee.com> Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/mm_init.c')
-rw-r--r--mm/mm_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mm_init.c b/mm/mm_init.c
index f90db54e2b21..2daae1dd5755 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;