Skip to content

Commit b796d04

Browse files
Yongzhen Zhangtsbogend
authored andcommitted
MIPS: RB532: Declare prom_setup_cmdline() and rb532_gpio_init() static
early_tlb_init() and rb532_gpio_init() were local to file but not declared static, leading to error: arch/mips/rb532/prom.c:49:13: error: no previous prototype for ‘prom_setup_cmdline’ [-Werror=missing-prototypes] 49 | void __init prom_setup_cmdline(void) | ^~~~~~~~~~~~~~~~~~ arch/mips/rb532/gpio.c:200:12: error: no previous prototype for ‘rb532_gpio_init’ [-Werror=missing-prototypes] 200 | int __init rb532_gpio_init(void) | ^~~~~~~~~~~~~~~ Signed-off-by: Yongzhen Zhang <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent d18419c commit b796d04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/mips/rb532/gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ void rb532_gpio_set_func(unsigned gpio)
197197
}
198198
EXPORT_SYMBOL(rb532_gpio_set_func);
199199

200-
int __init rb532_gpio_init(void)
200+
static int __init rb532_gpio_init(void)
201201
{
202202
struct resource *r;
203203

arch/mips/rb532/prom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static inline unsigned long tag2ul(char *arg, const char *tag)
4646
return simple_strtoul(num, 0, 10);
4747
}
4848

49-
void __init prom_setup_cmdline(void)
49+
static void __init prom_setup_cmdline(void)
5050
{
5151
static char cmd_line[COMMAND_LINE_SIZE] __initdata;
5252
char *cp, *board;

0 commit comments

Comments
 (0)