* [PATCH -mm] taint: fix kernel-doc
@ 2008-10-08 18:59 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2008-10-08 18:59 UTC (permalink / raw)
To: lkml, akpm; +Cc: andi
From: Randy Dunlap <randy.dunlap@oracle.com>
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>
---
kernel/panic.c | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
--- mmotm-2008-1002-1617.orig/kernel/panic.c
+++ mmotm-2008-1002-1617/kernel/panic.c
@@ -136,21 +136,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;
@@ -171,6 +156,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];
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-08 19:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-08 18:59 [PATCH -mm] taint: fix kernel-doc Randy Dunlap
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.