From patchwork Sat Mar 20 23:06:50 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Hutchings X-Patchwork-Id: 87200 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2KN6x19016733 for ; Sat, 20 Mar 2010 23:06:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752612Ab0CTXG7 (ORCPT ); Sat, 20 Mar 2010 19:06:59 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:60355 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752515Ab0CTXG6 (ORCPT ); Sat, 20 Mar 2010 19:06:58 -0400 Received: from deadeye.i.decadent.org.uk ([192.168.4.185] helo=localhost) by shadbolt.decadent.org.uk with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Nt7kp-0006bA-U5; Sat, 20 Mar 2010 23:06:52 +0000 Received: from ben by localhost with local (Exim 4.71) (envelope-from ) id 1Nt7ko-0004QS-QD; Sat, 20 Mar 2010 23:06:50 +0000 From: Ben Hutchings To: Jesse Barnes Cc: David Woodhouse , linux-pci , LKML In-Reply-To: <1269126097.18314.111.camel@localhost> References: <1269126097.18314.111.camel@localhost> Date: Sat, 20 Mar 2010 23:06:50 +0000 Message-ID: <1269126410.18314.116.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 X-SA-Exim-Connect-IP: 192.168.4.185 X-SA-Exim-Mail-From: ben@decadent.org.uk X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on shadbolt.decadent.org.uk X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.2.5 Subject: [PATCH 3/4] panic: Add taint flag TAINT_FIRMWARE_WORKAROUND ('I') X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000) X-SA-Exim-Scanned: Yes (on shadbolt.decadent.org.uk) Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 20 Mar 2010 23:06:59 +0000 (UTC) diff --git a/include/linux/kernel.h b/include/linux/kernel.h index eaf7221..ab8072b 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -344,6 +344,7 @@ extern enum system_states { #define TAINT_OVERRIDDEN_ACPI_TABLE 8 #define TAINT_WARN 9 #define TAINT_CRAP 10 +#define TAINT_FIRMWARE_WORKAROUND 11 extern void dump_stack(void) __cold; diff --git a/kernel/panic.c b/kernel/panic.c index 8b821bc..e9fa224 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -178,6 +178,7 @@ static const struct tnt tnts[] = { { TAINT_OVERRIDDEN_ACPI_TABLE, 'A', ' ' }, { TAINT_WARN, 'W', ' ' }, { TAINT_CRAP, 'C', ' ' }, + { TAINT_FIRMWARE_WORKAROUND, 'I', ' ' }, }; /** @@ -194,6 +195,7 @@ static const struct tnt tnts[] = { * 'A' - ACPI table overridden. * 'W' - Taint on warning. * 'C' - modules from drivers/staging are loaded. + * 'I' - Firmware workaround was required. * * The string is overwritten by the next call to print_tainted(). */