ARM: imx53: mark imx53_dt_board_compat as const
Subsystems (3)
PATCH 1/1 ARM: imx53: mark imx53_dt_board_compat as const
Otherwise GCC will mark the .init.rodata section R/W, which causes a compile error once we add other real R/O data, which happens with patch "ARM: imx53: globally disable supervisor protect".
Signed-off-by Lucas Stach <[email protected]>
--- arch/arm/mach-imx/mach-imx53.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/mach-imx53.c +1 -1
@@ -45,7 +45,7 @@ static void __init imx53_dt_init(void) } } -static const char *imx53_dt_board_compat[]__initconst = { +static const char *const imx53_dt_board_compat[]__initconst = {"fsl,imx53" ,NULL };
Signature · 1 line
2.0.0
PATCH 1/1 ARM: imx53: mark imx53_dt_board_compat as const
Quoted 6 lines · Lucas Stach
Otherwise GCC will mark the .init.rodata section R/W, which causes a compile error once we add other real R/O data, which happens with patch "ARM: imx53: globally disable supervisor protect".
Signed-off-by Lucas Stach <[email protected]>
The same change needs to be applied on some other IMX platforms, so I just send a new patch based on this.
Shawn
Quoted 20 lines
--- arch/arm/mach-imx/mach-imx53.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-imx/mach-imx53.c +1
-1@@ -45,7 +45,7 @@ static void __init imx53_dt_init(void) } } -static const char *imx53_dt_board_compat[]__initconst = { +static const char *const imx53_dt_board_compat[]__initconst = {"fsl,imx53" ,NULL };Signature · 1 line
2.0.0