On Tue, 1 Jul 2025, 20:20 , <[email protected]> wrote:
> From: Sun Yuechi <[email protected]>
>
> 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 <[email protected]>
>
Reviewed-by: Stanisław Kardach <[email protected]>
> ---
> lib/eal/riscv/include/rte_spinlock.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/lib/eal/riscv/include/rte_spinlock.h
> b/lib/eal/riscv/include/rte_spinlock.h
> index 5fe4980e44..afbe83a061 100644
> --- a/lib/eal/riscv/include/rte_spinlock.h
> +++ b/lib/eal/riscv/include/rte_spinlock.h
> @@ -14,6 +14,7 @@
>
> #include <rte_common.h>
> #include "generic/rte_spinlock.h"
> +#include "rte_cpuflags.h"
>
> #ifdef __cplusplus
> extern "C" {
> --
> 2.50.0
>
>