Skip to contentSkip to conversation

linux-next: build warning after merge of the dmaengine tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Sep 14, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the dmaengine tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/dma/sf-pdma/sf-pdma.c: In function 'sf_pdma_donebh_tasklet':
drivers/dma/sf-pdma/sf-pdma.c:287:23: warning: unused variable 'desc' [-Wunused-variable]
287 | struct sf_pdma_desc *desc = chan->desc;
| ^~~~

Introduced by commit

8f6b6d060602 ("dmaengine: sf-pdma: Fix an error that calls callback twice")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi Stephen,

Quoted 5 lines · Stephen Rothwell

Hi all,

After merging the dmaengine tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

Quoted 8 lines

drivers/dma/sf-pdma/sf-pdma.c: In function 'sf_pdma_donebh_tasklet':
drivers/dma/sf-pdma/sf-pdma.c:287:23: warning: unused variable 'desc' [-Wunused-variable]
287 | struct sf_pdma_desc *desc = chan->desc;
| ^~~~

Introduced by commit

8f6b6d060602 ("dmaengine: sf-pdma: Fix an error that calls callback twice")

Thanks for the report. The function directly uses chan->desc, so yes this can be removed, Sending patch shortly

Thanks

Signature · 1 line
~Vinod