summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2008-10-22 13:54:53 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2008-10-22 13:54:53 +1100
commit2df69fae5f2785881b0cb116f340b58965360af4 (patch)
tree1ea71acf28648d9fb69b22b12817fca75f806ab4 /include
parentfe864da6557f43a9fd441516853d87827c1d2e0b (diff)
parenta881214af7025692df7329c477edb044a3920bb4 (diff)
Merge branch 'quilt/kernel-doc'
Diffstat (limited to 'include')
-rw-r--r--include/linux/kernel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index b41c5cb37917..362d17be4b5d 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -116,6 +116,8 @@ extern int _cond_resched(void);
# define might_resched() do { } while (0)
#endif
+#ifdef CONFIG_DEBUG_SPINLOCK_SLEEP
+ void __might_sleep(char *file, int line);
/**
* might_sleep - annotation for functions that can sleep
*
@@ -126,8 +128,6 @@ extern int _cond_resched(void);
* be bitten later when the calling function happens to sleep when it is not
* supposed to.
*/
-#ifdef CONFIG_DEBUG_SPINLOCK_SLEEP
- void __might_sleep(char *file, int line);
# define might_sleep() \
do { __might_sleep(__FILE__, __LINE__); might_resched(); } while (0)
#else