Commit 49943393 authored by Jiri Slaby (SUSE)'s avatar Jiri Slaby (SUSE) Committed by Greg Kroah-Hartman

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: default avatar"Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20231206073712.17776-4-jirislaby@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e93102be
...@@ -247,7 +247,7 @@ int tty_port_alloc_xmit_buf(struct tty_port *port) ...@@ -247,7 +247,7 @@ int tty_port_alloc_xmit_buf(struct tty_port *port)
/* We may sleep in get_zeroed_page() */ /* We may sleep in get_zeroed_page() */
mutex_lock(&port->buf_mutex); mutex_lock(&port->buf_mutex);
if (port->xmit_buf == NULL) { if (port->xmit_buf == NULL) {
port->xmit_buf = (unsigned char *)get_zeroed_page(GFP_KERNEL); port->xmit_buf = (u8 *)get_zeroed_page(GFP_KERNEL);
if (port->xmit_buf) if (port->xmit_buf)
kfifo_init(&port->xmit_fifo, port->xmit_buf, PAGE_SIZE); kfifo_init(&port->xmit_fifo, port->xmit_buf, PAGE_SIZE);
} }
......
...@@ -114,8 +114,8 @@ struct tty_port { ...@@ -114,8 +114,8 @@ struct tty_port {
unsigned char console:1; unsigned char console:1;
struct mutex mutex; struct mutex mutex;
struct mutex buf_mutex; struct mutex buf_mutex;
unsigned char *xmit_buf; u8 *xmit_buf;
DECLARE_KFIFO_PTR(xmit_fifo, unsigned char); DECLARE_KFIFO_PTR(xmit_fifo, u8);
unsigned int close_delay; unsigned int close_delay;
unsigned int closing_wait; unsigned int closing_wait;
int drain_delay; int drain_delay;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment