Skip to content

Commit

Permalink
mm/mm_init.c: mark check_for_memory() as __init
Browse files Browse the repository at this point in the history
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/[email protected]
Signed-off-by: Haifeng Xu <[email protected]>
Reviewed-by: Mike Rapoport (IBM) <[email protected]>
Reviewed-by: Anshuman Khandual <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
hfxsp authored and akpm00 committed Aug 18, 2023
1 parent f9044f1 commit b894da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/mm_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b894da0

Please sign in to comment.