Skip to content

Commit

Permalink
eal/x86: drop export of internal alignment macro
Browse files Browse the repository at this point in the history
[ upstream commit 11f61ea ]

ALIGNMENT_MASK is only used internally.
Besides it lacks a DPDK-related prefix.
Hide it from external eyes.

Fixes: f547270 ("eal: optimize aligned memcpy on x86")

Reported-by: Morten Brørup <mb@smartsharesystems.com>
Signed-off-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
david-marchand authored and steevenlee committed Jul 19, 2022
1 parent a6388c7 commit 10cdabf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/librte_eal/x86/include/rte_memcpy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 10cdabf

Please sign in to comment.