Skip to content

Commit

Permalink
[MIPS] fix sparse warning about setup_early_printk()
Browse files Browse the repository at this point in the history
This patch fixes the following sparse warning:

<<<<<<<<

arch/mips/kernel/early_printk.c:35:13: warning: symbol 'setup_early_printk'
was not declared. Should it be static?

<<<<<<<<

The fix is to define a prototype of the setup_early_printk() function and
to include the appropriate header into arch/mips/kernel/early_printk.c.

[Ralf: Sorted includes again]

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.fi>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Dmitri Vorobiev authored and Ralf Baechle committed Jul 15, 2008
1 parent c88a8b4 commit 07cdb78
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions arch/mips/kernel/early_printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include <linux/console.h>
#include <linux/init.h>

#include <asm/setup.h>

extern void prom_putchar(char);

static void __init
Expand Down
6 changes: 1 addition & 5 deletions arch/mips/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,11 +550,7 @@ void __init setup_arch(char **cmdline_p)
prom_init();

#ifdef CONFIG_EARLY_PRINTK
{
extern void setup_early_printk(void);

setup_early_printk();
}
setup_early_printk();
#endif
cpu_report();
check_bugs_early();
Expand Down
2 changes: 2 additions & 0 deletions include/asm-mips/setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@

#define COMMAND_LINE_SIZE 256

extern void setup_early_printk(void);

#endif /* __SETUP_H */

0 comments on commit 07cdb78

Please sign in to comment.