om-gta02-2.6.39 branch compile error, caused by BUILD_BUG_ON macro
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)]))
Re: om-gta02-2.6.39 branch compile error, caused by BUILD_BUG_ON macro
"Daniel Li"<[hidden email]> writes:
> drivers/block/cciss.c: In function ‘cciss_init’:
> drivers/block/cciss.c:4932: error: size of array ‘type name’ is negative
Why are you building cciss.c? If I read Kconfig correctly this needs a
PCI bus.
Re: Re: om-gta02-2.6.39 branch compile error, caused by BUILD_BUG_ON macro
Timo Juhani Lindfors,
>"Daniel Li" writes:
>> drivers/block/cciss.c: In function ‘cciss_init’:
>> drivers/block/cciss.c:4932: error: size of array ‘type name’ is negative
>
>Why are you building cciss.c? If I read Kconfig correctly this needs a
>PCI bus.
Is there any default config file in the repository?
Or should I use make menuconfig to configure all items by myself?