summaryrefslogtreecommitdiff
path: root/net/wireless
diff options
context:
space:
mode:
authorVinod Koul <vkoul@kernel.org>2024-01-19 18:10:44 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-03-01 13:34:48 +0100
commit22dced37d9c7c9975dc2f07e5a8ff107fe04bb1f (patch)
tree30a7dad91475a1b7719fde6095125c2aff30b99a /net/wireless
parent9f11992462ad0c0b5de0c06f3398d467f12bac3b (diff)
downloadlinux-22dced37d9c7c9975dc2f07e5a8ff107fe04bb1f.tar.gz
linux-22dced37d9c7c9975dc2f07e5a8ff107fe04bb1f.tar.bz2
linux-22dced37d9c7c9975dc2f07e5a8ff107fe04bb1f.zip
dmaengine: dw-edma: increase size of 'name' in debugfs code
[ Upstream commit cb95a4fa50bbc1262bfb7fea482388a50b12948f ] We seem to have hit warnings of 'output may be truncated' which is fixed by increasing the size of 'name' drivers/dma/dw-edma/dw-hdma-v0-debugfs.c: In function ‘dw_hdma_v0_debugfs_on’: drivers/dma/dw-edma/dw-hdma-v0-debugfs.c:125:50: error: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 8 [-Werror=format-truncation=] 125 | snprintf(name, sizeof(name), "%s:%d", CHANNEL_STR, i); | ^~ drivers/dma/dw-edma/dw-hdma-v0-debugfs.c: In function ‘dw_hdma_v0_debugfs_on’: drivers/dma/dw-edma/dw-hdma-v0-debugfs.c:142:50: error: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 8 [-Werror=format-truncation=] 142 | snprintf(name, sizeof(name), "%s:%d", CHANNEL_STR, i); | ^~ drivers/dma/dw-edma/dw-edma-v0-debugfs.c: In function ‘dw_edma_debugfs_regs_wr’: drivers/dma/dw-edma/dw-edma-v0-debugfs.c:193:50: error: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 8 [-Werror=format-truncation=] 193 | snprintf(name, sizeof(name), "%s:%d", CHANNEL_STR, i); | ^~ Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/wireless')
0 files changed, 0 insertions, 0 deletions