summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/lists.py
diff options
context:
space:
mode:
authorAbinash Singh <abinashsinghlalotra@gmail.com>2025-08-07 00:51:33 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-08-14 12:58:50 +0300
commitd9b7679611d320db4f4436f0281a7797f2e06e15 (patch)
tree22d1cc3b1441db24fbe5ff105d8ebe054d058710 /scripts/gdb/linux/lists.py
parent672a37ba8af1f2ebcedeb94aea2cdd047f805f30 (diff)
downloadlinux-d9b7679611d320db4f4436f0281a7797f2e06e15.tar.xz
serial: 8250_platform: Reduce stack usage in serial8250_probe_acpi()
The function serial8250_probe_acpi() in 8250_platform.c triggered a frame size warning: drivers/tty/serial/8250/8250_platform.c: In function ‘serial8250_probe_acpi’: drivers/tty/serial/8250/8250_platform.c:152:1: warning: the frame size of 1160 bytes is larger than 1024 bytes [-Wframe-larger-than=] This patch reduces the stack usage by dynamically allocating the `uart` structure using kzalloc(), rather than placing it on the stack. This eliminates the overflow warning and improves kernel robustness. Signed-off-by: Abinash Singh <abinashsinghlalotra@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20250806215134.4921-2-abinashsinghlalotra@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions