Skip to contentSkip to conversation

linux-next: build warning after merge of the slave-dma tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Jun 9, 2016 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Vinod,

After merging the slave-dma tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

drivers/dma/xilinx/xilinx_vdma.c: In function 'xilinx_dma_prep_dma_cyclic':
drivers/dma/xilinx/xilinx_vdma.c:1808:23: warning: 'segment' may be used uninitialized in this function [-Wmaybe-uninitialized]
segment->hw.control |= XILINX_DMA_BD_SOP;

Introduced by commit

92d794dfb699 ("dmaengine: vdma: Add support for cyclic dma mode")

I am not sure if this is tecnically a problem, but gcc certainly cannot tell.

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

Hi Stephen Rothwell,

Quoted 9 lines

Hi Vinod,

After merging the slave-dma tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

drivers/dma/xilinx/xilinx_vdma.c: In function 'xilinx_dma_prep_dma_cyclic':
drivers/dma/xilinx/xilinx_vdma.c:1808:23: warning: 'segment' may be used uninitialized in this function [-Wmaybe-uninitialized]
segment->hw.control |= XILINX_DMA_BD_SOP;

Thanks for reporting the issue.
I have fixed it and sent the patch...

Quoted 6 lines

Introduced by commit

92d794dfb699 ("dmaengine: vdma: Add support for cyclic dma mode")

I am not sure if this is tecnically a problem, but gcc certainly cannot tell.

Thanks,
Kedar.