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

m68k: apollo: Add and use "apollo.h"

When building with W=1:

arch/m68k/apollo/dn_ints.c:43:13: warning: no previous prototype for ‘dn_init_IRQ’ [-Wmissing-prototypes]
43 | void __init dn_init_IRQ(void)
| ^~~~~~~~~~~

Fix this by introducing a new header file "apollo.h" for holding the
prototypes of functions implemented in arch/m68k/apollo/.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/d78eceb83b8dd1931be1789204898060664e23f6.1694613528.git.geert@linux-m68k.org

+8 -1
+4
arch/m68k/apollo/apollo.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + 3 + /* dn_ints.c */ 4 + void dn_init_IRQ(void);
+2 -1
arch/m68k/apollo/config.c
··· 17 17 #include <asm/machdep.h> 18 18 #include <asm/config.h> 19 19 20 + #include "apollo.h" 21 + 20 22 u_long sio01_physaddr; 21 23 u_long sio23_physaddr; 22 24 u_long rtc_physaddr; ··· 29 27 u_long apollo_model; 30 28 31 29 extern void dn_sched_init(void); 32 - extern void dn_init_IRQ(void); 33 30 extern int dn_dummy_hwclk(int, struct rtc_time *); 34 31 static void dn_dummy_reset(void); 35 32 #ifdef CONFIG_HEARTBEAT
+2
arch/m68k/apollo/dn_ints.c
··· 5 5 #include <asm/traps.h> 6 6 #include <asm/apollohw.h> 7 7 8 + #include "apollo.h" 9 + 8 10 static unsigned int apollo_irq_startup(struct irq_data *data) 9 11 { 10 12 unsigned int irq = data->irq;