svn commit: r289231 - head/sys/dev/ixl
Sean Bruno
sbruno at FreeBSD.org
Tue Oct 13 17:20:07 UTC 2015
Author: sbruno
Date: Tue Oct 13 17:20:05 2015
New Revision: 289231
URL: https://svnweb.freebsd.org/changeset/base/289231
Log:
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
Modified:
head/sys/dev/ixl/if_ixl.c
Modified: head/sys/dev/ixl/if_ixl.c
==============================================================================
--- head/sys/dev/ixl/if_ixl.c Tue Oct 13 17:18:26 2015 (r289230)
+++ head/sys/dev/ixl/if_ixl.c Tue Oct 13 17:20:05 2015 (r289231)
@@ -160,8 +160,10 @@ static void ixl_free_mac_filters(struct
/* 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.
More information about the svn-src-all
mailing list