[PATCH v4] eal/x86: fix memcpy alignment mask definition

Thomas Monjalon thomas at monjalon.net
Wed Sep 23 18:52:17 CEST 2026


> > An alignment mask (ALIGNMENT_MASK) is temporarily defined for internal
> > purposes, but it is publicly exposed when including the header file,
> > potentially colliding with existing definitions with the same name.
> > Fixed this potential issue by adding the RTE_MEMCPY_ prefix to the
> > definition.
> > 
> > Furthermore, the superfluous function declaration at the top of the file
> > was removed, and its description was moved to the function definition,
> > to improve search results with source code browsers.
> > 
> > Also, changed "!(addrs & MASK)" to "(addrs & MASK) == 0" to follow DPDK
> > coding style.
> > 
> > None of these changes should have any practical effect.
> > 
> > Fixes: f5472703c0bd ("eal: optimize aligned memcpy on x86")
> > 
> > Signed-off-by: Morten Brørup <mb at smartsharesystems.com>
> > Acked-by: Bruce Richardson <bruce.richardson at intel.com>
> Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>

Applied, thanks.




More information about the dev mailing list