Re: [patch 1/1] early_printk: Consolidate random copies of identical code

From: Paul Gortmaker
Date: Tue Feb 19 2013 - 18:20:54 EST


On Tue, Feb 19, 2013 at 7:44 AM, Thomas Gleixner <tglx@xxxxxxxxxxxxx> 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.

Applied to 3.8, no new compile warnings for ppc32, boot tested with
CONFIG_EARLY_PRINTK=y and 8250 console on sbc8548 (ppc32).

Tested-by: Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx>

Paul.
--

>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Cc: Russell King <linux@xxxxxxxxxxxxxxxx>
> Cc: Mike Frysinger <vapier@xxxxxxxxxx>
> Cc: Michal Simek <monstr@xxxxxxxxx>
> Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx>
> Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
> Cc: Paul Mundt <lethal@xxxxxxxxxxxx>
> Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>
> Cc: Chris Metcalf <cmetcalf@xxxxxxxxxx>
> Cc: Richard Weinberger <richard@xxxxxx>
> Cc: x86@xxxxxxxxxx
>
> ---
> 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(-)
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/