mm, hugetlb: mark some bootstrap functions as __init
authorDavid Rientjes <[email protected]>
Thu, 3 Apr 2014 21:47:59 +0000 (14:47 -0700)
committerLinus Torvalds <[email protected]>
Thu, 3 Apr 2014 23:21:01 +0000 (16:21 -0700)
commitf412c97abef71026d8192ca8efca231f1e3906b3
treeec1e20ef6819ddacb0d0e30f3b60f0f7eb5e9aa2
parent449dd6984d0e47643c04c807f609dd56d48d5bcc
mm, hugetlb: mark some bootstrap functions as __init

Both prep_compound_huge_page() and prep_compound_gigantic_page() are
only called at bootstrap and can be marked as __init.

The __SetPageTail(page) in prep_compound_gigantic_page() happening
before page->first_page is initialized is not concerning since this is
bootstrap.

Signed-off-by: David Rientjes <[email protected]>
Reviewed-by: Michal Hocko <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Reviewed-by: Davidlohr Bueso <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/hugetlb.c