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: sta...@dpdk.org Signed-off-by: Bruce Richardson <bruce.richard...@intel.com> --- lib/librte_eal/include/rte_reciprocal.h | 1 + lib/librte_eal/include/rte_thread.h | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/librte_eal/include/rte_reciprocal.h b/lib/librte_eal/include/rte_reciprocal.h index 63e16fde0a..4a59be30a8 100644 --- a/lib/librte_eal/include/rte_reciprocal.h +++ b/lib/librte_eal/include/rte_reciprocal.h @@ -26,6 +26,7 @@ #define _RTE_RECIPROCAL_H_ #include <stdint.h> +#include <rte_common.h> struct rte_reciprocal { uint32_t m; diff --git a/lib/librte_eal/include/rte_thread.h b/lib/librte_eal/include/rte_thread.h index f1ae2d32cc..e640ea1857 100644 --- a/lib/librte_eal/include/rte_thread.h +++ b/lib/librte_eal/include/rte_thread.h @@ -3,6 +3,7 @@ */ #include <rte_os.h> +#include <rte_compat.h> #ifndef _RTE_THREAD_H_ #define _RTE_THREAD_H_ -- 2.27.0