diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2019-06-28 15:37:48 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-28 15:54:45 +0300 |
| commit | fbd6b25009ac76b2034168cd21d5e01f8c2d83d1 (patch) | |
| tree | 0e4b37f0ada20cd067d5f7f7caf63f4499dfb586 /tools/perf/scripts/python | |
| parent | a5dedb5c98df60d931a05e711f60ad4fd94a2dc0 (diff) | |
| download | linux-fbd6b25009ac76b2034168cd21d5e01f8c2d83d1.tar.xz | |
staging: rtl8712: reduce stack usage, again
An earlier patch I sent reduced the stack usage enough to get
below the warning limit, and I could show this was safe, but with
GCC_PLUGIN_STRUCTLEAK_BYREF_ALL, it gets worse again because large stack
variables in the same function no longer overlap:
drivers/staging/rtl8712/rtl871x_ioctl_linux.c: In function 'translate_scan.isra.2':
drivers/staging/rtl8712/rtl871x_ioctl_linux.c:322:1: error: the frame size of 1200 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
Split out the largest two blocks in the affected function into two
separate functions and mark those noinline_for_stack.
Fixes: 8c5af16f7953 ("staging: rtl8712: reduce stack usage")
Fixes: 81a56f6dcd20 ("gcc-plugins: structleak: Generalize to all variable types")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
