crypto/caam_jr: fix redefinition error

Message ID 20181023115322.16134-1-g.singh@nxp.com (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers
Series crypto/caam_jr: fix redefinition error |

Checks

Context Check Description
ci/Intel-compilation success Compilation OK

Commit Message

Gagandeep Singh Oct. 23, 2018, 11:54 a.m. UTC
  dma_addr_t is already defined in compat.h.
so removing the local definition from caam_jr_config.h

Fixes: b70a67ab70 ("crypto/caam_jr: add HW tuning options")

Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
---
 drivers/crypto/caam_jr/caam_jr_config.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Thomas Monjalon Oct. 24, 2018, 8:41 p.m. UTC | #1
23/10/2018 13:54, Gagandeep Singh:
> dma_addr_t is already defined in compat.h.
> so removing the local definition from caam_jr_config.h
> 
> Fixes: b70a67ab70 ("crypto/caam_jr: add HW tuning options")
> 
> Signed-off-by: Gagandeep Singh <g.singh@nxp.com>

Applied, thanks
  

Patch

diff --git a/drivers/crypto/caam_jr/caam_jr_config.h b/drivers/crypto/caam_jr/caam_jr_config.h
index e7855cee6..041187a84 100644
--- a/drivers/crypto/caam_jr/caam_jr_config.h
+++ b/drivers/crypto/caam_jr/caam_jr_config.h
@@ -7,6 +7,8 @@ 
 
 #include <rte_byteorder.h>
 
+#include <compat.h>
+
 #ifdef RTE_LIBRTE_PMD_CAAM_JR_BE
 #define CAAM_BYTE_ORDER __BIG_ENDIAN
 #else
@@ -19,8 +21,6 @@ 
 #define CORE_BYTE_ORDER __LITTLE_ENDIAN
 #endif
 
-typedef uint64_t	dma_addr_t;
-
 #if CORE_BYTE_ORDER != CAAM_BYTE_ORDER
 
 #define cpu_to_caam64 rte_cpu_to_be_64