All of lore.kernel.org
 help / color / mirror / Atom feed
From: shawn.guo@freescale.com (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: imx53: mark imx53_dt_board_compat as const
Date: Tue, 1 Jul 2014 16:07:47 +0800	[thread overview]
Message-ID: <20140701080745.GG14471@dragon> (raw)
In-Reply-To: <1404121068-12275-1-git-send-email-l.stach@pengutronix.de>

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
> 

      reply	other threads:[~2014-07-01  8:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-30  9:37 [PATCH] ARM: imx53: mark imx53_dt_board_compat as const Lucas Stach
2014-07-01  8:07 ` Shawn Guo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140701080745.GG14471@dragon \
    --to=shawn.guo@freescale.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.