svn commit: r289697 - head/sys/dev/xen/netfront
Roger Pau Monné
royger at FreeBSD.org
Wed Oct 21 13:53:09 UTC 2015
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;
More information about the svn-src-all
mailing list