From: Ingo Molnar <mingo@elte.hu>
To: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Rene Herman <rene.herman@keyaccess.nl>,
Andrew Morton <akpm@osdl.org>, Yinghai Lu <yhlu.kernel@gmail.com>,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86: kill arch/x86/kernel/mpparse.c debugging printk.
Date: Mon, 11 Aug 2008 20:49:03 +0200 [thread overview]
Message-ID: <20080811184903.GB12788@elte.hu> (raw)
In-Reply-To: <20080811184257.GB18969@lenovo>
* Cyrill Gorcunov <gorcunov@gmail.com> wrote:
> | early_param conversions - and i think highlighting that as
> | separate commits might give someone ideas to improve the
> | early_param() facility, if they see the fix patterns.
>
> Ingo - I think the problem with early_param is not NULL itself but
> rather - what is the right way to deal with boot params? I mean we
> could pass empty string (not NULL) in case of argument absence _but_
> would it be the right way? If you remember when I sent first series
> for early_param checking (and actually there are number of same issue
> exists for example in s390 arch) - I was asking community what is the
> best way - since I'm not that strong in interface engineering - i
> prefer fix the bugs :)
what would be the downside of passing in empty strings? I cannot see any
serious one. The upside is that the conversion is more mechanic and
safer as well.
Maybe the return code inversion could be / should be fixed as well, that
seems like an unnecessary change as well:
- return 1;
+ return 0;
}
-__setup("apic=", apic_set_verbosity);
+early_param("apic", apic_set_verbosity);
Why do early-params have a different return convention from
usual-params? It's just an unnecessary barrier against conversion to
early params.
Ingo
next prev parent reply other threads:[~2008-08-11 18:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-08 16:43 Rene Herman
2008-08-11 12:20 ` Ingo Molnar
2008-08-11 15:44 ` Rene Herman
2008-08-11 15:45 ` Rene Herman
2008-08-11 16:45 ` Cyrill Gorcunov
2008-08-11 17:20 ` Rene Herman
2008-08-11 17:41 ` Ingo Molnar
2008-08-11 18:06 ` Rene Herman
2008-08-11 18:33 ` Ingo Molnar
2008-08-11 18:42 ` Cyrill Gorcunov
2008-08-11 18:46 ` Cyrill Gorcunov
2008-08-11 18:49 ` Ingo Molnar [this message]
2008-08-11 19:01 ` Cyrill Gorcunov
2008-08-11 18:54 ` Rene Herman
2008-08-11 16:38 ` Ingo Molnar
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=20080811184903.GB12788@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@osdl.org \
--cc=gorcunov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rene.herman@keyaccess.nl \
--cc=yhlu.kernel@gmail.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
all inboxes | Powered by JetHome®