Files
linux-stable-mirror/drivers/gpu/drm
Arnd BergmannandGreg Kroah-Hartman b06a3b1cbd nouveau: fix function cast warnings
[ Upstream commit 0affdba22a ]

clang-16 warns about casting between incompatible function types:

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

This one was done to use the generic shadow_fw_release() function as a
callback for struct nvbios_source. Change it to use the same prototype
as the other five instances, with a trivial helper function that actually
calls release_firmware.

Fixes: 70c0f263cc ("drm/nouveau/bios: pull in basic vbios subdev, more to come later")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240213095753.455062-1-arnd@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01 13:26:36 +01:00
..
2023-09-19 12:27:56 +02:00
2024-02-23 09:12:41 +01:00
2023-11-28 17:07:03 +00:00
2023-08-30 16:10:57 +02:00
2024-01-31 16:17:08 -08:00
2024-01-25 15:27:32 -08:00
2023-08-30 16:10:57 +02:00