diff options
author | Arnd Bergmann <arnd@arndb.de> | 2024-02-13 10:57:37 +0100 |
---|---|---|
committer | Danilo Krummrich <dakr@redhat.com> | 2024-02-16 18:38:47 +0100 |
commit | 0affdba22aca5573f9d989bcb1d71d32a6a03efe (patch) | |
tree | fa3fc86bad7db12323af84177466538b27578ca5 /drivers/gpu/drm/meson/meson_encoder_dsi.c | |
parent | 02f76a9cd4494719600baf1ab278930df39431ab (diff) |
nouveau: fix function cast warnings
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
Diffstat (limited to 'drivers/gpu/drm/meson/meson_encoder_dsi.c')
0 files changed, 0 insertions, 0 deletions