aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/vmalloc.py
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2023-06-16 16:48:47 +0200
committerMauro Carvalho Chehab <[email protected]>2023-07-14 09:14:09 +0200
commit7ee8acd1b803502878992acd6f99e61f1e8c7a25 (patch)
tree78864e905824fe3119e3457e61d04938304091b4 /scripts/gdb/linux/vmalloc.py
parentd05dea76d4a813eb959ba0a150c45246d54e7148 (diff)
media: verisilicon: fix excessive stack usage
In some configurations, gcc decides not to inline the register accessor functions, which in turn leads to lots of temporary hantro_reg structures on the stack that cannot be eliminated because they escape into an uninlined function: drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c:1022:1: warning: the frame size of 1112 bytes is larger than 1024 bytes [-Wframe-larger-than=] Mark all of these as __always_inline so the compiler is able to completely eliminate the temporary structures instead, which brings the stack usage back down to just the normal local variables. Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ [hverkuil: fix function prototype alignment, wrap commit log] Reported-by: kernel test robot <[email protected]> Fixes: 727a400686a2 ("media: verisilicon: Add Rockchip AV1 decoder") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Nicolas Dufresne <[email protected]> Tested-by: Nathan Chancellor <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions