]> git.baikalelectronics.ru Git - kernel.git/commit
init: Suppress wrong warning for bootconfig cmdline parameter
authorMasami Hiramatsu <mhiramat@kernel.org>
Thu, 5 Aug 2021 02:10:51 +0000 (11:10 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 12 Aug 2021 17:35:57 +0000 (13:35 -0400)
commitf853fae0ccfa8d0769a371d55240c0c4f63b60f0
tree3786b8b5cad432a58493e19105317ae4929bfcea
parent95441239057964b63f3b5eab61f990273618607e
init: Suppress wrong warning for bootconfig cmdline parameter

Since the 'bootconfig' command line parameter is handled before
parsing the command line, it doesn't use early_param(). But in
this case, kernel shows a wrong warning message about it.

[    0.013714] Kernel command line: ro console=ttyS0  bootconfig console=tty0
[    0.013741] Unknown command line parameters: bootconfig

To suppress this message, add a dummy handler for 'bootconfig'.

Link: https://lkml.kernel.org/r/162812945097.77369.1849780946468010448.stgit@devnote2
Fixes: a3957777decc ("init: print out unknown kernel parameters")
Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
init/main.c