mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-09-21 12:11:49 +08:00
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>
This commit is contained in:
commit
45e0ba9c15
@ -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 >
|
||||
priv->num_tx_rings) {
|
||||
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,
|
||||
priv->min_num_stack_tx_queues,
|
||||
priv->num_tx_rings);
|
||||
|
@ -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",
|
||||
addr, vid, vport_num);
|
||||
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);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
@ -1205,7 +1205,6 @@ out:
|
||||
static int qed_slowpath_wq_start(struct qed_dev *cdev)
|
||||
{
|
||||
struct qed_hwfn *hwfn;
|
||||
char name[NAME_SIZE];
|
||||
int i;
|
||||
|
||||
if (IS_VF(cdev))
|
||||
@ -1214,11 +1213,11 @@ static int qed_slowpath_wq_start(struct qed_dev *cdev)
|
||||
for_each_hwfn(cdev, i) {
|
||||
hwfn = &cdev->hwfns[i];
|
||||
|
||||
snprintf(name, NAME_SIZE, "slowpath-%02x:%02x.%02x",
|
||||
cdev->pdev->bus->number,
|
||||
PCI_SLOT(cdev->pdev->devfn), hwfn->abs_pf_id);
|
||||
hwfn->slowpath_wq = alloc_workqueue("slowpath-%02x:%02x.%02x",
|
||||
0, 0, cdev->pdev->bus->number,
|
||||
PCI_SLOT(cdev->pdev->devfn),
|
||||
hwfn->abs_pf_id);
|
||||
|
||||
hwfn->slowpath_wq = alloc_workqueue(name, 0, 0);
|
||||
if (!hwfn->slowpath_wq) {
|
||||
DP_NOTICE(hwfn, "Cannot create slowpath workqueue\n");
|
||||
return -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user