Re: [PATCH v5 1/5] riscv: remove RISCV_ALTERNATIVE Kconfig option
From: Geert Uytterhoeven
Date: Tue Oct 13 2026 - 04:45:41 EST
Hi Jisheng.
On Thu, 8 Oct 2026 at 17:22, Jisheng Zhang <jszhang@xxxxxxxxxx> 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@xxxxxxxxxx>
> Reviewed-by: Conor Dooley <conor.dooley@xxxxxxxxxxxxx>
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@xxxxxxxxx
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
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