[v2,3/5] bus/dpaa: fix compilation on ARM BE

Message ID 1513169578-28440-3-git-send-email-hemant.agrawal@nxp.com
State Superseded
Headers show
  • [v2,1/5] pmdinfogen: fix cross compilation for ARM BE
Related show

Commit Message

Hemant Agrawal Dec. 13, 2017, 12:52 p.m.
Fix the following compilation error when compiling
with ARM BE compiler.

error: statement with no effect [-Werror=unused-value]
 #define hw_sg_to_cpu(x) (x)

Fixes: c47ff048b99a ("bus/dpaa: add QMAN driver core routines")
Cc: stable@dpdk.org

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>

 drivers/bus/dpaa/include/fsl_qman.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)



diff --git a/drivers/bus/dpaa/include/fsl_qman.h b/drivers/bus/dpaa/include/fsl_qman.h
index eedfd7e..72556dc 100644
--- a/drivers/bus/dpaa/include/fsl_qman.h
+++ b/drivers/bus/dpaa/include/fsl_qman.h
@@ -1993,8 +1993,8 @@  static inline int qman_poll_fq_for_init(struct qman_fq *fq)
-#define cpu_to_hw_sg(x) (x)
-#define hw_sg_to_cpu(x) (x)
+#define cpu_to_hw_sg(x)
+#define hw_sg_to_cpu(x)
 #define cpu_to_hw_sg(x)  __cpu_to_hw_sg(x)
 #define hw_sg_to_cpu(x)  __hw_sg_to_cpu(x)