x86: fix sparse warnings in acpi/bus.c

Add function definition and extern variables to asm-x86/acpi.h.

All of these are used in bus.c in ifdef(CONFIG_X86) sections, so are
only added to the x86 include headers. boot.c already includes acpi.h
so no changes are needed there.

Fixes the following:
arch/x86/kernel/acpi/boot.c:83:4: warning: symbol 'acpi_sci_flags' was not declared. Should it be static?
arch/x86/kernel/acpi/boot.c:84:5: warning: symbol 'acpi_sci_override_gsi' was not declared. Should it be static?
arch/x86/kernel/acpi/boot.c:421:13: warning: symbol 'acpi_pic_sci_set_trigger' was not declared. Should it be static?

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

authored by

Harvey Harrison and committed by
Thomas Gleixner
6697c052 9583d050

+5 -6
+1 -6
drivers/acpi/bus.c
··· 31 31 #include <linux/pm.h> 32 32 #include <linux/device.h> 33 33 #include <linux/proc_fs.h> 34 + #include <linux/acpi.h> 34 35 #ifdef CONFIG_X86 35 36 #include <asm/mpspec.h> 36 37 #endif ··· 40 39 41 40 #define _COMPONENT ACPI_BUS_COMPONENT 42 41 ACPI_MODULE_NAME("bus"); 43 - #ifdef CONFIG_X86 44 - extern void __init acpi_pic_sci_set_trigger(unsigned int irq, u16 trigger); 45 - #endif 46 42 47 43 struct acpi_device *acpi_root; 48 44 struct proc_dir_entry *acpi_root_dir; ··· 651 653 652 654 #ifdef CONFIG_X86 653 655 if (!acpi_ioapic) { 654 - extern u8 acpi_sci_flags; 655 - 656 656 /* compatible (0) means level (3) */ 657 657 if (!(acpi_sci_flags & ACPI_MADT_TRIGGER_MASK)) { 658 658 acpi_sci_flags &= ~ACPI_MADT_TRIGGER_MASK; ··· 660 664 acpi_pic_sci_set_trigger(acpi_gbl_FADT.sci_interrupt, 661 665 (acpi_sci_flags & ACPI_MADT_TRIGGER_MASK) >> 2); 662 666 } else { 663 - extern int acpi_sci_override_gsi; 664 667 /* 665 668 * now that acpi_gbl_FADT is initialized, 666 669 * update it with result from INT_SRC_OVR parsing
+4
include/asm-x86/acpi.h
··· 89 89 extern int acpi_skip_timer_override; 90 90 extern int acpi_use_timer_override; 91 91 92 + extern u8 acpi_sci_flags; 93 + extern int acpi_sci_override_gsi; 94 + void acpi_pic_sci_set_trigger(unsigned int, u16); 95 + 92 96 static inline void disable_acpi(void) 93 97 { 94 98 acpi_disabled = 1;