svn commit: r309445 - stable/10/sys/dev/cxgbe/tom
John Baldwin
jhb at FreeBSD.org
Fri Dec 2 22:25:12 UTC 2016
Author: jhb
Date: Fri Dec 2 22:25:11 2016
New Revision: 309445
URL: https://svnweb.freebsd.org/changeset/base/309445
Log:
Fix build without INVARIANTS.
This is a direct commit to stable/10.
Modified:
stable/10/sys/dev/cxgbe/tom/t4_cpl_io.c
stable/10/sys/dev/cxgbe/tom/t4_tom.c
Modified: stable/10/sys/dev/cxgbe/tom/t4_cpl_io.c
==============================================================================
--- stable/10/sys/dev/cxgbe/tom/t4_cpl_io.c Fri Dec 2 21:36:21 2016 (r309444)
+++ stable/10/sys/dev/cxgbe/tom/t4_cpl_io.c Fri Dec 2 22:25:11 2016 (r309445)
@@ -1713,7 +1713,9 @@ do_fw4_ack(struct sge_iq *iq, const stru
int
do_set_tcb_rpl(struct sge_iq *iq, const struct rss_header *rss, struct mbuf *m)
{
+#ifdef INVARIANTS
struct adapter *sc = iq->adapter;
+#endif
const struct cpl_set_tcb_rpl *cpl = (const void *)(rss + 1);
unsigned int tid = GET_TID(cpl);
#ifdef INVARIANTS
Modified: stable/10/sys/dev/cxgbe/tom/t4_tom.c
==============================================================================
--- stable/10/sys/dev/cxgbe/tom/t4_tom.c Fri Dec 2 21:36:21 2016 (r309444)
+++ stable/10/sys/dev/cxgbe/tom/t4_tom.c Fri Dec 2 22:25:11 2016 (r309445)
@@ -123,6 +123,7 @@ mbufq_drain(struct mbufq *q)
q->tail = NULL;
}
+#ifdef INVARIANTS
static inline int
mbufq_len(const struct mbufq *q)
{
@@ -134,6 +135,7 @@ mbufq_len(const struct mbufq *q)
len++;
return (len);
}
+#endif
struct toepcb *
alloc_toepcb(struct vi_info *vi, int txqid, int rxqid, int flags)
More information about the svn-src-stable
mailing list