Skip to content

Commit c29d387

Browse files
Nicolas Pitrehorms
Nicolas Pitre
authored andcommitted
ARM: shmobile: r8a7793: proper constness with __initconst
Both the pointer array and the pointed data have to be const when using __initconst to be correct. This also fixes LTO builds that otherwise fail with section mismatch errors. Fixes: ec60d95 ("ARM: shmobile: Basic r8a7793 SoC support") Signed-off-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
1 parent 8005c49 commit c29d387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/mach-shmobile/setup-r8a7793.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "common.h"
2020
#include "rcar-gen2.h"
2121

22-
static const char *r8a7793_boards_compat_dt[] __initconst = {
22+
static const char * const r8a7793_boards_compat_dt[] __initconst = {
2323
"renesas,r8a7793",
2424
NULL,
2525
};

0 commit comments

Comments
 (0)