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]
Message-Id: <20070530131819.641e1548.akpm@linux-foundation.org>
Date:	Wed, 30 May 2007 13:18:19 -0700
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	Yinghai.Lu@....COM
Cc:	Andi Kleen <ak@...e.de>, Russell King <rmk@....linux.org.uk>,
	Bjorn Helgaas <bjorn.helgaas@...com>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Gerd Hoffmann <kraxel@...e.de>,
	David Gibson <david@...son.dropbear.id.au>
Subject: Re: [PATCH 4/5] serial: convert early_uart to earlycon for 8250

On Wed, 30 May 2007 12:58:11 -0700
Yinghai Lu <Yinghai.Lu@....COM> wrote:

> >> +int update_console_cmdline(char *name, int idx, char *name_new, int idx_new, char *options)
> >> +{
> >> +	struct console_cmdline *c;
> >> +	int i;
> >> +
> >> +	for (i = 0; i < MAX_CMDLINECONSOLES && console_cmdline[i].name[0]; i++)
> >> +		if (strcmp(console_cmdline[i].name, name) == 0 &&
> >> +			  console_cmdline[i].index == idx) {
> >> +				c = &console_cmdline[i];
> >> +				memcpy(c->name, name_new, sizeof(c->name));
> >> +				c->name[sizeof(c->name) - 1] = 0;
> >> +				c->options = options;
> >> +				c->index = idx_new;
> >> +				return i;
> >> +		}
> >> +	/* not found */
> >> +	return -1;
> >> +}
> > 
> > Shouldn't this be __init?
> > 
> > serial8250_find_port_for_earlycon() had its __init removed.  Why?
> with __init, the compiler will cry about .init.text and .text missection.

But was this the correct fix for that?  afaict the only caller of
this function is __init anyway.
-
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