diff options
Diffstat (limited to 'include/linux/kernel.h')
| -rw-r--r-- | include/linux/kernel.h | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 328bca609b9b..1221d2331a6d 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -124,7 +124,7 @@ extern int _cond_resched(void); | |||
| 124 | #endif | 124 | #endif | 
| 125 | 125 | ||
| 126 | #ifdef CONFIG_DEBUG_SPINLOCK_SLEEP | 126 | #ifdef CONFIG_DEBUG_SPINLOCK_SLEEP | 
| 127 | void __might_sleep(char *file, int line, int preempt_offset); | 127 | void __might_sleep(const char *file, int line, int preempt_offset); | 
| 128 | /** | 128 | /** | 
| 129 | * might_sleep - annotation for functions that can sleep | 129 | * might_sleep - annotation for functions that can sleep | 
| 130 | * | 130 | * | 
| @@ -138,7 +138,8 @@ extern int _cond_resched(void); | |||
| 138 | # define might_sleep() \ | 138 | # define might_sleep() \ | 
| 139 | do { __might_sleep(__FILE__, __LINE__, 0); might_resched(); } while (0) | 139 | do { __might_sleep(__FILE__, __LINE__, 0); might_resched(); } while (0) | 
| 140 | #else | 140 | #else | 
| 141 | static inline void __might_sleep(char *file, int line, int preempt_offset) { } | 141 | static inline void __might_sleep(const char *file, int line, | 
| 142 | int preempt_offset) { } | ||
| 142 | # define might_sleep() do { might_resched(); } while (0) | 143 | # define might_sleep() do { might_resched(); } while (0) | 
| 143 | #endif | 144 | #endif | 
| 144 | 145 | ||
