Message ID | 1395766541-23979-19-git-send-email-julien.grall@linaro.org |
---|---|
State | Deferred, archived |
Headers | show |
On Tue, 2014-03-25 at 16:55 +0000, Julien Grall wrote: > Fix compilation with clang 3.5: > omap5.c:147:19: error: duplicate 'const' declaration specifier [-Werror,-Wduplicate-decl-specifier] > static const char const *omap5_dt_compat[] __initconst = > ^ > > Signed-off-by: Julien Grall <julien.grall@linaro.org> Acked-by: Ian Campbell <ian.campbell@citrix.com>
diff --git a/xen/arch/arm/platforms/omap5.c b/xen/arch/arm/platforms/omap5.c index 76d4d9b..98267cf 100644 --- a/xen/arch/arm/platforms/omap5.c +++ b/xen/arch/arm/platforms/omap5.c @@ -144,7 +144,7 @@ static int __init omap5_smp_init(void) return 0; } -static const char const *omap5_dt_compat[] __initconst = +static const char * const omap5_dt_compat[] __initconst = { "ti,omap5", NULL
Fix compilation with clang 3.5: omap5.c:147:19: error: duplicate 'const' declaration specifier [-Werror,-Wduplicate-decl-specifier] static const char const *omap5_dt_compat[] __initconst = ^ Signed-off-by: Julien Grall <julien.grall@linaro.org> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Stefano Stabellini <stefano.stabellini@citrix.com> Cc: Tim Deegan <tim@xen.org> --- xen/arch/arm/platforms/omap5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)