Skip to contentSkip to conversation

strparser: Remove unused __strp_unpause

PATCH Applied [email protected] 3 participants 3 messages May 1, 2025 – May 6, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 strparser: Remove unused __strp_unpause

From: "Dr. David Alan Gilbert" <[email protected]>

The last use of __strp_unpause() was removed in 2022 by commit 84c61fe1a75b ("tls: rx: do not use the standard strparser")

Remove it.

---
 include/net/strparser.h   |  2 --
 net/strparser/strparser.c | 13 -------------
 2 files changed, 15 deletions(-)
include/net/strparser.h +0 -2
index 0a83010b3a64..0ed73e364faa 100644
@@ -114,8 +114,6 @@ static inline void strp_pause(struct strparser *strp)
 
 /* May be called without holding lock for attached socket */
 void strp_unpause(struct strparser *strp);
-/* Must be called with process lock held (lock_sock) */
-void __strp_unpause(struct strparser *strp);
 
 static inline void save_strp_stats(struct strparser *strp,
 				   struct strp_aggr_stats *agg_stats)
net/strparser/strparser.c +0 -13
index 95696f42647e..d946bfb424c7 100644
@@ -485,19 +485,6 @@ int strp_init(struct strparser *strp, struct sock *sk,
 }
 EXPORT_SYMBOL_GPL(strp_init);
 
-/* Sock process lock held (lock_sock) */
-void __strp_unpause(struct strparser *strp)
-{
-	strp->paused = 0;
-
-	if (strp->need_bytes) {
-		if (strp_peek_len(strp) < strp->need_bytes)
-			return;
-	}
-	strp_read_sock(strp);
-}
-EXPORT_SYMBOL_GPL(__strp_unpause);
-
 void strp_unpause(struct strparser *strp)
 {
 	strp->paused = 0;
Signature · 1 line
2.49.0
#2 lore raw
In reply to [email protected]
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Thu, 1 May 2025 01:24:02 +0100 you wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

The last use of __strp_unpause() was removed in 2022 by commit 84c61fe1a75b ("tls: rx: do not use the standard strparser")

Remove it.

[...]

Here is the summary with links:
- [net-next] strparser: Remove unused __strp_unpause

    https://git.kernel.org/netdev/net-next/c/320a66f84022

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html