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: con3270: 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>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: linux-s390@vger.kernel.org
Link: https://lore.kernel.org/r/20231206073712.17776-10-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
e17934c1 359bbdc0

+6 -6
+6 -6
drivers/s390/char/con3270.c
··· 54 54 }; 55 55 56 56 struct tty3270_cell { 57 - unsigned char character; 57 + u8 character; 58 58 struct tty3270_attribute attributes; 59 59 }; 60 60 ··· 123 123 124 124 /* Character array for put_char/flush_chars. */ 125 125 unsigned int char_count; 126 - char char_buf[TTY3270_CHAR_BUF_SIZE]; 126 + u8 char_buf[TTY3270_CHAR_BUF_SIZE]; 127 127 }; 128 128 129 129 /* tty3270->update_flags. See tty3270_update for details. */ ··· 1255 1255 * Insert character into the screen at the current position with the 1256 1256 * current color and highlight. This function does NOT do cursor movement. 1257 1257 */ 1258 - static void tty3270_put_character(struct tty3270 *tp, char ch) 1258 + static void tty3270_put_character(struct tty3270 *tp, u8 ch) 1259 1259 { 1260 1260 struct tty3270_line *line; 1261 1261 struct tty3270_cell *cell; ··· 1561 1561 * Pn is a numeric parameter, a string of zero or more decimal digits. 1562 1562 * Ps is a selective parameter. 1563 1563 */ 1564 - static void tty3270_escape_sequence(struct tty3270 *tp, char ch) 1564 + static void tty3270_escape_sequence(struct tty3270 *tp, u8 ch) 1565 1565 { 1566 1566 enum { ES_NORMAL, ES_ESC, ES_SQUARE, ES_PAREN, ES_GETPARS }; 1567 1567 ··· 1726 1726 * String write routine for 3270 ttys 1727 1727 */ 1728 1728 static void tty3270_do_write(struct tty3270 *tp, struct tty_struct *tty, 1729 - const unsigned char *buf, int count) 1729 + const u8 *buf, size_t count) 1730 1730 { 1731 1731 int i_msg, i; 1732 1732 ··· 2052 2052 { 2053 2053 struct tty3270 *tp = co->data; 2054 2054 unsigned long flags; 2055 - char c; 2055 + u8 c; 2056 2056 2057 2057 spin_lock_irqsave(&tp->view.lock, flags); 2058 2058 while (count--) {