Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757556AbXHTDL7 (ORCPT ); Sun, 19 Aug 2007 23:11:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753813AbXHTDLt (ORCPT ); Sun, 19 Aug 2007 23:11:49 -0400 Received: from rv-out-0910.google.com ([209.85.198.190]:36470 "EHLO rv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752661AbXHTDLs (ORCPT ); Sun, 19 Aug 2007 23:11:48 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ebXVp5pzO5ig28NynvB/mNExd7KM9YAExJTR2SPubZeV3uW3aqdi3XpQSAIAq2SFqcAFU+B4D6nX0ABV3nLeRR98Coa26GBx4OA1umvyCuVRCa4ZLLD/RmjrVuVIOkcf/DMW9QF/SQtTlxWdoPa/f9qFpKTVpGlm+2bGIDxAgaM= Message-ID: <8bd0f97a0708192011m1b957e57je313850a255dcac7@mail.gmail.com> Date: Sun, 19 Aug 2007 23:11:47 -0400 From: "Mike Frysinger" To: "Robin Getz" Subject: Re: [PATCH 1/1] ensure we don't use bootconsoles after init has been released Cc: "Andrew Morton" , torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, "Gerd Hoffmann" In-Reply-To: <200708192246.05783.rgetz@blackfin.uclinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200708192246.05783.rgetz@blackfin.uclinux.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 846 Lines: 22 On 8/19/07, Robin Getz 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/