From nobody Thu Dec 18 07:29:19 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE4F3C4167B for ; Wed, 6 Dec 2023 07:38:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376976AbjLFHiU (ORCPT ); Wed, 6 Dec 2023 02:38:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231877AbjLFHh5 (ORCPT ); Wed, 6 Dec 2023 02:37:57 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E3FC198D for ; Tue, 5 Dec 2023 23:37:40 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DFF6C433C8; Wed, 6 Dec 2023 07:37:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701848259; bh=r12fMU0BW1YaP5gO3VGkmDOu28jE14hYoJXFZVc2/YA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QXsENStkdWXfRJe/+InQiCO341yd8klGCOU5x6uZVyfrQVZRYdL1l5LU7nizPpJEe UJWPcd8kRnPlvjK2UET/moJZjwN52VYpiGduoQCooyNYMaw0z9Jt4KyH6RRZNl7+Lk pxy1F3jHndTaZ/qvuN1FjIWlzTcmE/rZ9kZnG+z/o9XJmej3soOUGfbNLnnq7ZRghP EXa2iEZnOjGEKlPj/G2OvQ2fRBhR/zWp3lGVe9wCJvlbc5VoOb+baU4XG3/QS0zpcJ GiSiT+JO4Gu3xJ7fL5LNs7kvMat7E4po4tpl+8q6+sEdsEdwdbn1B9RFkY/9ReKcQG cHcfEjlCsZN8g== From: "Jiri Slaby (SUSE)" To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , linux-s390@vger.kernel.org Subject: [PATCH 09/27] tty: con3270: convert to u8 and size_t Date: Wed, 6 Dec 2023 08:36:54 +0100 Message-ID: <20231206073712.17776-10-jirislaby@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231206073712.17776-1-jirislaby@kernel.org> References: <20231206073712.17776-1-jirislaby@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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) Cc: Heiko Carstens Cc: Vasily Gorbik Cc: Alexander Gordeev Cc: Christian Borntraeger Cc: Sven Schnelle Cc: linux-s390@vger.kernel.org Acked-by: Alexander Gordeev --- drivers/s390/char/con3270.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/s390/char/con3270.c b/drivers/s390/char/con3270.c index 363315fa1666..251d2a1c3eef 100644 --- a/drivers/s390/char/con3270.c +++ b/drivers/s390/char/con3270.c @@ -54,7 +54,7 @@ struct tty3270_attribute { }; =20 struct tty3270_cell { - unsigned char character; + u8 character; struct tty3270_attribute attributes; }; =20 @@ -123,7 +123,7 @@ struct tty3270 { =20 /* Character array for put_char/flush_chars. */ unsigned int char_count; - char char_buf[TTY3270_CHAR_BUF_SIZE]; + u8 char_buf[TTY3270_CHAR_BUF_SIZE]; }; =20 /* tty3270->update_flags. See tty3270_update for details. */ @@ -1255,7 +1255,7 @@ static unsigned int tty3270_write_room(struct tty_str= uct *tty) * Insert character into the screen at the current position with the * current color and highlight. This function does NOT do cursor movement. */ -static void tty3270_put_character(struct tty3270 *tp, char ch) +static void tty3270_put_character(struct tty3270 *tp, u8 ch) { struct tty3270_line *line; struct tty3270_cell *cell; @@ -1561,7 +1561,7 @@ static void tty3270_goto_xy(struct tty3270 *tp, int c= x, int cy) * Pn is a numeric parameter, a string of zero or more decimal digits. * Ps is a selective parameter. */ -static void tty3270_escape_sequence(struct tty3270 *tp, char ch) +static void tty3270_escape_sequence(struct tty3270 *tp, u8 ch) { enum { ES_NORMAL, ES_ESC, ES_SQUARE, ES_PAREN, ES_GETPARS }; =20 @@ -1726,7 +1726,7 @@ static void tty3270_escape_sequence(struct tty3270 *t= p, char ch) * String write routine for 3270 ttys */ static void tty3270_do_write(struct tty3270 *tp, struct tty_struct *tty, - const unsigned char *buf, int count) + const u8 *buf, size_t count) { int i_msg, i; =20 @@ -2052,7 +2052,7 @@ con3270_write(struct console *co, const char *str, un= signed int count) { struct tty3270 *tp =3D co->data; unsigned long flags; - char c; + u8 c; =20 spin_lock_irqsave(&tp->view.lock, flags); while (count--) { --=20 2.43.0