mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 09:01:34 +00: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:
|
||
---|---|---|
.. | ||
audioreach.c | ||
audioreach.h | ||
Makefile | ||
q6adm.c | ||
q6adm.h | ||
q6afe-clocks.c | ||
q6afe-dai.c | ||
q6afe.c | ||
q6afe.h | ||
q6apm-dai.c | ||
q6apm-lpass-dais.c | ||
q6apm.c | ||
q6apm.h | ||
q6asm-dai.c | ||
q6asm.c | ||
q6asm.h | ||
q6core.c | ||
q6core.h | ||
q6dsp-common.c | ||
q6dsp-common.h | ||
q6dsp-errno.h | ||
q6dsp-lpass-clocks.c | ||
q6dsp-lpass-clocks.h | ||
q6dsp-lpass-ports.c | ||
q6dsp-lpass-ports.h | ||
q6prm-clocks.c | ||
q6prm.c | ||
q6prm.h | ||
q6routing.c | ||
q6routing.h | ||
topology.c |