diff mbox

ARM: imx53: mark imx53_dt_board_compat as const

Message ID 1404121068-12275-1-git-send-email-l.stach@pengutronix.de (mailing list archive)
State New, archived
Headers show

Commit Message

Lucas Stach June 30, 2014, 9:37 a.m. UTC
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@pengutronix.de>
---
 arch/arm/mach-imx/mach-imx53.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Shawn Guo July 1, 2014, 8:07 a.m. UTC | #1
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@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
>
diff mbox

Patch

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
 };