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

Configure Feed

Select the types of activity you want to include in your feed.

MIPS: ip22-gio: Make ip22_gio_set_64bit() and ip22_gio_init() static

These functions are used in only one file.
Made them static to fix the following build error:

arch/mips/sgi-ip22/ip22-gio.c:249:6: error: no previous prototype for ‘ip22_gio_set_64bit’ [-Werror=missing-prototypes]
arch/mips/sgi-ip22/ip22-gio.c:398:12: error: no previous prototype for ‘ip22_gio_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
3ee1167a 0db3bc9c

+2 -2
+2 -2
arch/mips/sgi-ip22/ip22-gio.c
··· 246 246 } 247 247 EXPORT_SYMBOL_GPL(gio_set_master); 248 248 249 - void ip22_gio_set_64bit(int slotno) 249 + static void ip22_gio_set_64bit(int slotno) 250 250 { 251 251 u32 tmp = sgimc->giopar; 252 252 ··· 395 395 .flags = IORESOURCE_MEM, 396 396 }; 397 397 398 - int __init ip22_gio_init(void) 398 + static int __init ip22_gio_init(void) 399 399 { 400 400 unsigned int pbdma __maybe_unused; 401 401 int ret;