[PATCH] serial/atmel_serial: Fix another fallout of the change to BUILD_BUG_ON

Haavard Skinnemoen haavard.skinnemoen at atmel.com
Tue Oct 13 03:26:44 EDT 2009


Uwe Kleine-König <u.kleine-koenig at pengutronix.de> wrote:
> Commit 8c87df457cb5 fixed BUILD_BUG_ON with the result that some
> expressions (e.g. "not really constant" ones) result in a build failure.
> 
> Some of these were fixed in 8c87df457cb5, but not serial/atmel_serial.

This patch fixes the same issue:

http://lkml.org/lkml/2009/10/6/305

> -	BUILD_BUG_ON(!is_power_of_2(ATMEL_SERIAL_RINGSIZE));
> +	MAYBE_BUILD_BUG_ON(!is_power_of_2(ATMEL_SERIAL_RINGSIZE));

What's the difference between BUILD_BUG_ON() and MAYBE_BUILD_BUG_ON()?

Haavard



More information about the linux-arm-kernel mailing list