Okay, I initially thought this was common practice across all architectures, 
but it turns out only x86 added #include "rte_cpuflags.h" here.
I’ve now moved it to lib/fib/dir24_8_rvv.h and updated v3.


> -----原始邮件-----
&gt; 发件人: "Thomas Monjalon" <[email protected]>
&gt; 发送时间: 2025-09-19 23:13:19 (星期五)
&gt; 收件人: "Sun Yuechi" <[email protected]>
&gt; 抄送: [email protected], "Stanislaw Kardach" <[email protected]>, 
[email protected]
&gt; 主题: Re: [PATCH v2 2/5] eal/riscv/spinlock: add rte_cpuflag.h
&gt; 
&gt; 01/07/2025 20:20, [email protected]:
&gt; &gt; From: Sun Yuechi <[email protected]>
&gt; &gt; 
&gt; &gt; Same as the x86 style, include "rte_cpuflags.h" in rte_spinlock.h
&gt; &gt; so that files like lib/fib/dir24_8.c don’t need to include it.
&gt; &gt; 
&gt; &gt; Signed-off-by: Sun Yuechi <[email protected]>
&gt; 
&gt; I disagree.
&gt; I prefer removing useless includes like in x86 spinlock.
&gt; 
</[email protected]></[email protected]></[email protected]></[email protected]></[email protected]>

Reply via email to