diff options
| author | Arnd Bergmann <[email protected]> | 2024-02-13 09:57:37 +0000 |
|---|---|---|
| committer | Danilo Krummrich <[email protected]> | 2024-02-16 17:38:47 +0000 |
| commit | 0affdba22aca5573f9d989bcb1d71d32a6a03efe (patch) | |
| tree | fa3fc86bad7db12323af84177466538b27578ca5 /drivers/usb/cdns3/cdns3-starfive.c | |
| parent | drm/buddy: Modify duplicate list_splice_tail call (diff) | |
| download | kernel-0affdba22aca5573f9d989bcb1d71d32a6a03efe.tar.gz kernel-0affdba22aca5573f9d989bcb1d71d32a6a03efe.zip | |
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 <[email protected]>
Signed-off-by: Danilo Krummrich <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-starfive.c')
0 files changed, 0 insertions, 0 deletions
