From: Paul Mundt <lethal@linux-sh.org>
To: Mike Frysinger <vapier.adi@gmail.com>
Cc: Robin Getz <rgetz@blackfin.uclinux.org>,
Andrew Morton <akpm@linux-foundation.org>,
torvalds@linux-foundation.org, linux-kernel@vger.kernel.org,
Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [PATCH 1/1] ensure we don't use bootconsoles after init has been released
Date: Mon, 20 Aug 2007 12:31:43 +0900 [thread overview]
Message-ID: <20070820033143.GA4918@linux-sh.org> (raw)
In-Reply-To: <8bd0f97a0708192011m1b957e57je313850a255dcac7@mail.gmail.com>
On Sun, Aug 19, 2007 at 11:11:47PM -0400, Mike Frysinger wrote:
> On 8/19/07, Robin Getz <rgetz@blackfin.uclinux.org> wrote:
> > +static int __init disable_boot_consoles(void)
> > +{
> > + struct console *con;
> > +
> > + for (con = console_drivers; con; con = con->next) {
> > + if (con->flags & CON_BOOT) {
> > + printk(KERN_INFO "Turn off boot console %s%d\n",
> > + con->name, con->index);
> > + unregister_console(con);
> > + }
> > + }
> > +}
>
> erp, no 'return 0;' ... that'll earn you a warning at build time and
> maybe random failures depending on the arch ...
Or better yet, complain if unregister_console() fails, and pass the
failure down.
next prev parent reply other threads:[~2007-08-20 3:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-20 2:46 [PATCH 1/1] ensure we don't use bootconsoles after init has been released Robin Getz
2007-08-20 3:11 ` Mike Frysinger
2007-08-20 3:31 ` Paul Mundt [this message]
2007-08-20 17:14 ` Robin Getz
2007-08-20 19:07 ` Gerd Hoffmann
2007-08-20 19:22 ` Robin Getz
2007-08-20 19:26 ` Gerd Hoffmann
2007-08-20 22:47 ` Paul Mundt
2007-08-20 4:08 ` Robin Getz
2007-08-22 3:14 ` [PATCH 1/1] fix - " Robin Getz
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=20070820033143.GA4918@linux-sh.org \
--to=lethal@linux-sh.org \
--cc=akpm@linux-foundation.org \
--cc=kraxel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rgetz@blackfin.uclinux.org \
--cc=torvalds@linux-foundation.org \
--cc=vapier.adi@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.