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

MIPS: sgi-ip22: Add prototypes for several functions to header

This fixes the following build warning:

arch/mips/sgi-ip22/ip22-time.c:119:18: error: no previous prototype for ‘indy_8254timer_irq’ [-Werror=missing-prototypes]
arch/mips/sgi-ip22/ip22-berr.c:89:6: error: no previous prototype for ‘ip22_be_interrupt’ [-Werror=missing-prototypes]
arch/mips/sgi-ip22/ip22-berr.c:113:13: error: no previous prototype for ‘ip22_be_init’ [-Werror=missing-prototypes]

Reported-by: k2ci <kernel-bot@kylinos.cn>
Signed-off-by: Genjian Zhang <zhanggenjian@kylinos.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Genjian Zhang and committed by
Thomas Bogendoerfer
0db3bc9c d89a415f

+3 -4
+3
arch/mips/include/asm/sgi/ip22.h
··· 76 76 77 77 extern unsigned short ip22_eeprom_read(unsigned int *ctrl, int reg); 78 78 extern unsigned short ip22_nvram_read(int reg); 79 + extern void ip22_be_interrupt(int irq); 80 + extern void ip22_be_init(void) __init; 81 + extern void indy_8254timer_irq(void); 79 82 80 83 #endif
-2
arch/mips/sgi-ip22/ip22-int.c
··· 165 165 #define SGI_INTERRUPTS SGINT_LOCAL3 166 166 #endif 167 167 168 - extern void indy_8254timer_irq(void); 169 - 170 168 /* 171 169 * IRQs on the INDY look basically (barring software IRQs which we don't use 172 170 * at all) like:
-2
arch/mips/sgi-ip22/ip22-setup.c
··· 26 26 #include <asm/sgi/hpc3.h> 27 27 #include <asm/sgi/ip22.h> 28 28 29 - extern void ip22_be_init(void) __init; 30 - 31 29 void __init plat_mem_setup(void) 32 30 { 33 31 char *ctype;