linux/drivers/dma/xilinx
Vinod Koul bbcd7b588b dmaengine: xilinx: xdma: Workaround truncation compilation error
Increase length to be copied to be large enough to overcome the
following compilation error. The buf is large enough for this purpose.

drivers/dma/xilinx/xilinx_dpdma.c: In function ‘xilinx_dpdma_debugfs_desc_done_irq_read’:
drivers/dma/xilinx/xilinx_dpdma.c:313:39: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
  313 |         snprintf(buf, out_str_len, "%d",
      |                                       ^
drivers/dma/xilinx/xilinx_dpdma.c:313:9: note: ‘snprintf’ output between 2 and 6 bytes into a destination of size 5
  313 |         snprintf(buf, out_str_len, "%d",
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  314 |                  dpdma_debugfs.xilinx_dpdma_irq_done_count);
      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20231222094017.731917-1-vkoul@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2023-12-22 21:17:52 +05:30
..
Makefile dmaengine: xilinx: xdma: Add xilinx xdma driver 2023-02-10 11:32:26 +05:30
xdma-regs.h dmaengine: xilinx: xdma: Ease dma_pool alignment requirements 2023-12-21 21:51:54 +05:30
xdma.c dmaengine: xilinx: xdma: Implement interleaved DMA transfers 2023-12-22 12:19:41 +05:30
xilinx_dma.c dmaengine: xilinx: xilinx_dma: Fix kernel doc about xilinx_dma_remove() 2023-10-16 12:26:57 +05:30
xilinx_dpdma.c dmaengine: xilinx: xdma: Workaround truncation compilation error 2023-12-22 21:17:52 +05:30
zynqmp_dma.c dmaengine: xilinx: zynqmp_dma: Convert to platform remove callback returning void 2023-09-28 13:10:59 +05:30