OrangePi_CM5/drivers/firmware/tegra
Arnd Bergmann 80cad52515 UPSTREAM: 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.

Bug: 261962742
Fixes: 5e37b9c137 ("firmware: tegra: Add support for in-band debug")
Link: https://lore.kernel.org/all/20201204193714.3134651-1-arnd@kernel.org/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[treding@nvidia.com: consistently return NULL on failure]
Signed-off-by: Thierry Reding <treding@nvidia.com>
(cherry picked from commit 06c2d9a078abe784fd9fd0f1534e318e827712b4)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: Ic147141781cc5fd4250a6d09e283c23ba45cbd9a
2023-01-26 11:34:37 +00:00
..
Kconfig
Makefile firmware: tegra: bpmp: Fix Tegra234-only builds 2021-07-25 14:36:15 +02:00
bpmp-debugfs.c UPSTREAM: firmware: tegra: Reduce stack usage 2023-01-26 11:34:37 +00:00
bpmp-private.h firmware: tegra: bpmp: Fix Tegra234-only builds 2021-07-25 14:36:15 +02:00
bpmp-tegra186.c firmware: tegra: Defer BPMP probe if shared memory not available 2020-05-22 14:57:14 +02:00
bpmp-tegra210.c firmware: tegra: Fix error return code in tegra210_bpmp_init() 2021-07-20 16:05:56 +02:00
bpmp.c firmware: tegra: bpmp: Fix Tegra234-only builds 2021-07-25 14:36:15 +02:00
ivc.c