[dpdk-dev] eal/ppc: fix build
Commit Message
Byte ordering macros were used without including the needed header.
Fixes: ce10b21bf624 ("eal/ppc: fix cpu cycle count for little endian")
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
---
lib/librte_eal/common/include/arch/ppc_64/rte_cycles.h | 2 ++
1 file changed, 2 insertions(+)
Comments
Acked-by: Chao Zhu <chaozhu@linux.vnet.ibm.com>
On 2015/8/5 17:13, Thomas Monjalon wrote:
> Byte ordering macros were used without including the needed header.
>
> Fixes: ce10b21bf624 ("eal/ppc: fix cpu cycle count for little endian")
>
> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
> ---
> lib/librte_eal/common/include/arch/ppc_64/rte_cycles.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/lib/librte_eal/common/include/arch/ppc_64/rte_cycles.h b/lib/librte_eal/common/include/arch/ppc_64/rte_cycles.h
> index e663c48..64beddf 100644
> --- a/lib/librte_eal/common/include/arch/ppc_64/rte_cycles.h
> +++ b/lib/librte_eal/common/include/arch/ppc_64/rte_cycles.h
> @@ -39,6 +39,8 @@ extern "C" {
>
> #include "generic/rte_cycles.h"
>
> +#include <rte_byteorder.h>
> +
> /**
> * Read the time base register.
> *
> > Byte ordering macros were used without including the needed header.
> >
> > Fixes: ce10b21bf624 ("eal/ppc: fix cpu cycle count for little endian")
> >
> > Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
> Acked-by: Chao Zhu <chaozhu@linux.vnet.ibm.com>
Applied
@@ -39,6 +39,8 @@ extern "C" {
#include "generic/rte_cycles.h"
+#include <rte_byteorder.h>
+
/**
* Read the time base register.
*