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 75d81f157d2e..e971c55f45ac 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -235,9 +235,10 @@ extern int oops_in_progress; /* If set, an oops, panic(), BUG() or die() is in | |||
235 | extern int panic_timeout; | 235 | extern int panic_timeout; |
236 | extern int panic_on_oops; | 236 | extern int panic_on_oops; |
237 | extern int panic_on_unrecovered_nmi; | 237 | extern int panic_on_unrecovered_nmi; |
238 | extern int tainted; | ||
239 | extern const char *print_tainted(void); | 238 | extern const char *print_tainted(void); |
240 | extern void add_taint(unsigned); | 239 | extern void add_taint(unsigned flag); |
240 | extern int test_taint(unsigned flag); | ||
241 | extern unsigned long get_taint(void); | ||
241 | extern int root_mountflags; | 242 | extern int root_mountflags; |
242 | 243 | ||
243 | /* Values used for system_state */ | 244 | /* Values used for system_state */ |
@@ -250,16 +251,16 @@ extern enum system_states { | |||
250 | SYSTEM_SUSPEND_DISK, | 251 | SYSTEM_SUSPEND_DISK, |
251 | } system_state; | 252 | } system_state; |
252 | 253 | ||
253 | #define TAINT_PROPRIETARY_MODULE (1<<0) | 254 | #define TAINT_PROPRIETARY_MODULE 0 |
254 | #define TAINT_FORCED_MODULE (1<<1) | 255 | #define TAINT_FORCED_MODULE 1 |
255 | #define TAINT_UNSAFE_SMP (1<<2) | 256 | #define TAINT_UNSAFE_SMP 2 |
256 | #define TAINT_FORCED_RMMOD (1<<3) | 257 | #define TAINT_FORCED_RMMOD 3 |
257 | #define TAINT_MACHINE_CHECK (1<<4) | 258 | #define TAINT_MACHINE_CHECK 4 |
258 | #define TAINT_BAD_PAGE (1<<5) | 259 | #define TAINT_BAD_PAGE 5 |
259 | #define TAINT_USER (1<<6) | 260 | #define TAINT_USER 6 |
260 | #define TAINT_DIE (1<<7) | 261 | #define TAINT_DIE 7 |
261 | #define TAINT_OVERRIDDEN_ACPI_TABLE (1<<8) | 262 | #define TAINT_OVERRIDDEN_ACPI_TABLE 8 |
262 | #define TAINT_WARN (1<<9) | 263 | #define TAINT_WARN 9 |
263 | 264 | ||
264 | extern void dump_stack(void) __cold; | 265 | extern void dump_stack(void) __cold; |
265 | 266 | ||