Skip to content

Commit b6d081b

Browse files
Jisheng Zhangwildea01
authored andcommitted
arm64: vdso: constify vm_special_mapping used for aarch32 vectors page
The vm_special_mapping spec which is used for aarch32 vectors page is never modified, so mark it as const. Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent 1aed28f commit b6d081b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kernel/vdso.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ int aarch32_setup_vectors_page(struct linux_binprm *bprm, int uses_interp)
8888
{
8989
struct mm_struct *mm = current->mm;
9090
unsigned long addr = AARCH32_VECTORS_BASE;
91-
static struct vm_special_mapping spec = {
91+
static const struct vm_special_mapping spec = {
9292
.name = "[vectors]",
9393
.pages = vectors_page,
9494

0 commit comments

Comments
 (0)