Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'enabled-wformat-truncation-for-clang'

Arnd Bergmann says:

====================
enabled -Wformat-truncation for clang

With randconfig build testing, I found only eight files that produce
warnings with clang when -Wformat-truncation is enabled. This means
we can just turn it on by default rather than only enabling it for
"make W=1".

Unfortunately, gcc produces a lot more warnings when the option
is enabled, so it's not yet possible to turn it on both compilers.
====================

Link: https://lore.kernel.org/r/20240326223825.4084412-1-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+6 -7
+1 -1
drivers/net/ethernet/freescale/enetc/enetc.c
··· 2769 2769 if (priv->min_num_stack_tx_queues + num_xdp_tx_queues > 2770 2770 priv->num_tx_rings) { 2771 2771 NL_SET_ERR_MSG_FMT_MOD(extack, 2772 - "Reserving %d XDP TXQs does not leave a minimum of %d for stack (total %d)", 2772 + "Reserving %d XDP TXQs leaves under %d for stack (total %d)", 2773 2773 num_xdp_tx_queues, 2774 2774 priv->min_num_stack_tx_queues, 2775 2775 priv->num_tx_rings);
+1 -1
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c
··· 1874 1874 "Failed to lookup bridge port vlan metadata to create MDB (MAC=%pM,vid=%u,vport=%u)\n", 1875 1875 addr, vid, vport_num); 1876 1876 NL_SET_ERR_MSG_FMT_MOD(extack, 1877 - "Failed to lookup bridge port vlan metadata to create MDB (MAC=%pM,vid=%u,vport=%u)\n", 1877 + "Failed to lookup vlan metadata for MDB (MAC=%pM,vid=%u,vport=%u)\n", 1878 1878 addr, vid, vport_num); 1879 1879 return -EINVAL; 1880 1880 }
+4 -5
drivers/net/ethernet/qlogic/qed/qed_main.c
··· 1205 1205 static int qed_slowpath_wq_start(struct qed_dev *cdev) 1206 1206 { 1207 1207 struct qed_hwfn *hwfn; 1208 - char name[NAME_SIZE]; 1209 1208 int i; 1210 1209 1211 1210 if (IS_VF(cdev)) ··· 1213 1214 for_each_hwfn(cdev, i) { 1214 1215 hwfn = &cdev->hwfns[i]; 1215 1216 1216 - snprintf(name, NAME_SIZE, "slowpath-%02x:%02x.%02x", 1217 - cdev->pdev->bus->number, 1218 - PCI_SLOT(cdev->pdev->devfn), hwfn->abs_pf_id); 1217 + hwfn->slowpath_wq = alloc_workqueue("slowpath-%02x:%02x.%02x", 1218 + 0, 0, cdev->pdev->bus->number, 1219 + PCI_SLOT(cdev->pdev->devfn), 1220 + hwfn->abs_pf_id); 1219 1221 1220 - hwfn->slowpath_wq = alloc_workqueue(name, 0, 0); 1221 1222 if (!hwfn->slowpath_wq) { 1222 1223 DP_NOTICE(hwfn, "Cannot create slowpath workqueue\n"); 1223 1224 return -ENOMEM;