[PATCH] eal: fix cache guard for pedantic compilation

Thomas Monjalon thomas at monjalon.net
Wed Mar 25 15:40:05 CET 2026


23/03/2026 09:12, Morten Brørup:
> The cache guard macro uses __COUNTER__ to generate unique names.
> However, although most C compilers support __COUNTER__, it is not yet
> part of the C standard, so compilation fails when building in pedantic
> mode.
> The macro was changed to use __LINE__ instead.
> 
> Fixes: 65f600c0f000 ("eal: add empty cache line macro")
> 
> Signed-off-by: Morten Brørup <mb at smartsharesystems.com>

Applied, thanks.





More information about the dev mailing list