Author: markj
Date: Fri Aug  2 15:19:11 2019
New Revision: 350538
URL: https://svnweb.freebsd.org/changeset/base/350538

Log:
  Fix warnings about unused identifiers when compiling without RATELIMIT.

Modified:
  head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c

Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c    Fri Aug  2 11:17:07 2019        
(r350537)
+++ head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c    Fri Aug  2 15:19:11 2019        
(r350538)
@@ -4070,6 +4070,7 @@ mlx5e_snd_tag_query(struct m_snd_tag *pmt, union if_sn
        }
 }
 
+#ifdef RATELIMIT
 #define NUM_HDWR_RATES_MLX 13
 static const uint64_t adapter_rates_mlx[NUM_HDWR_RATES_MLX] = {
        135375,                 /* 1,083,000 */
@@ -4111,6 +4112,7 @@ mlx5e_ratelimit_query(struct ifnet *ifp __unused, stru
        q->number_of_rates = NUM_HDWR_RATES_MLX;
        q->min_segment_burst = 1;
 }
+#endif
 
 static void
 mlx5e_snd_tag_free(struct m_snd_tag *pmt)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to