Skip to content

tty: type unifications -- the last part

Jiri Slaby (SUSE) linux-alpha linux-bluetooth linux-mmc linux-riscv linux-s390 linux-serial linux-um linuxppc-dev lkml netdev virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest27 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/27tty: goldfish: use bool for is_write parameterdrivers/tty/goldfish.c+4 -40 replies
2/27tty: mmc: sdio_uart: switch sdio_in() to return u8drivers/mmc/core/sdio_uart.c+8 -111 reply
3/27tty: switch tty_port::xmit_* to u8drivers/tty/tty_port.c include/linux/tty_port.h+3 -30 replies
4/27tty: make tty_operations::send_xchar accept u8 chardrivers/isdn/capi/capi.c drivers/mmc/core/sdio_uart.c drivers/tty/amiserial.c +5 more+10 -102 replies
5/27tty: core: the rest to u8drivers/tty/tty_io.c include/linux/tty.h+7 -70 replies
6/27tty: ami: use u8 for characters and flagdrivers/tty/amiserial.c+2 -21 reply
7/27tty: bcm: convert to u8 and size_tdrivers/misc/bcm-vk/bcm_vk_tty.c+2 -20 replies
8/27tty: con3215: convert to u8 and size_tdrivers/s390/char/con3215.c+12 -121 reply
9/27tty: con3270: convert to u8 and size_tdrivers/s390/char/con3270.c+6 -61 reply
10/27tty: ehv_bytechan: convert to u8 and size_tdrivers/tty/ehv_bytechan.c+5 -60 replies
11/27tty: goldfish: convert to u8 and size_tdrivers/tty/goldfish.c+6 -100 replies
12/27tty: hvc: convert to u8 and size_tarch/powerpc/include/asm/hvconsole.h arch/powerpc/include/asm/hvsi.h arch/powerpc/include/asm/opal.h +13 more+107 -921 reply
13/27tty: ipoctal: convert to u8 and size_tdrivers/ipack/devices/ipoctal.c+6 -80 replies
14/27tty: m68k: nfcon: convert to u8 and size_tarch/m68k/emu/nfcon.c+2 -21 reply
15/27tty: mips_ejtag_fdc: use u8 for character pointersdrivers/tty/mips_ejtag_fdc.c+5 -50 replies
16/27tty: mmc: sdio: use u8 for flagdrivers/mmc/core/sdio_uart.c+1 -21 reply
17/27tty: moxa: convert to u8 and size_tdrivers/tty/moxa.c+8 -70 replies
18/27tty: mxser: convert to u8 and size_tdrivers/tty/mxser.c+4 -40 replies
19/27tty: n_gsm: convert to u8 and size_tdrivers/tty/n_gsm.c+8 -90 replies
20/27tty: n_hdlc: convert to u8 and size_tdrivers/tty/n_hdlc.c+5 -50 replies
21/27tty: nozomi: convert to u8 and size_tdrivers/tty/nozomi.c+4 -51 reply
22/27tty: serdev: convert to u8 and size_t in serdev_controller_opsdrivers/tty/serdev/serdev-ttyport.c include/linux/serdev.h+5 -50 replies
23/27tty: serdev: convert to u8 and size_tdrivers/bluetooth/btmtkuart.c drivers/bluetooth/btnxpuart.c drivers/bluetooth/hci_serdev.c +19 more+65 -684 replies
24/27tty: srmcons: convert to u8 and size_tarch/alpha/kernel/srmcons.c+3 -30 replies
25/27tty: ttyprintk: convert to u8 and size_tdrivers/char/ttyprintk.c+3 -30 replies
26/27tty: um: convert to u8/__u8 and size_tarch/um/drivers/chan.h arch/um/drivers/chan_kern.c arch/um/drivers/chan_user.c +4 more+17 -170 replies
27/27tty: xtensa/iss: use u8arch/xtensa/platforms/iss/console.c+1 -10 replies

Reviews trailers per patch

8 of 27 patches have a Reviewed-by or Acked-by.

PatchGeert UytterhoevenJohan HovoldUlf HanssonAlexander Gordeev
1/27
2/27A-b
3/27
4/27R-b A-b
5/27
6/27R-b
7/27
8/27A-b
9/27A-b
10/27
11/27
12/27
13/27
14/27R-b A-b
15/27
16/27A-b
17/27
18/27
19/27
20/27
21/27
22/27
23/27A-b
24/27
25/27
26/27
27/27

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 00/27] tty: type unifications -- the last part

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 <[email protected]>
Cc Alexander Gordeev <[email protected]>
Cc Amit Shah <[email protected]>
Cc Anton Ivanov <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
Cc Heiko Carstens <[email protected]>
Cc Christian Borntraeger <[email protected]>
Cc Christophe Leroy <[email protected]>
Cc Chris Zankel <[email protected]>
Cc Ivan Kokshaysky <[email protected]>
Cc Jens Taprogge <[email protected]>
Cc Johan Hedberg <[email protected]>
Cc Johannes Berg <[email protected]>
Cc Karsten Keil <[email protected]>
Cc Laurentiu Tudor <[email protected]>
Cc Luiz Augusto von Dentz <[email protected]>
Cc Marcel Holtmann <[email protected]>
Cc Matt Turner <[email protected]>
Cc Max Filippov <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Nicholas Piggin <[email protected]>
Cc Palmer Dabbelt <[email protected]>
Cc Paul Walmsley <[email protected]>
Cc Richard Henderson <[email protected]>
Cc Richard Weinberger <[email protected]>
Cc Rob Herring <[email protected]>
Cc Scott Branden <[email protected]>
Cc Sven Schnelle <[email protected]>
Cc Ulf Hansson <[email protected]>
Cc Vaibhav Gupta <[email protected]>
Cc Vasily Gorbik <[email protected]>

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(-)
Signature · 1 line
2.43.0