Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Oct 2015 17:20:05 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r289231 - head/sys/dev/ixl
Message-ID:  <201510131720.t9DHK5XJ097216@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510131720.t9DHK5XJ097216>