Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Cobalt: Fix missing prototypes

Fix missing prototypes warnings for cobalt_machine_halt() and
cobalt_machine_restart() by moving their prototypes to cobalt.h which is
included by setup.c.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Florian Fainelli and committed by
Thomas Bogendoerfer
0dd20a48 6613476e

+3 -3
-3
arch/mips/cobalt/setup.c
··· 23 23 24 24 #include <cobalt.h> 25 25 26 - extern void cobalt_machine_restart(char *command); 27 - extern void cobalt_machine_halt(void); 28 - 29 26 const char *get_system_type(void) 30 27 { 31 28 switch (cobalt_board_id) {
+3
arch/mips/include/asm/mach-cobalt/cobalt.h
··· 19 19 #define COBALT_BRD_ID_QUBE2 0x5 20 20 #define COBALT_BRD_ID_RAQ2 0x6 21 21 22 + void cobalt_machine_halt(void); 23 + void cobalt_machine_restart(char *command); 24 + 22 25 #endif /* __ASM_COBALT_H */