[v2,01/19] eal: fix missing header inclusion
Checks
Commit Message
The rte_reciprocal header file used standard __rte_always_inline from
rte_common.h but does not include that header file, leading to compiler
errors when the reciprocal header is included alone. Similarly,
rte_thread.h was missing the compat header to get the __rte_experimental
macro definition.
Fixes: 6d45659eacb8 ("eal: add u64-bit variant for reciprocal divide")
Fixes: b1fd151267e6 ("eal: add generic thread-local-storage functions")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
lib/librte_eal/include/rte_reciprocal.h | 1 +
lib/librte_eal/include/rte_thread.h | 1 +
2 files changed, 2 insertions(+)
@@ -26,6 +26,7 @@
#define _RTE_RECIPROCAL_H_
#include <stdint.h>
+#include <rte_common.h>
struct rte_reciprocal {
uint32_t m;
@@ -3,6 +3,7 @@
*/
#include <rte_os.h>
+#include <rte_compat.h>
#ifndef _RTE_THREAD_H_
#define _RTE_THREAD_H_