Skip to contentSkip to conversation

Build failure of atmel_serial in 2.6.32-rc1.

DISCUSSION Gilles Chanteperdrix 1 participant 1 message Sep 30, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I have just tried to build 2.6.32-rc1 for AT91 with CodeSourcery 2009q1, and the build fails at:

BUILD_BUG_ON(!is_power_of_2(ATMEL_SERIAL_RINGSIZE));

file drivers/serial/atmel_serial.c in atmel_serial_probe(). The error message being:
drivers/serial/atmel_serial.c: In function 'atmel_serial_probe':
drivers/serial/atmel_serial.c:1534: error: bit-field '<anonymous>' width not an integer constant

Replacing the BUILD_BUG_ON with a BUG_ON results in a runnable kernel, so ATMEL_SERIAL_RINGSIZE really is a power of 2.

Regards.

Signature · 1 line
					    Gilles.