From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758318Ab3BSNDl (ORCPT ); Tue, 19 Feb 2013 08:03:41 -0500 Received: from mail-bk0-f45.google.com ([209.85.214.45]:46500 "EHLO mail-bk0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757000Ab3BSNDj (ORCPT ); Tue, 19 Feb 2013 08:03:39 -0500 Date: Tue, 19 Feb 2013 14:03:34 +0100 From: Ingo Molnar To: Thomas Gleixner Cc: LKML , Russell King , Mike Frysinger , Michal Simek , Ralf Baechle , Benjamin Herrenschmidt , Paul Mundt , "David S. Miller" , Chris Metcalf , Richard Weinberger , x86@kernel.org Subject: Re: [patch 1/1] early_printk: Consolidate random copies of identical code Message-ID: <20130219130334.GA11137@gmail.com> References: <20130219124038.365937990@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130219124038.365937990@linutronix.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Thomas Gleixner wrote: > The early console implementations are the same all over the > place. Move the print function to kernel/printk and get rid of the > copies. > > Signed-off-by: Thomas Gleixner > Cc: Russell King > Cc: Mike Frysinger > Cc: Michal Simek > Cc: Ralf Baechle > Cc: Benjamin Herrenschmidt > Cc: Paul Mundt > Cc: "David S. Miller" > Cc: Chris Metcalf > Cc: Richard Weinberger > Cc: x86@kernel.org > > --- > arch/arm/kernel/early_printk.c | 17 +++-------------- > arch/blackfin/kernel/early_printk.c | 2 -- > arch/microblaze/kernel/early_printk.c | 26 ++++---------------------- > arch/mips/kernel/early_printk.c | 11 +++++------ > arch/powerpc/kernel/udbg.c | 6 ++---- > arch/sh/kernel/sh_bios.c | 2 -- > arch/sparc/kernel/setup_32.c | 1 + > arch/sparc/kernel/setup_64.c | 8 +++++++- > arch/tile/kernel/early_printk.c | 27 +++++---------------------- > arch/um/kernel/early_printk.c | 8 +++++--- > arch/unicore32/kernel/early_printk.c | 12 ++++-------- > arch/x86/kernel/early_printk.c | 21 ++------------------- > include/linux/console.h | 1 + > include/linux/printk.h | 6 ++++++ > kernel/printk.c | 30 +++++++++++++++++++++++------- > 15 files changed, 68 insertions(+), 110 deletions(-) Reviewed-by: Ingo Molnar Thanks, Ingo