diff options
author | Jaswinder Singh <jaswinder@infradead.org> | 2008-12-19 12:03:52 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-19 17:16:08 -0500 |
commit | 34945ede31071ac7d72270cc6c1893323f392b3f (patch) | |
tree | 54d1ca1ba2ca8678511ff3822258226665595a1e /arch | |
parent | d1769d5475176124af04fa69848b022c98c4bc37 (diff) |
x86: common.c boot_cpu_stack and boot_exception_stacks should be static
Impact: cleanup, avoid sparse warnings, reduce kernel size a bit
Fixes these sparse warnings:
arch/x86/kernel/cpu/common.c:869:6: warning: symbol 'boot_cpu_stack' was not declared. Should it be static?
arch/x86/kernel/cpu/common.c:910:6: warning: symbol 'boot_exception_stacks' was not declared. Should it be static?
Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index b9c9ea0217a9..aba49c782fd6 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -862,7 +862,7 @@ EXPORT_SYMBOL(_cpu_pda); | |||
862 | 862 | ||
863 | struct desc_ptr idt_descr = { 256 * 16 - 1, (unsigned long) idt_table }; | 863 | struct desc_ptr idt_descr = { 256 * 16 - 1, (unsigned long) idt_table }; |
864 | 864 | ||
865 | char boot_cpu_stack[IRQSTACKSIZE] __page_aligned_bss; | 865 | static char boot_cpu_stack[IRQSTACKSIZE] __page_aligned_bss; |
866 | 866 | ||
867 | void __cpuinit pda_init(int cpu) | 867 | void __cpuinit pda_init(int cpu) |
868 | { | 868 | { |
@@ -903,8 +903,8 @@ void __cpuinit pda_init(int cpu) | |||
903 | } | 903 | } |
904 | } | 904 | } |
905 | 905 | ||
906 | char boot_exception_stacks[(N_EXCEPTION_STACKS - 1) * EXCEPTION_STKSZ + | 906 | static char boot_exception_stacks[(N_EXCEPTION_STACKS - 1) * EXCEPTION_STKSZ + |
907 | DEBUG_STKSZ] __page_aligned_bss; | 907 | DEBUG_STKSZ] __page_aligned_bss; |
908 | 908 | ||
909 | extern asmlinkage void ignore_sysret(void); | 909 | extern asmlinkage void ignore_sysret(void); |
910 | 910 | ||