diff --git a/sys/dev/cxgbe/t4_sge.c b/sys/dev/cxgbe/t4_sge.c index 228b6aa38a3a..c667a4e69913 100644 --- a/sys/dev/cxgbe/t4_sge.c +++ b/sys/dev/cxgbe/t4_sge.c @@ -2513,6 +2513,7 @@ needs_vlan_insertion(struct mbuf *m) return (m->m_flags & M_VLANTAG); } +#if defined(INET) || defined(INET6) static void * m_advance(struct mbuf **pm, int *poffset, int len) { @@ -2537,6 +2538,7 @@ m_advance(struct mbuf **pm, int *poffset, int len) *pm = m; return ((void *)p); } +#endif static inline int count_mbuf_ext_pgs(struct mbuf *m, int skip, vm_paddr_t *nextaddr)