android_kernel_xiaomi_sm8450/drivers/media/platform
Arnd Bergmann 6c5a15622e 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: 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:21:59 -04:00
..
am437x media: am437x: fix pm_runtime_get_sync() usage count 2021-07-14 16:55:48 +02:00
atmel media: atmel: atmel-isc: rework component offsets 2020-07-19 07:55:39 +02:00
cadence media: Kconfig files: use select for V4L2 subdevs and MC 2020-04-14 10:29:05 +02:00
coda media: coda: Add check for kmalloc 2023-01-14 10:15:40 +01:00
davinci media: davinci: vpif: fix unbalanced runtime PM enable 2022-04-08 14:39:58 +02:00
exynos4-is media: platform: exynos4-is: Fix error handling in fimc_md_init() 2023-01-14 10:15:30 +01:00
exynos-gsc media: exynos-gsc: fix pm_runtime_get_sync() usage count 2021-07-14 16:55:49 +02:00
marvell-ccic media: marvel-ccic: fix some issues when getting pm_runtime 2021-07-14 16:55:48 +02:00
mtk-jpeg media: mtk-jpeg: Fix use after free bug due to error path handling in mtk_jpeg_dec_device_run 2024-02-23 08:42:00 +01:00
mtk-mdp media: mediatek: vcodec: avoid -Wcast-function-type-strict warning 2024-03-26 18:21:59 -04:00
mtk-vcodec media: mediatek: vcodec: avoid -Wcast-function-type-strict warning 2024-03-26 18:21:59 -04:00
mtk-vpu media: mediatek: vcodec: avoid -Wcast-function-type-strict warning 2024-03-26 18:21:59 -04:00
omap
omap3isp media: platform: ti: Add missing check for devm_regulator_get 2023-03-11 16:39:46 +01:00
qcom media: qcom: camss: Fix vfe_get() error jump 2023-11-28 16:55:01 +00:00
rcar-vin media: rcar-vin: Select correct interrupt mode for V4L2_FIELD_ALTERNATE 2023-06-09 10:30:08 +02:00
rockchip/rga media: rockchip: rga: fix swizzling for RGB formats 2024-02-23 08:42:11 +01:00
s3c-camif media: s3c-camif: Avoid inappropriate kfree() 2023-11-20 11:06:54 +01:00
s5p-g2d media: s5p-g2d: Fix a memory leak on ctx->fh.m2m_ctx 2021-07-14 16:56:07 +02:00
s5p-jpeg media: s5p-jpeg: fix pm_runtime_get_sync() usage count 2021-07-14 16:55:49 +02:00
s5p-mfc media: s5p-mfc: Fix in register read and write for H264 2023-01-14 10:16:41 +01:00
sti media: bdisp: Add missing check for create_workqueue 2023-05-17 11:47:41 +02:00
stm32 media: stm32: Potential NULL pointer dereference in dcmi_irq_thread() 2021-11-18 14:03:55 +01:00
sunxi media: sun8i-di: Fix chroma difference threshold 2024-03-26 18:21:57 -04:00
ti-vpe media: ti-vpe: cal: avoid FIELD_GET assertion 2023-06-09 10:30:18 +02:00
vsp1 media: vsp1: Fix offset calculation for plane cropping 2022-06-09 10:21:08 +02:00
xilinx media: xilinx: vipp: Fix refcount leak in xvip_graph_dma_init 2022-10-26 13:25:33 +02:00
aspeed-video.c media: aspeed: Fix an error handling path in aspeed_video_probe() 2022-06-09 10:21:08 +02:00
fsl-viu.c media: fsl-viu: Do not redefine out_be32()/in_be32() for CONFIG_M68K 2020-08-29 08:07:48 +02:00
imx-pxp.c media: imx-pxp: Initialize the spinlock prior to using it 2022-01-27 10:53:51 +01:00
imx-pxp.h
Kconfig media: mtk-vcodec: fix build breakage when one of VPU or SCP is enabled 2020-11-05 14:32:11 +01:00
m2m-deinterlace.c
Makefile media: media: sh_veu: Remove driver 2020-05-14 14:34:38 +02:00
mx2_emmaprp.c media: mx2_emmaprp: Fix memleak in emmaprp_probe 2020-09-26 10:15:39 +02:00
pxa_camera.c media: pxa_camera: declare variable when DEBUG is defined 2021-03-04 11:37:43 +01:00
rcar_drif.c Revert "media: rcar_drif: fix a memory disclosure" 2021-05-26 12:06:55 +02:00
rcar_fdp1.c media: rcar_fdp1: Fix refcount leak in probe and remove function 2023-05-17 11:47:44 +02:00
rcar_jpu.c media: Add V4L2_TYPE_IS_CAPTURE helper 2020-07-19 08:13:24 +02:00
rcar-fcp.c media: platform: fcp: Fix a reference count leak. 2020-09-27 10:52:52 +02:00
renesas-ceu.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
sh_vou.c media: sh_vou: fix pm_runtime_get_sync() usage count 2021-07-14 16:55:49 +02:00
via-camera.c Power management updates for 5.7-rc1 2020-03-30 15:05:01 -07:00
via-camera.h
video-mux.c media: video-mux: Skip dangling endpoints 2021-07-14 16:56:11 +02:00