[PATCH v5 1/5] riscv: remove RISCV_ALTERNATIVE Kconfig option

Geert Uytterhoeven geert at linux-m68k.org
Tue Oct 13 01:41:40 PDT 2026


Hi Jisheng.

On Thu, 8 Oct 2026 at 17:22, Jisheng Zhang <jszhang at kernel.org> wrote:
> riscv always selects RISCV_ALTERNATIVE now, so we can remove this
> Kconfig option and enable RISCV_ALTERNATIVE code unconditionally.
>
> Signed-off-by: Jisheng Zhang <jszhang at kernel.org>
> Reviewed-by: Conor Dooley <conor.dooley at microchip.com>

Thanks for your patch, which is now commit b924210f542e13c7 ("riscv:
remove RISCV_ALTERNATIVE Kconfig option") in riscv/for-next.

> ---
>  arch/riscv/Kconfig                          | 23 --------------------
>  arch/riscv/Kconfig.errata                   |  5 +----
>  arch/riscv/include/asm/alternative-macros.h | 24 ---------------------
>  arch/riscv/include/asm/alternative.h        | 10 ---------
>  arch/riscv/include/asm/cpufeature-macros.h  | 10 ++-------
>  arch/riscv/include/asm/cpufeature.h         |  6 ++----
>  arch/riscv/include/asm/vendor_extensions.h  | 18 ++++++----------
>  arch/riscv/kernel/Makefile                  |  2 +-
>  arch/riscv/kernel/cpufeature.c              |  2 --
>  9 files changed, 12 insertions(+), 88 deletions(-)

Unfortunately you forgot to remove all references outside arch/riscv/,
now making it impossible to enable support for RZ/Five.

I have submitted a fix "[PATCH] perf/renesas: Remove remaining
RISCV_ALTERNATIVE references"
https://lore.kernel.org/fe117dd44728fe7c96f3e4b3ec88c6ca83c5da9b.1791880574.git.geert+renesas@glider.be

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds



More information about the linux-riscv mailing list