Re: [PATCH 07/27] Initconst section fixes for POWERPC

From: Josh Boyer
Date: Thu Sep 15 2011 - 16:45:28 EST


On Thu, Sep 15, 2011 at 4:09 PM, Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:
> From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
>

What's the problem again?

> Cc: benh@xxxxxxxxxxxxxxxxxxx
> Signed-off-by: Andi Kleen <ak@xxxxxxxxxxxxxxx>
> ---
>  arch/powerpc/platforms/40x/ppc40x_simple.c    |    2 +-

<snip>

> diff --git a/arch/powerpc/platforms/40x/ppc40x_simple.c b/arch/powerpc/platforms/40x/ppc40x_simple.c
> index e8dd5c5..d6ed100 100644
> --- a/arch/powerpc/platforms/40x/ppc40x_simple.c
> +++ b/arch/powerpc/platforms/40x/ppc40x_simple.c
> @@ -50,7 +50,7 @@ machine_device_initcall(ppc40x_simple, ppc40x_device_probe);
>  * Again, if your board needs to do things differently then create a
>  * board.c file for it rather than adding it to this list.
>  */
> -static const char *board[] __initdata = {
> +static const char * const board[] __initconst = {
>        "amcc,acadia",
>        "amcc,haleakala",
>        "amcc,kilauea",

There's an almost identical section in
arch/powerpc/platforms/44x/ppc44x_simple.c. Does that need whatever
this is fixing as well?

josh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/