Skip to contentSkip to conversation

x86: apic/probe_32.c declare apic_default before they get used

PATCH New Jaswinder Singh Rajput 1 participant 1 message Apr 9, 2009 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: apic/probe_32.c declare apic_default before they get used

Impact: fix sparse warning:
arch/x86/kernel/apic/probe_32.c:96:13: warning: symbol 'apic_default' was not declared. Should it be static?

---
 arch/x86/include/asm/apic.h     |    3 +++
 arch/x86/kernel/apic/probe_32.c |    1 -
 2 files changed, 3 insertions(+), 1 deletions(-)
arch/x86/include/asm/apic.h +3 -0
index 42f2f83..5773660 100644
@@ -478,6 +478,9 @@ static inline unsigned int read_apic_id(void)
 extern void default_setup_apic_routing(void);
 
 #ifdef CONFIG_X86_32
+
+extern struct apic apic_default;
+
 /*
  * Set up the logical destination ID.
  *
arch/x86/kernel/apic/probe_32.c +0 -1
index 01eda2a..440a8bc 100644
@@ -160,7 +160,6 @@ extern struct apic apic_summit;
 extern struct apic apic_bigsmp;
 extern struct apic apic_es7000;
 extern struct apic apic_es7000_cluster;
-extern struct apic apic_default;
 
 struct apic *apic = &apic_default;
 EXPORT_SYMBOL_GPL(apic);
Signature · 1 line
1.6.0.6