[PATCH] ARM: imx53: mark imx53_dt_board_compat as const
Shawn Guo
shawn.guo at freescale.com
Tue Jul 1 01:07:47 PDT 2014
On Mon, Jun 30, 2014 at 11:37:48AM +0200, Lucas Stach wrote:
> 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 <l.stach at pengutronix.de>
The same change needs to be applied on some other IMX platforms, so I
just send a new patch based on this.
Shawn
> ---
> arch/arm/mach-imx/mach-imx53.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-imx/mach-imx53.c b/arch/arm/mach-imx/mach-imx53.c
> index d757d8cbebd1..c3a404ce39e6 100644
> --- a/arch/arm/mach-imx/mach-imx53.c
> +++ b/arch/arm/mach-imx/mach-imx53.c
> @@ -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
> };
> --
> 2.0.0
>
More information about the linux-arm-kernel
mailing list