d6343ad22c
[ 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> |
||
---|---|---|
.. | ||
Makefile | ||
qed.h | ||
qed_chain.c | ||
qed_cxt.c | ||
qed_cxt.h | ||
qed_dcbx.c | ||
qed_dcbx.h | ||
qed_debug.c | ||
qed_debug.h | ||
qed_dev.c | ||
qed_dev_api.h | ||
qed_devlink.c | ||
qed_devlink.h | ||
qed_fcoe.c | ||
qed_fcoe.h | ||
qed_hsi.h | ||
qed_hw.c | ||
qed_hw.h | ||
qed_init_fw_funcs.c | ||
qed_init_ops.c | ||
qed_init_ops.h | ||
qed_int.c | ||
qed_int.h | ||
qed_iscsi.c | ||
qed_iscsi.h | ||
qed_iwarp.c | ||
qed_iwarp.h | ||
qed_l2.c | ||
qed_l2.h | ||
qed_ll2.c | ||
qed_ll2.h | ||
qed_main.c | ||
qed_mcp.c | ||
qed_mcp.h | ||
qed_mng_tlv.c | ||
qed_ooo.c | ||
qed_ooo.h | ||
qed_ptp.c | ||
qed_ptp.h | ||
qed_rdma.c | ||
qed_rdma.h | ||
qed_reg_addr.h | ||
qed_roce.c | ||
qed_roce.h | ||
qed_selftest.c | ||
qed_selftest.h | ||
qed_sp.h | ||
qed_sp_commands.c | ||
qed_spq.c | ||
qed_sriov.c | ||
qed_sriov.h | ||
qed_vf.c | ||
qed_vf.h |