lkml.org 
[lkml]   [2023]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] mm/mm_init.c: mark check_for_memory() as __init
    Date
    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.

    Signed-off-by: Haifeng Xu <haifeng.xu@shopee.com>
    ---
    mm/mm_init.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/mm/mm_init.c b/mm/mm_init.c
    index a1963c3322af..a313d1828a6c 100644
    --- a/mm/mm_init.c
    +++ b/mm/mm_init.c
    @@ -1737,7 +1737,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;

    --
    2.25.1
    \
     
     \ /
      Last update: 2023-07-10 11:42    [W:3.176 / U:0.748 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site