Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tty: m68k: nfcon: convert to u8 and size_t

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)" <jirislaby@kernel.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-m68k@lists.linux-m68k.org
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20231206073712.17776-15-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
b7a43d0c 2f982313

+2 -2
+2 -2
arch/m68k/emu/nfcon.c
··· 23 23 static struct tty_port nfcon_tty_port; 24 24 static struct tty_driver *nfcon_tty_driver; 25 25 26 - static void nfputs(const char *str, unsigned int count) 26 + static void nfputs(const u8 *str, size_t count) 27 27 { 28 - char buf[68]; 28 + u8 buf[68]; 29 29 unsigned long phys = virt_to_phys(buf); 30 30 31 31 buf[64] = 0;