[PATCH 1/2] [POWERPC] Remove cmd_line from head*.S

Kumar Gala galak at kernel.crashing.org
Thu Aug 23 13:27:31 EST 2007


On Aug 22, 2007, at 10:09 PM, Stephen Rothwell wrote:

> It is just a C char array, so declare it thusly.
>
> Signed-off-by: Stephen Rothwell <sfr at canb.auug.org.au>
> ---
>  arch/powerpc/kernel/head_32.S        |    8 --------
>  arch/powerpc/kernel/head_44x.S       |    8 --------
>  arch/powerpc/kernel/head_4xx.S       |    7 -------
>  arch/powerpc/kernel/head_64.S        |    8 --------
>  arch/powerpc/kernel/head_8xx.S       |    8 --------
>  arch/powerpc/kernel/head_fsl_booke.S |    8 --------
>  arch/powerpc/kernel/prom.c           |    2 ++
>  7 files changed, 2 insertions(+), 47 deletions(-)
>
> -- 
> Cheers,
> Stephen Rothwell                    sfr at canb.auug.org.au

[snip]

> diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
> index 0028fe6..dc85005 100644
> --- a/arch/powerpc/kernel/prom.c
> +++ b/arch/powerpc/kernel/prom.c
> @@ -60,6 +60,8 @@
>  #endif
>
>
> +char cmd_line[COMMAND_LINE_SIZE];
> +

would this be better in setup-common.c?

>  static int __initdata dt_root_addr_cells;
>  static int __initdata dt_root_size_cells;
>

- k




More information about the Linuxppc-dev mailing list