From: Andrew Morton <akpm@linux-foundation.org>
To: Yinghai.Lu@Sun.COM
Cc: Andi Kleen <ak@suse.de>, Russell King <rmk@arm.linux.org.uk>,
Bjorn Helgaas <bjorn.helgaas@hp.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Gerd Hoffmann <kraxel@suse.de>,
David Gibson <david@gibson.dropbear.id.au>
Subject: Re: [PATCH 4/5] serial: convert early_uart to earlycon for 8250
Date: Wed, 30 May 2007 13:18:19 -0700 [thread overview]
Message-ID: <20070530131819.641e1548.akpm@linux-foundation.org> (raw)
In-Reply-To: <465DD753.5040208@sun.com>
On Wed, 30 May 2007 12:58:11 -0700
Yinghai Lu <Yinghai.Lu@Sun.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.
next prev parent reply other threads:[~2007-05-30 20:18 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-30 1:43 [PATCH 4/5] serial: convert early_uart to earlycon for 8250 Yinghai Lu
2007-05-30 18:57 ` Andrew Morton
2007-05-30 19:58 ` Yinghai Lu
2007-05-30 20:18 ` Andrew Morton [this message]
2007-05-30 20:58 ` Yinghai Lu
2007-05-30 21:48 ` Andrew Morton
2007-05-31 3:13 ` Andrew Morton
2007-05-31 4:34 ` Yinghai Lu
2007-05-31 4:36 ` Yinghai Lu
2007-05-31 4:48 ` Andrew Morton
2007-05-31 15:17 ` Bjorn Helgaas
2007-05-31 16:32 ` Yinghai Lu
2007-05-31 16:45 ` Bjorn Helgaas
2007-05-31 18:49 ` Yinghai Lu
2007-05-31 4:39 ` Andrew Morton
2007-05-31 4:42 ` Yinghai Lu
2007-05-31 4:51 ` Andrew Morton
-- strict thread matches above, loose matches on Subject: below --
2007-05-31 21:01 Yinghai Lu
2007-05-31 23:54 ` Andrew Morton
2007-06-01 0:11 ` Yinghai Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070530131819.641e1548.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=Yinghai.Lu@Sun.COM \
--cc=ak@suse.de \
--cc=bjorn.helgaas@hp.com \
--cc=david@gibson.dropbear.id.au \
--cc=kraxel@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox