From: Fabian Frederick Date: Wed, 6 Aug 2014 23:05:03 +0000 (-0700) Subject: include/linux/memblock.h: add __init to memblock_set_bottom_up() X-Git-Tag: v4.9.8~5947^2~178 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2cfb3665e864755400dc57b6ceee2ebb6b382910;p=platform%2Fkernel%2Flinux-rpi3.git include/linux/memblock.h: add __init to memblock_set_bottom_up() memblock_set_bottom_up() is only called by __init cmdline_parse_movable_node() and __init numa_init(). Signed-off-by: Fabian Frederick Reviewed-by: Tang Chen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/memblock.h b/include/linux/memblock.h index b660e05..e8cc453 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h @@ -249,7 +249,7 @@ phys_addr_t memblock_alloc(phys_addr_t size, phys_addr_t align); /* * Set the allocation direction to bottom-up or top-down. */ -static inline void memblock_set_bottom_up(bool enable) +static inline void __init memblock_set_bottom_up(bool enable) { memblock.bottom_up = enable; } @@ -264,7 +264,7 @@ static inline bool memblock_bottom_up(void) return memblock.bottom_up; } #else -static inline void memblock_set_bottom_up(bool enable) {} +static inline void __init memblock_set_bottom_up(bool enable) {} static inline bool memblock_bottom_up(void) { return false; } #endif