MIPS: Cobalt: Fix missing prototypes
PATCH 1/1 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 <[email protected]>
--- arch/mips/cobalt/setup.c | 3 --- arch/mips/include/asm/mach-cobalt/cobalt.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-)
arch/mips/cobalt/setup.c +0 -3
@@ -23,9 +23,6 @@#include <cobalt.h> -extern void cobalt_machine_restart (char *command); -extern void cobalt_machine_halt (void ); -const char *get_system_type (void ) {switch (cobalt_board_id) {
arch/mips/include/asm/mach-cobalt/cobalt.h +3 -0
@@ -19,4 +19,7 @@ extern int cobalt_board_id;#define COBALT_BRD_ID_QUBE2 0x5#define COBALT_BRD_ID_RAQ2 0x6 +void cobalt_machine_halt (void ); +void cobalt_machine_restart (char *command); +#endif /* __ASM_COBALT_H */
Signature · 1 line
2.34.1
Quoted 9 lines · Florian Fainelli
Fix missing prototypes warnings for
cobalt_machine_halt()andcobalt_machine_restart()by moving their prototypes tocobalt.hwhich is included bysetup.c.Signed-off-by Florian Fainelli <[email protected]>--- arch/mips/cobalt/setup.c | 3 --- arch/mips/include/asm/mach-cobalt/cobalt.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-)
applied to mips-fixes
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]