Skip to content

Commit

Permalink
make powerpc BUG_ON() OK with pointers and bitwise
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jul 26, 2007
1 parent fdd3396 commit 97f1e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-powerpc/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 97f1e7f

Please sign in to comment.