[RFC/PATCH] powerpc: Make BUG_ON & WARN_ON play nice with compile-time optimisations

Stephen Rothwell sfr at canb.auug.org.au
Wed Mar 22 11:16:56 EST 2006


On Tue, 21 Mar 2006 16:51:29 +1100 Michael Ellerman <michael at ellerman.id.au> wrote:
>
> Although we could do this. It relys on firmware_has_feature() being a macro,
> but perhaps that's ok. This isn't exactly ideal, as it encourages us to use
> macros where we could otherwise use static inlines, but perhaps it's ok.

In this case the macros are small and the overall effect looks good.

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20060322/40b4138b/attachment.pgp>


More information about the Linuxppc-dev mailing list