diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-07-26 12:35:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-26 14:11:57 -0400 |
commit | 97f1e7f7d2cd950f90d64ac6920822e709095519 (patch) | |
tree | 4bd8bfc2b40288d0f1ee50de8549e209cccef58b /include/asm-powerpc/bug.h | |
parent | fdd33961e983dd5b1983c54ef39d243c88a4bffc (diff) |
make powerpc BUG_ON() OK with pointers and bitwise
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>
Diffstat (limited to 'include/asm-powerpc/bug.h')
-rw-r--r-- | include/asm-powerpc/bug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-powerpc/bug.h b/include/asm-powerpc/bug.h index f6fa39474846..a248b8bd4d7c 100644 --- a/include/asm-powerpc/bug.h +++ b/include/asm-powerpc/bug.h | |||
@@ -79,7 +79,7 @@ | |||
79 | _EMIT_BUG_ENTRY \ | 79 | _EMIT_BUG_ENTRY \ |
80 | : : "i" (__FILE__), "i" (__LINE__), "i" (0), \ | 80 | : : "i" (__FILE__), "i" (__LINE__), "i" (0), \ |
81 | "i" (sizeof(struct bug_entry)), \ | 81 | "i" (sizeof(struct bug_entry)), \ |
82 | "r" ((long)(x))); \ | 82 | "r" ((__force long)(x))); \ |
83 | } \ | 83 | } \ |
84 | } while (0) | 84 | } while (0) |
85 | 85 | ||