]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
ixl(4): Remove compile warning for unused function.
authorsbruno <sbruno@FreeBSD.org>
Tue, 13 Oct 2015 17:20:05 +0000 (17:20 +0000)
committersbruno <sbruno@FreeBSD.org>
Tue, 13 Oct 2015 17:20:05 +0000 (17:20 +0000)
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

sys/dev/ixl/if_ixl.c

index f4f070477a56677e1c211bda8613b053c247cd7c..017ac7beb399cb27fb0077ca5f114cd8a7d3aa15 100644 (file)
@@ -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.