Author: royger
Date: Wed Oct 21 13:53:07 2015
New Revision: 289697
URL: https://svnweb.freebsd.org/changeset/base/289697

Log:
  netfront: fix LINT-NOIP
  
  r289587 broke LINT-NOIP kernels because the lro and queued local variables
  are defined but not used. Add preprocessor guards around them.
  
  Reported by:  emaste
  Sponsored by: Citrix Systems R&D

Modified:
  head/sys/dev/xen/netfront/netfront.c

Modified: head/sys/dev/xen/netfront/netfront.c
==============================================================================
--- head/sys/dev/xen/netfront/netfront.c        Wed Oct 21 13:16:03 2015        
(r289696)
+++ head/sys/dev/xen/netfront/netfront.c        Wed Oct 21 13:53:07 2015        
(r289697)
@@ -842,8 +842,10 @@ static void
 xn_rxeof(struct netfront_info *np)
 {
        struct ifnet *ifp;
+#if (defined(INET) || defined(INET6))
        struct lro_ctrl *lro = &np->xn_lro;
        struct lro_entry *queued;
+#endif
        struct netfront_rx_info rinfo;
        struct netif_rx_response *rx = &rinfo.rx;
        struct netif_extra_info *extras = rinfo.extras;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to