With KASAN enabled, clang fails to optimize the inline version of vdec_vp9_slice_map_counts_eob_coef() properly, leading to kilobytes of temporary values spilled to the stack: drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c:1526:12: error: stack frame size (2160) exceeds limit (2048) in 'vdec_vp9_slice_update_prob' [-Werror,-Wframe-larger-than] This seems to affect all versions of clang including the latest (clang-20), but the degree of stack overhead is different per release. Marking the function as noinline_for_stack is harmless here and avoids the problem completely. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> |
||
|---|---|---|
| .. | ||
| vdec | ||
| Makefile | ||
| mtk_vcodec_dec.c | ||
| mtk_vcodec_dec.h | ||
| mtk_vcodec_dec_drv.c | ||
| mtk_vcodec_dec_drv.h | ||
| mtk_vcodec_dec_hw.c | ||
| mtk_vcodec_dec_hw.h | ||
| mtk_vcodec_dec_pm.c | ||
| mtk_vcodec_dec_pm.h | ||
| mtk_vcodec_dec_stateful.c | ||
| mtk_vcodec_dec_stateless.c | ||
| vdec_drv_base.h | ||
| vdec_drv_if.c | ||
| vdec_drv_if.h | ||
| vdec_ipi_msg.h | ||
| vdec_msg_queue.c | ||
| vdec_msg_queue.h | ||
| vdec_vpu_if.c | ||
| vdec_vpu_if.h | ||