diff options
author | Jerome Brunet <[email protected]> | 2024-02-13 22:58:03 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-02-14 00:43:30 +0000 |
commit | 98ac85a00f31d2e9d5452b825a9ed0153d934043 (patch) | |
tree | 3e35bf6f2f3b3627590ff85abbc9b1563f66cf88 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | e49676a5fc83e5d396f45ce4b90ca9c44736c69a (diff) |
ASoC: meson: aiu: fix function pointer type mismatch
clang-16 warns about casting functions to incompatible types, as is done
here to call clk_disable_unprepare:
sound/soc/meson/aiu.c:243:12: error: cast from 'void (*)(struct clk *)' to 'void (*)(void *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict]
243 | (void(*)(void *))clk_disable_unprepare,
The pattern of getting, enabling and setting a disable callback for a
clock can be replaced with devm_clk_get_enabled(), which also fixes
this warning.
Fixes: 6ae9ca9ce986 ("ASoC: meson: aiu: add i2s and spdif support")
Reported-by: Arnd Bergmann <[email protected]>
Signed-off-by: Jerome Brunet <[email protected]>
Reviewed-by: Justin Stitt <[email protected]>
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions