Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp805100rdb; Tue, 5 Dec 2023 23:39:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IE2Etc+bDK2hURxxzfcMvDLamXqUHI/n6nVILAVi6nrQ6OcYzUT8APPLiZKyQR7uritBKTo X-Received: by 2002:a17:90a:8c2:b0:286:c37f:d1b1 with SMTP id 2-20020a17090a08c200b00286c37fd1b1mr512224pjn.41.1701848369826; Tue, 05 Dec 2023 23:39:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701848369; cv=none; d=google.com; s=arc-20160816; b=cveEKkYtXusZQ0iq/USuY6nUs7uO5kmk+wJ3fcJU7iL3yEwOeQd0b8ZVj9+v4Lum8L RoVZcLSxOzG77cIv87l6PBIHV7wTe6PU0COanE5Lq/mzUFMzmJcwycF0ulFPUoB/pfbI XuqOpi+KbI04syPI4fUQxuVVVtOn5GO0tD/iGMaF+WksSfViy9bEGPdXU3/Cp4l9MYED +WGfYlkcD5pgq1qYpWTtGW/rE9nWGYjPIJaSxHeitauCA0VOkyTzK0aQ1qNPOJQ/rXnL FEQVA6F+nshRxEZi/ztKtsgof3garIQLbqEWQtGD9m4apdYjo2O3BCb4CQHMycHO8nBg 85zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HP0zubj9xSBfxIla/1jFMIK2jnO12WD8rBbEYAba1y4=; fh=1YNwm5KBWetjB3qGkhgLqh/dZnCTsWuqRk83JW6hjgE=; b=oNo66NE7tpI31p9ys2T+vNpvlD3aEsWXq+zoO0t0au6Cu2vK+De8qCCGbwJChKW1jI uEStPyncXHGrDb1UrhjB/9CxSe28Oc7K29OY0L56XrwN/hgpYNX9QW9fXVhugPSpAEGy ANSC5iPcI2vk8SSbowhbZnRXFGEjaWmlaCsNQOLPpvXDfKygMcsikii2w/gUJzyrM3Js R5P1C88L1qK5Ay4pEzEsqgcImUw5I3oJ2vxDE0u4Y2kUYsXUvREac0VOSa8zUFp5/IQQ O+BC9m7SDd/kr5IulzVEf/vG4cNJrbj2nBNSAnXZPP6aSg9R6Haoc+benv3eozU2j8nU BnCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YYqDjxsN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id mt5-20020a17090b230500b002878ffafeb3si1174766pjb.113.2023.12.05.23.39.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 23:39:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YYqDjxsN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 54C6080443A9; Tue, 5 Dec 2023 23:39:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232657AbjLFHib (ORCPT + 99 others); Wed, 6 Dec 2023 02:38:31 -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: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 05 Dec 2023 23:39:20 -0800 (PST) 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 = 8; static u32 goldfish_tty_current_line_count; static struct goldfish_tty *goldfish_ttys; -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 = qtty->base; @@ -73,10 +71,8 @@ static void do_rw_io(struct goldfish_tty *qtty, spin_unlock_irqrestore(&qtty->lock, irq_flags); } -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, } } -static void goldfish_tty_do_write(int line, const u8 *buf, unsigned int count) +static void goldfish_tty_do_write(int line, const u8 *buf, size_t count) { struct goldfish_tty *qtty = &goldfish_ttys[line]; @@ -136,7 +132,7 @@ static irqreturn_t goldfish_tty_interrupt(int irq, void *dev_id) { struct goldfish_tty *qtty = dev_id; void __iomem *base = qtty->base; - unsigned char *buf; + u8 *buf; u32 count; count = gf_ioread32(base + GOLDFISH_TTY_REG_BYTES_READY); -- 2.43.0