Re: [PATCH] debug: fix BUILD_BUG_ON() for non-constant expressions

From: Ingo Molnar
Date: Sun Aug 17 2008 - 13:54:20 EST



* Ingo Molnar <mingo@xxxxxxx> wrote:

> +#define BUILD_BUG_ON_ZERO2(c) (__BBO(c) - __BBONC(c))
> +#define BUILD_BUG_ON2(c) (void)BUILD_BUG_ON_ZERO(c)
^^^^^^^^^^^^^^^^^
Lars Gullik Bjønnes pointed out that this should have been ZERO2 not
ZERO - but same end result.

Ingo
--
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/