Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755226AbbDKPA5 (ORCPT ); Sat, 11 Apr 2015 11:00:57 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:56186 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752661AbbDKPAz (ORCPT ); Sat, 11 Apr 2015 11:00:55 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Peter Hurley , Greg Kroah-Hartman , Alim Akhtar , tfiga@google.com, linux-kernel@vger.kernel.org, Chanwoo Choi , linux-serial@vger.kernel.org, Jiri Slaby , Marek Szyprowski Subject: Re: [PATCH] serial: earlycon requires console support Date: Sat, 11 Apr 2015 17:00:20 +0200 Message-ID: <19182495.QL5edbqjaN@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <5529241F.2040308@hurleysoftware.com> References: <5009638.HyplLv73fU@wuerfel> <5529241F.2040308@hurleysoftware.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:UDbzxi7pKVPoZFVx5ZA8n5dcMFO2Osr6xa4z+E5N676aYLIGElp pNc2/saDVIrgRDfhm5LWvqfEGyX9fZ1r0Y29/VcnLslUe2Gp6gRVYO14+iwMbYCVnm6oeeK LST9HQsQpV+z30shhEfZYpJM3WAdKTc1DEhlh2xYMc42aBka069FyYYeDlwh3PXEH12cfec uaXunqiz2LjL3J3NgDKcA== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1335 Lines: 35 On Saturday 11 April 2015 09:39:43 Peter Hurley wrote: > Hi Arnd, > > On 04/10/2015 06:01 PM, Arnd Bergmann wrote: > > A configuration that enables earlycon but not the core console > > code causes a link error: > > > > drivers/built-in.o: In function `setup_earlycon': > > drivers/tty/serial/earlycon.c:70: undefined reference to `uart_parse_earlycon' > > > > That error can be triggered by the newly added samsung earlycon support, > > which is missing a 'select' statement. This patch adds the 'select' > > to make serial-samsung behave like the other drivers. > > Since Kconfig has a separate option for enabling console on Samsung, > I'd rather move uart_parse_earlycon() and enclose it in > > #if defined(CONFIG_SERIAL_CORE_CONSOLE) || defined(CONFIG_SERIAL_EARLYCON) > ... > #endif > > I'll send a fix for that right now. > Hmm, maybe the 'select SERIAL_EARLYCON' should just be under SERIAL_SAMSUNG_CONSOLE then? Upon looking closer at the other drivers, that seems to be the common model, and I don't know what it means to have EARLYCON but no CORE_CONSOLE enabled. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/