diff options
author | Arnd Bergmann <[email protected]> | 2021-09-27 14:41:40 +0200 |
---|---|---|
committer | Thierry Reding <[email protected]> | 2021-10-07 20:52:17 +0200 |
commit | 06c2d9a078abe784fd9fd0f1534e318e827712b4 (patch) | |
tree | 95a9e0ff922e4abd9d9d0711a274559d992ead1c /net/lapb/lapb_timer.c | |
parent | 6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f (diff) |
firmware: tegra: Reduce stack usage
Building the bpmp-debugfs driver for Arm results in a warning for stack usage:
drivers/firmware/tegra/bpmp-debugfs.c:321:16: error: stack frame size of 1224 bytes in function 'bpmp_debug_store' [-Werror,-Wframe-larger-than=]
static ssize_t bpmp_debug_store(struct file *file, const char __user *buf,
It should be possible to rearrange the code to not require two separate
buffers for the file name, but the easiest workaround is to use dynamic
allocation.
Fixes: 5e37b9c137ee ("firmware: tegra: Add support for in-band debug")
Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Arnd Bergmann <[email protected]>
[[email protected]: consistently return NULL on failure]
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions