Skip to content

Commit

Permalink
[MIPS] Malta, Atlas, Sead: remove an extern from .c files
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitri Vorobiev authored and Ralf Baechle committed Jan 29, 2008
1 parent f807149 commit 1997267
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions arch/mips/mips-boards/atlas/atlas_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
#include <asm/time.h>
#include <asm/traps.h>

extern void mips_reboot_setup(void);

#ifdef CONFIG_KGDB
extern void kgdb_config(void);
#endif
Expand Down
2 changes: 0 additions & 2 deletions arch/mips/mips-boards/malta/malta_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
#include <linux/console.h>
#endif

extern void mips_reboot_setup(void);

#ifdef CONFIG_KGDB
extern void kgdb_config(void);
#endif
Expand Down
2 changes: 0 additions & 2 deletions arch/mips/mips-boards/sead/sead_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
#include <asm/mips-boards/seadint.h>
#include <asm/time.h>

extern void mips_reboot_setup(void);

static void __init serial_init(void);

const char *get_system_type(void)
Expand Down
2 changes: 2 additions & 0 deletions include/asm-mips/mips-boards/generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ extern int mips_revision_corid;

extern int mips_revision_sconid;

extern void mips_reboot_setup(void);

#ifdef CONFIG_PCI
extern void mips_pcibios_init(void);
#else
Expand Down

0 comments on commit 1997267

Please sign in to comment.