diff options
author | 2023-12-06 08:37:11 +0100 | |
---|---|---|
committer | 2023-12-08 12:02:38 +0100 | |
commit | b49d18493a0b9bb79289c5bec31acf073c34edd2 (patch) | |
tree | a5f081eb21b941e528dce73a1237178ec822aed7 /arch/um/drivers/line.c | |
parent | tty: ttyprintk: convert to u8 and size_t (diff) | |
download | linux-b49d18493a0b9bb79289c5bec31acf073c34edd2.tar.gz linux-b49d18493a0b9bb79289c5bec31acf073c34edd2.tar.bz2 linux-b49d18493a0b9bb79289c5bec31acf073c34edd2.zip |
tty: um: convert to u8/__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.
Note we use __u8 in the userspace files.
Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Cc: Richard Weinberger <richard@nod.at>
Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-um@lists.infradead.org
Link: https://lore.kernel.org/r/20231206073712.17776-27-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/um/drivers/line.c')
-rw-r--r-- | arch/um/drivers/line.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/line.c b/arch/um/drivers/line.c index b98545f3edb5..c9403629cc56 100644 --- a/arch/um/drivers/line.c +++ b/arch/um/drivers/line.c @@ -83,7 +83,7 @@ unsigned int line_chars_in_buffer(struct tty_struct *tty) * * Must be called while holding line->lock! */ -static int buffer_data(struct line *line, const char *buf, int len) +static int buffer_data(struct line *line, const u8 *buf, size_t len) { int end, room; |