juliagoda / CH341SER

CH341SER driver with fixed bug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build failed on kernel 5.14.21

romale opened this issue · comments

commented

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

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.