[PATCH 6/6] powerpc: Add function prototypes for exception handlers

Sascha Hauer s.hauer at pengutronix.de
Tue Sep 15 03:03:05 EDT 2020


The exception handlers lead to -Wmissing-prototypes warnings. Add
prototypes for them to avoid these warnings.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/powerpc/include/asm/processor.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h
index 39a89a9d15..f4677d11e1 100644
--- a/arch/powerpc/include/asm/processor.h
+++ b/arch/powerpc/include/asm/processor.h
@@ -1109,6 +1109,14 @@ void ll_puts(const char *);
 /* In misc.c */
 void _nmask_and_or_msr(unsigned long nmask, unsigned long or_val);
 
+void CritcalInputException(struct pt_regs *regs);
+void MachineCheckException(struct pt_regs *regs);
+void AlignmentException(struct pt_regs *regs);
+void ProgramCheckException(struct pt_regs *regs);
+void PITException(struct pt_regs *regs);
+void UnknownException(struct pt_regs *regs);
+void DebugException(struct pt_regs *regs);
+
 #endif /* ndef ASSEMBLY*/
 
 #ifdef CONFIG_MACH_SPECIFIC
-- 
2.28.0




More information about the barebox mailing list