[PATCH v2 2/5] eal/riscv/spinlock: add rte_cpuflag.h

Thomas Monjalon thomas at monjalon.net
Fri Sep 19 17:13:19 CEST 2025


01/07/2025 20:20, uk7b at foxmail.com:
> From: Sun Yuechi <sunyuechi at iscas.ac.cn>
> 
> Same as the x86 style, include "rte_cpuflags.h" in rte_spinlock.h
> so that files like lib/fib/dir24_8.c don’t need to include it.
> 
> Signed-off-by: Sun Yuechi <sunyuechi at iscas.ac.cn>

I disagree.
I prefer removing useless includes like in x86 spinlock.




More information about the dev mailing list