Commit 676ca3c3 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

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: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/d78eceb83b8dd1931be1789204898060664e23f6.1694613528.git.geert@linux-m68k.org
parent 7509c04a
/* SPDX-License-Identifier: GPL-2.0 */
/* dn_ints.c */
void dn_init_IRQ(void);
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/config.h> #include <asm/config.h>
#include "apollo.h"
u_long sio01_physaddr; u_long sio01_physaddr;
u_long sio23_physaddr; u_long sio23_physaddr;
u_long rtc_physaddr; u_long rtc_physaddr;
...@@ -27,7 +29,6 @@ u_long timer_physaddr; ...@@ -27,7 +29,6 @@ u_long timer_physaddr;
u_long apollo_model; u_long apollo_model;
extern void dn_sched_init(void); extern void dn_sched_init(void);
extern void dn_init_IRQ(void);
extern int dn_dummy_hwclk(int, struct rtc_time *); extern int dn_dummy_hwclk(int, struct rtc_time *);
static void dn_dummy_reset(void); static void dn_dummy_reset(void);
#ifdef CONFIG_HEARTBEAT #ifdef CONFIG_HEARTBEAT
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
#include <asm/traps.h> #include <asm/traps.h>
#include <asm/apollohw.h> #include <asm/apollohw.h>
#include "apollo.h"
static unsigned int apollo_irq_startup(struct irq_data *data) static unsigned int apollo_irq_startup(struct irq_data *data)
{ {
unsigned int irq = data->irq; unsigned int irq = data->irq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment