[PATCH] riscv: make runtime const not usable by modules
Paul Walmsley
pjw at kernel.org
Mon Mar 23 16:59:58 PDT 2026
On Sat, 21 Feb 2026, Jisheng Zhang wrote:
> Similar as commit 284922f4c563 ("x86: uaccess: don't use runtime-const
> rewriting in modules") does, make riscv's runtime const not usable by
> modules too, to "make sure this doesn't get forgotten the next time
> somebody wants to do runtime constant optimizations". The reason is
> well explained in the above commit: "The runtime-const infrastructure
> was never designed to handle the modular case, because the constant
> fixup is only done at boot time for core kernel code."
>
> Signed-off-by: Jisheng Zhang <jszhang at kernel.org>
Thanks, queued for v7.0-rc.
- Paul
More information about the linux-riscv
mailing list