Running kernel:
6.5.0-21-generic #21~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC x86_64
cat /proc/tty/drivers:
/dev/tty /dev/tty 5 0 system:/dev/tty
/dev/console /dev/console 5 1 system:console
/dev/ptmx /dev/ptmx 5 2 system
/dev/vc/0 /dev/vc/0 4 0 system:vtmaster
dbc_serial /dev/ttyDBC 242 0-63 serial
ttyprintk /dev/ttyprintk 5 3 console
max310x /dev/ttyMAX 204 209-224 serial
serial /dev/ttyS 4 64-111 serial
pty_slave /dev/pts 136 0-1048575 pty:slave
pty_master /dev/ptm 128 0-1048575 pty:master
unknown /dev/tty 4 1-63 console
ls /proc/tty/driver:
dr-x------ 4 root root 0 feb 26 16:12 ./
dr-xr-xr-x 6 root root 0 feb 26 13:39 ../
-r--r--r-- 1 root root 0 feb 26 16:13 max310x
-r--r--r-- 1 root root 0 feb 26 16:13 serial
Trying to compile, got the following error:
make -C /lib/modules/uname -r/build M=/home/connlab/Documents/code/xr17v35x/AIOSerial/XR modules
make[1]: Entering directory '/usr/src/linux-headers-6.5.0-21-generic'
CC [M] /home/connlab/Documents/code/xr17v35x/AIOSerial/XR/xr17v35x.o
/home/connlab/Documents/code/xr17v35x/AIOSerial/XR/xr17v35x.c: In function ‘serialxr_timeout’:
/home/connlab/Documents/code/xr17v35x/AIOSerial/XR/xr17v35x.c:1176:62: error: ‘struct uart_port’ has no member named ‘timeout’
1176 | mod_timer(&up->timer, jiffies + poll_timeout(up->port.timeout));
| ^
/home/connlab/Documents/code/xr17v35x/AIOSerial/XR/xr17v35x.c: At top level:
/home/connlab/Documents/code/xr17v35x/AIOSerial/XR/xr17v35x.c:2158:27: error: initialization of ‘void (*)(struct uart_port *, struct ktermios *, const struct ktermios )’ from incompatible pointer type ‘void ()(struct uart_port *, struct ktermios *, struct ktermios *)’ [-Werror=incompatible-pointer-types]
2158 | .set_termios = serialxr_set_termios,
| ^~~~~~~~~~~~~~~~~~~~
/home/connlab/Documents/code/xr17v35x/AIOSerial/XR/xr17v35x.c:2158:27: note: (near initialization for ‘serialxr_pops.set_termios’)
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:251: /home/connlab/Documents/code/xr17v35x/AIOSerial/XR/xr17v35x.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.5.0-21-generic/Makefile:2039: /home/connlab/Documents/code/xr17v35x/AIOSerial/XR] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.5.0-21-generic'
make: *** [Makefile:13: build] Error 2
Running kernel:
6.5.0-21-generic #21~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC x86_64
cat /proc/tty/drivers:
/dev/tty /dev/tty 5 0 system:/dev/tty
/dev/console /dev/console 5 1 system:console
/dev/ptmx /dev/ptmx 5 2 system
/dev/vc/0 /dev/vc/0 4 0 system:vtmaster
dbc_serial /dev/ttyDBC 242 0-63 serial
ttyprintk /dev/ttyprintk 5 3 console
max310x /dev/ttyMAX 204 209-224 serial
serial /dev/ttyS 4 64-111 serial
pty_slave /dev/pts 136 0-1048575 pty:slave
pty_master /dev/ptm 128 0-1048575 pty:master
unknown /dev/tty 4 1-63 console
ls /proc/tty/driver:
dr-x------ 4 root root 0 feb 26 16:12 ./
dr-xr-xr-x 6 root root 0 feb 26 13:39 ../
-r--r--r-- 1 root root 0 feb 26 16:13 max310x
-r--r--r-- 1 root root 0 feb 26 16:13 serial
Trying to compile, got the following error:
make -C /lib/modules/
uname -r/build M=/home/connlab/Documents/code/xr17v35x/AIOSerial/XR modulesmake[1]: Entering directory '/usr/src/linux-headers-6.5.0-21-generic'
CC [M] /home/connlab/Documents/code/xr17v35x/AIOSerial/XR/xr17v35x.o
/home/connlab/Documents/code/xr17v35x/AIOSerial/XR/xr17v35x.c: In function ‘serialxr_timeout’:
/home/connlab/Documents/code/xr17v35x/AIOSerial/XR/xr17v35x.c:1176:62: error: ‘struct uart_port’ has no member named ‘timeout’
1176 | mod_timer(&up->timer, jiffies + poll_timeout(up->port.timeout));
| ^
/home/connlab/Documents/code/xr17v35x/AIOSerial/XR/xr17v35x.c: At top level:
/home/connlab/Documents/code/xr17v35x/AIOSerial/XR/xr17v35x.c:2158:27: error: initialization of ‘void (*)(struct uart_port *, struct ktermios *, const struct ktermios )’ from incompatible pointer type ‘void ()(struct uart_port *, struct ktermios *, struct ktermios *)’ [-Werror=incompatible-pointer-types]
2158 | .set_termios = serialxr_set_termios,
| ^~~~~~~~~~~~~~~~~~~~
/home/connlab/Documents/code/xr17v35x/AIOSerial/XR/xr17v35x.c:2158:27: note: (near initialization for ‘serialxr_pops.set_termios’)
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:251: /home/connlab/Documents/code/xr17v35x/AIOSerial/XR/xr17v35x.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.5.0-21-generic/Makefile:2039: /home/connlab/Documents/code/xr17v35x/AIOSerial/XR] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.5.0-21-generic'
make: *** [Makefile:13: build] Error 2