diff options
author | Jiri Slaby (SUSE) <[email protected]> | 2023-11-21 10:22:52 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-11-25 07:23:17 +0000 |
commit | 7588b0820354694f4e3a2fbadc4d39176ee221aa (patch) | |
tree | c5033a7c21890492444640b45f9b119715fb79b8 /scripts/gdb/linux/tasks.py | |
parent | 4ccef1f142effe765a130c7b020c36eec6bd2a31 (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