Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp804410rdb; Tue, 5 Dec 2023 23:37:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFoEE/Tv7uT08bBoZ6HTUJyenzZ5TSvpUH983uOixLaGpeeW46DnFmQDGQh5XgDMOd+N6cL X-Received: by 2002:a17:90b:4d8e:b0:286:9b25:1c5e with SMTP id oj14-20020a17090b4d8e00b002869b251c5emr228382pjb.18.1701848251480; Tue, 05 Dec 2023 23:37:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701848251; cv=none; d=google.com; s=arc-20160816; b=AQkNdDDZ0r4pcXunpbO6OQWXdi4h+yCBdxL251hEWHLGfVaqm6QXpQZp//mAfcEfNC Owwnh+7tK/LVocuKE27xDX7NMMPFdl/KqhK970ZKItvqeGwtWqdQbgp6ascjgpYu2Lxx fiP9b+1MWfKLdhLfTZ9XY3UwD/7YNcfV87B8x/YScdhkGGZWVN4MWQLvn6RJhxGlSbws Cw7GM26UejslqGssJ5kfVktVJCHnTyuvlgeCqclIvBPxeutqk8ziLamWoyV9d2U7dEVj pN9YnBWPj1O0YoXuTpmRr5YqiBFtShTmygq/5b/OajbYv4np0Nsh7dBV/Dg/MnpHRvua 7CAw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=JYLlD80APqzfLE4JiIauz7m6QAtFcu4F1tp2ZpG2S14=; fh=EproWy+1cElscHyQX0BnazeUI2uLyyJ3NN/KUNEcUic=; b=RSkQjEiRS0ztZ57e4I6DF2sunyEZt+f9Anbj3SG81rKmYELdJdSuAdsO1PwzAljOtt 1AgG4LG31ahfPSA0vqkf9SdfNrmUlPlJpMWE8WsL+mM2nL4RtH0ERvze5POFKJfyZr9I 5m+aVpROks0Ige2a5NlF4MtF+31WkL2ysfmxQGci+74rNZwMILE+JGHQef+5Sk82FklO LylOinTnljhfy71TwFNGpROVI/lrCfOq/qD4xlg4BY8rL9/xFVGPcnMhgzdC3RUOMwrK R7cePtYj9RCMIO+deu2cbeqfE52ddXal5oV8N6XcuM+jLYPue8UUIHhmLCdkah+i1IUp H3uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bu8z34iM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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. [23.128.96.37]) by mx.google.com with ESMTPS id i31-20020a63585f000000b005c1b2e37aeasi7180013pgm.384.2023.12.05.23.37.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 23:37:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bu8z34iM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 EFA3A80A30C0; Tue, 5 Dec 2023 23:37:29 -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 S229965AbjLFHhR (ORCPT + 99 others); Wed, 6 Dec 2023 02:37:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbjLFHhQ (ORCPT ); Wed, 6 Dec 2023 02:37:16 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D2FA122 for ; Tue, 5 Dec 2023 23:37:22 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BAE83C433C7; Wed, 6 Dec 2023 07:37:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701848241; bh=4VW8X1jOwmko0gg2sXMWQxFcUR2o/UbpfTeUI9q7Edo=; h=From:To:Cc:Subject:Date:From; b=bu8z34iM5zyJFdBt4mnT5Fe71rAi1pTj3uxvkl7m4It8cG5IPQ5cELCU7Hcyn9bm0 YrPH7+t4kqO++IK8ThPph+TjEI34rKJ1F78saK85cyEmSkhpvlt/MXuM2MexzBGDvc LsLxprvg/HFtnhazX0pH5FyoIjCKa9mV0mpNSjDjs239qWtZgAdt4zTf5n2o0n6jcu 4NfBuoUBma+NeCmmW1TvUg2oNwowx685wy89kabVlac8zAa2vZSC56u4LOC3aC7Gt4 OX8RdnvhwCgyl2wbllNV/ud4wLPk7k6KK4Q3+ymzQS8XOOuKILOU1aeZovOUVq/0oH ss5dPs9ljBi8g== From: "Jiri Slaby (SUSE)" To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" , Albert Ou , Alexander Gordeev , Amit Shah , Anton Ivanov , Arnd Bergmann , Geert Uytterhoeven , Heiko Carstens , Christian Borntraeger , Christophe Leroy , Chris Zankel , Ivan Kokshaysky , Jens Taprogge , Johan Hedberg , Johannes Berg , Karsten Keil , Laurentiu Tudor , Luiz Augusto von Dentz , Marcel Holtmann , Matt Turner , Max Filippov , Michael Ellerman , Nicholas Piggin , Palmer Dabbelt , Paul Walmsley , Richard Henderson , Richard Weinberger , Rob Herring , Scott Branden , Sven Schnelle , Ulf Hansson , Vaibhav Gupta , Vasily Gorbik Subject: [PATCH 00/27] tty: type unifications -- the last part Date: Wed, 6 Dec 2023 08:36:45 +0100 Message-ID: <20231206073712.17776-1-jirislaby@kernel.org> X-Mailer: git-send-email 2.43.0 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:37:30 -0800 (PST) This is a continuation of the previous cleanups in the tty layer. Especially those in the character and size types. As this patchset propagates the unified u8 and size_t to most of the drivers, this is the last part of this very rework. If people still see char or unsigned char for a character (or flag), please fix. The same holds for signed ints used as sizes. Note that the first two patches are mostly preparatory cleanup. The rest is switch to u8 and size_t of the tx paths in drivers. Cc: Albert Ou Cc: Alexander Gordeev Cc: Amit Shah Cc: Anton Ivanov Cc: Arnd Bergmann Cc: Geert Uytterhoeven Cc: Heiko Carstens Cc: Christian Borntraeger Cc: Christophe Leroy Cc: Chris Zankel Cc: Ivan Kokshaysky Cc: Jens Taprogge Cc: Johan Hedberg Cc: Johannes Berg Cc: Karsten Keil Cc: Laurentiu Tudor Cc: Luiz Augusto von Dentz Cc: Marcel Holtmann Cc: Matt Turner Cc: Max Filippov Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Palmer Dabbelt Cc: Paul Walmsley Cc: Richard Henderson Cc: Richard Weinberger Cc: Rob Herring Cc: Scott Branden Cc: Sven Schnelle Cc: Ulf Hansson Cc: Vaibhav Gupta Cc: Vasily Gorbik Jiri Slaby (SUSE) (27): tty: goldfish: use bool for is_write parameter tty: mmc: sdio_uart: switch sdio_in() to return u8 tty: switch tty_port::xmit_* to u8 tty: make tty_operations::send_xchar accept u8 char tty: core: the rest to u8 tty: ami: use u8 for characters and flag tty: bcm: convert to u8 and size_t tty: con3215: convert to u8 and size_t tty: con3270: convert to u8 and size_t tty: ehv_bytechan: convert to u8 and size_t tty: goldfish: convert to u8 and size_t tty: hvc: convert to u8 and size_t tty: ipoctal: convert to u8 and size_t tty: m68k: nfcon: convert to u8 and size_t tty: mips_ejtag_fdc: use u8 for character pointers tty: mmc: sdio: use u8 for flag tty: moxa: convert to u8 and size_t tty: mxser: convert to u8 and size_t tty: n_gsm: convert to u8 and size_t tty: n_hdlc: convert to u8 and size_t tty: nozomi: convert to u8 and size_t tty: serdev: convert to u8 and size_t in serdev_controller_ops tty: serdev: convert to u8 and size_t tty: srmcons: convert to u8 and size_t tty: ttyprintk: convert to u8 and size_t tty: um: convert to u8/__u8 and size_t tty: xtensa/iss: use u8 arch/alpha/kernel/srmcons.c | 6 ++--- arch/m68k/emu/nfcon.c | 4 ++-- arch/powerpc/include/asm/hvconsole.h | 4 ++-- arch/powerpc/include/asm/hvsi.h | 18 +++++++------- arch/powerpc/include/asm/opal.h | 8 ++++--- arch/powerpc/platforms/powernv/opal.c | 14 ++++++----- arch/powerpc/platforms/pseries/hvconsole.c | 4 ++-- arch/um/drivers/chan.h | 2 +- arch/um/drivers/chan_kern.c | 9 ++++--- arch/um/drivers/chan_user.c | 4 ++-- arch/um/drivers/chan_user.h | 9 +++---- arch/um/drivers/line.c | 2 +- arch/um/drivers/line.h | 6 ++--- arch/um/drivers/null.c | 2 +- arch/xtensa/platforms/iss/console.c | 2 +- drivers/bluetooth/btmtkuart.c | 4 ++-- drivers/bluetooth/btnxpuart.c | 4 ++-- drivers/bluetooth/hci_serdev.c | 4 ++-- drivers/char/ttyprintk.c | 6 ++--- drivers/char/virtio_console.c | 10 ++++---- drivers/gnss/serial.c | 4 ++-- drivers/gnss/sirf.c | 4 ++-- drivers/greybus/gb-beagleplay.c | 5 ++-- drivers/iio/chemical/pms7003.c | 6 ++--- drivers/iio/chemical/scd30_serial.c | 6 ++--- drivers/iio/chemical/sps30_serial.c | 18 +++++++------- drivers/iio/imu/bno055/bno055_ser_core.c | 6 ++--- drivers/ipack/devices/ipoctal.c | 14 +++++------ drivers/isdn/capi/capi.c | 4 ++-- drivers/mfd/rave-sp.c | 10 ++++---- drivers/misc/bcm-vk/bcm_vk_tty.c | 4 ++-- drivers/mmc/core/sdio_uart.c | 22 +++++++---------- drivers/net/ethernet/qualcomm/qca_uart.c | 5 ++-- drivers/nfc/pn533/uart.c | 4 ++-- drivers/nfc/s3fwrn5/uart.c | 5 ++-- drivers/platform/chrome/cros_ec_uart.c | 5 ++-- .../platform/surface/aggregator/controller.h | 4 ++-- drivers/platform/surface/aggregator/core.c | 4 ++-- .../surface/aggregator/ssh_packet_layer.c | 4 ++-- .../surface/aggregator/ssh_packet_layer.h | 2 +- drivers/s390/char/con3215.c | 24 +++++++++---------- drivers/s390/char/con3270.c | 12 +++++----- drivers/tty/amiserial.c | 6 ++--- drivers/tty/ehv_bytechan.c | 11 ++++----- drivers/tty/goldfish.c | 20 +++++++--------- drivers/tty/hvc/hvc_console.h | 4 ++-- drivers/tty/hvc/hvc_dcc.c | 24 +++++++++---------- drivers/tty/hvc/hvc_iucv.c | 18 +++++++------- drivers/tty/hvc/hvc_opal.c | 5 ++-- drivers/tty/hvc/hvc_riscv_sbi.c | 9 +++---- drivers/tty/hvc/hvc_rtas.c | 11 +++++---- drivers/tty/hvc/hvc_udbg.c | 9 +++---- drivers/tty/hvc/hvc_vio.c | 18 +++++++------- drivers/tty/hvc/hvc_xen.c | 23 +++++++++--------- drivers/tty/hvc/hvsi_lib.c | 20 +++++++++------- drivers/tty/mips_ejtag_fdc.c | 10 ++++---- drivers/tty/moxa.c | 15 ++++++------ drivers/tty/mxser.c | 8 +++---- drivers/tty/n_gsm.c | 17 +++++++------ drivers/tty/n_hdlc.c | 10 ++++---- drivers/tty/nozomi.c | 9 ++++--- drivers/tty/serdev/core.c | 12 ++++------ drivers/tty/serdev/serdev-ttyport.c | 2 +- drivers/tty/serial/serial_core.c | 2 +- drivers/tty/tty_io.c | 12 +++++----- drivers/tty/tty_port.c | 2 +- include/linux/serdev.h | 21 ++++++++-------- include/linux/tty.h | 6 ++--- include/linux/tty_driver.h | 4 ++-- include/linux/tty_port.h | 4 ++-- net/bluetooth/rfcomm/tty.c | 2 +- sound/drivers/serial-generic.c | 4 ++-- 72 files changed, 306 insertions(+), 306 deletions(-) -- 2.43.0