mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
5b5089e2a1
clang-16 points out a mismatch in function types that was hidden
by a typecast:
sound/soc/qcom/qdsp6/q6apm-dai.c:355:38: error: cast from 'void (*)(uint32_t, uint32_t, uint32_t *, void *)' (aka 'void (*)(unsigned int, unsigned int, unsigned int *, void *)') to 'q6apm_cb' (aka 'void (*)(unsigned int, unsigned int, void *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
355 | prtd->graph = q6apm_graph_open(dev, (q6apm_cb)event_handler, prtd, graph_id);
sound/soc/qcom/qdsp6/q6apm-dai.c:499:38: error: cast from 'void (*)(uint32_t, uint32_t, uint32_t *, void *)' (aka 'void (*)(unsigned int, unsigned int, unsigned int *, void *)') to 'q6apm_cb' (aka 'void (*)(unsigned int, unsigned int, void *, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
499 | prtd->graph = q6apm_graph_open(dev, (q6apm_cb)event_handler_compr, prtd, graph_id);
The only difference here is the 'payload' argument, which is not even
used in this function, so just fix its type and remove the cast.
Fixes:
|
||
---|---|---|
.. | ||
qdsp6 | ||
apq8016_sbc.c | ||
apq8096.c | ||
common.c | ||
common.h | ||
Kconfig | ||
lpass-apq8016.c | ||
lpass-cdc-dma.c | ||
lpass-cpu.c | ||
lpass-hdmi.c | ||
lpass-hdmi.h | ||
lpass-ipq806x.c | ||
lpass-lpaif-reg.h | ||
lpass-platform.c | ||
lpass-sc7180.c | ||
lpass-sc7280.c | ||
lpass.h | ||
Makefile | ||
sc7180.c | ||
sc7280.c | ||
sc8280xp.c | ||
sdm845.c | ||
sdw.c | ||
sdw.h | ||
sm8250.c | ||
storm.c | ||
x1e80100.c |