From: "Wu, Bryan" <bryan.wu@analog.com>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: bryan.wu@analog.com, Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] blackfin arch: use boot_command_line instead of save_command_line in setup c file
Date: Thu, 05 Apr 2007 11:21:11 +0800 [thread overview]
Message-ID: <1175743271.17315.10.camel@roc-desktop> (raw)
In-Reply-To: <20070404080752.4c2375b2.randy.dunlap@oracle.com>
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
next prev parent reply other threads:[~2007-04-05 3:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-04 6:28 Wu, Bryan
2007-04-04 15:07 ` Randy Dunlap
2007-04-05 3:21 ` Wu, Bryan [this message]
2007-04-05 3:53 ` [PATCH] blackfin arch: use boot_command_line instead of saved_command_line " Wu, Bryan
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=1175743271.17315.10.camel@roc-desktop \
--to=bryan.wu@analog.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome