Re: optimizing out inline functions

From: Pekka Enberg
Date: Wed May 28 2008 - 15:54:56 EST


On Wed, May 28, 2008 at 10:51 PM, Steve French <smfrench@xxxxxxxxx> wrote:
> Is one or the other style (with or without #define of empty function)
> preferred? Does the compiler optimize both #else clauses out
> properly? sparse and checkpatch seem to take either

Both are optimized out but empty function is preferred for type checking.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/