diff options
author | Yinghai Lu <yinghai@kernel.org> | 2010-09-15 16:05:29 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-09-15 16:17:13 -0400 |
commit | 3661ca66a42e306aaf53246fb75aec1ea01be0f0 (patch) | |
tree | 7fb390d6d09f72f9e1608554709b607ba0763ca7 /include/linux/memblock.h | |
parent | 823108a056c52a83c32ca199a57566a36fad4d19 (diff) |
memblock: Fix section mismatch warnings
Stephen found a bunch of section mismatch warnings with the
new memblock changes.
Use __init_memblock to replace __init in memblock.c and remove
__init in memblock.h. We should not use __init in header files.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Tested-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Yinghai Lu <Yinghai@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
LKML-Reference: <4C912709.2090201@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/memblock.h')
-rw-r--r-- | include/linux/memblock.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h index 7d285271130d..5096458c7535 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h | |||
@@ -51,39 +51,39 @@ u64 memblock_find_in_range(u64 start, u64 end, u64 size, u64 align); | |||
51 | int memblock_free_reserved_regions(void); | 51 | int memblock_free_reserved_regions(void); |
52 | int memblock_reserve_reserved_regions(void); | 52 | int memblock_reserve_reserved_regions(void); |
53 | 53 | ||
54 | extern void __init memblock_init(void); | 54 | extern void memblock_init(void); |
55 | extern void __init memblock_analyze(void); | 55 | extern void memblock_analyze(void); |
56 | extern long memblock_add(phys_addr_t base, phys_addr_t size); | 56 | extern long memblock_add(phys_addr_t base, phys_addr_t size); |
57 | extern long memblock_remove(phys_addr_t base, phys_addr_t size); | 57 | extern long memblock_remove(phys_addr_t base, phys_addr_t size); |
58 | extern long __init memblock_free(phys_addr_t base, phys_addr_t size); | 58 | extern long memblock_free(phys_addr_t base, phys_addr_t size); |
59 | extern long __init memblock_reserve(phys_addr_t base, phys_addr_t size); | 59 | extern long memblock_reserve(phys_addr_t base, phys_addr_t size); |
60 | 60 | ||
61 | /* The numa aware allocator is only available if | 61 | /* The numa aware allocator is only available if |
62 | * CONFIG_ARCH_POPULATES_NODE_MAP is set | 62 | * CONFIG_ARCH_POPULATES_NODE_MAP is set |
63 | */ | 63 | */ |
64 | extern phys_addr_t __init memblock_alloc_nid(phys_addr_t size, phys_addr_t align, | 64 | extern phys_addr_t memblock_alloc_nid(phys_addr_t size, phys_addr_t align, |
65 | int nid); | 65 | int nid); |
66 | extern phys_addr_t __init memblock_alloc_try_nid(phys_addr_t size, phys_addr_t align, | 66 | extern phys_addr_t memblock_alloc_try_nid(phys_addr_t size, phys_addr_t align, |
67 | int nid); | 67 | int nid); |
68 | 68 | ||
69 | extern phys_addr_t __init memblock_alloc(phys_addr_t size, phys_addr_t align); | 69 | extern phys_addr_t memblock_alloc(phys_addr_t size, phys_addr_t align); |
70 | 70 | ||
71 | /* Flags for memblock_alloc_base() amd __memblock_alloc_base() */ | 71 | /* Flags for memblock_alloc_base() amd __memblock_alloc_base() */ |
72 | #define MEMBLOCK_ALLOC_ANYWHERE (~(phys_addr_t)0) | 72 | #define MEMBLOCK_ALLOC_ANYWHERE (~(phys_addr_t)0) |
73 | #define MEMBLOCK_ALLOC_ACCESSIBLE 0 | 73 | #define MEMBLOCK_ALLOC_ACCESSIBLE 0 |
74 | 74 | ||
75 | extern phys_addr_t __init memblock_alloc_base(phys_addr_t size, | 75 | extern phys_addr_t memblock_alloc_base(phys_addr_t size, |
76 | phys_addr_t align, | 76 | phys_addr_t align, |
77 | phys_addr_t max_addr); | 77 | phys_addr_t max_addr); |
78 | extern phys_addr_t __init __memblock_alloc_base(phys_addr_t size, | 78 | extern phys_addr_t __memblock_alloc_base(phys_addr_t size, |
79 | phys_addr_t align, | 79 | phys_addr_t align, |
80 | phys_addr_t max_addr); | 80 | phys_addr_t max_addr); |
81 | extern phys_addr_t __init memblock_phys_mem_size(void); | 81 | extern phys_addr_t memblock_phys_mem_size(void); |
82 | extern phys_addr_t memblock_end_of_DRAM(void); | 82 | extern phys_addr_t memblock_end_of_DRAM(void); |
83 | extern void __init memblock_enforce_memory_limit(phys_addr_t memory_limit); | 83 | extern void memblock_enforce_memory_limit(phys_addr_t memory_limit); |
84 | extern int memblock_is_memory(phys_addr_t addr); | 84 | extern int memblock_is_memory(phys_addr_t addr); |
85 | extern int memblock_is_region_memory(phys_addr_t base, phys_addr_t size); | 85 | extern int memblock_is_region_memory(phys_addr_t base, phys_addr_t size); |
86 | extern int __init memblock_is_reserved(phys_addr_t addr); | 86 | extern int memblock_is_reserved(phys_addr_t addr); |
87 | extern int memblock_is_region_reserved(phys_addr_t base, phys_addr_t size); | 87 | extern int memblock_is_region_reserved(phys_addr_t base, phys_addr_t size); |
88 | 88 | ||
89 | extern void memblock_dump_all(void); | 89 | extern void memblock_dump_all(void); |