Skip to content

Commit 19f144f

Browse files
Greg UngererGreg Ungerer
authored andcommitted
m68k: 68000: fix warnings in 68000 interrupt handling
When building with W=1: CC arch/m68k/68000/ints.o arch/m68k/68000/ints.c:77:6: warning: no previous prototype for ‘process_int’ [-Wmissing-prototypes] void process_int(int vec, struct pt_regs *fp) ^~~~~~~~~~~ arch/m68k/68000/ints.c:153:13: warning: no previous prototype for ‘trap_init’ [-Wmissing-prototypes] void __init trap_init(void) ^~~~~~~~~ Include linux/cpu.h to get the prototype for taps_init(). Create a local ints.h for prototype of process_int(). Also mark process_int() as asmlinkage, since it is called from the first level interrupt assembly handler. Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
1 parent 0a49a43 commit 19f144f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

arch/m68k/68000/ints.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/init.h>
1515
#include <linux/interrupt.h>
1616
#include <linux/irq.h>
17+
#include <linux/cpu.h>
1718
#include <asm/traps.h>
1819
#include <asm/io.h>
1920
#include <asm/machdep.h>
@@ -26,6 +27,8 @@
2627
#include <asm/MC68328.h>
2728
#endif
2829

30+
#include "ints.h"
31+
2932
/* assembler routines */
3033
asmlinkage void system_call(void);
3134
asmlinkage void buserr(void);
@@ -74,7 +77,7 @@ asmlinkage irqreturn_t inthandler7(void);
7477
* into one vector and look in the blasted mask register...
7578
* This code is designed to be fast, almost constant time, not clean!
7679
*/
77-
void process_int(int vec, struct pt_regs *fp)
80+
asmlinkage void process_int(int vec, struct pt_regs *fp)
7881
{
7982
int irq;
8083
int mask;

arch/m68k/68000/ints.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
2+
3+
#include <linux/linkage.h>
4+
5+
struct pt_regs;
6+
7+
asmlinkage void process_int(int vec, struct pt_regs *fp);

0 commit comments

Comments
 (0)