Commit f928f8e1 authored by Jinjie Ruan's avatar Jinjie Ruan
Browse files

genirq/proc: Fix warning of no previous prototype for register_irqchip_proc()

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/release-management/issues/IB6JLE



--------------------------------

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: 3053668e ("arm64: Introduce Xint software solution")
Signed-off-by: default avatarJinjie Ruan <ruanjinjie@huawei.com>
parent 95bc6947
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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"

/*