[PATCH] make powerpc BUG_ON() OK with pointers and bitwise

Paul Mackerras paulus at samba.org
Fri Jul 27 09:30:38 EST 2007


Al Viro writes:

> Since powerpc insists on printing the _value_ of condition

We don't _print_ the value of the condition, we give it to a
conditional-trap instruction which will trap if it is non-zero.

> and on casting it to long...  At least let's make it a force-cast.

The long cast is to make sure it's sign-extended to the full register
width.  Adding __force looks fine.

> Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>

Acked-by: Paul Mackerras <paulus at samba.org>



More information about the Linuxppc-dev mailing list