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

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Tue Oct 13 03:08:00 EDT 2009

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.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
Cc: Jan Beulich <jbeulich at novell.com>
Cc: Andrew Morton <akpm at linux-foundation.org>
Cc: Haavard Skinnemoen <hskinnemoen at atmel.com>
Cc: Alan Cox <alan at linux.intel.com>

currently 27 arm defconfigs fail because of that error, see


Best regards

 drivers/serial/atmel_serial.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/serial/atmel_serial.c b/drivers/serial/atmel_serial.c
index 3551c5c..b37d75f 100644
--- a/drivers/serial/atmel_serial.c
+++ b/drivers/serial/atmel_serial.c
@@ -1531,7 +1531,7 @@ static int __devinit atmel_serial_probe(struct platform_device *pdev)
 	void *data;
 	int ret;
 	port = &atmel_ports[pdev->id];
 	port->backup_imr = 0;

More information about the linux-arm-kernel mailing list