簡體   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