diff options
| author | Arnd Bergmann <[email protected]> | 2024-02-24 12:10:22 +0000 |
|---|---|---|
| committer | Hans Verkuil <[email protected]> | 2024-02-28 15:00:33 +0000 |
| commit | bfb1b99802ef16045402deb855c197591dc78886 (patch) | |
| tree | 1894435cc7e33c2670718ae5db4c0930cc0d0fe1 /net/switchdev/switchdev.c | |
| parent | media: ttpci: fix two memleaks in budget_av_attach (diff) | |
| download | kernel-bfb1b99802ef16045402deb855c197591dc78886.tar.gz kernel-bfb1b99802ef16045402deb855c197591dc78886.zip | |
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: bf1d556ad4e0 ("media: mtk-vcodec: abstract firmware interface")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Ricardo Ribalda <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
