Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tty: mxser: convert to u8 and size_t

Switch character types to u8 and sizes to size_t. To conform to
characters/sizes in the rest of the tty layer.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20231206073712.17776-19-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
59b94335 cb8566b9

+4 -4
+4 -4
drivers/tty/mxser.c
··· 264 264 u8 rx_low_water; 265 265 int type; /* UART type */ 266 266 267 - unsigned char x_char; /* xon/xoff character */ 267 + u8 x_char; /* xon/xoff character */ 268 268 u8 IER; /* Interrupt Enable Register */ 269 269 u8 MCR; /* Modem control register */ 270 270 u8 FCR; /* FIFO control register */ ··· 905 905 { 906 906 struct mxser_port *info = tty->driver_data; 907 907 unsigned long flags; 908 - int written; 908 + size_t written; 909 909 bool is_empty; 910 910 911 911 spin_lock_irqsave(&info->slock, flags); ··· 1521 1521 if (++ignored > 100) 1522 1522 break; 1523 1523 } else { 1524 - char flag = 0; 1524 + u8 flag = 0; 1525 1525 if (status & UART_LSR_BRK_ERROR_BITS) { 1526 1526 if (status & UART_LSR_BI) { 1527 1527 flag = TTY_BREAK; ··· 1585 1585 1586 1586 count = port->xmit_fifo_size; 1587 1587 do { 1588 - unsigned char c; 1588 + u8 c; 1589 1589 1590 1590 if (!kfifo_get(&port->port.xmit_fifo, &c)) 1591 1591 break;