kernel_samsung_a53x/drivers/gpu/drm/nouveau/nvkm/subdev
Arnd Bergmann 883ae13426 nouveau: fix function cast warnings
[ Upstream commit 0affdba22aca5573f9d989bcb1d71d32a6a03efe ]

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: 70c0f263cc2e ("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-11-18 22:25:41 +01:00
..
acr Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bar Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bios nouveau: fix function cast warnings 2024-11-18 22:25:41 +01:00
bus Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clk Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devinit Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fault Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fb Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fuse Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gpio Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gsp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ibus Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iccsense Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
instmem Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ltc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmu nouveau/tu102: flush all pdbs on vmm flush 2024-11-18 12:12:13 +01:00
mxm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmu Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
therm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
timer Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
top Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
volt Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kbuild Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00