summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixl
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2015-10-13 17:20:05 +0000
committersbruno <sbruno@FreeBSD.org>2015-10-13 17:20:05 +0000
commit87513df0117018831a9065eae7f1dc454f7088a8 (patch)
treeb593bf10322beb10c92721d3017b4ffe232e96e5 /sys/dev/ixl
parent15f4d13e5bc1d97d985dae26b38c0c9951a1372a (diff)
downloadFreeBSD-src-87513df0117018831a9065eae7f1dc454f7088a8.zip
FreeBSD-src-87513df0117018831a9065eae7f1dc454f7088a8.tar.gz
ixl(4): Remove compile warning for unused function.
sys/dev/ixl/if_ixl.c:4377:1: warning: unused function 'ixl_debug_info' [-Wunused-function] ixl_debug_info(SYSCTL_HANDLER_ARGS) Differential Revision: https://reviews.freebsd.org/D3718 Submitted by: bz
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 f4f0704..017ac7b 100644
--- a/sys/dev/ixl/if_ixl.c
+++ b/sys/dev/ixl/if_ixl.c
@@ -160,8 +160,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 *);
@@ -4373,6 +4375,7 @@ ixl_do_adminq(void *context, int pending)
IXL_PF_UNLOCK(pf);
}
+#ifdef IXL_DEBUG_SYSCTL
static int
ixl_debug_info(SYSCTL_HANDLER_ARGS)
{
@@ -4437,6 +4440,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