diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-07-22 14:44:43 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-07-22 20:57:35 +0530 |
commit | f0414087a1b9933adac40974c3ea50261227b5f0 (patch) | |
tree | 034448fbc6dc7c4a12a656848fdb0fa48449d25f /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff) |
dmaengine: dw-edma: fix unnecessary stack usage
Putting large constant data on the stack causes unnecessary overhead
and stack usage:
drivers/dma/dw-edma/dw-edma-v0-debugfs.c:285:6: error: stack frame size of 1376 bytes in function 'dw_edma_v0_debugfs_on' [-Werror,-Wframe-larger-than=]
Mark the variable 'static const' in order for the compiler to move it
into the .rodata section where it does no such harm.
Fixes: 305aebeff879 ("dmaengine: Add Synopsys eDMA IP version 0 debugfs support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Link: https://lore.kernel.org/r/20190722124457.1093886-1-arnd@arndb.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions