linux-3.2.0-psp04.06.00.11 CH9344驅動編譯失敗

? ?驅動拷貝到?linux-3.2.0-psp04.06.00.11/drivers/usb/serial?下

修改MAKE?增加ch9344.O

編譯失敗?如下?

?CALL? ? scripts/checksyscalls.sh

? CHK? ? ?include/generated/compile.h

? CHK? ? ?kernel/config_data.h

? CC? ? ? drivers/usb/serial/ch9344.o

drivers/usb/serial/ch9344.c: In function ‘ch9344_alloc_minor’:

drivers/usb/serial/ch9344.c:121:2: error: implicit declaration of function ‘idr_alloc’ [-Werror=implicit-function-declaration]

drivers/usb/serial/ch9344.c: In function ‘ch9344_cmd_irq’:

drivers/usb/serial/ch9344.c:476:8: error: implicit declaration of function ‘tty_port_tty_hangup’ [-Werror=implicit-function-declaration]

drivers/usb/serial/ch9344.c: In function ‘ch9344_process_read_urb’:

drivers/usb/serial/ch9344.c:653:5: warning: passing argument 1 of ‘tty_insert_flip_string’ from incompatible pointer type [enabled by default]

In file included from drivers/usb/serial/ch9344.c:43:0:

include/linux/tty_flip.h:23:19: note: expected ‘struct tty_struct *’ but argument is of type ‘struct tty_port *’

drivers/usb/serial/ch9344.c:654:3: warning: passing argument 1 of ‘tty_flip_buffer_push’ from incompatible pointer type [enabled by default]

In file included from drivers/usb/serial/ch9344.c:40:0:

include/linux/tty.h:442:13: note: expected ‘struct tty_struct *’ but argument is of type ‘struct tty_port *’

drivers/usb/serial/ch9344.c: In function ‘ch9344_softint’:

drivers/usb/serial/ch9344.c:700:2: error: implicit declaration of function ‘tty_port_tty_wakeup’ [-Werror=implicit-function-declaration]

drivers/usb/serial/ch9344.c: In function ‘ch9344_tty_install’:

drivers/usb/serial/ch9344.c:715:2: error: implicit declaration of function ‘tty_standard_install’ [-Werror=implicit-function-declaration]

drivers/usb/serial/ch9344.c: In function ‘ch9344_port_activate’:

drivers/usb/serial/ch9344.c:805:2: error: implicit declaration of function ‘usb_translate_errors’ [-Werror=implicit-function-declaration]

drivers/usb/serial/ch9344.c: In function ‘ch9344_tty_set_termios’:

drivers/usb/serial/ch9344.c:1732:29: warning: initialization from incompatible pointer type [enabled by default]

drivers/usb/serial/ch9344.c:1749:4: warning: passing argument 1 of ‘tty_termios_hw_change’ from incompatible pointer type [enabled by default]

In file included from drivers/usb/serial/ch9344.c:40:0:

include/linux/tty.h:455:12: note: expected ‘struct ktermios *’ but argument is of type ‘struct ktermios **’

drivers/usb/serial/ch9344.c:1757:17: error: incompatible types when assigning to type ‘struct ktermios *’ from type ‘struct ktermios’

drivers/usb/serial/ch9344.c: In function ‘ch9344_probe’:

drivers/usb/serial/ch9344.c:2201:3: error: implicit declaration of function ‘tty_port_register_device’ [-Werror=implicit-function-declaration]

drivers/usb/serial/ch9344.c:2201:11: warning: assignment makes pointer from integer without a cast [enabled by default]

drivers/usb/serial/ch9344.c: At top level:

drivers/usb/serial/ch9344.c:2446:2: error: unknown field ‘disable_hub_initiated_lpm’ specified in initializer

cc1: some warnings being treated as errors

make[3]: *** [drivers/usb/serial/ch9344.o] Error 1

make[2]: *** [drivers/usb/serial] Error 2

make[1]: *** [drivers/usb] Error 2

make: *** [drivers] Error 2


請問如何解決

您好,如上信息使用的是低版本內核,可單獨發(fā)送郵件到我們技術郵箱:tech@wch.cn獲取驅動。


只有登錄才能回復,可以選擇微信賬號登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频