projects/linux·commit 97f1e7f7

make powerpc BUG_ON() OK with pointers and bitwise

97f1e7f7 · Al Viro <[email protected]> · 2007-07-26 17:35:49 +01:00

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 <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
97f1e7f7d2cd950f90d64ac6920822e709095519
Parents
fdd33961

Changes

1 files changed · +1 −1

FileStatusAddDelContent
include/asm-powerpc/bug.hmodified+1−1View file

include/asm-powerpc/bug.h

View file
diff --git a/include/asm-powerpc/bug.h b/include/asm-powerpc/bug.h
index f6fa394..a248b8b 100644
--- a/include/asm-powerpc/bug.h
+++ b/include/asm-powerpc/bug.h
@@ -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)