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

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

+4 -4
+1
arch/m68k/include/asm/processor.h
··· 151 151 } 152 152 153 153 unsigned long __get_wchan(struct task_struct *p); 154 + void show_registers(struct pt_regs *regs); 154 155 155 156 #define KSTK_EIP(tsk) \ 156 157 ({ \
+1
arch/m68k/kernel/traps.c
··· 36 36 #include <linux/uaccess.h> 37 37 #include <asm/traps.h> 38 38 #include <asm/machdep.h> 39 + #include <asm/processor.h> 39 40 #include <asm/siginfo.h> 40 41 #include <asm/tlbflush.h> 41 42
+1 -2
arch/m68k/mac/macints.c
··· 126 126 #include <asm/mac_baboon.h> 127 127 #include <asm/hwtest.h> 128 128 #include <asm/irq_regs.h> 129 - 130 - extern void show_registers(struct pt_regs *); 129 + #include <asm/processor.h> 131 130 132 131 static unsigned int mac_irq_startup(struct irq_data *); 133 132 static void mac_irq_shutdown(struct irq_data *);
+1 -2
arch/m68k/virt/ints.c
··· 12 12 #include <asm/hwtest.h> 13 13 #include <asm/irq.h> 14 14 #include <asm/irq_regs.h> 15 + #include <asm/processor.h> 15 16 #include <asm/virt.h> 16 17 17 18 #define GFPIC_REG_IRQ_PENDING 0x04 18 19 #define GFPIC_REG_IRQ_DISABLE_ALL 0x08 19 20 #define GFPIC_REG_IRQ_DISABLE 0x0c 20 21 #define GFPIC_REG_IRQ_ENABLE 0x10 21 - 22 - extern void show_registers(struct pt_regs *regs); 23 22 24 23 static struct resource picres[6]; 25 24 static const char *picname[6] = {