Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Mar 2022 21:45:55 GMT
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: d30946f4ad5b - stable/13 - cxgbe(4): Fix build warning for LINT-NOIP.
Message-ID:  <202203022145.222LjtM2051039@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by np:

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

commit d30946f4ad5bdc0e98e235bd0b7fca8c71c91dcd
Author:     Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2022-01-10 20:32:39 +0000
Commit:     Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2022-03-02 21:28:40 +0000

    cxgbe(4): Fix build warning for LINT-NOIP.
    
    MFC after:      1 week
    Sponsored by:   Chelsio Communications
    
    (cherry picked from commit 94e6b3fee1e5f1ae52741c367c4a3f93a0c0708d)
---
 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 092d8e59b889..131fb617e102 100644
--- a/sys/dev/cxgbe/t4_sge.c
+++ b/sys/dev/cxgbe/t4_sge.c
@@ -2511,6 +2511,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)
 {
@@ -2535,6 +2536,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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203022145.222LjtM2051039>