aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r--include/linux/kernel.h25
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
236extern int panic_timeout; 236extern int panic_timeout;
237extern int panic_on_oops; 237extern int panic_on_oops;
238extern int panic_on_unrecovered_nmi; 238extern int panic_on_unrecovered_nmi;
239extern int tainted;
240extern const char *print_tainted(void); 239extern const char *print_tainted(void);
241extern void add_taint(unsigned); 240extern void add_taint(unsigned flag);
241extern int test_taint(unsigned flag);
242extern unsigned long get_taint(void);
242extern int root_mountflags; 243extern 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
265extern void dump_stack(void) __cold; 266extern void dump_stack(void) __cold;
266 267