* [PATCH 2.6.32] drivers/serial/atmel_serial.c: Fix BUILD_BUG_ON build
@ 2009-10-26 15:12 Mark Brown
2009-10-26 21:14 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2009-10-26 15:12 UTC (permalink / raw)
To: Haavard Skinnemoen, Alan Cox; +Cc: linux-kernel, linux-arm-kernel, Mark Brown
Since 'BUILD_BUG_ON(): fix it and a couple of bogus uses of it'
(commit 8c87df45) the BUILD_BUG_ON() for the ring buffer size has
failed to build due to use of is_power_of_2(). Fix this in the
same way as the SPARC vio.h was fixed in that commit by converting
to MAYBE_BUILD_BUG_ON().
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
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;
- BUILD_BUG_ON(!is_power_of_2(ATMEL_SERIAL_RINGSIZE));
+ MAYBE_BUILD_BUG_ON(!is_power_of_2(ATMEL_SERIAL_RINGSIZE));
port = &atmel_ports[pdev->id];
port->backup_imr = 0;
--
1.6.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2.6.32] drivers/serial/atmel_serial.c: Fix BUILD_BUG_ON build
2009-10-26 15:12 [PATCH 2.6.32] drivers/serial/atmel_serial.c: Fix BUILD_BUG_ON build Mark Brown
@ 2009-10-26 21:14 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2009-10-26 21:14 UTC (permalink / raw)
To: Mark Brown
Cc: Haavard Skinnemoen, Alan Cox, linux-kernel, linux-arm-kernel,
Andrew Morton
On 15:12 Mon 26 Oct , Mark Brown wrote:
> Since 'BUILD_BUG_ON(): fix it and a couple of bogus uses of it'
> (commit 8c87df45) the BUILD_BUG_ON() for the ring buffer size has
> failed to build due to use of is_power_of_2(). Fix this in the
> same way as the SPARC vio.h was fixed in that commit by converting
> to MAYBE_BUILD_BUG_ON().
>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
a similatr patch done by Haavard
atmel_serial-fix-bad-build_bug_on-usage.patch
is already in the -mm
btw when it will be merged?
Best Regards,
J.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-26 21:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-26 15:12 [PATCH 2.6.32] drivers/serial/atmel_serial.c: Fix BUILD_BUG_ON build Mark Brown
2009-10-26 21:14 ` Jean-Christophe PLAGNIOL-VILLARD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®