diff options
author | Alex Shi <alex.shi@linaro.org> | 2016-05-31 17:07:32 +0800 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2016-05-31 17:20:12 +0800 |
commit | fa0d862f428fdfded946bd09d45e78865f6efc45 (patch) | |
tree | 8ea2c4f650cd28eaee086a304356e7ecf0981b82 | |
parent | 2d911817d313a38f6f4b2fc0a8e6a9d20aa2b892 (diff) |
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.c | 1 |
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> |