kernel_samsung_a53x/drivers/media/platform/mtk-vcodec
Arnd Bergmann dec7e2753c media: mediatek: vcodec: avoid -Wcast-function-type-strict warning
[ Upstream commit bfb1b99802ef16045402deb855c197591dc78886 ]

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: bf1d556ad4e0 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 08:44:55 +01:00
..
vdec Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
venc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_dec.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_dec.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_dec_drv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_dec_pm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_dec_pm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_drv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_enc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_enc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_enc_drv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_enc_pm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_enc_pm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_fw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_fw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_fw_priv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_fw_scp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_fw_vpu.c media: mediatek: vcodec: avoid -Wcast-function-type-strict warning 2024-11-19 08:44:55 +01:00
mtk_vcodec_intr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_intr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_util.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_vcodec_util.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vdec_drv_base.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vdec_drv_if.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vdec_drv_if.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vdec_ipi_msg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vdec_vpu_if.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vdec_vpu_if.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
venc_drv_base.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
venc_drv_if.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
venc_drv_if.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
venc_ipi_msg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
venc_vpu_if.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
venc_vpu_if.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00