kernel_samsung_a53x/drivers/net/wireless/broadcom/brcm80211/brcmsmac
Arnd Bergmann 10e44311bd wifi: brcmsmac: avoid function pointer casts
[ Upstream commit e1ea6db35fc3ba5ff063f097385e9f7a88c25356 ]

An old cleanup went a little too far and causes a warning with clang-16
and higher as it breaks control flow integrity (KCFI) rules:

drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy_shim.c:64:34: error: cast from 'void (*)(struct brcms_phy *)' to 'void (*)(void *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
   64 |                         brcms_init_timer(physhim->wl, (void (*)(void *))fn,
      |                                                       ^~~~~~~~~~~~~~~~~~~~

Change this one instance back to passing a void pointer so it can be
used with the timer callback interface.

Fixes: d89a4c80601d ("staging: brcm80211: removed void * from softmac phy")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240213100548.457854-1-arnd@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 08:44:45 +01:00
..
phy wifi: brcmsmac: avoid function pointer casts 2024-11-19 08:44:45 +01:00
aiutils.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aiutils.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ampdu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ampdu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
antsel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
antsel.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
brcms_trace_brcmsmac.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
brcms_trace_brcmsmac_msg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
brcms_trace_brcmsmac_tx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
brcms_trace_events.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
brcms_trace_events.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
channel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
channel.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
d11.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dma.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
led.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
led.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mac80211_if.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mac80211_if.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
main.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phy_shim.c wifi: brcmsmac: avoid function pointer casts 2024-11-19 08:44:45 +01:00
phy_shim.h wifi: brcmsmac: avoid function pointer casts 2024-11-19 08:44:45 +01:00
pmu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pub.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rate.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
types.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ucode_loader.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ucode_loader.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00