Commit c6a17397 authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

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: default avatarJakub Kicinski <kuba@kernel.org>
parents cca0d69b 7baa90c6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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);