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: mips_ejtag_fdc: use u8 for character pointers

mips_ejtag_fdc_encode() and mips_ejtag_fdc_put_chan() declare arrays of
pointers to characters. Switch their types from char to u8 to conform
to the current tty layer types for characters.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20231206073712.17776-16-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

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

+5 -5
+5 -5
drivers/tty/mips_ejtag_fdc.c
··· 213 213 */ 214 214 215 215 /* ranges >= 1 && sizes[0] >= 1 */ 216 - static struct fdc_word mips_ejtag_fdc_encode(const char **ptrs, 216 + static struct fdc_word mips_ejtag_fdc_encode(const u8 **ptrs, 217 217 unsigned int *sizes, 218 218 unsigned int ranges) 219 219 { 220 220 struct fdc_word word = { 0, 0 }; 221 - const char **ptrs_end = ptrs + ranges; 221 + const u8 **ptrs_end = ptrs + ranges; 222 222 223 223 for (; ptrs < ptrs_end; ++ptrs) { 224 - const char *ptr = *(ptrs++); 225 - const char *end = ptr + *(sizes++); 224 + const u8 *ptr = *(ptrs++); 225 + const u8 *end = ptr + *(sizes++); 226 226 227 227 for (; ptr < end; ++ptr) { 228 228 word.word |= (u8)*ptr << (8*word.bytes); ··· 417 417 { 418 418 struct mips_ejtag_fdc_tty_port *dport; 419 419 struct tty_struct *tty; 420 - const char *ptrs[2]; 420 + const u8 *ptrs[2]; 421 421 unsigned int sizes[2] = { 0 }; 422 422 struct fdc_word word = { .bytes = 0 }; 423 423 unsigned long flags;