anszom / vtty

Virtual serial port driver for Linux
Other
69 stars 19 forks source link

build error on 6.2 #11

Closed christianrauch closed 1 year ago

christianrauch commented 1 year ago
[...]/vtty/vtty.c: In function ‘vtmx_read’:
[...]/vtty/vtty.c:454:54: error: implicit declaration of function ‘kernel_termios_to_user_termios’ [-Werror=implicit-function-declaration]
  454 |                   copystatus = kernel_termios_to_user_termios((struct termios2 __user*)ptr, &port->oob_data.termios);
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
christianrauch commented 1 year ago

Changing #if LINUX_VERSION_CODE < KERNEL_VERSION(6,4,0) to #if LINUX_VERSION_CODE < KERNEL_VERSION(6,2,0) fixes the issue for me.