diff options
Diffstat (limited to '0008-kernel-6.3-tty_port_operations-int-to-bool.patch')
-rw-r--r-- | 0008-kernel-6.3-tty_port_operations-int-to-bool.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/0008-kernel-6.3-tty_port_operations-int-to-bool.patch b/0008-kernel-6.3-tty_port_operations-int-to-bool.patch new file mode 100644 index 000000000000..e6c7b5625923 --- /dev/null +++ b/0008-kernel-6.3-tty_port_operations-int-to-bool.patch @@ -0,0 +1,35 @@ +diff -pNaru5 a/serial_core.c b/serial_core.c +--- a/serial_core.c 2023-12-18 13:29:22.522209521 -0500 ++++ b/serial_core.c 2023-12-18 13:29:42.488180604 -0500 +@@ -1647,11 +1647,15 @@ static void uart_port_shutdown(struct tt + * Ensure that the IRQ handler isn't running on another CPU. + */ + synchronize_irq(uport->irq); + } + ++#if LINUX_VERSION_CODE < KERNEL_VERSION(6,3,0) + static int uart_carrier_raised(struct tty_port *port) ++#else ++static bool uart_carrier_raised(struct tty_port *port) ++#endif + { + struct uart_state *state = container_of(port, struct uart_state, port); + struct uart_port *uport = state->uart_port; + int mctrl; + spin_lock_irq(&uport->lock); +@@ -1661,11 +1665,15 @@ static int uart_carrier_raised(struct tt + if (mctrl & TIOCM_CAR) + return 1; + return 0; + } + ++#if LINUX_VERSION_CODE < KERNEL_VERSION(6,3,0) + static void uart_dtr_rts(struct tty_port *port, int onoff) ++#else ++static void uart_dtr_rts(struct tty_port *port, bool onoff) ++#endif + { + struct uart_state *state = container_of(port, struct uart_state, port); + struct uart_port *uport = state->uart_port; + + if (onoff) |