cxgbe(4): Fix build warning for LINT-NOIP.

MFC after:	1 week
Sponsored by:	Chelsio Communications
This commit is contained in:
Navdeep Parhar 2022-01-10 12:32:39 -08:00
parent 39d5cbdc1b
commit 94e6b3fee1

View File

@ -2513,6 +2513,7 @@ needs_vlan_insertion(struct mbuf *m)
return (m->m_flags & M_VLANTAG); return (m->m_flags & M_VLANTAG);
} }
#if defined(INET) || defined(INET6)
static void * static void *
m_advance(struct mbuf **pm, int *poffset, int len) m_advance(struct mbuf **pm, int *poffset, int len)
{ {
@ -2537,6 +2538,7 @@ m_advance(struct mbuf **pm, int *poffset, int len)
*pm = m; *pm = m;
return ((void *)p); return ((void *)p);
} }
#endif
static inline int static inline int
count_mbuf_ext_pgs(struct mbuf *m, int skip, vm_paddr_t *nextaddr) count_mbuf_ext_pgs(struct mbuf *m, int skip, vm_paddr_t *nextaddr)