0

嗨,我在将 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

4

1 回答 1

1

您的驱动程序是否很旧(或者可能是较旧的内核)?也许你想看看这个重命名:

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

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

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

事实上,它似乎已经进入 2.6.34 或附近。

于 2012-12-26T21:50:57.817 回答