From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Wed, 19 Sep 2007 16:05:20 -0700
> GCC is not as smart as you think... Try the following test: Indeed, thanks for pointing that out. I'll have to macroize it like this to get the check: static int __niu_wait_bits_clear_mac(void *np, unsigned long reg, int limit, int delay) { ... #define niu_wait_bits_clear_mac(NP, REG, LIM, DELAY) \ ({ BUILD_BUG_ON(LIM <= 0 || DELAY < 0); \ __niu_wait_bits_clear_mac(NP, REG, LIM, DELAY); \ }) - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html