Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2018 16:32:15 +0000 (UTC)
From:      Vincenzo Maffione <vmaffione@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341992 - head/sys/dev/netmap
Message-ID:  <201812121632.wBCGWFY7035162@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vmaffione
Date: Wed Dec 12 16:32:15 2018
New Revision: 341992
URL: https://svnweb.freebsd.org/changeset/base/341992

Log:
  netmap: fix warning in netmap_kloop.c
  
  Reported by:	markj
  MFC after:	3 days

Modified:
  head/sys/dev/netmap/netmap_kloop.c

Modified: head/sys/dev/netmap/netmap_kloop.c
==============================================================================
--- head/sys/dev/netmap/netmap_kloop.c	Wed Dec 12 16:25:30 2018	(r341991)
+++ head/sys/dev/netmap/netmap_kloop.c	Wed Dec 12 16:32:15 2018	(r341992)
@@ -111,6 +111,7 @@ csb_ktoa_kick_enable(struct nm_csb_ktoa __user *csb_kt
 	CSB_WRITE(csb_ktoa, kern_need_kick, val);
 }
 
+#ifdef SYNC_KLOOP_POLL
 /* Are application interrupt enabled or disabled? */
 static inline uint32_t
 csb_atok_intr_enabled(struct nm_csb_atok __user *csb_atok)
@@ -121,6 +122,7 @@ csb_atok_intr_enabled(struct nm_csb_atok __user *csb_a
 
 	return v;
 }
+#endif  /* SYNC_KLOOP_POLL */
 
 static inline void
 sync_kloop_kring_dump(const char *title, const struct netmap_kring *kring)



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