lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 7 Mar 2013 23:34:18 +0100 (CET)
From:	Thomas Gleixner <tglx@...utronix.de>
To:	Andrew Morton <akpm@...ux-foundation.org>
cc:	Paul Gortmaker <paul.gortmaker@...driver.com>,
	Mike Frysinger <vapier@...too.org>,
	Ingo Molnar <mingo@...nel.org>,
	Randy Dunlap <rdunlap@...radead.org>,
	linux-kernel@...r.kernel.org,
	Russell King <linux@....linux.org.uk>,
	Michal Simek <monstr@...str.eu>,
	Ralf Baechle <ralf@...ux-mips.org>,
	Benjamin Herrenschmidt <benh@...nel.crashing.org>,
	Paul Mundt <lethal@...ux-sh.org>,
	"David S. Miller" <davem@...emloft.net>,
	Chris Metcalf <cmetcalf@...era.com>,
	Richard Weinberger <richard@....at>
Subject: Re: [PATCH v2] early_printk: consolidate random copies of identical
 code

On Thu, 7 Mar 2013, Andrew Morton wrote:

> On Thu, 7 Mar 2013 22:25:48 +0100 (CET) Thomas Gleixner <tglx@...utronix.de> wrote:
> 
> > > diff --git a/kernel/printk.c b/kernel/printk.c
> > > index 7664e49..86799bf 100644
> > > --- a/kernel/printk.c
> > > +++ b/kernel/printk.c
> > > @@ -120,6 +120,7 @@ struct console_cmdline
> > >  static struct console_cmdline console_cmdline[MAX_CMDLINECONSOLES];
> > >  static int selected_console = -1;
> > >  static int preferred_console = -1;
> > > +struct console *early_console;
> > >  int console_set_on_cmdline;
> > >  EXPORT_SYMBOL(console_set_on_cmdline);
> > >  
> > > @@ -1718,7 +1719,6 @@ static size_t cont_print_text(char *text, size_t size) { return 0; }
> > >  #endif /* CONFIG_PRINTK */
> > >  
> > >  #ifdef CONFIG_EARLY_PRINTK
> > > -struct console *early_console;
> > >  
> > >  void early_vprintk(const char *fmt, va_list ap)
> > >  {
> > > 
> > > 
> > > Then you don't have to spray any of those ifdefs into the sparc code.
> > 
> > Yeah, that's what I thought as well. The extra pointer is not going to
> > create massive bloat :)
> 
> It's a bit hacky though.  If CONFIG_EARLY_PRINTK=n then that code just
> shouldn't exist.  If we let it persist then maybe it's doing other
> wrong stuff as well.

Agreed.

Looking again it turns out that sparc does not fall into the early
console category. While it uses the early_printk naming convention it
does not use the early_vprintk stuff which I consolidated out of the
other architectures. So the sparc part of the patch simply wants to be
reverted.
 
Thanks,

	tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ