[dpdk-dev] [PATCH] eal: add missing include to debug header

Bruce Richardson bruce.richardson at intel.com
Wed May 4 18:37:56 CEST 2016


The header file rte_debug.h makes use of the "unlikely" macro which
means it should include the rte_branch_prediction.h header file.

Fixes: 50705e8e3cdd ("eal: add assert macro for debug")

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
 lib/librte_eal/common/include/rte_debug.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_eal/common/include/rte_debug.h b/lib/librte_eal/common/include/rte_debug.h
index 9260eda..cab6fb4 100644
--- a/lib/librte_eal/common/include/rte_debug.h
+++ b/lib/librte_eal/common/include/rte_debug.h
@@ -44,6 +44,7 @@
  */
 
 #include "rte_log.h"
+#include "rte_branch_prediction.h"
 
 #ifdef __cplusplus
 extern "C" {
-- 
2.5.5



More information about the dev mailing list