Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp804971rdb; Tue, 5 Dec 2023 23:39:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNuYYdpi2iOg4XG8jwRJ1P7BsPaFStiHqFwRepQp5Z8UZkDd5YWunAf/lSY3U1PrtxxjKO X-Received: by 2002:a05:6a00:1c9f:b0:6ce:3b75:4998 with SMTP id y31-20020a056a001c9f00b006ce3b754998mr584199pfw.16.1701848345514; Tue, 05 Dec 2023 23:39:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701848345; cv=none; d=google.com; s=arc-20160816; b=t5NVSAopzgUB25y+KJv7SHdlbDUvKOWkhmeCiKWvkbsL9iepkNB83fMJCTCH5upv7i hhBVvja+2Mg7RC1v5RH/kyShV4FQ2lO90SEZ/su6A++jHH1yTid0j4apBJKDGio9mKnD 8dOZMr0lZMEkmckEO4++xEERNtjn1ix7dhbUI114lZuvgSxxN3g/3bJeENDK8tl0PdQM zc4A1nkrzZN3mV6dGTKRfxGNQGhfaonBa5VOTq1FLceA79xCYy2MsIFWJSEC81zG0olh WZIOke5tgiyda/SfyNfgHHAAp6IGCARE2DGjig1wIn4fzYyINckN7Ue1vTqONP3y5p2c wq8g== 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=52gWvr0zzuPm0nLWCq+cyLR0k3tMsgpGURqRZ5fTkbU=; fh=3NtVGMk2dmjdNUwokKqj4A6VT2+YX+gU0r6eXDN0mHM=; b=D89Py9aM/5IEo4SX0S5up0X39Mwiyb1G/vnROjSeFyfmcy8qzqsTZb6aJAp8NYQj8C aofbgcBYrRYd/8MYDgFAOuCMmgQXFpdNhlFDkTK6iV+RMlj89XVBGPmkPU7gytz8t0S7 9J1BFGmwJgt0AL8zFBcImFRHS8u1yC8K59IsIS+QuwkqZVCfQAjaWwAYO3Vdiq6oQsrt rgGWUoZN08KWYRThIlMep9EG4UO/yM2Xfp0C+ZNV0DlEJ04e4wUjsT/a6QmY1gyhU8ut fR9PdX+zmzr0xwyBSCbC12Nw04pV057v3BThLFi7YEvlt3IDfPBdYMPTs8b94pyW20Zy eH0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YYRRTJ2E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id u16-20020a63ef10000000b005c659dc546csi7230252pgh.24.2023.12.05.23.39.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 23:39:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YYRRTJ2E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 68AAE802DA91; Tue, 5 Dec 2023 23:39:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376911AbjLFHiu (ORCPT + 99 others); Wed, 6 Dec 2023 02:38:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232148AbjLFHiV (ORCPT ); Wed, 6 Dec 2023 02:38:21 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BF791BDB for ; Tue, 5 Dec 2023 23:37:51 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2524FC433D9; Wed, 6 Dec 2023 07:37:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701848270; bh=1ogJNRCRUSjNVsxhxIxRKhd/3MM0E+QpvFM4Un0/0KI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YYRRTJ2Ex+COXZInEvSuWRBkCj4G2MDfBBEm10lA/6YWME/zUfsKGjeiIcbMF7H7S VLRXViRHFcM99MJo4maY01ypfdfSRY6mo6b3CKNQ4x2lmjDZYoRVbLGkXL0rz/jBuj FwqHudifLvhhqB2Zk2yQ1EOEnoezkMg31Z8DvnYSAlfUzN1ulFLoXtSbVyp6m7wb8M DMJmKjDVFHeRJ7KCAeMMskuXzDs/OKe0aKoT5RFN2aQq14xId7E8M/zJGKEyFkpv51 KIUWiCmI3f2ODm5M2WtjKWEpU4mPQF0ZVCV24Q4raYZuGK4Oo5eScD7UV6qeaesYk8 QbF1R2OmgsiQA== From: "Jiri Slaby (SUSE)" To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" , Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org Subject: [PATCH 14/27] tty: m68k: nfcon: convert to u8 and size_t Date: Wed, 6 Dec 2023 08:36:59 +0100 Message-ID: <20231206073712.17776-15-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=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 05 Dec 2023 23:39:04 -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) Cc: Geert Uytterhoeven Cc: linux-m68k@lists.linux-m68k.org --- arch/m68k/emu/nfcon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/m68k/emu/nfcon.c b/arch/m68k/emu/nfcon.c index 3a74d493eb3e..17b2987c2bf5 100644 --- a/arch/m68k/emu/nfcon.c +++ b/arch/m68k/emu/nfcon.c @@ -23,9 +23,9 @@ static int stderr_id; static struct tty_port nfcon_tty_port; static struct tty_driver *nfcon_tty_driver; -static void nfputs(const char *str, unsigned int count) +static void nfputs(const u8 *str, size_t count) { - char buf[68]; + u8 buf[68]; unsigned long phys = virt_to_phys(buf); buf[64] = 0; -- 2.43.0