summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixl
diff options
context:
space:
mode:
authorsmh <smh@FreeBSD.org>2015-12-11 13:15:22 +0000
committersmh <smh@FreeBSD.org>2015-12-11 13:15:22 +0000
commit4a047a2bc5a2e281678d31bc433042ef5ef8e72b (patch)
tree771bb341c72fb8c8439b8c22eea1b921f31c4e99 /sys/dev/ixl
parentcb8a95b34014691af26da1b81f99342db8d66fe9 (diff)
downloadFreeBSD-src-4a047a2bc5a2e281678d31bc433042ef5ef8e72b.zip
FreeBSD-src-4a047a2bc5a2e281678d31bc433042ef5ef8e72b.tar.gz
MFC r289231: Fix used function warnings in ixl(4)
Sponsored by: Multiplay
Diffstat (limited to 'sys/dev/ixl')
-rw-r--r--sys/dev/ixl/if_ixl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ixl/if_ixl.c b/sys/dev/ixl/if_ixl.c
index 4154164..14d0aeb 100644
--- a/sys/dev/ixl/if_ixl.c
+++ b/sys/dev/ixl/if_ixl.c
@@ -159,8 +159,10 @@ static void ixl_free_mac_filters(struct ixl_vsi *vsi);
/* Sysctl debug interface */
+#ifdef IXL_DEBUG_SYSCTL
static int ixl_debug_info(SYSCTL_HANDLER_ARGS);
static void ixl_print_debug_info(struct ixl_pf *);
+#endif
/* The MSI/X Interrupt handlers */
static void ixl_intr(void *);
@@ -4368,6 +4370,7 @@ ixl_do_adminq(void *context, int pending)
IXL_PF_UNLOCK(pf);
}
+#ifdef IXL_DEBUG_SYSCTL
static int
ixl_debug_info(SYSCTL_HANDLER_ARGS)
{
@@ -4432,6 +4435,7 @@ ixl_print_debug_info(struct ixl_pf *pf)
reg = rd32(hw, I40E_GLPRT_MLFC(hw->port));
printf("mac local fault = %x\n", reg);
}
+#endif
/**
* Update VSI-specific ethernet statistics counters.
OpenPOWER on IntegriCloud