WCHSoftGroup / ch343ser_linux

USB driver for USB to serial chip ch342, ch343, ch344, ch9101, ch9102, ch9103, etc
125 stars 46 forks source link

arm64 6.3内核编译失败 #20

Open wu17481748 opened 1 year ago

wu17481748 commented 1 year ago

CC [M] /root/ch343ser_linux/driver/ch343.o /root/ch343ser_linux/driver/ch343.c:1309:16: error: initialization of ‘void ()(struct tty_port , bool)’ {aka ‘void ()(struct tty_port , _Bool)’} from incompatible pointer type ‘void ()(struct tty_port , int)’ [-Werror=incompatible-pointer-types] 1309 | .dtr_rts = ch343_port_dtr_rts, | ^~~~~~ /root/ch343ser_linux/driver/ch343.c:1309:16: note: (near initialization for ‘ch343_port_ops.dtr_rts’) /root/ch343ser_linux/driver/ch343.c:1921:20: error: initialization of ‘void ()(struct tty_struct , const struct ktermios )’ from incompatible pointer type ‘void ()(struct tty_struct , struct ktermios )’ [-Werror=incompatible-pointer-types] 1921 | .set_termios = ch343_tty_set_termios, | ^~~~~ /root/ch343ser_linux/driver/ch343.c:1921:20: note: (near initialization for ‘ch343_ops.set_termios’) cc1: some warnings being treated as errors make[2]: [scripts/Makefile.build:252:/root/ch343ser_linux/driver/ch343.o] 错误 1 make[1]: [Makefile:2025:/root/ch343ser_linux/driver] 错误 2 make[1]: 离开目录“/usr/src/linux-headers-6.3.0-jsbsbxjxh66+compile+” make: *** [Makefile:5:default] 错误 2

FirstLoveLife commented 1 year ago

I fixed it in https://github.com/FirstLoveLife/ch343/commit/37288026c19604a92d7a9f81f7092b813ef24c95