ASoC: airoha: fix objtool warning with memif probe loop
Subsystems (3)
PATCH 1/1 ASoC: airoha: fix objtool warning with memif probe loop
Objtool produce a warning when clang is used as compiler. This was caused by the memif probe loop when assigning the irq to the memif.
The warning is:
Quoted 1 line
Quoted 1 line
sound/soc/mediatek/an7581/snd-soc-an7581-afe.o: warning: objtool:an7581_afe_pcm_dev_probe(): unexpected end of section .text.an7581_afe_pcm_dev_probe
Fix this by giving a fixed upper bound for the loop for the memif as it seems there are some problem with detecting the runtime value is hardcoded.
Fixes 4974ffa0d6c2 ("ASoC: airoha: Add AFE driver for Airoha AN7581")
Reported-by kernel test robot <[email protected]>
Signed-off-by Christian Marangi <[email protected]>
--- sound/soc/mediatek/an7581/an7581-afe-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/mediatek/an7581/an7581-afe-pcm.c +1 -1
@@ -447,7 +447,7 @@ static int an7581_afe_pcm_dev_probe(struct platform_device *pdev)return irq_id;/* init memif */ -for (i =0 ; i < afe->memif_size; i++) { +for (i =0 ; i <AN7581_MEMIF_NUM ; i++) {int sel_irq = an7581_memif_irq_descs[i].irq; afe->memif[i].data = &memif_data[i];
Signature · 1 line
2.55.0