From: Al Viro Date: Thu, 26 Jul 2007 16:35:49 +0000 (+0100) Subject: make powerpc BUG_ON() OK with pointers and bitwise X-Git-Tag: firefly_0821_release~27120 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=97f1e7f7d2cd950f90d64ac6920822e709095519;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Linus Torvalds --- 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 @@ _EMIT_BUG_ENTRY \ : : "i" (__FILE__), "i" (__LINE__), "i" (0), \ "i" (sizeof(struct bug_entry)), \ - "r" ((long)(x))); \ + "r" ((__force long)(x))); \ } \ } while (0)