From: David Marchand Date: Tue, 21 Jun 2022 14:13:25 +0000 (+0200) Subject: eal/x86: drop export of internal alignment macro X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=11f61ea2f6fcdd88df2a81b82235ddb7033c3e5d;p=dpdk.git eal/x86: drop export of internal alignment macro 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") Cc: stable@dpdk.org Reported-by: Morten Brørup Signed-off-by: David Marchand --- diff --git a/lib/eal/x86/include/rte_memcpy.h b/lib/eal/x86/include/rte_memcpy.h index 18aa4e43a7..b678b5c942 100644 --- a/lib/eal/x86/include/rte_memcpy.h +++ b/lib/eal/x86/include/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