Знайка Posted November 29, 2022 Share Posted November 29, 2022 Добрый день. У меня есть только под 5.14 Link to comment
vn-kozlov Posted February 13 Share Posted February 13 Здравствуйте! Не собирается и, соответственно, не устанавливается драйвер mxu11x0 ver. 6.0 (самый последний на официальном сайте на момент написания сообщения) под Ubuntu 22.04.3 6.5.0-17-generic #17~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 16 14:32:32 UTC 2 x86_64 x86_64 x86_64 GNU/Linux. mxu11x0/driver# cat build.log warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 /home/vn-kozlov/Soft/DRV/mxu11x0/driver/mxu11x0.c:355:35: error: initialization of ‘int (*)(struct tty_struct *, int)’ from incompatible pointer type ‘void (*)(struct tty_struct *, int)’ [-Werror=incompatible-pointer-types] 355 | .break_ctl = mxu1_break, | ^~~~~~~~~~ /home/vn-kozlov/Soft/DRV/mxu11x0/driver/mxu11x0.c:355:35: note: (near initialization for ‘mxu1110_1port_device.break_ctl’) /home/vn-kozlov/Soft/DRV/mxu11x0/driver/mxu11x0.c:387:35: error: initialization of ‘int (*)(struct tty_struct *, int)’ from incompatible pointer type ‘void (*)(struct tty_struct *, int)’ [-Werror=incompatible-pointer-types] 387 | .break_ctl = mxu1_break, | ^~~~~~~~~~ /home/vn-kozlov/Soft/DRV/mxu11x0/driver/mxu11x0.c:387:35: note: (near initialization for ‘mxu1130_1port_device.break_ctl’) /home/vn-kozlov/Soft/DRV/mxu11x0/driver/mxu11x0.c:419:35: error: initialization of ‘int (*)(struct tty_struct *, int)’ from incompatible pointer type ‘void (*)(struct tty_struct *, int)’ [-Werror=incompatible-pointer-types] 419 | .break_ctl = mxu1_break, | ^~~~~~~~~~ /home/vn-kozlov/Soft/DRV/mxu11x0/driver/mxu11x0.c:419:35: note: (near initialization for ‘mxu1150_1port_device.break_ctl’) /home/vn-kozlov/Soft/DRV/mxu11x0/driver/mxu11x0.c:451:35: error: initialization of ‘int (*)(struct tty_struct *, int)’ from incompatible pointer type ‘void (*)(struct tty_struct *, int)’ [-Werror=incompatible-pointer-types] 451 | .break_ctl = mxu1_break, | ^~~~~~~~~~ /home/vn-kozlov/Soft/DRV/mxu11x0/driver/mxu11x0.c:451:35: note: (near initialization for ‘mxu1151_1port_device.break_ctl’) /home/vn-kozlov/Soft/DRV/mxu11x0/driver/mxu11x0.c:483:35: error: initialization of ‘int (*)(struct tty_struct *, int)’ from incompatible pointer type ‘void (*)(struct tty_struct *, int)’ [-Werror=incompatible-pointer-types] 483 | .break_ctl = mxu1_break, | ^~~~~~~~~~ /home/vn-kozlov/Soft/DRV/mxu11x0/driver/mxu11x0.c:483:35: note: (near initialization for ‘mxu1131_1port_device.break_ctl’) /home/vn-kozlov/Soft/DRV/mxu11x0/driver/mxu11x0.c:516:35: error: initialization of ‘int (*)(struct tty_struct *, int)’ from incompatible pointer type ‘void (*)(struct tty_struct *, int)’ [-Werror=incompatible-pointer-types] 516 | .break_ctl = mxu1_break, | ^~~~~~~~~~ /home/vn-kozlov/Soft/DRV/mxu11x0/driver/mxu11x0.c:516:35: note: (near initialization for ‘mxu3001_1port_device.break_ctl’) /home/vn-kozlov/Soft/DRV/mxu11x0/driver/mxu11x0.c:549:35: error: initialization of ‘int (*)(struct tty_struct *, int)’ from incompatible pointer type ‘void (*)(struct tty_struct *, int)’ [-Werror=incompatible-pointer-types] 549 | .break_ctl = mxu1_break, | ^~~~~~~~~~ /home/vn-kozlov/Soft/DRV/mxu11x0/driver/mxu11x0.c:549:35: note: (near initialization for ‘mxu7001_1port_device.break_ctl’) cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:251: /home/vn-kozlov/Soft/DRV/mxu11x0/driver/mxu11x0.o] Error 1 make[2]: *** [/usr/src/linux-headers-6.5.0-17-generic/Makefile:2039: /home/vn-kozlov/Soft/DRV/mxu11x0/driver] Error 2 make[1]: *** [Makefile:234: __sub-make] Error 2 Установку запускаю из каталога, как видно в листинге, mxu11x0/driver/ командами: make clean; make install. Судя по истории этой ветки, в такой ситуации выпускали новый драйвер. Можете с этим помочь? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now