* [PATCH] param: don't complain about unused module parameters.
@ 2009-12-01 4:26 Rusty Russell
2009-12-01 7:11 ` Jon Masters
2009-12-01 7:42 ` Adam Williamson
0 siblings, 2 replies; 3+ messages in thread
From: Rusty Russell @ 2009-12-01 4:26 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Adam Williamson, linux-kernel, Jon Masters
Jon confirms that recent modprobe will look in /proc/cmdline, so these
cmdline options can still be used.
See http://bugzilla.kernel.org/show_bug.cgi?id=14164
Reported-by: Adam Williamson <awilliam@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
init/main.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/init/main.c b/init/main.c
--- a/init/main.c
+++ b/init/main.c
@@ -251,7 +251,7 @@ early_param("loglevel", loglevel);
/*
* Unknown boot options get handed to init, unless they look like
- * failed parameters
+ * unused parameters (modprobe will find them in /proc/cmdline).
*/
static int __init unknown_bootoption(char *param, char *val)
{
@@ -272,14 +272,9 @@ static int __init unknown_bootoption(cha
if (obsolete_checksetup(param))
return 0;
- /*
- * Preemptive maintenance for "why didn't my misspelled command
- * line work?"
- */
- if (strchr(param, '.') && (!val || strchr(param, '.') < val)) {
- printk(KERN_ERR "Unknown boot option `%s': ignoring\n", param);
+ /* Unused module parameter. */
+ if (strchr(param, '.') && (!val || strchr(param, '.') < val))
return 0;
- }
if (panic_later)
return 0;
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] param: don't complain about unused module parameters.
2009-12-01 4:26 [PATCH] param: don't complain about unused module parameters Rusty Russell
@ 2009-12-01 7:11 ` Jon Masters
2009-12-01 7:42 ` Adam Williamson
1 sibling, 0 replies; 3+ messages in thread
From: Jon Masters @ 2009-12-01 7:11 UTC (permalink / raw)
To: Rusty Russell; +Cc: Linus Torvalds, Adam Williamson, linux-kernel
On Tue, 2009-12-01 at 14:56 +1030, Rusty Russell wrote:
> Jon confirms that recent modprobe will look in /proc/cmdline, so these
> cmdline options can still be used.
Yup. Thanks for that.
Jon.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] param: don't complain about unused module parameters.
2009-12-01 4:26 [PATCH] param: don't complain about unused module parameters Rusty Russell
2009-12-01 7:11 ` Jon Masters
@ 2009-12-01 7:42 ` Adam Williamson
1 sibling, 0 replies; 3+ messages in thread
From: Adam Williamson @ 2009-12-01 7:42 UTC (permalink / raw)
To: Rusty Russell; +Cc: Linus Torvalds, linux-kernel, Jon Masters
On Tue, 2009-12-01 at 14:56 +1030, Rusty Russell wrote:
> Jon confirms that recent modprobe will look in /proc/cmdline, so these
> cmdline options can still be used.
>
> See http://bugzilla.kernel.org/show_bug.cgi?id=14164
Thanks for the fix, Rusty. This'll save a lot of confusion :)
--
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Fedora Talk: adamwill AT fedoraproject DOT org
http://www.happyassassin.net
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-01 7:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-01 4:26 [PATCH] param: don't complain about unused module parameters Rusty Russell
2009-12-01 7:11 ` Jon Masters
2009-12-01 7:42 ` Adam Williamson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox