Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jul 2020 07:15:23 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363512 - head/sys/kern
Message-ID:  <202007250715.06P7FNMJ016607@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Sat Jul 25 07:15:23 2020
New Revision: 363512
URL: https://svnweb.freebsd.org/changeset/base/363512

Log:
  Guard sbcompress_ktls_rx with KERN_TLS
  
  Fixes a compilation warning after r363464

Modified:
  head/sys/kern/uipc_sockbuf.c

Modified: head/sys/kern/uipc_sockbuf.c
==============================================================================
--- head/sys/kern/uipc_sockbuf.c	Sat Jul 25 07:14:33 2020	(r363511)
+++ head/sys/kern/uipc_sockbuf.c	Sat Jul 25 07:15:23 2020	(r363512)
@@ -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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007250715.06P7FNMJ016607>