Date: Wed, 21 Oct 2015 13:53:07 +0000 (UTC) From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= <royger@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r289697 - head/sys/dev/xen/netfront Message-ID: <201510211353.t9LDr7Og080944@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510211353.t9LDr7Og080944>