This patch fixes the below compilation warining.
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;
The start of packet (SOP) should be set to the first segment in the desc
chain not for the last segment of the desc chain.
Signed-off-by: Kedareswara rao Appana <redacted>
---
drivers/dma/xilinx/xilinx_vdma.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
@@ -1840,7 +1840,7 @@ static struct dma_async_tx_descriptor *xilinx_dma_prep_dma_cyclic(/* For the last DMA_MEM_TO_DEV transfer, set EOP */if(direction==DMA_MEM_TO_DEV){-segment->hw.control|=XILINX_DMA_BD_SOP;+head_segment->hw.control|=XILINX_DMA_BD_SOP;segment=list_last_entry(&desc->segments,structxilinx_axidma_tx_segment,node);
On Thu, Jun 09, 2016 at 11:32:12AM +0530, Kedareswara rao Appana wrote:
This patch fixes the below compilation warining.
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;
The start of packet (SOP) should be set to the first segment in the desc
chain not for the last segment of the desc chain.
I have applied this after adding Reported by from SFR.
You should always give credit to folks who report issues.
Thanks
--
~Vinod
On Thu, Jun 09, 2016 at 11:32:12AM +0530, Kedareswara rao Appana wrote:
quoted
This patch fixes the below compilation warining.
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;
The start of packet (SOP) should be set to the first segment in the
desc chain not for the last segment of the desc chain.
I have applied this after adding Reported by from SFR.
Sorry will fix it next time on wards....
You should always give credit to folks who report issues.