diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2013-01-21 01:47:39 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-01-21 01:47:57 -0500 |
commit | 373d4d099761cb1f637bed488ab3871945882273 (patch) | |
tree | 954bef7bc724aee105dd246d5f2b1ea04ed38b20 /include/linux/kernel.h | |
parent | 64748a2c9062da0c32b59c1b368a86fc4613b1e1 (diff) |
taint: add explicit flag to show whether lock dep is still OK.
Fix up all callers as they were before, with make one change: an
unsigned module taints the kernel, but doesn't turn off lockdep.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index c566927efcbd..80d36874689b 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -398,7 +398,11 @@ extern int panic_on_unrecovered_nmi; | |||
398 | extern int panic_on_io_nmi; | 398 | extern int panic_on_io_nmi; |
399 | extern int sysctl_panic_on_stackoverflow; | 399 | extern int sysctl_panic_on_stackoverflow; |
400 | extern const char *print_tainted(void); | 400 | extern const char *print_tainted(void); |
401 | extern void add_taint(unsigned flag); | 401 | enum lockdep_ok { |
402 | LOCKDEP_STILL_OK, | ||
403 | LOCKDEP_NOW_UNRELIABLE | ||
404 | }; | ||
405 | extern void add_taint(unsigned flag, enum lockdep_ok); | ||
402 | extern int test_taint(unsigned flag); | 406 | extern int test_taint(unsigned flag); |
403 | extern unsigned long get_taint(void); | 407 | extern unsigned long get_taint(void); |
404 | extern int root_mountflags; | 408 | extern int root_mountflags; |