linux-stable/drivers/gpu/drm/nouveau/nvkm/subdev
Arnd Bergmann aebbe59bd6 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:19:27 +02:00
..
acr drm/nouveau/acr: Abort loading ACR if no firmware was found 2023-07-12 22:34:41 +02:00
bar
bios nouveau: fix function cast warning 2024-04-17 11:19:27 +02:00
bus
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 drm next for 6.3-rc1 2023-02-22 18:28:03 -08:00
fault drm/nouveau/fault/tu102: switch to explicit intr handlers 2022-11-09 10:44:36 +10:00
fb drm/nouveau/fb/ga102-: construct vidmem heap via new gp102 paths 2023-07-06 17:22:33 +02:00
fuse
gpio drm/nouveau/nvkm: rip out old notify 2022-11-09 10:44:27 +10:00
gsp drm/nouveau/acr/ga102: set variable ga102_gsps storage-class-specifier to static 2023-05-22 16:39:04 +02:00
i2c drm/nouveau/i2c: fix number of aux event slots 2023-07-19 11:08:47 +02:00
iccsense
instmem iommu: Add a gfp parameter to iommu_map() 2023-01-25 11:52:00 +01:00
ltc drm/nouveau/ltc/ga102: initial support 2022-11-09 10:45:21 +10:00
mc drm/nouveau/mc/ga100: make ga100_mc_device static 2023-04-11 17:03:03 +02:00
mmu nouveau/tu102: flush all pdbs on vmm flush 2024-01-20 11:51:40 +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/acr/gm20b: regression fixes 2023-01-30 18:50:09 -05:00
privring
therm drm/nouveau/therm: Move an assignment statement behind a null pointer check in two functions 2023-04-17 19:08:04 +02:00
timer
top drm/nouveau/top: parse device topology right after devinit 2022-11-09 10:44:35 +10:00
vfn drm/nouveau/vfn/tu102-: support new-style interrupt tree 2022-11-09 10:44:36 +10:00
volt
Kbuild drm/nouveau/vfn: add stub subdev for dev_func 2022-11-09 10:44:36 +10:00