Skip to content

Commit c07a164

Browse files
committed
m68k: Add common forward declaration for show_registers()
There are several forward declarations for show_registers() in C source files. Replace these by a single common forward declaration in <asm/processor.h>, and include <asm/processor.h> where needed. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Link: https://lore.kernel.org/r/d5b6a7f9af3e82f0ccb67edac09d9ee45d457932.1657114791.git.geert@linux-m68k.org
1 parent c36dd29 commit c07a164

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

arch/m68k/include/asm/processor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ static inline void release_thread(struct task_struct *dead_task)
151151
}
152152

153153
unsigned long __get_wchan(struct task_struct *p);
154+
void show_registers(struct pt_regs *regs);
154155

155156
#define KSTK_EIP(tsk) \
156157
({ \

arch/m68k/kernel/traps.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include <linux/uaccess.h>
3737
#include <asm/traps.h>
3838
#include <asm/machdep.h>
39+
#include <asm/processor.h>
3940
#include <asm/siginfo.h>
4041
#include <asm/tlbflush.h>
4142

arch/m68k/mac/macints.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@
126126
#include <asm/mac_baboon.h>
127127
#include <asm/hwtest.h>
128128
#include <asm/irq_regs.h>
129-
130-
extern void show_registers(struct pt_regs *);
129+
#include <asm/processor.h>
131130

132131
static unsigned int mac_irq_startup(struct irq_data *);
133132
static void mac_irq_shutdown(struct irq_data *);

arch/m68k/virt/ints.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@
1212
#include <asm/hwtest.h>
1313
#include <asm/irq.h>
1414
#include <asm/irq_regs.h>
15+
#include <asm/processor.h>
1516
#include <asm/virt.h>
1617

1718
#define GFPIC_REG_IRQ_PENDING 0x04
1819
#define GFPIC_REG_IRQ_DISABLE_ALL 0x08
1920
#define GFPIC_REG_IRQ_DISABLE 0x0c
2021
#define GFPIC_REG_IRQ_ENABLE 0x10
2122

22-
extern void show_registers(struct pt_regs *regs);
23-
2423
static struct resource picres[6];
2524
static const char *picname[6] = {
2625
"goldfish_pic.0",

0 commit comments

Comments
 (0)