From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Masami Hiramatsu Subject: [RFC PATCH v2 6/6] um: console: Ignore console= option Date: Mon, 8 May 2017 15:22:24 +0900 Message-Id: <149422453401.11101.10134259593903274581.stgit@devbox> In-Reply-To: <149422411127.11101.13017249012576512464.stgit@devbox> References: <149422411127.11101.13017249012576512464.stgit@devbox> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org To: Jeff Dike , Richard Weinberger Cc: Masami Hiramatsu , user-mode-linux-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org List-ID: Ignore linux kernel's console= option at uml's console option handler. Since uml's con= option is only for setting up new console, and Linux kernel's console= option specify to which console kernel output its message, we can use both option for different purpose. Signed-off-by: Masami Hiramatsu --- arch/um/drivers/stdio_console.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/um/drivers/stdio_console.c b/arch/um/drivers/stdio_console.c index 7b361f3..c90817b 100644 --- a/arch/um/drivers/stdio_console.c +++ b/arch/um/drivers/stdio_console.c @@ -192,6 +192,9 @@ __uml_exitcall(console_exit); static int console_chan_setup(char *str) { + if (!strncmp(str, "sole=", 5)) /* console= option specifies tty */ + return 0; + line_setup(vt_conf, MAX_TTYS, &def_conf, str, "console"); return 1; }