diff options
| author | Arnd Bergmann <[email protected]> | 2021-12-09 12:51:42 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-12-20 17:52:38 +0100 |
| commit | 144779edf598e0896302c35a0926ef0b68f17c4b (patch) | |
| tree | 3ede435bf682bef57081b7c56b5750c3480629d2 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 4f458ec5f4970d28d78048ebfd3251b5edb0083f (diff) | |
staging: greybus: fix stack size warning with UBSAN
clang warns about excessive stack usage in this driver when
UBSAN is enabled:
drivers/staging/greybus/audio_topology.c:977:12: error: stack frame size of 1836 bytes in function 'gbaudio_tplg_create_widget' [-Werror,-Wframe-larger-than=]
Rework this code to no longer use compound literals for
initializing the structure in each case, but instead keep
the common bits in a preallocated constant array and copy
them as needed.
Link: https://github.com/ClangBuiltLinux/linux/issues/1535
Link: https://lore.kernel.org/r/[email protected]/
Reviewed-by: Nick Desaulniers <[email protected]>
Reviewed-by: Alex Elder <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
[nathan: Address review comments from v1]
Signed-off-by: Nathan Chancellor <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions