linux-stable/drivers/tty/hvc
Arnd Bergmann 42af6bcbc3 tty: hvc-iucv: fix function pointer casts
clang warns about explicitly casting between incompatible function
pointers:

drivers/tty/hvc/hvc_iucv.c:1100:23: error: cast from 'void (*)(const void *)' to 'void (*)(struct device *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
 1100 |         priv->dev->release = (void (*)(struct device *)) kfree;
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Add a separate function to handle this correctly.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20240213101756.461701-1-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-02-17 17:44:52 +01:00
..
hvc_console.c tty: hvc_console: use flexible array for outbuf 2023-11-25 07:23:17 +00:00
hvc_console.h tty: hvc: convert to u8 and size_t 2023-12-08 12:02:37 +01:00
hvc_dcc.c tty: hvc: convert to u8 and size_t 2023-12-08 12:02:37 +01:00
hvc_irq.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hvc_iucv.c tty: hvc-iucv: fix function pointer casts 2024-02-17 17:44:52 +01:00
hvc_opal.c tty: hvc: convert to u8 and size_t 2023-12-08 12:02:37 +01:00
hvc_riscv_sbi.c RISC-V Patches for the 6.8 Merge Window, Part 4 2024-01-20 11:06:04 -08:00
hvc_rtas.c tty: hvc: convert to u8 and size_t 2023-12-08 12:02:37 +01:00
hvc_udbg.c tty: hvc: convert to u8 and size_t 2023-12-08 12:02:37 +01:00
hvc_vio.c tty: hvc: convert to u8 and size_t 2023-12-08 12:02:37 +01:00
hvc_xen.c tty: hvc: convert to u8 and size_t 2023-12-08 12:02:37 +01:00
hvcs.c TTY/Serial changes for 6.7-rc1 2023-11-03 15:44:25 -10:00
hvsi_lib.c tty: hvc: convert to u8 and size_t 2023-12-08 12:02:37 +01:00
hvsi.c tty: hvc: convert counts to size_t 2023-08-11 21:12:47 +02:00
Kconfig tty: Add SBI debug console support to HVC SBI driver 2024-01-10 07:04:05 -08:00
Makefile TTY/Serial driver patches for 4.17-rc1 2018-04-04 18:43:49 -07:00