Commit 070cb065 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Linus Torvalds

move kernel-doc comment for might_sleep directly before its defining block

Signed-off-by: default avatarUwe Kleine-König <Uwe.Kleine-Koenig@digi.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 29a6d39b
...@@ -108,6 +108,13 @@ struct completion; ...@@ -108,6 +108,13 @@ struct completion;
struct pt_regs; struct pt_regs;
struct user; struct user;
#ifdef CONFIG_PREEMPT_VOLUNTARY
extern int _cond_resched(void);
# define might_resched() _cond_resched()
#else
# define might_resched() do { } while (0)
#endif
/** /**
* might_sleep - annotation for functions that can sleep * might_sleep - annotation for functions that can sleep
* *
...@@ -118,13 +125,6 @@ struct user; ...@@ -118,13 +125,6 @@ struct user;
* be bitten later when the calling function happens to sleep when it is not * be bitten later when the calling function happens to sleep when it is not
* supposed to. * supposed to.
*/ */
#ifdef CONFIG_PREEMPT_VOLUNTARY
extern int _cond_resched(void);
# define might_resched() _cond_resched()
#else
# define might_resched() do { } while (0)
#endif
#ifdef CONFIG_DEBUG_SPINLOCK_SLEEP #ifdef CONFIG_DEBUG_SPINLOCK_SLEEP
void __might_sleep(char *file, int line); void __might_sleep(char *file, int line);
# define might_sleep() \ # define might_sleep() \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment