Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

strparser: Remove unused __strp_unpause

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>

authored by

Dr. David Alan Gilbert and committed by
Jakub Kicinski
320a66f8 b4cd2ee5

-15
-2
include/net/strparser.h
··· 114 114 115 115 /* May be called without holding lock for attached socket */ 116 116 void strp_unpause(struct strparser *strp); 117 - /* Must be called with process lock held (lock_sock) */ 118 - void __strp_unpause(struct strparser *strp); 119 117 120 118 static inline void save_strp_stats(struct strparser *strp, 121 119 struct strp_aggr_stats *agg_stats)
-13
net/strparser/strparser.c
··· 485 485 } 486 486 EXPORT_SYMBOL_GPL(strp_init); 487 487 488 - /* Sock process lock held (lock_sock) */ 489 - void __strp_unpause(struct strparser *strp) 490 - { 491 - strp->paused = 0; 492 - 493 - if (strp->need_bytes) { 494 - if (strp_peek_len(strp) < strp->need_bytes) 495 - return; 496 - } 497 - strp_read_sock(strp); 498 - } 499 - EXPORT_SYMBOL_GPL(__strp_unpause); 500 - 501 488 void strp_unpause(struct strparser *strp) 502 489 { 503 490 strp->paused = 0;