Re: [PATCH v2 4/5] bug: Use a common definition of BUG_ON regardless of CONFIG_BUG

From: Arnd Bergmann
Date: Wed Feb 26 2014 - 08:26:51 EST


On Wednesday 26 February 2014, Josh Triplett wrote:
>
> include/asm-generic/bug.h defines BUG_ON to call BUG() if CONFIG_BUG=y,
> or as a no-op if !CONFIG_BUG. However, BUG() is already a no-op if
> !CONFIG_BUG, making this pointless. Use a common definition that always
> calls BUG().
>
> This does not change the compiled code at all.
>
> Signed-off-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>

Acked-by: Arnd Bergmann <arnd@xxxxxxxx>
--
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/