* [atmel-serial] Fix compilation error caused by BUILD_BUG_ON() in 2.6.32-rc2 kernel
@ 2009-09-30 8:25 Yegor Yefremov
0 siblings, 0 replies; only message in thread
From: Yegor Yefremov @ 2009-09-30 8:25 UTC (permalink / raw)
To: linux-serial
Fix compilation error caused by BUILD_BUG_ON() in 2.6.32-rc2 kernel.
Add ring buffer size requirements to the macro definition instead of calling
BUILD_BUG_ON().
See the following thread for details:
http://www.gossamer-threads.com/lists/linux/kernel/1118447?page=last
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Index: linus2/drivers/serial/atmel_serial.c
===================================================================
--- linus2.orig/drivers/serial/atmel_serial.c
+++ linus2/drivers/serial/atmel_serial.c
@@ -123,6 +123,7 @@ struct atmel_uart_char {
u16 ch;
};
+/* the ring buffer size must be the power of 2 */
#define ATMEL_SERIAL_RINGSIZE 1024
/*
@@ -1531,8 +1532,6 @@ static int __devinit atmel_serial_probe(
void *data;
int ret;
- BUILD_BUG_ON(!is_power_of_2(ATMEL_SERIAL_RINGSIZE));
-
port = &atmel_ports[pdev->id];
port->backup_imr = 0;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-09-30 8:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-30 8:25 [atmel-serial] Fix compilation error caused by BUILD_BUG_ON() in 2.6.32-rc2 kernel Yegor Yefremov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.