Skip to content

Commit 676ca3c

Browse files
committed
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
1 parent 7509c04 commit 676ca3c

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

arch/m68k/apollo/apollo.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
3+
/* dn_ints.c */
4+
void dn_init_IRQ(void);

arch/m68k/apollo/config.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#include <asm/machdep.h>
1818
#include <asm/config.h>
1919

20+
#include "apollo.h"
21+
2022
u_long sio01_physaddr;
2123
u_long sio23_physaddr;
2224
u_long rtc_physaddr;
@@ -27,7 +29,6 @@ u_long timer_physaddr;
2729
u_long apollo_model;
2830

2931
extern void dn_sched_init(void);
30-
extern void dn_init_IRQ(void);
3132
extern int dn_dummy_hwclk(int, struct rtc_time *);
3233
static void dn_dummy_reset(void);
3334
#ifdef CONFIG_HEARTBEAT

arch/m68k/apollo/dn_ints.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#include <asm/traps.h>
66
#include <asm/apollohw.h>
77

8+
#include "apollo.h"
9+
810
static unsigned int apollo_irq_startup(struct irq_data *data)
911
{
1012
unsigned int irq = data->irq;

0 commit comments

Comments
 (0)