arm64: vdso: constify vm_special_mapping used for aarch32 vectors page
authorJisheng Zhang <jszhang@marvell.com>
Mon, 15 Aug 2016 06:45:45 +0000 (14:45 +0800)
committerWill Deacon <will.deacon@arm.com>
Mon, 22 Aug 2016 11:32:22 +0000 (12:32 +0100)
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>
arch/arm64/kernel/vdso.c

index e320e8f96de44b7be1692e4ba85b022132db6c43..10ad8abe7ec5f8dee8a5cd8320d7539600ca6fee 100644 (file)
@@ -88,7 +88,7 @@ int aarch32_setup_vectors_page(struct linux_binprm *bprm, int uses_interp)
 {
        struct mm_struct *mm = current->mm;
        unsigned long addr = AARCH32_VECTORS_BASE;
-       static struct vm_special_mapping spec = {
+       static const struct vm_special_mapping spec = {
                .name   = "[vectors]",
                .pages  = vectors_page,