mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] blackfin arch: use boot_command_line instead of save_command_line in setup c file
@ 2007-04-04  6:28 Wu, Bryan
  2007-04-04 15:07 ` Randy Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Wu, Bryan @ 2007-04-04  6:28 UTC (permalink / raw)
  To: Andrew Morton, linux-kernel


Signed-off-by: Bryan Wu <bryan.wu@analog.com>
---
 arch/blackfin/kernel/setup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c
index ce51882..9870c60 100644
--- a/arch/blackfin/kernel/setup.c
+++ b/arch/blackfin/kernel/setup.c
@@ -221,7 +221,7 @@ void __init setup_arch(char **cmdline_p)
 
 	/* Keep a copy of command line */
 	*cmdline_p = &command_line[0];
-	memcpy(saved_command_line, command_line, COMMAND_LINE_SIZE);
+	memcpy(boot_command_line, command_line, COMMAND_LINE_SIZE);
 	saved_command_line[COMMAND_LINE_SIZE - 1] = 0;
 
 	/* setup memory defaults from the user config */
-- 
1.5.0.5


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] blackfin arch: use boot_command_line instead of save_command_line in setup c file
  2007-04-04  6:28 [PATCH] blackfin arch: use boot_command_line instead of save_command_line in setup c file Wu, Bryan
@ 2007-04-04 15:07 ` Randy Dunlap
  2007-04-05  3:21   ` Wu, Bryan
  0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2007-04-04 15:07 UTC (permalink / raw)
  To: bryan.wu; +Cc: Andrew Morton, linux-kernel

On Wed, 04 Apr 2007 14:28:23 +0800 Wu, Bryan wrote:

> 
> Signed-off-by: Bryan Wu <bryan.wu@analog.com>
> ---
>  arch/blackfin/kernel/setup.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c
> index ce51882..9870c60 100644
> --- a/arch/blackfin/kernel/setup.c
> +++ b/arch/blackfin/kernel/setup.c
> @@ -221,7 +221,7 @@ void __init setup_arch(char **cmdline_p)
>  
>  	/* Keep a copy of command line */
>  	*cmdline_p = &command_line[0];
> -	memcpy(saved_command_line, command_line, COMMAND_LINE_SIZE);
> +	memcpy(boot_command_line, command_line, COMMAND_LINE_SIZE);
>  	saved_command_line[COMMAND_LINE_SIZE - 1] = 0;
>  
>  	/* setup memory defaults from the user config */
> -- 

Hi Bryan,

Patch descriptions should include _why_ a change is being made,
not just what the change is.

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] blackfin arch: use boot_command_line instead of save_command_line in setup c file
  2007-04-04 15:07 ` Randy Dunlap
@ 2007-04-05  3:21   ` Wu, Bryan
  2007-04-05  3:53     ` [PATCH] blackfin arch: use boot_command_line instead of saved_command_line " Wu, Bryan
  0 siblings, 1 reply; 4+ messages in thread
From: Wu, Bryan @ 2007-04-05  3:21 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: bryan.wu, Andrew Morton, linux-kernel

On Wed, 2007-04-04 at 08:07 -0700, Randy Dunlap wrote:
> On Wed, 04 Apr 2007 14:28:23 +0800 Wu, Bryan wrote:
> 
> > 
> > Signed-off-by: Bryan Wu <bryan.wu@analog.com>
> > ---
> >  arch/blackfin/kernel/setup.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c
> > index ce51882..9870c60 100644
> > --- a/arch/blackfin/kernel/setup.c
> > +++ b/arch/blackfin/kernel/setup.c
> > @@ -221,7 +221,7 @@ void __init setup_arch(char **cmdline_p)
> >  
> >  	/* Keep a copy of command line */
> >  	*cmdline_p = &command_line[0];
> > -	memcpy(saved_command_line, command_line, COMMAND_LINE_SIZE);
> > +	memcpy(boot_command_line, command_line, COMMAND_LINE_SIZE);
> >  	saved_command_line[COMMAND_LINE_SIZE - 1] = 0;
> >  
> >  	/* setup memory defaults from the user config */
> > -- 
> 
> Hi Bryan,
> 
> Patch descriptions should include _why_ a change is being made,
> not just what the change is.
> 

Thanks Randy. I am just confused by the following comments in -mm tree
init/main.c:
---
/* Untouched command line saved by arch-specific code. */
char __initdata boot_command_line[COMMAND_LINE_SIZE];
/* Untouched saved command line (eg. for /proc) */
char *saved_command_line;
---

And you know, in the 2.6.20.x stable kernel init/main.c:
---
/* Untouched command line (eg. for /proc) saved by arch-specific code. */
char saved_command_line[COMMAND_LINE_SIZE];
---

So the patch is to move saved_command_line to boot_command_line in
blackfin arch code. I will resend a new patch about this, because I
forgot to change :-<
---
-	saved_command_line[COMMAND_LINE_SIZE - 1] = 0;
+	boot_command_line[COMMAND_LINE_SIZE - 1] = 0;
---

Did I misunderstand about this? So some other arch (ARM/AVR32 ...)
should be updated, too. 

> ---
> ~Randy
> *** Remember to use Documentation/SubmitChecklist when testing your code ***

Thanks again Randy.
I will follow the rule.

-Bryan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] blackfin arch: use boot_command_line instead of saved_command_line in setup c file
  2007-04-05  3:21   ` Wu, Bryan
@ 2007-04-05  3:53     ` Wu, Bryan
  0 siblings, 0 replies; 4+ messages in thread
From: Wu, Bryan @ 2007-04-05  3:53 UTC (permalink / raw)
  To: Randy Dunlap, Andrew Morton, linux-kernel

[PATCH] blackfin arch
As boot_command_line is added in init/main.c for arch-specific boot
command line, replace old saved_command_line to boot_command_line for
right boot command passing in -mm tree.

Signed-off-by: Bryan Wu <bryan.wu@analog.com>
---
 arch/blackfin/kernel/setup.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c
index ce51882..7d24229 100644
--- a/arch/blackfin/kernel/setup.c
+++ b/arch/blackfin/kernel/setup.c
@@ -221,8 +221,8 @@ void __init setup_arch(char **cmdline_p)
 
 	/* Keep a copy of command line */
 	*cmdline_p = &command_line[0];
-	memcpy(saved_command_line, command_line, COMMAND_LINE_SIZE);
-	saved_command_line[COMMAND_LINE_SIZE - 1] = 0;
+	memcpy(boot_command_line, command_line, COMMAND_LINE_SIZE);
+	boot_command_line[COMMAND_LINE_SIZE - 1] = 0;
 
 	/* setup memory defaults from the user config */
 	physical_mem_end = 0;
-- 
1.5.0.5


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-04-05  3:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-04  6:28 [PATCH] blackfin arch: use boot_command_line instead of save_command_line in setup c file Wu, Bryan
2007-04-04 15:07 ` Randy Dunlap
2007-04-05  3:21   ` Wu, Bryan
2007-04-05  3:53     ` [PATCH] blackfin arch: use boot_command_line instead of saved_command_line " Wu, Bryan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome