diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2026-09-25 15:04:30 +0200 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-10-04 17:22:11 +0000 |
| commit | 7e17084177aa6c76231c6ee8cdbbcd24f40c86cc (patch) | |
| tree | 311e5c307530c06214896321852f2520220f4f46 /tools/lib/python/kdoc/python_version.py | |
| parent | 3a4067658363e34bf4e1d7039e5b52951fcb4012 (diff) | |
perf: marvell: avoid large stack variables
The probe function in this driver constructs multiple large structures
on the stack, which ends up causing a size warning:
drivers/perf/marvell_cn10k_ddr_pmu.c:1168:12: error: stack frame size (1296) exceeds limit (1280) in 'cn10k_ddr_perf_probe' [-Werror,-Wframe-larger-than]
1168 | static int cn10k_ddr_perf_probe(struct platform_device *pdev)
| ^
Avoid this warning and simplify the code by turning these into static
const structures and directly assigning them without the extra copy.
Fixes: 9b551a2446b2 ("perf: marvell: Add CN20K DDR PMU support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
