diff options
author | Jacek Luczak <difrost.kernel@gmail.com> | 2008-04-10 07:40:57 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-19 13:19:54 -0400 |
commit | 1a7a34af78923f8807d054a15133a8fcf47e385e (patch) | |
tree | 4c53b72a7d59f5a39c93909a5c41d5c5120982b8 /arch | |
parent | 120d5bf128906c790df810e159d2e1239d08fef1 (diff) |
x86: e820_64, fix section mismatch warning
fix section mismatch warnings which occurs on my x86_64 box while compiling
linux-next-20080410:
Warning messages:
WARNING: arch/x86/kernel/built-in.o(.text+0x7bc2): Section mismatch in reference from the function bad_addr() to the
variable .init.data:early_res
The function bad_addr() references
the variable __initdata early_res.
This is often because bad_addr lacks a __initdata
annotation or the annotation of early_res is wrong.
WARNING: arch/x86/kernel/built-in.o(.text+0x7c3b): Section mismatch in reference from the function bad_addr_size() to
the variable .init.data:early_res
The function bad_addr_size() references
the variable __initdata early_res.
This is often because bad_addr_size lacks a __initdata
annotation or the annotation of early_res is wrong.
Signed-off-by: Jacek Luczak <luczak.jacek@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/e820_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/e820_64.c b/arch/x86/kernel/e820_64.c index 7f6c0c85c8f6..cbd42e51cb08 100644 --- a/arch/x86/kernel/e820_64.c +++ b/arch/x86/kernel/e820_64.c | |||
@@ -96,7 +96,7 @@ void __init early_res_to_bootmem(void) | |||
96 | } | 96 | } |
97 | 97 | ||
98 | /* Check for already reserved areas */ | 98 | /* Check for already reserved areas */ |
99 | static inline int | 99 | static inline int __init |
100 | bad_addr(unsigned long *addrp, unsigned long size, unsigned long align) | 100 | bad_addr(unsigned long *addrp, unsigned long size, unsigned long align) |
101 | { | 101 | { |
102 | int i; | 102 | int i; |
@@ -116,7 +116,7 @@ again: | |||
116 | } | 116 | } |
117 | 117 | ||
118 | /* Check for already reserved areas */ | 118 | /* Check for already reserved areas */ |
119 | static inline int | 119 | static inline int __init |
120 | bad_addr_size(unsigned long *addrp, unsigned long *sizep, unsigned long align) | 120 | bad_addr_size(unsigned long *addrp, unsigned long *sizep, unsigned long align) |
121 | { | 121 | { |
122 | int i; | 122 | int i; |