From d1385ab26e090d3c442327378ae9b03d587c6a18 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Sat, 25 Jul 2020 07:15:23 +0000 Subject: [PATCH] Guard sbcompress_ktls_rx with KERN_TLS Fixes a compilation warning after r363464 --- sys/kern/uipc_sockbuf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c index bcdc0970c778..7a364ba3d5d2 100644 --- a/sys/kern/uipc_sockbuf.c +++ b/sys/kern/uipc_sockbuf.c @@ -70,8 +70,10 @@ u_long sb_max_adj = static u_long sb_efficiency = 8; /* parameter for sbreserve() */ +#ifdef KERN_TLS static void sbcompress_ktls_rx(struct sockbuf *sb, struct mbuf *m, struct mbuf *n); +#endif static struct mbuf *sbcut_internal(struct sockbuf *sb, int len); static void sbflush_internal(struct sockbuf *sb);