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) _______________________________________________ svn-src-stable-10@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10 To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"