Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751972AbaL1Sga (ORCPT ); Sun, 28 Dec 2014 13:36:30 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:41891 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751767AbaL1Sg2 (ORCPT ); Sun, 28 Dec 2014 13:36:28 -0500 Date: Sun, 28 Dec 2014 19:36:25 +0100 From: Pavel Machek To: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= Cc: Joe Perches , Thomas Gleixner , linux-arch , LKML , Geert Uytterhoeven , linux-m68k , Steven Miao , Ralf Baechle , linux-mips Subject: Re: rfc: remove early_printk from a few arches? (blackfin, m68k, mips) Message-ID: <20141228183625.GE3922@amd> References: <1418849927.28384.1.camel@perches.com> <1418951658.28384.20.camel@perches.com> <1418954914.25129.1.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Fri 2014-12-19 10:33:42, M?ns Rullg?rd wrote: > Joe Perches writes: > > > On Fri, 2014-12-19 at 01:43 +0000, M?ns Rullg?rd wrote: > >> What exactly are you proposing to remove? > > > > Optionally compile out > > kernel/printk/printk.c:early_printk() > > even if CONFIG_EARLY_PRINTK is enabled. > > > >> I see no unused code related > >> to early printk (in any variant) under arch/mips. > > > > I think there could be yet another CONFIG option > > to specifically enable the early_printk function > > for the arches that use it. > > Why bother? On MIPS it would save 132 bytes of compiled code. > > > The kernel/printk/early_printk() function seems > > used only by arm/microblaze/tile/x86. > > Rather than introduce more config complexity, you could try to remove > the 7 remaining uses of early_printk(). > > - arch/arm/mach-socfpga > Single early_printk("Early printk initialized\n") call serving no > apparent purpose can probably be safely deleted. Since there are no > other early_printk() calls, this information seems rather useless. Feel free to do that, but please keep early_printk() available... ...so that I can debug the socfpga early boot when needed. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/