aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorSteven Rostedt <[email protected]>2011-03-17 19:21:06 +0000
committerIngo Molnar <[email protected]>2011-03-25 10:32:09 +0000
commit2092e6be82ec71ecbf5a8ceeef004bbcbdb78812 (patch)
tree19dec00f7d1b6e93d9116ec38edba0342b99d689 /net/lapb/lapb_iface.c
parentx86, dumpstack: Use %pB format specifier for stack trace (diff)
downloadkernel-2092e6be82ec71ecbf5a8ceeef004bbcbdb78812.tar.gz
kernel-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 <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Acked-by: Darren Hart <[email protected]> Cc: Lai Jiangshan <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Andrew Morton <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions