]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
MIPS: sgi-ip22: Add prototypes for several functions to header
authorGenjian Zhang <zhanggenjian@kylinos.cn>
Thu, 16 May 2024 11:59:05 +0000 (19:59 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 11 Jun 2024 11:10:33 +0000 (13:10 +0200)
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>
arch/mips/include/asm/sgi/ip22.h
arch/mips/sgi-ip22/ip22-int.c
arch/mips/sgi-ip22/ip22-setup.c

index 87ec9eaa04e3c70d6b8a9cf44778f1f1db4230b1..57942afb5c86bf04c1aa9ce237b63ddd4fa6e7c4 100644 (file)
@@ -76,5 +76,8 @@
 
 extern unsigned short ip22_eeprom_read(unsigned int *ctrl, int reg);
 extern unsigned short ip22_nvram_read(int reg);
+extern void ip22_be_interrupt(int irq);
+extern void ip22_be_init(void) __init;
+extern void indy_8254timer_irq(void);
 
 #endif
index 96798a4ab2def911cccaf57bf62c9e86bda03780..11f8adc98cb59b2c3866e826e0871ccc76b768e7 100644 (file)
@@ -165,8 +165,6 @@ static void __irq_entry indy_buserror_irq(void)
 #define SGI_INTERRUPTS SGINT_LOCAL3
 #endif
 
-extern void indy_8254timer_irq(void);
-
 /*
  * IRQs on the INDY look basically (barring software IRQs which we don't use
  * at all) like:
index b69daa02401b9d0d3f8e9f7c0574305ca91ecb00..e06a818fe7928ecf08d28249000513a38ff09c7d 100644 (file)
@@ -26,8 +26,6 @@
 #include <asm/sgi/hpc3.h>
 #include <asm/sgi/ip22.h>
 
-extern void ip22_be_init(void) __init;
-
 void __init plat_mem_setup(void)
 {
        char *ctype;