From nobody Thu Dec 18 07:29:18 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 E0D4EC10F04 for ; Wed, 6 Dec 2023 07:38:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235005AbjLFHic (ORCPT ); Wed, 6 Dec 2023 02:38:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235152AbjLFHiC (ORCPT ); Wed, 6 Dec 2023 02:38:02 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00C5019B1 for ; Tue, 5 Dec 2023 23:37:43 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7B0CC433CC; Wed, 6 Dec 2023 07:37:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701848263; bh=vx/MuvUsQSvv1EouHrNkdKzoIAgHm5f/1Px1Jg2vH4A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YYqDjxsNCfuFf9Y/UF2sFfxDk2DzRyPakA/MJEECRB1D6FVXT83Pvb3N9b++LtVsy +KoNyI3YVuhhSb7Q/4ONmBSQjtUussVES/pdP0SQQJBUEXVFoW2+q4ptjzFq5BmhHt WBFZ2UH3ipcY6garWdOS7jHha5OPAeA1lt4ak2sB/S8AXs88AZ0n6LvwjubHVdzQ6X 6vvMzVTxlEcN91YLby54IGcx6NeKxsFgdQ59lXoogNoBPOPu3ChS56IKI2OfSV1oqD BpjFxLIgL6BQZVtSS4lq9Bv+8nBvauJg+BuJHdT69aRroeED3h1oMWeIup01LnZfnh NfqkBwq9ifBKQ== From: "Jiri Slaby (SUSE)" To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" Subject: [PATCH 11/27] tty: goldfish: convert to u8 and size_t Date: Wed, 6 Dec 2023 08:36:56 +0100 Message-ID: <20231206073712.17776-12-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) --- drivers/tty/goldfish.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/drivers/tty/goldfish.c b/drivers/tty/goldfish.c index 7ad7fa66cb27..d27979eabfdf 100644 --- a/drivers/tty/goldfish.c +++ b/drivers/tty/goldfish.c @@ -50,10 +50,8 @@ static u32 goldfish_tty_line_count =3D 8; static u32 goldfish_tty_current_line_count; static struct goldfish_tty *goldfish_ttys; =20 -static void do_rw_io(struct goldfish_tty *qtty, - unsigned long address, - unsigned int count, - bool is_write) +static void do_rw_io(struct goldfish_tty *qtty, unsigned long address, + size_t count, bool is_write) { unsigned long irq_flags; void __iomem *base =3D qtty->base; @@ -73,10 +71,8 @@ static void do_rw_io(struct goldfish_tty *qtty, spin_unlock_irqrestore(&qtty->lock, irq_flags); } =20 -static void goldfish_tty_rw(struct goldfish_tty *qtty, - unsigned long addr, - unsigned int count, - bool is_write) +static void goldfish_tty_rw(struct goldfish_tty *qtty, unsigned long addr, + size_t count, bool is_write) { dma_addr_t dma_handle; enum dma_data_direction dma_dir; @@ -125,7 +121,7 @@ static void goldfish_tty_rw(struct goldfish_tty *qtty, } } =20 -static void goldfish_tty_do_write(int line, const u8 *buf, unsigned int co= unt) +static void goldfish_tty_do_write(int line, const u8 *buf, size_t count) { struct goldfish_tty *qtty =3D &goldfish_ttys[line]; =20 @@ -136,7 +132,7 @@ static irqreturn_t goldfish_tty_interrupt(int irq, void= *dev_id) { struct goldfish_tty *qtty =3D dev_id; void __iomem *base =3D qtty->base; - unsigned char *buf; + u8 *buf; u32 count; =20 count =3D gf_ioread32(base + GOLDFISH_TTY_REG_BYTES_READY); --=20 2.43.0