vgic-v3: tame the undeclared struct warning
In file included from arch/arm64/kvm/hyp/vgic-v3-sr.c:19:0:
include/linux/irqchip/arm-gic-v3.h:390:14: warning: ‘struct device_node’
declared inside parameter list
struct irq_domain *domain);
^
include/linux/irqchip/arm-gic-v3.h:390:14: warning: its scope is only this
definition or declaration, which is probably not what you want
Above warning is due to gcc has no idea of 'struct device_node' before first
meet it in 'its_init(struct device_node *node, struct rdists *rdists ...)'
It is no harm here since this function just use it as an pointer. But to tame
the extra warning, introduce of.h for device_node defination before its_init.
Signed-off-by: Alex Shi <alex.shi@linaro.org>
diff --git a/arch/arm64/kvm/hyp/vgic-v3-sr.c b/arch/arm64/kvm/hyp/vgic-v3-sr.c
index a769458..a8f5fd4 100644
--- a/arch/arm64/kvm/hyp/vgic-v3-sr.c
+++ b/arch/arm64/kvm/hyp/vgic-v3-sr.c
@@ -16,6 +16,7 @@
*/
#include <linux/compiler.h>
+#include <linux/of.h>
#include <linux/irqchip/arm-gic-v3.h>
#include <linux/kvm_host.h>