aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sfxge/common/efx_ev.c
diff options
context:
space:
mode:
authorAndrew Rybchenko <arybchik@FreeBSD.org>2015-01-29 18:54:43 +0000
committerAndrew Rybchenko <arybchik@FreeBSD.org>2015-01-29 18:54:43 +0000
commitfe9000816a7202e8957e6528e7fa3244e428158b (patch)
tree54bd852b7e0ea2b00ec528bd63d8efb4e8f5cc6a /sys/dev/sfxge/common/efx_ev.c
parente5e313603ce36ce26da803a0f0dcd0e6ffa23301 (diff)
downloadsrc-fe9000816a7202e8957e6528e7fa3244e428158b.tar.gz
src-fe9000816a7202e8957e6528e7fa3244e428158b.zip
sfxge: Make it possible to build without EVQ statistics
Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
Notes
Notes: svn path=/head/; revision=277886
Diffstat (limited to 'sys/dev/sfxge/common/efx_ev.c')
-rw-r--r--sys/dev/sfxge/common/efx_ev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/sfxge/common/efx_ev.c b/sys/dev/sfxge/common/efx_ev.c
index f8b9aae309d9..515435b21f1b 100644
--- a/sys/dev/sfxge/common/efx_ev.c
+++ b/sys/dev/sfxge/common/efx_ev.c
@@ -995,6 +995,7 @@ fail1:
return (rc);
}
+#if EFSYS_OPT_QSTATS
#if EFSYS_OPT_NAMES
/* START MKCONFIG GENERATED EfxEventQueueStatNamesBlock 67e9bdcd920059bd */
static const char __cs * __cs __efx_ev_qstat_name[] = {
@@ -1052,6 +1053,7 @@ efx_ev_qstat_name(
return (__efx_ev_qstat_name[id]);
}
#endif /* EFSYS_OPT_NAMES */
+#endif /* EFSYS_OPT_QSTATS */
#if EFSYS_OPT_QSTATS
void