繁体   English   中英

usb_buffer_free和usb_buffer_alloc的编译错误

[英]Compilation Errors with usb_buffer_free and usb_buffer_alloc

嗨,我在将usbtouchscreen.c编译到内核驱动程序时出错。 我也将usbtouchsreen.c文件附加到了帖子中。

 CC      drivers/input/touchscreen/usbtouchscreen.o
drivers/input/touchscreen/usbtouchscreen.c: In function 'usbtouch_free_buffers':
drivers/input/touchscreen/usbtouchscreen.c:856: error: implicit declaration of function 'usb_buffer_free'
drivers/input/touchscreen/usbtouchscreen.c: In function 'usbtouch_probe':
drivers/input/touchscreen/usbtouchscreen.c:890: error: implicit declaration of function 'usb_buffer_alloc'
drivers/input/touchscreen/usbtouchscreen.c:891: warning: assignment makes pointer from integer without a cast
make[3]: *** [drivers/input/touchscreen/usbtouchscreen.o] Error 1
make[2]: *** [drivers/input/touchscreen] Error 2
make[1]: *** [drivers/input] Error 2
make: *** [drivers] Error 2

我在此处包含了源代码: http : //pastebin.com/GTsic7Bg

您的驱动程序是否很旧(或者对于较旧的内核而言)? 也许您想看一下这个重命名:

https://lkml.org/lkml/2010/4/12/132

它似乎至少在最新的内核中:

http://lxr.linux.no/linux+ * / drivers / usb / core / usb.c#L698

实际上,它似乎已经进入了2.6.34左右。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM