Chinaunix首页 | 论坛 | 博客
  • 博客访问: 498753
  • 博文数量: 223
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 2145
  • 用 户 组: 普通用户
  • 注册时间: 2014-03-01 10:23
个人简介

该坚持的时候坚持,该妥协的时候妥协,该放弃的时候放弃

文章分类

全部博文(223)

文章存档

2017年(56)

2016年(118)

2015年(3)

2014年(46)

我的朋友

分类: LINUX

2014-04-25 16:16:03

[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) |
给主人留下些什么吧!~~