linux/drivers/media/platform/mediatek/mdp
Arnd Bergmann bfb1b99802 media: mediatek: vcodec: avoid -Wcast-function-type-strict warning
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: bf1d556ad4 ("media: mtk-vcodec: abstract firmware interface")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2024-02-28 16:00:33 +01:00
..
Kconfig
Makefile
mtk_mdp_comp.c media: Explicitly include correct DT includes 2023-07-19 12:57:51 +02:00
mtk_mdp_comp.h
mtk_mdp_core.c media: platform: mdp: mark OF related data as maybe unused 2023-07-14 12:33:12 +02:00
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 media: mediatek: vcodec: avoid -Wcast-function-type-strict warning 2024-02-28 16:00:33 +01:00
mtk_mdp_vpu.h