aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <[email protected]>2023-11-21 10:22:52 +0100
committerGreg Kroah-Hartman <[email protected]>2023-11-25 07:23:17 +0000
commit7588b0820354694f4e3a2fbadc4d39176ee221aa (patch)
treec5033a7c21890492444640b45f9b119715fb79b8 /scripts/gdb/linux/tasks.py
parent4ccef1f142effe765a130c7b020c36eec6bd2a31 (diff)
tty: hvc_console: use flexible array for outbuf
This means: * move outbuf to the end of struct hvc_struct and convert from pointer to flexible array (the structure is smaller now) * use struct_size() at the allocation site * align outbuf in the struct instead of ALIGN() at kzalloc() And apart from the above, use u8 instead of char (which are the same thanks to -funsigned-char). The former is now preferred over the latter. It makes the code easier to understand. Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions