Skip to content

Commit 0dd20a4

Browse files
ffainellitsbogend
authored andcommitted
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>
1 parent 6613476 commit 0dd20a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/mips/cobalt/setup.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323

2424
#include <cobalt.h>
2525

26-
extern void cobalt_machine_restart(char *command);
27-
extern void cobalt_machine_halt(void);
28-
2926
const char *get_system_type(void)
3027
{
3128
switch (cobalt_board_id) {

arch/mips/include/asm/mach-cobalt/cobalt.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ extern int cobalt_board_id;
1919
#define COBALT_BRD_ID_QUBE2 0x5
2020
#define COBALT_BRD_ID_RAQ2 0x6
2121

22+
void cobalt_machine_halt(void);
23+
void cobalt_machine_restart(char *command);
24+
2225
#endif /* __ASM_COBALT_H */

0 commit comments

Comments
 (0)