[dpdk-dev] latency: fix compilation with timer lib disabled

Message ID 20170407084316.20931-1-olivier.matz@6wind.com (mailing list archive)
State Accepted, archived
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Olivier Matz April 7, 2017, 8:43 a.m. UTC
  Remove the include to "rte_timer.h" which is not needed
by latencystats library (only "rte_cycles.h" is used).

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
---
 lib/librte_latencystats/rte_latencystats.c | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Thomas Monjalon April 7, 2017, 9:44 a.m. UTC | #1
2017-04-07 10:43, Olivier Matz:
> Remove the include to "rte_timer.h" which is not needed
> by latencystats library (only "rte_cycles.h" is used).
> 
> Signed-off-by: Olivier Matz <olivier.matz@6wind.com>

Applied, thanks
  

Patch

diff --git a/lib/librte_latencystats/rte_latencystats.c b/lib/librte_latencystats/rte_latencystats.c
index 3850b8870..ce029a12c 100644
--- a/lib/librte_latencystats/rte_latencystats.c
+++ b/lib/librte_latencystats/rte_latencystats.c
@@ -42,7 +42,6 @@ 
 #include <rte_metrics.h>
 #include <rte_memzone.h>
 #include <rte_lcore.h>
-#include <rte_timer.h>
 
 #include "rte_latencystats.h"