summaryrefslogtreecommitdiffstats
path: root/kernel/panic.c
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2008-10-15 22:02:00 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-16 11:21:32 -0700
commit6d5cd6effed5f8c958a6c0df56da336f5a4fdb8a (patch)
tree6db9fa3aa569a59e633ed4bf39ebb21328b097af /kernel/panic.c
parent2223c65103d2aa8d0e9c48a956035a1e0353233d (diff)
downloadop-kernel-dev-6d5cd6effed5f8c958a6c0df56da336f5a4fdb8a.zip
op-kernel-dev-6d5cd6effed5f8c958a6c0df56da336f5a4fdb8a.tar.gz
taint: fix kernel-doc
Move print_tainted() kernel-doc to avoid the following error: Error(/var/linsrc/mmotm-2008-1002-1617//kernel/panic.c:155): cannot understand prototype: 'struct tnt ' Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: Andi Kleen <andi@firstfloor.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/panic.c')
-rw-r--r--kernel/panic.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/kernel/panic.c b/kernel/panic.c
index 028013f..f290e8e 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -143,21 +143,6 @@ NORET_TYPE void panic(const char * fmt, ...)
EXPORT_SYMBOL(panic);
-/**
- * print_tainted - return a string to represent the kernel taint state.
- *
- * 'P' - Proprietary module has been loaded.
- * 'F' - Module has been forcibly loaded.
- * 'S' - SMP with CPUs not designed for SMP.
- * 'R' - User forced a module unload.
- * 'M' - System experienced a machine check exception.
- * 'B' - System has hit bad_page.
- * 'U' - Userspace-defined naughtiness.
- * 'A' - ACPI table overridden.
- * 'W' - Taint on warning.
- *
- * The string is overwritten by the next call to print_taint().
- */
struct tnt {
u8 bit;
@@ -178,6 +163,21 @@ static const struct tnt tnts[] = {
{ TAINT_WARN, 'W', ' ' },
};
+/**
+ * print_tainted - return a string to represent the kernel taint state.
+ *
+ * 'P' - Proprietary module has been loaded.
+ * 'F' - Module has been forcibly loaded.
+ * 'S' - SMP with CPUs not designed for SMP.
+ * 'R' - User forced a module unload.
+ * 'M' - System experienced a machine check exception.
+ * 'B' - System has hit bad_page.
+ * 'U' - Userspace-defined naughtiness.
+ * 'A' - ACPI table overridden.
+ * 'W' - Taint on warning.
+ *
+ * The string is overwritten by the next call to print_taint().
+ */
const char *print_tainted(void)
{
static char buf[ARRAY_SIZE(tnts) + sizeof("Tainted: ") + 1];
OpenPOWER on IntegriCloud