aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorStefan Wahren <[email protected]>2018-04-28 17:47:42 +0200
committerGreg Kroah-Hartman <[email protected]>2018-05-06 19:04:43 -0700
commit028fa9d038ad5bd9a2434cf72b5557d85ce5779e (patch)
treefc2edcc7b5e2b3e79c9ad3eeef56516b20288a5d /tools/perf/scripts/python
parentd35346604a17a44d5798dd8df87d21026c7c2be0 (diff)
staging: vchiq_arm: Clear VLA warning
The kernel would like to have all stack VLA usage removed[1]. The array here is fixed (declared with a const variable) but it appears like a VLA to the compiler. Also, currently we are putting 768 bytes on the stack. This function is only called on the error path so performance is not critical, let's just allocate the memory instead of using the stack. This saves stack space and removes the VLA build warning. kmalloc a buffer for dumping state instead of using the stack. [1]: https://lkml.org/lkml/2018/3/7/621 Signed-off-by: Tobin C. Harding <[email protected]> Signed-off-by: Stefan Wahren <[email protected]> Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions