CC arch/arm/mach-s3c2410/cpu.o
CC arch/arm/mach-s3c2410/irq.o
CC arch/arm/mach-s3c2410/time.o
CC arch/arm/mach-s3c2410/gpio.o
CC arch/arm/mach-s3c2410/clock.o
CC arch/arm/mach-s3c2410/devs.o
In file included from arch/arm/mach-s3c2410/devs.c:13:
include/linux/mtd/partitions.h:61: error: field `list' has incomplete type
make[1]: *** [arch/arm/mach-s3c2410/devs.o] Error 1
make: *** [arch/arm/mach-s3c2410] Error 2
root@ubuntu:/home/chenxfei/Desktop/aaa/linux-2.6.20#
解决办法:终于发现struct list_head这个结构的定义在linux/list.h下,如此找到了定义的地方,把partitions.h文件的最前面加上#include
重新编译,成功!
作者:陈晓飞