eal: fix reciprocal header include
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 15 Jan 2021 11:10:33 +0000 (11:10 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 21 Jan 2021 09:21:40 +0000 (10:21 +0100)
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.

Fixes: 6d45659eacb8 ("eal: add u64-bit variant for reciprocal divide")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/librte_eal/include/rte_reciprocal.h

index 63e16fd..735adb0 100644 (file)
@@ -27,6 +27,8 @@
 
 #include <stdint.h>
 
+#include <rte_common.h>
+
 struct rte_reciprocal {
        uint32_t m;
        uint8_t sh1, sh2;