Commit 6d5cd6effed5f8c958a6c0df56da336f5a4fdb8a
Committed by
Linus Torvalds
1 parent
2223c65103
Exists in
master
and in
4 other branches
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>
Showing 1 changed file with 15 additions and 15 deletions Side-by-side Diff
kernel/panic.c
... | ... | @@ -143,21 +143,6 @@ |
143 | 143 | |
144 | 144 | EXPORT_SYMBOL(panic); |
145 | 145 | |
146 | -/** | |
147 | - * print_tainted - return a string to represent the kernel taint state. | |
148 | - * | |
149 | - * 'P' - Proprietary module has been loaded. | |
150 | - * 'F' - Module has been forcibly loaded. | |
151 | - * 'S' - SMP with CPUs not designed for SMP. | |
152 | - * 'R' - User forced a module unload. | |
153 | - * 'M' - System experienced a machine check exception. | |
154 | - * 'B' - System has hit bad_page. | |
155 | - * 'U' - Userspace-defined naughtiness. | |
156 | - * 'A' - ACPI table overridden. | |
157 | - * 'W' - Taint on warning. | |
158 | - * | |
159 | - * The string is overwritten by the next call to print_taint(). | |
160 | - */ | |
161 | 146 | |
162 | 147 | struct tnt { |
163 | 148 | u8 bit; |
... | ... | @@ -178,6 +163,21 @@ |
178 | 163 | { TAINT_WARN, 'W', ' ' }, |
179 | 164 | }; |
180 | 165 | |
166 | +/** | |
167 | + * print_tainted - return a string to represent the kernel taint state. | |
168 | + * | |
169 | + * 'P' - Proprietary module has been loaded. | |
170 | + * 'F' - Module has been forcibly loaded. | |
171 | + * 'S' - SMP with CPUs not designed for SMP. | |
172 | + * 'R' - User forced a module unload. | |
173 | + * 'M' - System experienced a machine check exception. | |
174 | + * 'B' - System has hit bad_page. | |
175 | + * 'U' - Userspace-defined naughtiness. | |
176 | + * 'A' - ACPI table overridden. | |
177 | + * 'W' - Taint on warning. | |
178 | + * | |
179 | + * The string is overwritten by the next call to print_taint(). | |
180 | + */ | |
181 | 181 | const char *print_tainted(void) |
182 | 182 | { |
183 | 183 | static char buf[ARRAY_SIZE(tnts) + sizeof("Tainted: ") + 1]; |