From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754663AbcEaOWp (ORCPT ); Tue, 31 May 2016 10:22:45 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:44651 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753275AbcEaOWl (ORCPT ); Tue, 31 May 2016 10:22:41 -0400 Date: Tue, 31 May 2016 15:21:42 +0100 From: Russell King - ARM Linux To: Krzysztof Kozlowski Cc: Greg Kroah-Hartman , Jiri Slaby , Tobias Klauser , Nicolas Ferre , Sonic Zhang , "Maciej W. Rozycki" , Vladimir Zapolskiy , Sylvain Lemieux , Andy Gross , David Brown , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Barry Song , "David S. Miller" , Tony Prisk , Michal Simek , =?iso-8859-1?Q?S=F6ren?= Brinkmann , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, nios2-dev@lists.rocketboards.org, adi-buildroot-devel@lists.sourceforge.net, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org, Bartlomiej Zolnierkiewicz Subject: Re: [RFT PATCH 1/2] serial: Fix console setup section mismatch Message-ID: <20160531142142.GX19428@n2100.arm.linux.org.uk> References: <1464704372-17668-1-git-send-email-k.kozlowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1464704372-17668-1-git-send-email-k.kozlowski@samsung.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 31, 2016 at 04:19:31PM +0200, Krzysztof Kozlowski wrote: > Remove __init annotation from all of console->setup implementations > because: > 1. The pointer to it is stored in a struct console which is not > marked with __initdata. > 2. It is referenced by register_console() from kernel which is not > marked with __init. However, many of these drivers, the console can only be used when the driver is built-in, and register_console() is only called early in initialisation. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.