summaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/firmware.h
diff options
context:
space:
mode:
authorMichael Ellerman2006-03-23 13:32:24 +0100
committerPaul Mackerras2006-03-27 05:48:10 +0200
commite3f94b85f98a346c5eb0ac0d9539b71cb7057143 (patch)
tree69cc1fcb75d5af9e89c6a28264547bfc5deadd1b /include/asm-powerpc/firmware.h
parent[PATCH] powerpc: fix various sparse warnings (diff)
downloadkernel-qcow2-linux-e3f94b85f98a346c5eb0ac0d9539b71cb7057143.tar.gz
kernel-qcow2-linux-e3f94b85f98a346c5eb0ac0d9539b71cb7057143.tar.xz
kernel-qcow2-linux-e3f94b85f98a346c5eb0ac0d9539b71cb7057143.zip
[PATCH] powerpc: Make BUG_ON & WARN_ON play nice with compile-time optimisations
Change BUG_ON and WARN_ON to give the compiler a chance to perform compile-time optimsations. Depending on the complexity of the condition, the compiler may not do this very well, so if it's important check the object code. Current GCC's (4.x) produce good code as long as the condition does not include a function call, including a static inline. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/firmware.h')
0 files changed, 0 insertions, 0 deletions