* [PATCH] kill implicit check_acpi_pci() warning
@ 2006-03-17 0:28 Dave Hansen
0 siblings, 0 replies; only message in thread
From: Dave Hansen @ 2006-03-17 0:28 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, ak, gregkh, Dave Hansen
I've been seeing these in recent -mms:
arch/i386/kernel/setup.c: In function `setup_arch':
arch/i386/kernel/setup.c:1523: warning: implicit declaration of function `check_acpi_pci'
The issue is that the stub check_acpi_pci() is inside an
#ifdef ACPI in the header, while the actual use inside the
.c file is not. I've elected to take both the extern and
the stub in the header, and take them out of the ACPI #ifdef.
The comment next to the call says the following:
check_acpi_pci(); /* Checks more than just ACPI actually */
Seems weird to have "_acpi_" in it then, but what do I know?
BTW, I'm running a config with ACPI=n and X86_IO_APIC=y.
---
work-dave/include/asm-i386/acpi.h | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff -puN arch/i386/kernel/setup.c~kill-implicit-check_acpi_pci-warning arch/i386/kernel/setup.c
diff -puN include/asm-i386/acpi.h~kill-implicit-check_acpi_pci-warning include/asm-i386/acpi.h
--- work/include/asm-i386/acpi.h~kill-implicit-check_acpi_pci-warning 2006-03-16 16:25:59.000000000 -0800
+++ work-dave/include/asm-i386/acpi.h 2006-03-16 16:25:59.000000000 -0800
@@ -128,8 +128,6 @@ extern int acpi_gsi_to_irq(u32 gsi, unsi
extern int skip_ioapic_setup;
extern int acpi_skip_timer_override;
-extern void check_acpi_pci(void);
-
static inline void disable_ioapic_setup(void)
{
skip_ioapic_setup = 1;
@@ -142,7 +140,6 @@ static inline int ioapic_setup_disabled(
#else
static inline void disable_ioapic_setup(void) { }
-static inline void check_acpi_pci(void) { }
#endif
@@ -163,6 +160,11 @@ static inline void acpi_disable_pci(void
#endif /* !CONFIG_ACPI */
+#ifdef CONFIG_X86_IO_APIC
+extern void check_acpi_pci(void);
+#else
+static inline void check_acpi_pci(void) { }
+#endif
#ifdef CONFIG_ACPI_SLEEP
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-03-17 0:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-17 0:28 [PATCH] kill implicit check_acpi_pci() warning Dave Hansen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome