Merge commit 'v2.6.28-rc7' into core/locking
[sfrench/cifs-2.6.git] / include / linux / kernel.h
index dc7e0d0a6474448aba71b4c32d2045afc44e240e..6a5c75cee5bcf9f3085d92373852387894727c79 100644 (file)
@@ -141,6 +141,15 @@ extern int _cond_resched(void);
                (__x < 0) ? -__x : __x;         \
        })
 
+#ifdef CONFIG_PROVE_LOCKING
+void might_fault(void);
+#else
+static inline void might_fault(void)
+{
+       might_sleep();
+}
+#endif
+
 extern struct atomic_notifier_head panic_notifier_list;
 extern long (*panic_blink)(long time);
 NORET_TYPE void panic(const char * fmt, ...)