diff options
author | Julien Grall <julien.grall@linaro.org> | 2013-05-16 23:34:11 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-05-23 11:35:04 +0100 |
commit | 0bb8977dca01321b5ea6f86bf62431783a49a955 (patch) | |
tree | fea2d18f31c03b26fab9c21275c62ec8bddff763 | |
parent | 9204bc654562976c7cdebf21c6b5013f6e3057b3 (diff) | |
download | xen-0bb8977dca01321b5ea6f86bf62431783a49a955.tar.gz xen-0bb8977dca01321b5ea6f86bf62431783a49a955.tar.bz2 xen-0bb8977dca01321b5ea6f86bf62431783a49a955.zip |
xen/arm: Remove leading +1 when hypervisor compat property is created
When a static array with string is created, the size of this array contains
the \0.
This error was raised with gcc 4.7 because, the local variables are not always
initialized to 0.
Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
-rw-r--r-- | xen/arch/arm/domain_build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index 83690994a9..b92c64bcd0 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -279,7 +279,7 @@ static void make_hypervisor_node(void *fdt, int addrcells, int sizecells) fdt_begin_node(fdt, "hypervisor"); /* Cannot use fdt_property_string due to embedded nulls */ - fdt_property(fdt, "compatible", compat, sizeof(compat) + 1); + fdt_property(fdt, "compatible", compat, sizeof(compat)); /* reg 0 is grant table space */ cell = ®[0]; |