]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] es7000plat.c warning fix
authorAndrew Morton <akpm@osdl.org>
Sat, 12 Jun 2004 23:41:31 +0000 (16:41 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Sat, 12 Jun 2004 23:41:31 +0000 (16:41 -0700)
Lack of argument decls causes this warning:

arch/i386/mach-generic/../mach-es7000/es7000plat.c:53: warning: function declaration isn't a prototype

Let's stick the extern declaration in a header, which is where they always
should be.

Cc: "Brown, Len" <len.brown@intel.com>
Cc: "Protasevich, Natalie" <Natalie.Protasevich@UNISYS.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/mach-es7000/es7000plat.c
include/asm-i386/acpi.h

index 7f5125e549d47371291428dbd83f0aefad8edb7c..784576c53c05142ef1a8b808db61aa26d4c040c3 100644 (file)
@@ -50,7 +50,6 @@ struct mip_reg                *mip_reg;
 struct mip_reg         *host_reg;
 int                    mip_port;
 unsigned long          mip_addr, host_addr;
-extern int (*platform_rename_gsi)();
 
 static int __init
 es7000_rename_gsi(int ioapic, int gsi)
index a6f577192bcdfa398fe23a2c5ff4e5cb22cfcde0..42164a6d5fe02b27bf477b227d3f85c3448fb8f6 100644 (file)
@@ -122,6 +122,8 @@ static inline void disable_acpi(void)
 #define FIX_ACPI_PAGES 4
 
 extern int acpi_gsi_to_irq(u32 gsi, unsigned int *irq);
+extern int (*platform_rename_gsi)(int ioapic, int gsi);
+
 #ifdef CONFIG_X86_IO_APIC
 extern int skip_ioapic_setup;
 extern int acpi_skip_timer_override;