Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64 6.3内核编译失败 #20

Open
wu17481748 opened this issue Apr 28, 2023 · 1 comment
Open

arm64 6.3内核编译失败 #20

wu17481748 opened this issue Apr 28, 2023 · 1 comment

Comments

@wu17481748
Copy link

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
Copy link

I fixed it in FirstLoveLife/ch343@3728802

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants