The branch main has been updated by np:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=94e6b3fee1e5f1ae52741c367c4a3f93a0c0708d

commit 94e6b3fee1e5f1ae52741c367c4a3f93a0c0708d
Author:     Navdeep Parhar <[email protected]>
AuthorDate: 2022-01-10 20:32:39 +0000
Commit:     Navdeep Parhar <[email protected]>
CommitDate: 2022-01-10 20:35:43 +0000

    cxgbe(4): Fix build warning for LINT-NOIP.
    
    MFC after:      1 week
    Sponsored by:   Chelsio Communications
---
 sys/dev/cxgbe/t4_sge.c | 2 ++
 1 file changed, 2 insertions(+)

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)

Reply via email to