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

tls: make tls_sw_free_resources static

Make the needlessly global function tls_sw_free_resources static to fix
a gcc/sparse warning.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Tobias Klauser and committed by
David S. Miller
a5135676 fa5f7b51

+1 -1
+1 -1
net/tls/tls_sw.c
··· 639 639 return ret; 640 640 } 641 641 642 - void tls_sw_free_resources(struct sock *sk) 642 + static void tls_sw_free_resources(struct sock *sk) 643 643 { 644 644 struct tls_context *tls_ctx = tls_get_ctx(sk); 645 645 struct tls_sw_context *ctx = tls_sw_ctx(tls_ctx);