]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64: make runtime const not usable by modules
authorJisheng Zhang <jszhang@kernel.org>
Sat, 21 Feb 2026 02:38:47 +0000 (10:38 +0800)
committerWill Deacon <will@kernel.org>
Wed, 4 Mar 2026 16:13:58 +0000 (16:13 +0000)
commit0100e495cdf0436bd4ed2dc034d385b44cb5993c
treecd83fd57088b1fa2c01fcac72296982d9a2e7e0c
parentc25c4aa3f79a488cc270507935a29c07dc6bddfc
arm64: make runtime const not usable by modules

Similar as commit 284922f4c563 ("x86: uaccess: don't use runtime-const
rewriting in modules") does, make arm64'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>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/runtime-const.h