Messages in this thread | | | Date | Fri, 27 Jul 2007 09:30:38 +1000 | From | Paul Mackerras <> | Subject | Re: [PATCH] make powerpc BUG_ON() OK with pointers and bitwise |
| |
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@zeniv.linux.org.uk>
Acked-by: Paul Mackerras <paulus@samba.org> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |