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: switch tty_port::xmit_* to u8

Both xmit_buf and xmit_fifo of struct tty_port should be u8. To conform
to characters in the rest of the tty layer.

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

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
49943393 e93102be

+3 -3
+1 -1
drivers/tty/tty_port.c
··· 247 247 /* We may sleep in get_zeroed_page() */ 248 248 mutex_lock(&port->buf_mutex); 249 249 if (port->xmit_buf == NULL) { 250 - port->xmit_buf = (unsigned char *)get_zeroed_page(GFP_KERNEL); 250 + port->xmit_buf = (u8 *)get_zeroed_page(GFP_KERNEL); 251 251 if (port->xmit_buf) 252 252 kfifo_init(&port->xmit_fifo, port->xmit_buf, PAGE_SIZE); 253 253 }
+2 -2
include/linux/tty_port.h
··· 114 114 unsigned char console:1; 115 115 struct mutex mutex; 116 116 struct mutex buf_mutex; 117 - unsigned char *xmit_buf; 118 - DECLARE_KFIFO_PTR(xmit_fifo, unsigned char); 117 + u8 *xmit_buf; 118 + DECLARE_KFIFO_PTR(xmit_fifo, u8); 119 119 unsigned int close_delay; 120 120 unsigned int closing_wait; 121 121 int drain_delay;