]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: make runtime const not usable by modules
authorJisheng Zhang <jszhang@kernel.org>
Sat, 21 Feb 2026 02:37:31 +0000 (10:37 +0800)
committerPaul Walmsley <pjw@kernel.org>
Sun, 5 Apr 2026 00:37:31 +0000 (18:37 -0600)
commit57f0253bc1538446ee46a4550fe85d91235fb678
tree8d6cce9c7cfb99a0152731f7b63e5b7a5eb45c02
parent6b60a128c2f43180664a614830f3c529497e0394
riscv: make runtime const not usable by modules

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@kernel.org>
Link: https://patch.msgid.link/20260221023731.3476-1-jszhang@kernel.org
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/include/asm/runtime-const.h