linux-stable/drivers/gpu/drm/nouveau/nvkm
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
..
core nouveau: lock the client object tree. 2024-03-08 13:40:56 +10:00
engine drm fixes for 6.8-rc1 2024-01-17 14:59:05 -08:00
falcon drm/nouveau/gsp/r535: add interrupt handling 2023-10-31 15:08:16 +10:00
nvfw drm/nouveau/nvfw/acr: set wpr_generic_header_dump storage-class-specifier to static 2023-03-16 14:53:15 +01:00
subdev nouveau: fix function cast warning 2024-04-17 11:23:27 +02:00
Kbuild