[root@localhost usb2]# make
make -C /lib/modules/2.6.32-279.el6.i686/build M=/home/czx/arm-usb/usb2 modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-279.el6.i686'
CC [M] /home/czx/arm-usb/usb2/usb-skeleton-xiao.o
/home/czx/arm-usb/usb2/usb-skeleton-xiao.c: In function ‘skel_write_bulk_callback’:
/home/czx/arm-usb/usb2/usb-skeleton-xiao.c:423: error: implicit declaration of function ‘usb_free_coherent’
/home/czx/arm-usb/usb2/usb-skeleton-xiao.c: In function ‘skel_write’:
/home/czx/arm-usb/usb2/usb-skeleton-xiao.c:478: error: implicit declaration of function ‘usb_alloc_coherent’
/home/czx/arm-usb/usb2/usb-skeleton-xiao.c:479: warning: assignment makes pointer from integer without a cast
make[2]: *** [/home/czx/arm-usb/usb2/usb-skeleton-xiao.o] Error 1
make[1]: *** [_module_/home/czx/arm-usb/usb2] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.el6.i686'
make: *** [kernel_modules] Error 2
usb_free_coheren是usb.h中的函数,文件包含了usb.h文件,是什么问题呢?
西岸阳光 于 2014-03-27 16:56:37发表:
谢谢分享
poiu125sd 于 2014-03-17 09:42:42发表:
新手挣积分,请谅解
闫阳阳 于 2014-03-15 22:52:13发表:
好
闫阳阳 于 2014-03-15 22:51:30发表:
顶
majiang 于 2014-02-28 21:33:44发表:
不错啊
yangjiancool77 于 2013-09-25 21:48:49发表:
啊啊啊