Received: by 10.223.164.202 with SMTP id h10csp406978wrb; Thu, 30 Nov 2017 01:05:43 -0800 (PST) X-Google-Smtp-Source: AGs4zMbb7QD1qieM+3LamXlcS/CsfnqFqfWa911eguzSUyn+s/getDfij+tw5cuSL+4sT0IEgEqF X-Received: by 10.98.160.193 with SMTP id p62mr5993257pfl.138.1512032743845; Thu, 30 Nov 2017 01:05:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512032743; cv=none; d=google.com; s=arc-20160816; b=Xez9ivqYEmdMHTKxktiBp3oqrnZgSahA5V4ZrJRd5eGtBl5MwjiJJ/B3vcWzbiTu3m 2atE8uiXOoWDNAx0DQF5aZKESpHQB9+jomkJNbp9WZs+TCs932LICcvctsuo+QLvvGZ6 CLg1i2V5VnIUY+1+W5VB7QiBOeG2uSEF4UlPV7XugOWZbBZG6b87mD/XjjgXLeF6Amf7 bXjIa/pSaCIE+Q1D3pfJPuVkBn3iNXooVHgz2MfHlLFALkM6gRDpuqXGoqryu5w20Pea MZ7sM4Z4rSrvrN1nJQ0BwzajlBmYh4IdYx748PZWQdYzV4h1Ot/B0u/YWhC3AtoMgnqh Pt9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=GwbVvP7OY+7feCfhsZ0g3QGpAcFtlRX4Wwj1/QCslTI=; b=Bd/r7VmOCg0N5n+CAMVCpko+pW9lbyxQuUceb0IsAzNESSc2DFncQ5iyzi5s+UOG3P ZFX6iB7TRpJh3G4WWcbCrNj4bXwv0jd6QKhKqyagUQHA5H0sG8lqSvxhlVN1kWO6rrgn eWxFS4SyS0oqWlN2P150Kw5qRAWr4fgE3BrRg4jiYnXs3+n7lKkUDawqqxop2I7QN+nd M23DNMdfnx0+7Rzg+ZtMzbL2H6yMUmXYXI9CR0GMhPcbH4vfpWTM470IJbJUqCtGAfbF 6Vkk6gpX6qkhr3G4540e+6EaXft3i4ffvGJfQEu/xb3ZoADnowHLlPHPjXymOKoOWkvW 0A5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si2771751plr.503.2017.11.30.01.05.29; Thu, 30 Nov 2017 01:05:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751560AbdK3JFN convert rfc822-to-8bit (ORCPT + 99 others); Thu, 30 Nov 2017 04:05:13 -0500 Received: from 9pmail.ess.barracuda.com ([64.235.154.211]:56042 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751157AbdK3JFJ (ORCPT ); Thu, 30 Nov 2017 04:05:09 -0500 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx1411.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Thu, 30 Nov 2017 09:04:58 +0000 Received: from MIPSMAIL01.mipstec.com ([fe80::5c93:1f20:524d:a563]) by MIPSMAIL01.mipstec.com ([fe80::5c93:1f20:524d:a563%13]) with mapi id 14.03.0361.001; Thu, 30 Nov 2017 01:04:59 -0800 From: Miodrag Dinic To: Sebastian Andrzej Siewior , "linux-kernel@vger.kernel.org" CC: Aleksandar Markovic , Goran Ferenc , Greg Kroah-Hartman , Jiri Slaby Subject: RE: [PATCH] tty: goldfish: Enable 'earlycon' only if built-in Thread-Topic: [PATCH] tty: goldfish: Enable 'earlycon' only if built-in Thread-Index: AQHTabONXj4G/FwOTka+nFJ78u2sa6MsnqvK Date: Thu, 30 Nov 2017 09:04:57 +0000 Message-ID: <48924BBB91ABDE4D9335632A6B179DD6A8CFCA@MIPSMAIL01.mipstec.com> References: <20171130081631.3936-1-bigeasy@linutronix.de>,<77d692b755354ac0a24c12486d85737d@BADAG02.ba.imgtec.org> In-Reply-To: <77d692b755354ac0a24c12486d85737d@BADAG02.ba.imgtec.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.117.201.26] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-BESS-ID: 1512032698-452059-522-144043-1 X-BESS-VER: 2017.14.1-r1710272128 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.187456 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thank you Sebastian, Reviewed-by: Miodrag Dinic Acked-by: Miodrag Dinic Kind regards, Miodrag ________________________________________ From: Sebastian Andrzej Siewior Sent: Thursday, November 30, 2017 9:16:31 AM (UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman; Jiri Slaby; Miodrag Dinic; Goran Ferenc; Aleksandar Markovic; Sebastian Andrzej Siewior Subject: [PATCH] tty: goldfish: Enable 'earlycon' only if built-in Commit 3840ed9548f7 ("tty: goldfish: Implement support for kernel 'earlycon' parameter") breaks an allmodconfig config on x86: | LD vmlinux.o | MODPOST vmlinux.o |drivers/tty/serial/earlycon.o: In function `parse_options': |drivers/tty/serial/earlycon.c:97: undefined reference to `uart_parse_earlycon' |Makefile:1005: recipe for target 'vmlinux' failed earlycon.c::parse_options() invokes uart_parse_earlycon() from serial_core.c which is compiled=m because GOLDFISH_TTY itself (and most others) are =m. To avoid that, I'm adding the _CONSOLE config option which is selected if the GOLDFISH module itself is =y since it doesn't need the early bits for the =m case (other drivers do the same dance). The alternative would be to move uart_parse_earlycon() from serial_core.c to earlycon.c (we don't have that many users of that function). Fixes: 3840ed9548f7 ("tty: goldfish: Implement support for kernel 'earlycon' parameter") Signed-off-by: Sebastian Andrzej Siewior --- drivers/tty/Kconfig | 6 +++++- drivers/tty/goldfish.c | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/tty/Kconfig b/drivers/tty/Kconfig index cc2b4d9433ed..b811442c5ce6 100644 --- a/drivers/tty/Kconfig +++ b/drivers/tty/Kconfig @@ -394,10 +394,14 @@ config GOLDFISH_TTY depends on GOLDFISH select SERIAL_CORE select SERIAL_CORE_CONSOLE - select SERIAL_EARLYCON help Console and system TTY driver for the Goldfish virtual platform. +config GOLDFISH_TTY_EARLY_CONSOLE + bool + default y if GOLDFISH_TTY=y + select SERIAL_EARLYCON + config DA_TTY bool "DA TTY" depends on METAG_DA diff --git a/drivers/tty/goldfish.c b/drivers/tty/goldfish.c index 381e981dee06..85a500ddbcaa 100644 --- a/drivers/tty/goldfish.c +++ b/drivers/tty/goldfish.c @@ -442,6 +442,7 @@ static int goldfish_tty_remove(struct platform_device *pdev) return 0; } +#ifdef CONFIG_GOLDFISH_TTY_EARLY_CONSOLE static void gf_early_console_putchar(struct uart_port *port, int ch) { __raw_writel(ch, port->membase); @@ -465,6 +466,7 @@ static int __init gf_earlycon_setup(struct earlycon_device *device, } OF_EARLYCON_DECLARE(early_gf_tty, "google,goldfish-tty", gf_earlycon_setup); +#endif static const struct of_device_id goldfish_tty_of_match[] = { { .compatible = "google,goldfish-tty", }, -- 2.15.0 From 1585478200934851369@xxx Thu Nov 30 08:17:19 +0000 2017 X-GM-THRID: 1585478200934851369 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread