summaryrefslogtreecommitdiffstats
path: root/include/asm-generic/cmpxchg-local.h
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2014-04-07 15:39:10 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-07 16:36:10 -0700
commitb607e70ec6a982fb4e69c4949b5ec57341cf0d94 (patch)
tree09daa75d7430b4a51d85410280ec2a12c591875a /include/asm-generic/cmpxchg-local.h
parent5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a (diff)
downloadlinux-b607e70ec6a982fb4e69c4949b5ec57341cf0d94.tar.bz2
bug: when !CONFIG_BUG, simplify WARN_ON_ONCE and family
When !CONFIG_BUG, WARN_ON and family become simple passthroughs of their condition argument; however, WARN_ON_ONCE and family still have conditions and a boolean to detect one-time invocation, even though the warning they'd emit doesn't exist. Make the existing definitions conditional on CONFIG_BUG, and add definitions for !CONFIG_BUG that map to the passthrough versions of WARN and WARN_ON. This saves 4.4k on a minimized configuration (smaller than allnoconfig), and 20.6k with defconfig plus CONFIG_BUG=n. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-generic/cmpxchg-local.h')
0 files changed, 0 insertions, 0 deletions