From: Dmitri Vorobiev Date: Thu, 24 Jan 2008 16:52:53 +0000 (+0300) Subject: [MIPS] Malta, Atlas: move an extern function declaration to the header file X-Git-Tag: v2.6.25-rc1~1163^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=bbdda5e1fe9c1a5b34a2b552910f5f4c0dc24485;p=linux-2.6-omap-h63xx.git [MIPS] Malta, Atlas: move an extern function declaration to the header file This was compile-tested using default configs for the boards affected by this change. This patch does not introduce any functional changes. Signed-off-by: Dmitri Vorobiev Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/mips-boards/atlas/atlas_setup.c b/arch/mips/mips-boards/atlas/atlas_setup.c index 5ce80042001..5c500802271 100644 --- a/arch/mips/mips-boards/atlas/atlas_setup.c +++ b/arch/mips/mips-boards/atlas/atlas_setup.c @@ -34,10 +34,6 @@ #include #include -#ifdef CONFIG_KGDB -extern void kgdb_config(void); -#endif - static void __init serial_init(void); const char *get_system_type(void) diff --git a/arch/mips/mips-boards/malta/malta_setup.c b/arch/mips/mips-boards/malta/malta_setup.c index 3e2de0b8e2c..8dacb6adb6d 100644 --- a/arch/mips/mips-boards/malta/malta_setup.c +++ b/arch/mips/mips-boards/malta/malta_setup.c @@ -35,10 +35,6 @@ #include #endif -#ifdef CONFIG_KGDB -extern void kgdb_config(void); -#endif - struct resource standard_io_resources[] = { { .name = "dma1", diff --git a/include/asm-mips/mips-boards/generic.h b/include/asm-mips/mips-boards/generic.h index 2ca6bda37d1..1c39d339521 100644 --- a/include/asm-mips/mips-boards/generic.h +++ b/include/asm-mips/mips-boards/generic.h @@ -105,4 +105,8 @@ extern void mips_pcibios_init(void); #define mips_pcibios_init() do { } while (0) #endif +#ifdef CONFIG_KGDB +extern void kgdb_config(void); +#endif + #endif /* __ASM_MIPS_BOARDS_GENERIC_H */