arm64: alternatives: add __init/__initconst to some functions/variables
authorJisheng Zhang <jszhang@kernel.org>
Fri, 2 Dec 2022 16:18:59 +0000 (00:18 +0800)
committerWill Deacon <will@kernel.org>
Mon, 5 Dec 2022 13:47:06 +0000 (13:47 +0000)
commit67bc5b2d6d4802f46eceda246eb53a672b961831
treedceb615bfb27d53984eb3e17b5778d2eb2da7b2c
parentd503d01e5016370be8473fc23d800c7ff37ab7f6
arm64: alternatives: add __init/__initconst to some functions/variables

apply_alternatives_vdso(), __apply_alternatives_multi_stop() and
kernel_alternatives are not needed after booting, so mark the two
functions as __init and the var as __initconst.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Link: https://lore.kernel.org/r/20221202161859.2228-1-jszhang@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/alternative.c