Commit 45e0ba9c authored by Jakub Kicinski's avatar Jakub Kicinski

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.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parents b6694abc b324a960
...@@ -2769,7 +2769,7 @@ static int enetc_setup_xdp_prog(struct net_device *ndev, struct bpf_prog *prog, ...@@ -2769,7 +2769,7 @@ static int enetc_setup_xdp_prog(struct net_device *ndev, struct bpf_prog *prog,
if (priv->min_num_stack_tx_queues + num_xdp_tx_queues > if (priv->min_num_stack_tx_queues + num_xdp_tx_queues >
priv->num_tx_rings) { priv->num_tx_rings) {
NL_SET_ERR_MSG_FMT_MOD(extack, NL_SET_ERR_MSG_FMT_MOD(extack,
"Reserving %d XDP TXQs does not leave a minimum of %d for stack (total %d)", "Reserving %d XDP TXQs leaves under %d for stack (total %d)",
num_xdp_tx_queues, num_xdp_tx_queues,
priv->min_num_stack_tx_queues, priv->min_num_stack_tx_queues,
priv->num_tx_rings); priv->num_tx_rings);
......
...@@ -1874,7 +1874,7 @@ int mlx5_esw_bridge_port_mdb_add(struct net_device *dev, u16 vport_num, u16 esw_ ...@@ -1874,7 +1874,7 @@ int mlx5_esw_bridge_port_mdb_add(struct net_device *dev, u16 vport_num, u16 esw_
"Failed to lookup bridge port vlan metadata to create MDB (MAC=%pM,vid=%u,vport=%u)\n", "Failed to lookup bridge port vlan metadata to create MDB (MAC=%pM,vid=%u,vport=%u)\n",
addr, vid, vport_num); addr, vid, vport_num);
NL_SET_ERR_MSG_FMT_MOD(extack, NL_SET_ERR_MSG_FMT_MOD(extack,
"Failed to lookup bridge port vlan metadata to create MDB (MAC=%pM,vid=%u,vport=%u)\n", "Failed to lookup vlan metadata for MDB (MAC=%pM,vid=%u,vport=%u)\n",
addr, vid, vport_num); addr, vid, vport_num);
return -EINVAL; return -EINVAL;
} }
......
...@@ -1205,7 +1205,6 @@ static void qed_slowpath_task(struct work_struct *work) ...@@ -1205,7 +1205,6 @@ static void qed_slowpath_task(struct work_struct *work)
static int qed_slowpath_wq_start(struct qed_dev *cdev) static int qed_slowpath_wq_start(struct qed_dev *cdev)
{ {
struct qed_hwfn *hwfn; struct qed_hwfn *hwfn;
char name[NAME_SIZE];
int i; int i;
if (IS_VF(cdev)) if (IS_VF(cdev))
...@@ -1214,11 +1213,11 @@ static int qed_slowpath_wq_start(struct qed_dev *cdev) ...@@ -1214,11 +1213,11 @@ static int qed_slowpath_wq_start(struct qed_dev *cdev)
for_each_hwfn(cdev, i) { for_each_hwfn(cdev, i) {
hwfn = &cdev->hwfns[i]; hwfn = &cdev->hwfns[i];
snprintf(name, NAME_SIZE, "slowpath-%02x:%02x.%02x", hwfn->slowpath_wq = alloc_workqueue("slowpath-%02x:%02x.%02x",
cdev->pdev->bus->number, 0, 0, cdev->pdev->bus->number,
PCI_SLOT(cdev->pdev->devfn), hwfn->abs_pf_id); PCI_SLOT(cdev->pdev->devfn),
hwfn->abs_pf_id);
hwfn->slowpath_wq = alloc_workqueue(name, 0, 0);
if (!hwfn->slowpath_wq) { if (!hwfn->slowpath_wq) {
DP_NOTICE(hwfn, "Cannot create slowpath workqueue\n"); DP_NOTICE(hwfn, "Cannot create slowpath workqueue\n");
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment