summaryrefslogtreecommitdiff
path: root/drivers/tty/tty_buffer.c
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <jirislaby@kernel.org>2023-08-16 13:55:21 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-22 15:58:15 +0300
commitd4d13ff3ac78b41bfaefd5ad1efd72cfbf43f288 (patch)
tree0ca4cadf3eb2f9c7030f9f5024fdf02618617d22 /drivers/tty/tty_buffer.c
parent2f4926723ac7343ae11861d0ba2aaa8e04bd3ca1 (diff)
downloadlinux-d4d13ff3ac78b41bfaefd5ad1efd72cfbf43f288.tar.xz
tty: tty_buffer: switch data type to u8
There is no reason to have tty_buffer::data typed as unsigned long. Switch to u8, but preserve the ulong alignment using __aligned. This allows for the cast removal from char_buf_ptr(). And for use of struct_size() in the allocation in tty_buffer_alloc() -- in the next patch. Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20230816105530.3335-2-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_buffer.c')
0 files changed, 0 insertions, 0 deletions