简体   繁体   中英

Compilation Errors with usb_buffer_free and usb_buffer_alloc

Hi Im having errors with compiling in usbtouchscreen.c into the kernel drivers. I have attached the usbtouchsreen.c file to the post also.

 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

I have included the source here: http://pastebin.com/GTsic7Bg

Is your driver quite old (or for an older kernel, perhaps)? Perhaps you want to take a look at this rename:

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

It seems to be in the latest kernel at least:

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

In fact it seems to have gone into 2.6.34 or thereabouts.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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