From nobody Wed Oct 8 05:46:27 2025 Received: from mailtransmit05.runbox.com (mailtransmit05.runbox.com [185.226.149.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA193210FB; Wed, 2 Jul 2025 13:38:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.226.149.38 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751463530; cv=none; b=IBYvuGIC0fDpm5yclox19uSizCe24GXTRIsrsUktCdvFM+P5gzTYF0Am212eVy2M8EVqiO9VBxR9YU5SysZtQwEM4Kj5227hr/5yBiuJ16yldRQwkyHg0Inlu8jtrgJvZNzJjGjgJpFgEfa3D/UKEbQmKN4g/Vlz8YWNh7KWXaI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751463530; c=relaxed/simple; bh=4eLuzgj8qf2LZev2QCAZV8vLiljlN4KMGlGZep1Hp+8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JBnvjh87tsT0jUqynnTFsWLzc4VIxhj0N32TqyQl/BHEtGyqF2tzBhKN5eLA6v4zw6oH6cTM0JYaOAadnuLB2mSrmYhFf1MX8J/dU8ldJmhZexXscneVPG0xqT767OzNF7O/L11Lxq04kH2WJs6UdatkQbDdHQEMC63WkXgSPv0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rbox.co; spf=pass smtp.mailfrom=rbox.co; dkim=pass (2048-bit key) header.d=rbox.co header.i=@rbox.co header.b=CzThAC6a; arc=none smtp.client-ip=185.226.149.38 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rbox.co Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rbox.co Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rbox.co header.i=@rbox.co header.b="CzThAC6a" Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1uWxfX-00GxP8-Ma; Wed, 02 Jul 2025 15:38:35 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=rbox.co; s=selector2; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From; bh=tVBIAHVRa1NySUmQqjHQ9VogQkHm52MnGmsms6t9xMo=; b=CzThAC6a8leYxWNj+S+aNDZeuJ QbbNLOSvfrlowi/FYvdbHJ026K6XDtU+RsnGdmUsTFpsq0V5zXk0oMWC6KqYAodF/0IkhFX0vxccF kQavhrIkW9yt67fGGT/J2i1U1LUiMBH4osId+yeIah15IU6fApwaHLTgy4uqYGaZem1/uAm1dPaJv YjNsi0evghn9Kj/o5iABaiOEZfD6ifQ5Zq6WVh4C0ninfrB4sAG1GSjXgtApwRjAoX4TU+qTDLsop JwsCqcdf2TXnJ40xK+LeDyT8EdYe83Xc6sfrcDCtbOt0+7vySVTXivlTRYWXfMpsJ3yGD3tTl/rK0 w4NJFYNw==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1uWxfX-0006En-D4; Wed, 02 Jul 2025 15:38:35 +0200 Received: by submission02.runbox with esmtpsa [Authenticated ID (604044)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1uWxfH-009LCR-MU; Wed, 02 Jul 2025 15:38:19 +0200 From: Michal Luczaj Date: Wed, 02 Jul 2025 15:38:12 +0200 Subject: [PATCH net-next v3 6/6] net: skbuff: Drop unused @skb Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250702-splice-drop-unused-v3-6-55f68b60d2b7@rbox.co> References: <20250702-splice-drop-unused-v3-0-55f68b60d2b7@rbox.co> In-Reply-To: <20250702-splice-drop-unused-v3-0-55f68b60d2b7@rbox.co> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Ayush Sawal , Andrew Lunn , David Ahern , Neal Cardwell , Kuniyuki Iwashima , Wenjia Zhang , Jan Karcher , "D. Wythe" , Tony Lu , Wen Gu Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org, Michal Luczaj X-Mailer: b4 0.14.2 Since its introduction in commit 6fa01ccd8830 ("skbuff: Add pskb_extract() helper function"), pskb_carve_frag_list() never used the argument @skb. Drop it and adapt the only caller. No functional change intended. Reviewed-by: Simon Horman Signed-off-by: Michal Luczaj --- net/core/skbuff.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 4893350bc80a105e0a2870f0de03a687c1117217..277f7d0666691bd54d6e005c84a= 2166175455490 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -6757,8 +6757,7 @@ static int pskb_carve(struct sk_buff *skb, const u32 = off, gfp_t gfp); /* carve out the first eat bytes from skb's frag_list. May recurse into * pskb_carve() */ -static int pskb_carve_frag_list(struct sk_buff *skb, - struct skb_shared_info *shinfo, int eat, +static int pskb_carve_frag_list(struct skb_shared_info *shinfo, int eat, gfp_t gfp_mask) { struct sk_buff *list =3D shinfo->frag_list; @@ -6863,7 +6862,7 @@ static int pskb_carve_inside_nonlinear(struct sk_buff= *skb, const u32 off, skb_clone_fraglist(skb); =20 /* split line is in frag list */ - if (k =3D=3D 0 && pskb_carve_frag_list(skb, shinfo, off - pos, gfp_mask))= { + if (k =3D=3D 0 && pskb_carve_frag_list(shinfo, off - pos, gfp_mask)) { /* skb_frag_unref() is not needed here as shinfo->nr_frags =3D 0. */ if (skb_has_frag_list(skb)) kfree_skb_list(skb_shinfo(skb)->frag_list); --=20 2.49.0