]> www.infradead.org Git - users/dwmw2/linux.git/commit
dmaengine: fsl-qdma: increase size of 'irq_name'
authorVinod Koul <vkoul@kernel.org>
Fri, 19 Jan 2024 12:40:44 +0000 (18:10 +0530)
committerVinod Koul <vkoul@kernel.org>
Fri, 19 Jan 2024 12:44:04 +0000 (18:14 +0530)
commit6386f6c995b3ab91c72cfb76e4465553c555a8da
treee680ebd0b15cc3b87d31f0d573b978c46aa34c76
parent404290240827c3bb5c4e195174a8854eef2f89ac
dmaengine: fsl-qdma: increase size of 'irq_name'

We seem to have hit warnings of 'output may be truncated' which is fixed
by increasing the size of 'irq_name'

drivers/dma/fsl-qdma.c: In function ‘fsl_qdma_irq_init’:
drivers/dma/fsl-qdma.c:824:46: error: ‘%d’ directive writing between 1 and 11 bytes into a region of size 10 [-Werror=format-overflow=]
  824 |                 sprintf(irq_name, "qdma-queue%d", i);
      |                                              ^~
drivers/dma/fsl-qdma.c:824:35: note: directive argument in the range [-21474836412147483646]
  824 |                 sprintf(irq_name, "qdma-queue%d", i);
      |                                   ^~~~~~~~~~~~~~
drivers/dma/fsl-qdma.c:824:17: note: ‘sprintf’ output between 12 and 22 bytes into a destination of size 20
  824 |                 sprintf(irq_name, "qdma-queue%d", i);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/fsl-qdma.c