om-gta02-2.6.39 branch compile error, caused by BUILD_BUG_ON macro

Daniel Li lida-mail at
Sun Apr 15 04:12:55 CEST 2012

Hi All,

How to fix om-gta02-2.6.39 branch compile error, see below log:

In file included from drivers/block/cciss.c:351: 
drivers/block/cciss_scsi.c: In function ‘scsi_cmd_stack_setup’: 
drivers/block/cciss_scsi.c:218: error: size of array ‘type name’ is negative 
drivers/block/cciss.c: In function ‘cciss_init’: 
drivers/block/cciss.c:4932: error: size of array ‘type name’ is negative 
make[2]: *** [drivers/block/cciss.o] Error 1 
make[1]: *** [drivers/block] Error 2 
make: *** [drivers] Error 2

Which is caused by #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))

Any idea or suggestion?

More information about the openmoko-kernel mailing list