]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: sta2x11: fix irq handler cast
authorArnd Bergmann <arnd@arndb.de>
Tue, 13 Feb 2024 09:54:47 +0000 (10:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 11:07:35 +0000 (13:07 +0200)
commitcb9420142e500f65ba6a6016c850bb4ce4dccdb1
tree03cf779634ec137797946e1c461b4335159ee264
parent214a6c4a28c11d67044e6cf3a0ab415050d9f03a
media: sta2x11: fix irq handler cast

[ Upstream commit 3de49ae81c3a0f83a554ecbce4c08e019f30168e ]

clang-16 warns about casting incompatible function pointers:

drivers/media/pci/sta2x11/sta2x11_vip.c:1057:6: error: cast from 'irqreturn_t (*)(int, struct sta2x11_vip *)' (aka 'enum irqreturn (*)(int, struct sta2x11_vip *)') to 'irq_handler_t' (aka 'enum irqreturn (*)(int, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]

Change the prototype of the irq handler to the regular version with a
local variable to adjust the argument type.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil: update argument documentation]
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/pci/sta2x11/sta2x11_vip.c