提交 f066a4f6 编写于 作者: R Rusty Russell 提交者: Linus Torvalds

param: don't complain about unused module parameters.

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=14164Reported-by: NAdam Williamson <awilliam@redhat.com>
Cc: stable@kernel.org
Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 86a7b7ef
...@@ -251,7 +251,7 @@ early_param("loglevel", loglevel); ...@@ -251,7 +251,7 @@ early_param("loglevel", loglevel);
/* /*
* Unknown boot options get handed to init, unless they look like * 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) static int __init unknown_bootoption(char *param, char *val)
{ {
...@@ -272,14 +272,9 @@ static int __init unknown_bootoption(char *param, char *val) ...@@ -272,14 +272,9 @@ static int __init unknown_bootoption(char *param, char *val)
if (obsolete_checksetup(param)) if (obsolete_checksetup(param))
return 0; return 0;
/* /* Unused module parameter. */
* Preemptive maintenance for "why didn't my misspelled command if (strchr(param, '.') && (!val || strchr(param, '.') < val))
* line work?"
*/
if (strchr(param, '.') && (!val || strchr(param, '.') < val)) {
printk(KERN_ERR "Unknown boot option `%s': ignoring\n", param);
return 0; return 0;
}
if (panic_later) if (panic_later)
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册