提交 b6d081bd 编写于 作者: J Jisheng Zhang 提交者: Will Deacon

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: NMark Rutland <mark.rutland@arm.com>
Signed-off-by: NJisheng Zhang <jszhang@marvell.com>
Signed-off-by: NWill Deacon <will.deacon@arm.com>
上级 1aed28f9
...@@ -88,7 +88,7 @@ int aarch32_setup_vectors_page(struct linux_binprm *bprm, int uses_interp) ...@@ -88,7 +88,7 @@ int aarch32_setup_vectors_page(struct linux_binprm *bprm, int uses_interp)
{ {
struct mm_struct *mm = current->mm; struct mm_struct *mm = current->mm;
unsigned long addr = AARCH32_VECTORS_BASE; unsigned long addr = AARCH32_VECTORS_BASE;
static struct vm_special_mapping spec = { static const struct vm_special_mapping spec = {
.name = "[vectors]", .name = "[vectors]",
.pages = vectors_page, .pages = vectors_page,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册