[root@localhost lesson10]# make
make -C /home/S5-driver/lesson7/linux-tq2440/ M=/home/S5-driver/lesson10 modules CROSS_COMPILE=arm-linux- ARCH=arm
make[1]: Entering directory `/home/S5-driver/lesson7/linux-tq2440'
CC [M] /home/S5-driver/lesson10/mylist.o
/home/S5-driver/lesson10/mylist.c:12: error: two or more data types in declaration specifiers
/home/S5-driver/lesson10/mylist.c:19: warning: function declaration isn't a prototype
/home/S5-driver/lesson10/mylist.c: In function 'mylist_init':
/home/S5-driver/lesson10/mylist.c:20: warning: passing argument 1 of 'INIT_LIST_HEAD' from incompatible pointer type
/home/S5-driver/lesson10/mylist.c:25: warning: passing argument 2 of 'list_add_tail' from incompatible pointer type
/home/S5-driver/lesson10/mylist.c:30: warning: passing argument 2 of 'list_add_tail' from incompatible pointer type
/home/S5-driver/lesson10/mylist.c:35: warning: passing argument 2 of 'list_add_tail' from incompatible pointer type
/home/S5-driver/lesson10/mylist.c:37: error: expected expression before '=' token
/home/S5-driver/lesson10/mylist.c:37: error: 'struct score' has no member named 'next'
/home/S5-driver/lesson10/mylist.c:37: error: expected expression before '=' token
/home/S5-driver/lesson10/mylist.c:39: error: '__mptr' undeclared (first use in this function)
/home/S5-driver/lesson10/mylist.c:39: error: (Each undeclared identifier is reported only once
/home/S5-driver/lesson10/mylist.c:39: error: for each function it appears in.)
/home/S5-driver/lesson10/mylist.c:40: error: implicit declaration of function 'printK'
/home/S5-driver/lesson10/mylist.c: At top level:
/home/S5-driver/lesson10/mylist.c:47: warning: function declaration isn't a prototype
make[2]: *** [/home/S5-driver/lesson10/mylist.o] 错误 1
make[1]: *** [_module_/home/S5-driver/lesson10] 错误 2
make[1]: Leaving directory `/home/S5-driver/lesson7/linux-tq2440'
make: *** [all] 错误 2
少加了
37行 struct末尾少加了;号
list_for_each少了个参数
printk的K大写了
无语了,哎.....
阅读(1169) | 评论(0) | 转发(0) |