Good day everyone, did anybody find a way to compile usb redirector module for Linux kernel 6.2?
I have this:
make -C /lib/modules/6.2.16-3-pve/build M=/root/usb-redirector-linux-x86_64/files/modules/src/tusbd modules
make[1]: Entering directory '/usr/src/linux-headers-6.2.16-3-pve'
CC [M] /root/usb-redirector-linux-x86_64/files/modules/src/tusbd/driver.o
CC [M] /root/usb-redirector-linux-x86_64/files/modules/src/tusbd/cdev.o
/root/usb-redirector-linux-x86_64/files/modules/src/tusbd/cdev.c: In function ‘lllIIIllI’:
/root/usb-redirector-linux-x86_64/files/modules/src/tusbd/cdev.c:54:20: error: assignment to ‘int (*)(const struct device *, struct kobj_uevent_env *)’ from incompatible pointer type ‘int (*)(struct device *, struct kobj_uevent_env *)’ >
54 | lIIIlII->dev_uevent=IIlIlIIl,
| ^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:260: /root/usb-redirector-linux-x86_64/files/modules/src/tusbd/cdev.o] Error 1
make[1]: *** [Makefile:2026: /root/usb-redirector-linux-x86_64/files/modules/src/tusbd] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.2.16-3-pve'
make: *** [Makefile:61: default] Error 2
Thanks for any hint
I have this:
make -C /lib/modules/6.2.16-3-pve/build M=/root/usb-redirector-linux-x86_64/files/modules/src/tusbd modules
make[1]: Entering directory '/usr/src/linux-headers-6.2.16-3-pve'
CC [M] /root/usb-redirector-linux-x86_64/files/modules/src/tusbd/driver.o
CC [M] /root/usb-redirector-linux-x86_64/files/modules/src/tusbd/cdev.o
/root/usb-redirector-linux-x86_64/files/modules/src/tusbd/cdev.c: In function ‘lllIIIllI’:
/root/usb-redirector-linux-x86_64/files/modules/src/tusbd/cdev.c:54:20: error: assignment to ‘int (*)(const struct device *, struct kobj_uevent_env *)’ from incompatible pointer type ‘int (*)(struct device *, struct kobj_uevent_env *)’ >
54 | lIIIlII->dev_uevent=IIlIlIIl,
| ^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:260: /root/usb-redirector-linux-x86_64/files/modules/src/tusbd/cdev.o] Error 1
make[1]: *** [Makefile:2026: /root/usb-redirector-linux-x86_64/files/modules/src/tusbd] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.2.16-3-pve'
make: *** [Makefile:61: default] Error 2
Thanks for any hint