Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07cdb784 authored by Dmitri Vorobiev's avatar Dmitri Vorobiev Committed by Ralf Baechle
Browse files

[MIPS] fix sparse warning about setup_early_printk()



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: default avatarDmitri Vorobiev <dmitri.vorobiev@movial.fi>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent c88a8b4a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@
#include <linux/console.h>
#include <linux/init.h>

#include <asm/setup.h>

extern void prom_putchar(char);

static void __init
+1 −5
Original line number Diff line number Diff line
@@ -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();
	}
#endif
	cpu_report();
	check_bugs_early();
+2 −0
Original line number Diff line number Diff line
@@ -3,4 +3,6 @@

#define COMMAND_LINE_SIZE	256

extern void setup_early_printk(void);

#endif /* __SETUP_H */