mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 23:23:03 +00:00
Merge branch 'octeontx2-address-some-warnings'
Simon Horman says: ==================== octeontx2: Address some warnings This patchset addresses some warnings flagged by Sparse, gcc-14, and clang-18 in files touched by recent patch submissions. Although these changes do not alter the functionality of the code, by addressing them real problems introduced in future which are flagged by Sparse will stand out more readily. v1: https://lore.kernel.org/20240903-octeontx2-sparse-v1-0-f190309ecb0a@kernel.org ==================== Link: https://patch.msgid.link/20240904-octeontx2-sparse-v2-0-14f2305fe4b2@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
commit
c6a1739778
@ -2479,9 +2479,9 @@ static int rvu_mbox_init(struct rvu *rvu, struct mbox_wq_info *mw,
|
||||
goto free_regions;
|
||||
}
|
||||
|
||||
mw->mbox_wq = alloc_workqueue(name,
|
||||
mw->mbox_wq = alloc_workqueue("%s",
|
||||
WQ_UNBOUND | WQ_HIGHPRI | WQ_MEM_RECLAIM,
|
||||
num);
|
||||
num, name);
|
||||
if (!mw->mbox_wq) {
|
||||
err = -ENOMEM;
|
||||
goto unmap_regions;
|
||||
|
@ -687,7 +687,7 @@ static void otx2_sqe_add_ext(struct otx2_nic *pfvf, struct otx2_snd_queue *sq,
|
||||
} else if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4) {
|
||||
__be16 l3_proto = vlan_get_protocol(skb);
|
||||
struct udphdr *udph = udp_hdr(skb);
|
||||
u16 iplen;
|
||||
__be16 iplen;
|
||||
|
||||
ext->lso_sb = skb_transport_offset(skb) +
|
||||
sizeof(struct udphdr);
|
||||
|
Loading…
Reference in New Issue
Block a user