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

Build failed on kernel 5.14.21 #38

Open
romale opened this issue Mar 14, 2023 · 1 comment
Open

Build failed on kernel 5.14.21 #38

romale opened this issue Mar 14, 2023 · 1 comment

Comments

@romale
Copy link

romale commented Mar 14, 2023

Hello,
how to fix this?
Thanks
Opensuse 15.4 x86_64
uname -r
5.14.21-150400.24.46-default

make
make -C /lib/modules/5.14.21-150400.24.46-default/build  M=/tmp/CH341SER 
make[1]: вход в каталог «/usr/src/linux-5.14.21-150400.24.46-obj/x86_64/default»
  CC [M]  /tmp/CH341SER/ch34x.o
/tmp/CH341SER/ch34x.c:1304:20: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .write_room     = ch34x_write_room,
                    ^~~~~~~~~~~~~~~~
/tmp/CH341SER/ch34x.c:1304:20: note: (near initialization for ‘ch34x_device.write_room’)
/tmp/CH341SER/ch34x.c:1305:21: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .chars_in_buffer = ch34x_chars_in_buffer,
                     ^~~~~~~~~~~~~~~~~~~~~
/tmp/CH341SER/ch34x.c:1305:21: note: (near initialization for ‘ch34x_device.chars_in_buffer’)
cc1: some warnings being treated as errors
@joostaafjes
Copy link

joostaafjes commented Mar 31, 2023

I had the same error (only different line numbers) with Ubuntu 20.04.4 LTS (5.14.0-1059-oem) but when using the ubuntu branch in this repo the problem was gone. Maybe you could try that.

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