kernel_samsung_a53x/drivers/net/ethernet/qlogic
Arnd Bergmann d6343ad22c qed: avoid truncating work queue length
[ Upstream commit 954fd908f177604d4cce77e2a88cc50b29bad5ff ]

clang complains that the temporary string for the name passed into
alloc_workqueue() is too short for its contents:

drivers/net/ethernet/qlogic/qed/qed_main.c:1218:3: error: 'snprintf' will always be truncated; specified size is 16, but format string expands to at least 18 [-Werror,-Wformat-truncation]

There is no need for a temporary buffer, and the actual name of a workqueue
is 32 bytes (WQ_NAME_LEN), so just use the interface as intended to avoid
the truncation.

Fixes: 59ccf86fe69a ("qed: Add driver infrastucture for handling mfw requests.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240326223825.4084412-4-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:26:53 +01:00
..
netxen net: vlan: introduce skb_vlan_eth_hdr() 2024-11-18 12:11:48 +01:00
qed qed: avoid truncating work queue length 2024-11-19 12:26:53 +01:00
qede net: qede: use return from qede_parse_actions() 2024-11-19 11:32:42 +01:00
qlcnic net: vlan: introduce skb_vlan_eth_hdr() 2024-11-18 12:11:48 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qla3xxx.c net/qla3xxx: fix potential memleak in ql_alloc_buffer_queues 2024-11-18 12:12:07 +01:00
qla3xxx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00