make -C /lib/modules/5.15.32-v8+/build M=/home/pi/Downloads/LINUX
make[1]: Entering directory '/usr/src/linux-headers-5.15.32-v8+'
CC [M] /home/pi/Downloads/LINUX/ch9344.o
/home/pi/Downloads/LINUX/ch9344.c:2183:16:error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
2183 | .write_room = ch9344_tty_write_room,
| ^~~~~~~~~~~~~~~~~~~~~
/home/pi/Downloads/LINUX/ch9344.c:2183:16:note: (near initialization for ‘ch9344_ops.write_room’)
/home/pi/Downloads/LINUX/ch9344.c:2185:21:error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
2185 | .chars_in_buffer = ch9344_tty_chars_in_buffer,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/Downloads/LINUX/ch9344.c:2185:21:note: (near initialization for ‘ch9344_ops.chars_in_buffer’)
/home/pi/Downloads/LINUX/ch9344.c: In function ‘ch9344_init’:
/home/pi/Downloads/LINUX/ch9344.c:2200:22:error: implicit declaration of function ‘alloc_tty_driver’ [-Werror=implicit-function-declaration]
2200 | ch9344_tty_driver = alloc_tty_driver(CH9344_TTY_MINORS);
| ^~~~~~~~~~~~~~~~
/home/pi/Downloads/LINUX/ch9344.c:2200:20:warning: assignment to ‘struct tty_driver *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2200 | ch9344_tty_driver = alloc_tty_driver(CH9344_TTY_MINORS);
| ^
/home/pi/Downloads/LINUX/ch9344.c:2217:3:error: implicit declaration of function ‘put_tty_driver’ [-Werror=implicit-function-declaration]
2217 | put_tty_driver(ch9344_tty_driver);
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:277: /home/pi/Downloads/LINUX/ch9344.o] Error 1
make[1]: *** [Makefile:1868: /home/pi/Downloads/LINUX] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.32-v8+'
make: *** [Makefile:5: default] Error 2
查看: 1443
回复: 1
CH9344SER_LINUX 编译失败
热门产品 :
CH641: PD及无线充电专用MCU
您好,5.13及以上版本的CH9344 Linux驱动已更新,请发送邮件至tech@wch.cn 获取,有问题随时沟通。
请勿发布广告和违法内容, 代码可以选择编辑器代码语言格式, 更易他人阅读帮助您, 或者留下联系方式,以便更好更快服务您
只有登录才能回复,可以选择微信账号登录