From 3ba04d598f8c1a1953a1f2a80d617346ba0f8734 Mon Sep 17 00:00:00 2001 From: David Marchand Date: Tue, 21 Jun 2022 16:13:25 +0200 Subject: [PATCH] eal/x86: drop export of internal alignment macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit 11f61ea2f6fcdd88df2a81b82235ddb7033c3e5d ] ALIGNMENT_MASK is only used internally. Besides it lacks a DPDK-related prefix. Hide it from external eyes. Fixes: f5472703c0bd ("eal: optimize aligned memcpy on x86") Reported-by: Morten Brørup Signed-off-by: David Marchand --- lib/librte_eal/common/include/arch/x86/rte_memcpy.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_eal/common/include/arch/x86/rte_memcpy.h b/lib/librte_eal/common/include/arch/x86/rte_memcpy.h index 8c2e243d9e..0c3a2caa91 100644 --- a/lib/librte_eal/common/include/arch/x86/rte_memcpy.h +++ b/lib/librte_eal/common/include/arch/x86/rte_memcpy.h @@ -851,6 +851,8 @@ rte_memcpy(void *dst, const void *src, size_t n) return rte_memcpy_generic(dst, src, n); } +#undef ALIGNMENT_MASK + #if defined(RTE_TOOLCHAIN_GCC) && (GCC_VERSION >= 100000) #pragma GCC diagnostic pop #endif