kernel_samsung_a53x/drivers/media/usb/pvrusb2
Arnd Bergmann f160ec1340 media: pvrusb2: fix pvr2_stream_callback casts
[ Upstream commit 30baa4a96b23add91a87305baaeba82c4e109e1f ]

clang-16 complains about a control flow integrity (KCFI) issue in pvrusb2,
which casts three different prototypes into pvr2_stream_callback:

drivers/media/usb/pvrusb2/pvrusb2-v4l2.c:1070:30: error: cast from 'void (*)(struct pvr2_v4l2_fh *)' to 'pvr2_stream_callback' (aka 'void (*)(void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
 1070 |         pvr2_stream_set_callback(sp,(pvr2_stream_callback)pvr2_v4l2_notify,fh);
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/usb/pvrusb2/pvrusb2-context.c:110:6: error: cast from 'void (*)(struct pvr2_context *)' to 'void (*)(void *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  110 |                                         (void (*)(void *))pvr2_context_notify,
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/usb/pvrusb2/pvrusb2-dvb.c:152:6: error: cast from 'void (*)(struct pvr2_dvb_adapter *)' to 'pvr2_stream_callback' (aka 'void (*)(void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
  152 |                                  (pvr2_stream_callback) pvr2_dvb_notify, adap);
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Change the functions to actually take a void* argument so the cast is no longer
needed.

Fixes: bb8ce9d9143c ("V4L/DVB (7682): pvrusb2-dvb: finish up stream & buffer handling")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 08:44:54 +01:00
..
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-audio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-audio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-context.c media: pvrusb2: fix pvr2_stream_callback casts 2024-11-19 08:44:54 +01:00
pvrusb2-context.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-cs53l32a.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-cs53l32a.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-ctrl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-ctrl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-cx2584x-v4l.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-cx2584x-v4l.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-debugifc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-debugifc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-devattr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-devattr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-dvb.c media: pvrusb2: fix pvr2_stream_callback casts 2024-11-19 08:44:54 +01:00
pvrusb2-dvb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-eeprom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-eeprom.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-encoder.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-encoder.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-fx2-cmd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-hdw-internal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-hdw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-hdw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-i2c-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-i2c-core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-io.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-io.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-ioread.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-ioread.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-std.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-std.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-sysfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-util.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-v4l2.c media: pvrusb2: fix pvr2_stream_callback casts 2024-11-19 08:44:54 +01:00
pvrusb2-v4l2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-video-v4l.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-video-v4l.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-wm8775.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2-wm8775.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvrusb2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00