我的linux版本是gentoo,內(nèi)核2.6.31 編譯通不過阿,一堆錯(cuò)誤,麻煩大家給看一下,是不是驅(qū)動和內(nèi)核版本不匹配阿
make -C /lib/modules/2.6.31-gentoo-r6/build SUBDIRS=/home/weicz/install/ch341 modules make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo-r6' CC [M] /home/weicz/install/ch341/ch341.o /home/weicz/install/ch341/ch341.c: 在函數(shù)‘ch341_open’中: /home/weicz/install/ch341/ch341.c:248: 警告:傳遞‘usb_serial_generic_open’的第 1 個(gè)參數(shù)時(shí)在不兼容的指針類型間轉(zhuǎn)換 /home/weicz/install/ch341/ch341.c:248: 警告:傳遞‘usb_serial_generic_open’的第 2 個(gè)參數(shù)時(shí)在不兼容的指針類型間轉(zhuǎn)換 /home/weicz/install/ch341/ch341.c:248: 錯(cuò)誤:提供給函數(shù)‘usb_serial_generic_open’的實(shí)參太少 /home/weicz/install/ch341/ch341.c: 在函數(shù)‘ch341_set_termios’中: /home/weicz/install/ch341/ch341.c:260: 錯(cuò)誤:‘struct usb_serial_port’沒有名為‘tty’的成員 /home/weicz/install/ch341/ch341.c:266: 錯(cuò)誤:‘struct usb_serial_port’沒有名為‘tty’的成員 /home/weicz/install/ch341/ch341.c:266: 錯(cuò)誤:‘struct usb_serial_port’沒有名為‘tty’的成員 /home/weicz/install/ch341/ch341.c: 在文件層: /home/weicz/install/ch341/ch341.c:317: 錯(cuò)誤:初始值設(shè)定項(xiàng)里有未知的字段‘num_interrupt_in’ /home/weicz/install/ch341/ch341.c:317: 錯(cuò)誤:‘NUM_DONT_CARE’未聲明(不在函數(shù)內(nèi)) /home/weicz/install/ch341/ch341.c:318: 錯(cuò)誤:初始值設(shè)定項(xiàng)里有未知的字段‘num_bulk_in’ /home/weicz/install/ch341/ch341.c:319: 錯(cuò)誤:初始值設(shè)定項(xiàng)里有未知的字段‘num_bulk_out’ /home/weicz/install/ch341/ch341.c:319: 警告:初始化時(shí)將整數(shù)賦給指針,未作類型轉(zhuǎn)換 /home/weicz/install/ch341/ch341.c:321: 警告:從不兼容的指針類型初始化 /home/weicz/install/ch341/ch341.c:322: 警告:從不兼容的指針類型初始化 make[2]: *** [/home/weicz/install/ch341/ch341.o] 錯(cuò)誤 1 make[1]: *** [_module_/home/weicz/install/ch341] 錯(cuò)誤 2 make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo-r6'