x86: apic.c declare pic_mode before they get used
Impact: cleanup, avoid sparse warning In asm/mpspec.h moved out pic_mode from CONFIG_X86_32 as it is common for both 32 and 64 bit. Fixes this sparse warning for x86_64: arch/x86/kernel/apic.c:128:5: warning: symbol 'pic_mode' was not declared. Should it be static? Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
2f06de0671
commit
a1ae299dfb
@@ -6,13 +6,13 @@
|
|||||||
#include <asm/mpspec_def.h>
|
#include <asm/mpspec_def.h>
|
||||||
|
|
||||||
extern int apic_version[MAX_APICS];
|
extern int apic_version[MAX_APICS];
|
||||||
|
extern int pic_mode;
|
||||||
|
|
||||||
#ifdef CONFIG_X86_32
|
#ifdef CONFIG_X86_32
|
||||||
#include <mach_mpspec.h>
|
#include <mach_mpspec.h>
|
||||||
|
|
||||||
extern unsigned int def_to_bigsmp;
|
extern unsigned int def_to_bigsmp;
|
||||||
extern u8 apicid_2_node[];
|
extern u8 apicid_2_node[];
|
||||||
extern int pic_mode;
|
|
||||||
|
|
||||||
#ifdef CONFIG_X86_NUMAQ
|
#ifdef CONFIG_X86_NUMAQ
|
||||||
extern int mp_bus_id_to_node[MAX_MP_BUSSES];
|
extern int mp_bus_id_to_node[MAX_MP_BUSSES];
|
||||||
|
Reference in New Issue
Block a user