diff options
| author | kamil <kamil@NetBSD.org> | 2018-06-06 20:02:31 +0000 |
|---|---|---|
| committer | kamil <kamil@NetBSD.org> | 2018-06-06 20:02:31 +0000 |
| commit | 542fcac7269dc0c64f26e7b647025bdc2eb713cb (patch) | |
| tree | 6f122baa4fb933a22809ba3323a9fa0002f046e1 /sys/dev | |
| parent | 171538f8eaca7915b36a7b33f01102c193e86c23 (diff) | |
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 (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pci/ixgbe/ixgbe.c | 6 | ||||
| -rw-r--r-- | sys/dev/pci/ixgbe/ixv.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/pci/ixgbe/ixgbe.c b/sys/dev/pci/ixgbe/ixgbe.c index 8141dd67fdf..c10e90ff0f2 100644 --- a/sys/dev/pci/ixgbe/ixgbe.c +++ b/sys/dev/pci/ixgbe/ixgbe.c @@ -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(struct adapter *); 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 *adapter, u64 queues) break; } } /* ixgbe_rearm_queues */ +#endif diff --git a/sys/dev/pci/ixgbe/ixv.c b/sys/dev/pci/ixgbe/ixv.c index 61ad734d0a4..553be85daa9 100644 --- a/sys/dev/pci/ixgbe/ixv.c +++ b/sys/dev/pci/ixgbe/ixv.c @@ -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 /************************************************************************ |
