mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Mike Frysinger" <vapier.adi@gmail.com>
To: "Robin Getz" <rgetz@blackfin.uclinux.org>
Cc: "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: Sun, 19 Aug 2007 23:11:47 -0400	[thread overview]
Message-ID: <8bd0f97a0708192011m1b957e57je313850a255dcac7@mail.gmail.com> (raw)
In-Reply-To: <200708192246.05783.rgetz@blackfin.uclinux.org>

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 ...
-mike

  reply	other threads:[~2007-08-20  3:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-20  2:46 Robin Getz
2007-08-20  3:11 ` Mike Frysinger [this message]
2007-08-20  3:31   ` Paul Mundt
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=8bd0f97a0708192011m1b957e57je313850a255dcac7@mail.gmail.com \
    --to=vapier.adi@gmail.com \
    --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 \
    /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

all inboxes | Powered by JetHome®