LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2295|回复: 2

make modules的问题,mini2440开发板

[复制链接]
发表于 2009-3-25 21:51:34 | 显示全部楼层 |阅读模式
请问,我在编译hello modle驱动的时候遇到这样的错误,怎么回事?
[root@FriendlyARM kernel-2.6.13]# make modules
  CHK     include nux ersion.h
make[1]: `arch/arm/kernel/asm-offsets.s' is up to date.
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CC [M]  drivers/media/radio/radio-maestro.o
drivers/media/radio/radio-maestro.c: In function `radio_bits_get':
drivers/media/radio/radio-maestro.c:103: warning: comparison is always true due to limited range of data type
drivers/media/radio/radio-maestro.c:107: warning: comparison is always true due to limited range of data type
drivers/media/radio/radio-maestro.c:110: warning: comparison is always true due to limited range of data type
drivers/media/radio/radio-maestro.c:111: warning: comparison is always true due to limited range of data type
drivers/media/radio/radio-maestro.c:114: warning: comparison is always true due to limited range of data type
drivers/media/radio/radio-maestro.c:124: warning: comparison is always true due to limited range of data type
drivers/media/radio/radio-maestro.c: In function `radio_bits_set':
drivers/media/radio/radio-maestro.c:142: warning: comparison is always true due to limited range of data type
drivers/media/radio/radio-maestro.c:144: warning: comparison is always true due to limited range of data type
drivers/media/radio/radio-maestro.c:146: warning: comparison is always true due to limited range of data type
drivers/media/radio/radio-maestro.c:150: warning: comparison is always true due to limited range of data type
drivers/media/radio/radio-maestro.c: In function `radio_function':
drivers/media/radio/radio-maestro.c:219: error: invalid type argument of `->'
drivers/media/radio/radio-maestro.c:219: warning: comparison is always true due to limited range of data type
drivers/media/radio/radio-maestro.c: In function `radio_power_on':
drivers/media/radio/radio-maestro.c:294: warning: comparison is always true due to limited range of data type
drivers/media/radio/radio-maestro.c:297: warning: comparison is always true due to limited range of data type
make[3]: *** [drivers/media/radio/radio-maestro.o] Error 1
make[2]: *** [drivers/media/radio] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [drivers] Error 2
[root@FriendlyARM kernel-2.6.13]#
发表于 2009-3-27 11:55:53 | 显示全部楼层
自己写的?看看有没有写错。。。。
回复 支持 反对

使用道具 举报

发表于 2009-6-9 23:51:18 | 显示全部楼层
drivers/media/radio/radio-maestro.c:219: error: invalid type argument of `->'

查上面那个文件里面219行,看看->符号附近有啥写错的

仔细看看出错信息啊
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表