diff options
author | Jisheng Zhang <jszhang@kernel.org> | 2021-03-30 02:22:51 +0800 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-04-26 08:25:08 -0700 |
commit | de31ea4a1181a8bb4d32ab74f3434f2bc2b79122 (patch) | |
tree | e4122b22b93afded630aaa82c556a5d88f15b513 /arch/riscv/kernel/vdso.c | |
parent | 1987501b1130c6b4b7e1cef4b9c1dc9a8adae025 (diff) |
riscv: Mark some global variables __ro_after_init
All of these are never modified after init, so they can be
__ro_after_init.
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/kernel/vdso.c')
-rw-r--r-- | arch/riscv/kernel/vdso.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/riscv/kernel/vdso.c b/arch/riscv/kernel/vdso.c index 3f1d35e7c98a..25a3b8849599 100644 --- a/arch/riscv/kernel/vdso.c +++ b/arch/riscv/kernel/vdso.c @@ -20,8 +20,8 @@ extern char vdso_start[], vdso_end[]; -static unsigned int vdso_pages; -static struct page **vdso_pagelist; +static unsigned int vdso_pages __ro_after_init; +static struct page **vdso_pagelist __ro_after_init; /* * The vDSO data page. |