Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/ixgbe Comment out unused functions in order to f...



details:   https://anonhg.NetBSD.org/src/rev/48e332c7ea69
branches:  trunk
changeset: 323279:48e332c7ea69
user:      kamil <kamil%NetBSD.org@localhost>
date:      Wed Jun 06 20:02:31 2018 +0000

description:
Comment out unused functions in order to fix Clang build

ixv_rearm_queues() and ixgbe_rearm_queues() are unused.

Sponsored by <The NetBSD Foundation>

diffstat:

 sys/dev/pci/ixgbe/ixgbe.c |  6 +++++-
 sys/dev/pci/ixgbe/ixv.c   |  4 +++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diffs (56 lines):

diff -r c7f2b8f75354 -r 48e332c7ea69 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Wed Jun 06 19:49:51 2018 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Wed Jun 06 20:02:31 2018 +0000
@@ -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_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_CORE_UNLOCK(adapter);
 } /* ixgbe_handle_link */
 
+#if 0
 /************************************************************************
  * ixgbe_rearm_queues
  ************************************************************************/
@@ -6669,3 +6672,4 @@
                break;
        }
 } /* ixgbe_rearm_queues */
+#endif
diff -r c7f2b8f75354 -r 48e332c7ea69 sys/dev/pci/ixgbe/ixv.c
--- a/sys/dev/pci/ixgbe/ixv.c   Wed Jun 06 19:49:51 2018 +0000
+++ b/sys/dev/pci/ixgbe/ixv.c   Wed Jun 06 20:02:31 2018 +0000
@@ -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 @@
        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
 
 
 /************************************************************************



Home | Main Index | Thread Index | Old Index