diff options
author | Dmitri Vorobiev <dmitri.vorobiev@gmail.com> | 2008-01-24 11:52:48 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-01-29 05:15:04 -0500 |
commit | 1997267072d6bfadb37d336779e6122c2d44343d (patch) | |
tree | 42d89cf3c681a2f53697c0b7dc7be6e95687365a | |
parent | f80714966795ecfe6261509d0270d9761b07b462 (diff) |
[MIPS] Malta, Atlas, Sead: remove an extern from .c files
This patch moves the "extern" declaration for the function
mips_reboot_setup() from the board setup .c files to the
header file include/asm-mips/mips-boards/generic.h.
This fixes a warning produced by the checkpatch.pl script.
No functional changes introduced.
This was compile-tested by building the kernel for all
three boards affected by this change. All builds finished
successfully.
Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/mips-boards/atlas/atlas_setup.c | 2 | ||||
-rw-r--r-- | arch/mips/mips-boards/malta/malta_setup.c | 2 | ||||
-rw-r--r-- | arch/mips/mips-boards/sead/sead_setup.c | 2 | ||||
-rw-r--r-- | include/asm-mips/mips-boards/generic.h | 2 |
4 files changed, 2 insertions, 6 deletions
diff --git a/arch/mips/mips-boards/atlas/atlas_setup.c b/arch/mips/mips-boards/atlas/atlas_setup.c index e405d112a067..5ce800420012 100644 --- a/arch/mips/mips-boards/atlas/atlas_setup.c +++ b/arch/mips/mips-boards/atlas/atlas_setup.c | |||
@@ -34,8 +34,6 @@ | |||
34 | #include <asm/time.h> | 34 | #include <asm/time.h> |
35 | #include <asm/traps.h> | 35 | #include <asm/traps.h> |
36 | 36 | ||
37 | extern void mips_reboot_setup(void); | ||
38 | |||
39 | #ifdef CONFIG_KGDB | 37 | #ifdef CONFIG_KGDB |
40 | extern void kgdb_config(void); | 38 | extern void kgdb_config(void); |
41 | #endif | 39 | #endif |
diff --git a/arch/mips/mips-boards/malta/malta_setup.c b/arch/mips/mips-boards/malta/malta_setup.c index 480521f05b8c..e5ac079e47e0 100644 --- a/arch/mips/mips-boards/malta/malta_setup.c +++ b/arch/mips/mips-boards/malta/malta_setup.c | |||
@@ -35,8 +35,6 @@ | |||
35 | #include <linux/console.h> | 35 | #include <linux/console.h> |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | extern void mips_reboot_setup(void); | ||
39 | |||
40 | #ifdef CONFIG_KGDB | 38 | #ifdef CONFIG_KGDB |
41 | extern void kgdb_config(void); | 39 | extern void kgdb_config(void); |
42 | #endif | 40 | #endif |
diff --git a/arch/mips/mips-boards/sead/sead_setup.c b/arch/mips/mips-boards/sead/sead_setup.c index 1fb61b852304..8aa8e5b7b074 100644 --- a/arch/mips/mips-boards/sead/sead_setup.c +++ b/arch/mips/mips-boards/sead/sead_setup.c | |||
@@ -34,8 +34,6 @@ | |||
34 | #include <asm/mips-boards/seadint.h> | 34 | #include <asm/mips-boards/seadint.h> |
35 | #include <asm/time.h> | 35 | #include <asm/time.h> |
36 | 36 | ||
37 | extern void mips_reboot_setup(void); | ||
38 | |||
39 | static void __init serial_init(void); | 37 | static void __init serial_init(void); |
40 | 38 | ||
41 | const char *get_system_type(void) | 39 | const char *get_system_type(void) |
diff --git a/include/asm-mips/mips-boards/generic.h b/include/asm-mips/mips-boards/generic.h index d58977483534..2ca6bda37d1c 100644 --- a/include/asm-mips/mips-boards/generic.h +++ b/include/asm-mips/mips-boards/generic.h | |||
@@ -97,6 +97,8 @@ extern int mips_revision_corid; | |||
97 | 97 | ||
98 | extern int mips_revision_sconid; | 98 | extern int mips_revision_sconid; |
99 | 99 | ||
100 | extern void mips_reboot_setup(void); | ||
101 | |||
100 | #ifdef CONFIG_PCI | 102 | #ifdef CONFIG_PCI |
101 | extern void mips_pcibios_init(void); | 103 | extern void mips_pcibios_init(void); |
102 | #else | 104 | #else |