]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
strparser: Remove unused __strp_unpause
authorDr. David Alan Gilbert <linux@treblig.org>
Thu, 1 May 2025 00:24:02 +0000 (01:24 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 5 May 2025 23:48:12 +0000 (16:48 -0700)
The last use of __strp_unpause() was removed in 2022 by
commit 84c61fe1a75b ("tls: rx: do not use the standard strparser")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250501002402.308843-1-linux@treblig.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/strparser.h
net/strparser/strparser.c

index 0a83010b3a64a9d87803e50f51feac1cdbc92794..0ed73e364faa298c458c210a1f70ce9f081c5062 100644 (file)
@@ -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)
index 95696f42647ec1f5510ea02cd663d421a0ed44d2..d946bfb424c7f56f88dd6d074e902b6f24f9129f 100644 (file)
@@ -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;