Re: [PATCH v6 6/9] bug.h: Prevent double evaulation of inBUILD_BUG_ON

From: Borislav Petkov
Date: Thu Nov 22 2012 - 14:07:22 EST


On Tue, Nov 20, 2012 at 03:05:04PM -0600, danielfsantos@xxxxxxx wrote:
> When calling BUILD_BUG_ON in an optimized build using gcc 4.3 and later,
> the condition will be evaulated twice, possibily with side-effects.
> This patch eliminates that error.
>
> Signed-off-by: Daniel Santos <daniel.santos@xxxxxxxxx>

Acked-by: Borislav Petkov <bp@xxxxxxxxx>

--
Regards/Gruss,
Boris.
--
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/