Module Name:    src
Committed By:   kamil
Date:           Wed Jun  6 20:02:31 UTC 2018

Modified Files:
        src/sys/dev/pci/ixgbe: ixgbe.c ixv.c

Log Message:
Comment out unused functions in order to fix Clang build

ixv_rearm_queues() and ixgbe_rearm_queues() are unused.

Sponsored by <The NetBSD Foundation>


To generate a diff of this commit:
cvs rdiff -u -r1.160 -r1.161 src/sys/dev/pci/ixgbe/ixgbe.c
cvs rdiff -u -r1.104 -r1.105 src/sys/dev/pci/ixgbe/ixv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/ixgbe/ixgbe.c
diff -u src/sys/dev/pci/ixgbe/ixgbe.c:1.160 src/sys/dev/pci/ixgbe/ixgbe.c:1.161
--- src/sys/dev/pci/ixgbe/ixgbe.c:1.160	Mon Jun  4 02:42:23 2018
+++ src/sys/dev/pci/ixgbe/ixgbe.c	Wed Jun  6 20:02:31 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.160 2018/06/04 02:42:23 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.161 2018/06/06 20:02:31 kamil Exp $ */
 
 /******************************************************************************
 
@@ -191,7 +191,9 @@ static void	ixgbe_config_delay_values(st
 static void	ixgbe_config_link(struct adapter *);
 static void	ixgbe_check_wol_support(struct adapter *);
 static int	ixgbe_setup_low_power_mode(struct adapter *);
+#if 0
 static void	ixgbe_rearm_queues(struct adapter *, u64);
+#endif
 
 static void     ixgbe_initialize_transmit_units(struct adapter *);
 static void     ixgbe_initialize_receive_units(struct adapter *);
@@ -6642,6 +6644,7 @@ ixgbe_handle_link(void *context)
 	IXGBE_CORE_UNLOCK(adapter);
 } /* ixgbe_handle_link */
 
+#if 0
 /************************************************************************
  * ixgbe_rearm_queues
  ************************************************************************/
@@ -6669,3 +6672,4 @@ ixgbe_rearm_queues(struct adapter *adapt
 		break;
 	}
 } /* ixgbe_rearm_queues */
+#endif

Index: src/sys/dev/pci/ixgbe/ixv.c
diff -u src/sys/dev/pci/ixgbe/ixv.c:1.104 src/sys/dev/pci/ixgbe/ixv.c:1.105
--- src/sys/dev/pci/ixgbe/ixv.c:1.104	Mon Jun  4 02:42:23 2018
+++ src/sys/dev/pci/ixgbe/ixv.c	Wed Jun  6 20:02:31 2018
@@ -1,4 +1,4 @@
-/*$NetBSD: ixv.c,v 1.104 2018/06/04 02:42:23 msaitoh Exp $*/
+/*$NetBSD: ixv.c,v 1.105 2018/06/06 20:02:31 kamil Exp $*/
 
 /******************************************************************************
 
@@ -873,12 +873,14 @@ out:
 	mutex_exit(&que->dc_mtx);
 } /* ixv_disable_queue */
 
+#if 0
 static inline void
 ixv_rearm_queues(struct adapter *adapter, u64 queues)
 {
 	u32 mask = (IXGBE_EIMS_RTX_QUEUE & queues);
 	IXGBE_WRITE_REG(&adapter->hw, IXGBE_VTEICS, mask);
 } /* ixv_rearm_queues */
+#endif
 
 
 /************************************************************************

Reply via email to