]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
make powerpc BUG_ON() OK with pointers and bitwise
authorAl Viro <viro@ftp.linux.org.uk>
Thu, 26 Jul 2007 16:35:49 +0000 (17:35 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 26 Jul 2007 18:11:57 +0000 (11:11 -0700)
Since powerpc insists on printing the _value_ of condition
and on casting it to long...  At least let's make it a force-cast.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-powerpc/bug.h

index f6fa39474846457f9960c6072f0a43aff16dc5ac..a248b8bd4d7c8a80d7c8e9a8bf3539294f99f3cc 100644 (file)
@@ -79,7 +79,7 @@
                _EMIT_BUG_ENTRY                                 \
                : : "i" (__FILE__), "i" (__LINE__), "i" (0),    \
                  "i" (sizeof(struct bug_entry)),               \
-                 "r" ((long)(x)));                             \
+                 "r" ((__force long)(x)));                     \
        }                                                       \
 } while (0)