diff mbox series

[v4,5/8] bus/dpaa: fix detection of 64 bit arch

Message ID 20201105211716.25181-6-ncopa@alpinelinux.org (mailing list archive)
State Superseded
Delegated to: Thomas Monjalon
Headers show
Series [v4,1/8] app/testpmd: fix uint build error with musl libc | expand


Context Check Description
ci/checkpatch warning coding style issues

Commit Message

Natanael Copa Nov. 5, 2020, 9:17 p.m. UTC
There is no standard saying that __WORDSIZE should be be defined or in
what include it should be defined. Use RTE_ARCH_64 instead.

This solves a warning when building with musl libc:

 warning: "__WORDSIZE" is not defined, evaluates to 0 [-Wundef]

Fixes: 847ee3bd0d1f ("bus/dpaa: support FMAN frame queue lookup")
Cc: stable@dpdk.org

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
 drivers/bus/dpaa/include/fsl_qman.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/drivers/bus/dpaa/include/fsl_qman.h b/drivers/bus/dpaa/include/fsl_qman.h
index 10212f0fd..7ef2f3b2e 100644
--- a/drivers/bus/dpaa/include/fsl_qman.h
+++ b/drivers/bus/dpaa/include/fsl_qman.h
@@ -16,7 +16,7 @@  extern "C" {
 #include <rte_eventdev.h>
 /* FQ lookups (turn this on for 64bit user-space) */
-#if (__WORDSIZE == 64)
+#ifdef RTE_ARCH_64
 /* if FQ lookups are supported, this controls the number of initialised,
  * s/w-consumed FQs that can be supported at any one time.