[dpdk-dev] [PATCH v7 09/17] bus/dpaa: fix 64-bit arch detection
From: Thomas Monjalon <hidden>
Date: 2021-03-19 14:59:05
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Thomas Monjalon <hidden>
Date: 2021-03-19 14:59:05
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Natanael Copa <redacted>
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 <redacted>
Acked-by: Hemant Agrawal <redacted>
Acked-by: Andrew Rybchenko <redacted>
Acked-by: David Marchand <redacted>
---
drivers/bus/dpaa/include/fsl_qman.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bus/dpaa/include/fsl_qman.h b/drivers/bus/dpaa/include/fsl_qman.h
index 10212f0fd5..7ef2f3b2e3 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 #define CONFIG_FSL_QMAN_FQ_LOOKUP /* if FQ lookups are supported, this controls the number of initialised, * s/w-consumed FQs that can be supported at any one time.
--
2.30.1