Fix the following warnings by add the proper header.
kernel/irq/proc.c:334:13: warning:
no previous prototype for function 'register_irqchip_proc' [-Wmissing-prototypes]
334 | void __weak register_irqchip_proc(struct irq_desc *desc, void *irqp) { }
| ^
kernel/irq/proc.c:334:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
334 | void __weak register_irqchip_proc(struct irq_desc *desc, void *irqp) { }
| ^
| static
kernel/irq/proc.c:335:13: warning:
no previous prototype for function 'unregister_irqchip_proc' [-Wmissing-prototypes]
335 | void __weak unregister_irqchip_proc(struct irq_desc *desc) { }
| ^
kernel/irq/proc.c:335:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
335 | void __weak unregister_irqchip_proc(struct irq_desc *desc) { }
| ^
| static
2 warnings generated.
Fixes: 3053668e6b21 ("arm64: Introduce Xint software solution")
Signed-off-by: Jinjie Ruan <ruanjinjie(a)huawei.com>
---
kernel/irq/proc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c
index 0fdfde11ab81..2bb1769cf432 100644
--- a/kernel/irq/proc.c
+++ b/kernel/irq/proc.c
@@ -13,6 +13,10 @@
#include <linux/kernel_stat.h>
#include <linux/mutex.h>
+#ifdef CONFIG_FAST_IRQ
+#include <linux/irqchip/arm-gic-v3.h>
+#endif
+
#include "internals.h"
/*
--
2.34.1