mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
bfb1b99802
The ipi handler here tries hard to maintain const-ness of its argument,
but by doing that causes a warning about function type casts:
drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_fw_vpu.c:38:32: error: cast from 'mtk_vcodec_ipi_handler' (aka 'void (*)(void *, unsigned int, void *)') to 'ipi_handler_t' (aka 'void (*)(const void *, unsigned int, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
38 | ipi_handler_t handler_const = (ipi_handler_t)handler;
| ^~~~~~~~~~~~~~~~~~~~~~
Remove the hack and just use a non-const argument.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
mtk_mdp_comp.c | ||
mtk_mdp_comp.h | ||
mtk_mdp_core.c | ||
mtk_mdp_core.h | ||
mtk_mdp_ipi.h | ||
mtk_mdp_m2m.c | ||
mtk_mdp_m2m.h | ||
mtk_mdp_regs.c | ||
mtk_mdp_regs.h | ||
mtk_mdp_vpu.c | ||
mtk_mdp_vpu.h |