Skip to contentSkip to conversation

parisc: Fix no previous prototype for 'toc_intr' warning in toc.c

PATCH New Helge Deller 1 participant 1 message Jan 17, 2022 PA-RISC architecture

lore
Share & tools
lore

Helge Deller

author maintainer
#0 lore raw

PATCH 1/1 parisc: Fix no previous prototype for 'toc_intr' warning in toc.c

Fix a missing prototype warning noticed by the kernel test robot.

---
 arch/parisc/include/asm/processor.h | 1 +
 arch/parisc/kernel/toc.c            | 1 +
 2 files changed, 2 insertions(+)
arch/parisc/include/asm/processor.h +1 -0
index b669f4b9040b..8793137deac5 100644
@@ -289,6 +289,7 @@ extern int _parisc_requires_coherency;
 
 extern int running_on_qemu;
 
+extern void toc_intr(struct pt_regs *regs);
 extern void toc_handler(void);
 extern unsigned int toc_handler_size;
 extern unsigned int toc_handler_csum;
arch/parisc/kernel/toc.c +1 -0
index fa5a10eaf0aa..e4b48d07afbd 100644
@@ -10,6 +10,7 @@
 #include <asm/pdc.h>
 #include <asm/pdc_chassis.h>
 #include <asm/ldcw.h>
+#include <asm/processor.h>
 
 static unsigned int __aligned(16) toc_lock = 1;
 DEFINE_PER_CPU_PAGE_ALIGNED(char [16384], toc_stack) __visible;

--
2.31.1