|
请问,我在编译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]# |
|