diff options
Diffstat (limited to 'include/linux/kernel.h')
| -rw-r--r-- | include/linux/kernel.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 2651f805ba6..e580ec09576 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -140,6 +140,15 @@ extern int _cond_resched(void); | |||
| 140 | (__x < 0) ? -__x : __x; \ | 140 | (__x < 0) ? -__x : __x; \ |
| 141 | }) | 141 | }) |
| 142 | 142 | ||
| 143 | #ifdef CONFIG_PROVE_LOCKING | ||
| 144 | void might_fault(void); | ||
| 145 | #else | ||
| 146 | static inline void might_fault(void) | ||
| 147 | { | ||
| 148 | might_sleep(); | ||
| 149 | } | ||
| 150 | #endif | ||
| 151 | |||
| 143 | extern struct atomic_notifier_head panic_notifier_list; | 152 | extern struct atomic_notifier_head panic_notifier_list; |
| 144 | extern long (*panic_blink)(long time); | 153 | extern long (*panic_blink)(long time); |
| 145 | NORET_TYPE void panic(const char * fmt, ...) | 154 | NORET_TYPE void panic(const char * fmt, ...) |
