diff options
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index ededb6e83b41..1f3cd8ad0523 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -236,9 +236,10 @@ extern int oops_in_progress; /* If set, an oops, panic(), BUG() or die() is in | |||
236 | extern int panic_timeout; | 236 | extern int panic_timeout; |
237 | extern int panic_on_oops; | 237 | extern int panic_on_oops; |
238 | extern int panic_on_unrecovered_nmi; | 238 | extern int panic_on_unrecovered_nmi; |
239 | extern int tainted; | ||
240 | extern const char *print_tainted(void); | 239 | extern const char *print_tainted(void); |
241 | extern void add_taint(unsigned); | 240 | extern void add_taint(unsigned flag); |
241 | extern int test_taint(unsigned flag); | ||
242 | extern unsigned long get_taint(void); | ||
242 | extern int root_mountflags; | 243 | extern int root_mountflags; |
243 | 244 | ||
244 | /* Values used for system_state */ | 245 | /* Values used for system_state */ |
@@ -251,16 +252,16 @@ extern enum system_states { | |||
251 | SYSTEM_SUSPEND_DISK, | 252 | SYSTEM_SUSPEND_DISK, |
252 | } system_state; | 253 | } system_state; |
253 | 254 | ||
254 | #define TAINT_PROPRIETARY_MODULE (1<<0) | 255 | #define TAINT_PROPRIETARY_MODULE 0 |
255 | #define TAINT_FORCED_MODULE (1<<1) | 256 | #define TAINT_FORCED_MODULE 1 |
256 | #define TAINT_UNSAFE_SMP (1<<2) | 257 | #define TAINT_UNSAFE_SMP 2 |
257 | #define TAINT_FORCED_RMMOD (1<<3) | 258 | #define TAINT_FORCED_RMMOD 3 |
258 | #define TAINT_MACHINE_CHECK (1<<4) | 259 | #define TAINT_MACHINE_CHECK 4 |
259 | #define TAINT_BAD_PAGE (1<<5) | 260 | #define TAINT_BAD_PAGE 5 |
260 | #define TAINT_USER (1<<6) | 261 | #define TAINT_USER 6 |
261 | #define TAINT_DIE (1<<7) | 262 | #define TAINT_DIE 7 |
262 | #define TAINT_OVERRIDDEN_ACPI_TABLE (1<<8) | 263 | #define TAINT_OVERRIDDEN_ACPI_TABLE 8 |
263 | #define TAINT_WARN (1<<9) | 264 | #define TAINT_WARN 9 |
264 | 265 | ||
265 | extern void dump_stack(void) __cold; | 266 | extern void dump_stack(void) __cold; |
266 | 267 | ||