summaryrefslogtreecommitdiffstats
path: root/kernel/futex.c
diff options
context:
space:
mode:
authorSteven Rostedt2011-03-17 20:21:06 +0100
committerIngo Molnar2011-03-25 11:32:09 +0100
commit2092e6be82ec71ecbf5a8ceeef004bbcbdb78812 (patch)
tree19dec00f7d1b6e93d9116ec38edba0342b99d689 /kernel/futex.c
parentx86, dumpstack: Use %pB format specifier for stack trace (diff)
downloadkernel-qcow2-linux-2092e6be82ec71ecbf5a8ceeef004bbcbdb78812.tar.gz
kernel-qcow2-linux-2092e6be82ec71ecbf5a8ceeef004bbcbdb78812.tar.xz
kernel-qcow2-linux-2092e6be82ec71ecbf5a8ceeef004bbcbdb78812.zip
WARN_ON_SMP(): Allow use in if() statements on UP
Both WARN_ON() and WARN_ON_SMP() should be able to be used in an if statement. if (WARN_ON_SMP(foo)) { ... } Because WARN_ON_SMP() is defined as a do { } while (0) on UP, it can not be used this way. Convert it to the same form that WARN_ON() is, even when CONFIG_SMP is off. Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra <peterz@infradead.org> Acked-by: Darren Hart <dvhart@linux.intel.com> Cc: Lai Jiangshan <laijs@cn.fujitsu.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Andrew Morton <akpm@linux-foundation.org> LKML-Reference: <20110317192208.444147791@goodmis.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/futex.c')
0 files changed, 0 insertions, 0 deletions