linux-stable/drivers/media/platform
Arnd Bergmann 32bfbab72a media: mediatek: vcodec: avoid -Wcast-function-type-strict warning
[ Upstream commit 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: 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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:20:51 -04:00
..
allegro-dvt
amlogic
amphion media: amphion: remove mutext lock in condition of wait_event 2024-02-05 20:12:56 +00:00
aspeed
atmel
cadence media: cadence: csi2rx: Unregister v4l2 async notifier 2023-11-20 11:52:14 +01:00
chips-media
intel
marvell media: v4l: Use correct dependency for camera sensor drivers 2023-10-06 14:56:31 +02:00
mediatek media: mediatek: vcodec: avoid -Wcast-function-type-strict warning 2024-03-26 18:20:51 -04:00
nvidia
nxp media: imx-mipi-csis: Fix clock handling in remove() 2024-01-25 15:27:34 -08:00
qcom media: qcom: camss: Comment CSID dt_id field 2024-01-10 17:10:37 +01:00
renesas
rockchip media: rkisp1: Fix IRQ handling due to shared interrupts 2024-03-26 18:20:24 -04:00
samsung media: s3c-camif: Avoid inappropriate kfree() 2023-11-20 11:52:14 +01:00
st
sunxi media: sun8i-di: Fix chroma difference threshold 2024-03-26 18:20:49 -04:00
ti
verisilicon media: verisilicon: Hook the (TRY_)DECODER_CMD stateless ioctls 2024-01-25 15:27:32 -08:00
via media: via: Use correct dependency for camera sensor drivers 2023-10-06 14:56:32 +02:00
xilinx
Kconfig
m2m-deinterlace.c
Makefile
video-mux.c