aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/memblock.h
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2010-09-15 16:05:29 -0400
committerIngo Molnar <mingo@elte.hu>2010-09-15 16:17:13 -0400
commit3661ca66a42e306aaf53246fb75aec1ea01be0f0 (patch)
tree7fb390d6d09f72f9e1608554709b607ba0763ca7 /include/linux/memblock.h
parent823108a056c52a83c32ca199a57566a36fad4d19 (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.h24
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);
51int memblock_free_reserved_regions(void); 51int memblock_free_reserved_regions(void);
52int memblock_reserve_reserved_regions(void); 52int memblock_reserve_reserved_regions(void);
53 53
54extern void __init memblock_init(void); 54extern void memblock_init(void);
55extern void __init memblock_analyze(void); 55extern void memblock_analyze(void);
56extern long memblock_add(phys_addr_t base, phys_addr_t size); 56extern long memblock_add(phys_addr_t base, phys_addr_t size);
57extern long memblock_remove(phys_addr_t base, phys_addr_t size); 57extern long memblock_remove(phys_addr_t base, phys_addr_t size);
58extern long __init memblock_free(phys_addr_t base, phys_addr_t size); 58extern long memblock_free(phys_addr_t base, phys_addr_t size);
59extern long __init memblock_reserve(phys_addr_t base, phys_addr_t size); 59extern 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 */
64extern phys_addr_t __init memblock_alloc_nid(phys_addr_t size, phys_addr_t align, 64extern phys_addr_t memblock_alloc_nid(phys_addr_t size, phys_addr_t align,
65 int nid); 65 int nid);
66extern phys_addr_t __init memblock_alloc_try_nid(phys_addr_t size, phys_addr_t align, 66extern phys_addr_t memblock_alloc_try_nid(phys_addr_t size, phys_addr_t align,
67 int nid); 67 int nid);
68 68
69extern phys_addr_t __init memblock_alloc(phys_addr_t size, phys_addr_t align); 69extern 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
75extern phys_addr_t __init memblock_alloc_base(phys_addr_t size, 75extern 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);
78extern phys_addr_t __init __memblock_alloc_base(phys_addr_t size, 78extern 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);
81extern phys_addr_t __init memblock_phys_mem_size(void); 81extern phys_addr_t memblock_phys_mem_size(void);
82extern phys_addr_t memblock_end_of_DRAM(void); 82extern phys_addr_t memblock_end_of_DRAM(void);
83extern void __init memblock_enforce_memory_limit(phys_addr_t memory_limit); 83extern void memblock_enforce_memory_limit(phys_addr_t memory_limit);
84extern int memblock_is_memory(phys_addr_t addr); 84extern int memblock_is_memory(phys_addr_t addr);
85extern int memblock_is_region_memory(phys_addr_t base, phys_addr_t size); 85extern int memblock_is_region_memory(phys_addr_t base, phys_addr_t size);
86extern int __init memblock_is_reserved(phys_addr_t addr); 86extern int memblock_is_reserved(phys_addr_t addr);
87extern int memblock_is_region_reserved(phys_addr_t base, phys_addr_t size); 87extern int memblock_is_region_reserved(phys_addr_t base, phys_addr_t size);
88 88
89extern void memblock_dump_all(void); 89extern void memblock_dump_all(void);