linux-stable/drivers/gpu/drm/nouveau/nvkm/subdev
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
..
acr drm/nouveau/acr/tu102-: prepare for GSP-RM 2023-10-31 15:08:10 +10:00
bar drm/nouveau/mmu/r535: uninitialized variable in r535_bar_new_() 2024-02-16 18:58:31 +01:00
bios nouveau: fix function cast warning 2024-04-17 11:23:27 +02:00
bus drm/nouveau/bus/tu102-: prepare for GSP-RM 2023-10-31 15:08:10 +10:00
clk drm/nouveau/clk: Move a variable assignment behind a null pointer check in nvkm_pstate_new() 2023-04-17 19:08:03 +02:00
devinit nouveau: fix devinit paths to only handle display on GSP. 2024-04-13 13:10:12 +02:00
fault drm/nouveau/fault/tu102-: prepare for GSP-RM 2023-10-31 15:08:11 +10:00
fb drm/nouveau/mmu/r535: initial support 2023-10-31 15:08:16 +10:00
fuse drm/nouveau/fuse/tu102-: prepare for GSP-RM 2023-10-31 15:08:11 +10:00
gpio drm/nouveau/gpio/tu102-: prepare for GSP-RM 2023-10-31 15:08:11 +10:00
gsp drm/nouveau: keep DMA buffers required for suspend/resume 2024-03-01 15:27:04 +10:00
i2c drm/nouveau/i2c/tu102-: prepare for GSP-RM 2023-10-31 15:08:11 +10:00
iccsense
instmem drm/nouveau: Fixup gk20a instobj hierarchy 2023-12-15 14:10:40 +10:00
ltc iommu/tegra: Use tegra_dev_iommu_get_stream_id() in the remaining places 2023-12-12 10:18:51 +01:00
mc drm/nouveau/mc/tu102-: prepare for GSP-RM 2023-10-31 15:08:12 +10:00
mmu nouveau/tu102: flush all pdbs on vmm flush 2023-11-30 05:47:42 +01:00
mxm
pci drm/nouveau/pci: Move an expression into a function call parameter in nvkm_pcie_set_link() 2023-04-17 19:08:04 +02:00
pmu drm/nouveau/pmu/tu102-: prepare for GSP-RM 2023-10-31 15:08:12 +10:00
privring drm/nouveau/privring/tu102-: prepare for GSP-RM 2023-10-31 15:08:13 +10:00
therm drm/nouveau/therm/tu102-: prepare for GSP-RM 2023-10-31 15:08:13 +10:00
timer
top drm/nouveau/top/tu102-: prepare for GSP-RM 2023-10-31 15:08:13 +10:00
vfn drm/nouveau/vfn/tu102-: prepare for GSP-RM 2023-10-31 15:08:13 +10:00
volt
Kbuild drm/nouveau/vfn: add stub subdev for dev_func 2022-11-09 10:44:36 +10:00