linux-stable/drivers/gpu/drm/nouveau/nvkm/subdev/bios
Arnd Bergmann f49e24c94e nouveau: fix function cast warning
[ Upstream commit 185fdb4697 ]

Calling a function through an incompatible pointer type causes breaks
kcfi, so clang warns about the assignment:

drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c:73:10: error: cast from 'void (*)(const void *)' to 'void (*)(void *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
   73 |         .fini = (void(*)(void *))kfree,

Avoid this with a trivial wrapper.

Fixes: c39f472e9f ("drm/nouveau: remove symlinks, move core/ to nvkm/ (no code changes)")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240404160234.2923554-1-arnd@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-17 11:23:27 +02:00
..
Kbuild
M0203.c
M0205.c
M0209.c
P0260.c
base.c
bit.c
boost.c
conn.c
cstep.c
dcb.c
disp.c
dp.c
extdev.c
fan.c
gpio.c
i2c.c
iccsense.c
image.c
init.c
mxm.c
npde.c
pcir.c
perf.c
pll.c
pmu.c
power_budget.c
priv.h
ramcfg.c
rammap.c
shadow.c nouveau: fix function cast warnings 2024-02-16 18:38:47 +01:00
shadowacpi.c
shadowof.c nouveau: fix function cast warning 2024-04-17 11:23:27 +02:00
shadowpci.c
shadowramin.c
shadowrom.c
therm.c
timing.c
vmap.c
volt.c
vpstate.c
xpio.c