[dpdk-dev] eal/ppc: fix build

Message ID 1438766002-1194-1-git-send-email-thomas.monjalon@6wind.com (mailing list archive)
State Accepted, archived
Headers

Commit Message

Thomas Monjalon Aug. 5, 2015, 9:13 a.m. UTC
  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

Chao Zhu Aug. 5, 2015, 9:42 a.m. UTC | #1
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.
>    *
  
Thomas Monjalon Aug. 5, 2015, 12:54 p.m. UTC | #2
> > 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
  

Patch

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.
  *