aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Shi <alex.shi@linaro.org>2016-05-31 17:07:32 +0800
committerAlex Shi <alex.shi@linaro.org>2016-05-31 17:20:12 +0800
commitfa0d862f428fdfded946bd09d45e78865f6efc45 (patch)
tree8ea2c4f650cd28eaee086a304356e7ecf0981b82
parent2d911817d313a38f6f4b2fc0a8e6a9d20aa2b892 (diff)
downloadlinux-linaro-stable-v4.1/topic/hibernate.tar.gz
vgic-v3: tame the undeclared struct warningv4.1/topic/hibernate
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>
-rw-r--r--arch/arm64/kvm/hyp/vgic-v3-sr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kvm/hyp/vgic-v3-sr.c b/arch/arm64/kvm/hyp/vgic-v3-sr.c
index a76945874d5d..a8f5fd45ad8e 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>