diff options
author | Andy Lutomirski <luto@amacapital.net> | 2014-05-19 18:58:34 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-05-20 14:39:31 -0400 |
commit | ac49b9a9f26b6c42585f87857722085ef4b19c13 (patch) | |
tree | 8231c036dc6c331f100674d72e82d93104b0422c /arch/x86/mm | |
parent | a62c34bd2a8a3f159945becd57401e478818d51c (diff) |
x86, mm: Replace arch_vma_name with vm_ops->name for vsyscalls
This removes the last vestiges of arch_vma_name from x86, replacing it
with vm_ops->name. Good riddance.
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Link: http://lkml.kernel.org/r/e681cb56096eee5b8b8767093a4f6fb82839f0a4.1400538962.git.luto@amacapital.net
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/init_64.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 9deb59b0baea..bdcde58ca9ed 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c | |||
@@ -1185,11 +1185,19 @@ int kern_addr_valid(unsigned long addr) | |||
1185 | * covers the 64bit vsyscall page now. 32bit has a real VMA now and does | 1185 | * covers the 64bit vsyscall page now. 32bit has a real VMA now and does |
1186 | * not need special handling anymore: | 1186 | * not need special handling anymore: |
1187 | */ | 1187 | */ |
1188 | static const char *gate_vma_name(struct vm_area_struct *vma) | ||
1189 | { | ||
1190 | return "[vsyscall]"; | ||
1191 | } | ||
1192 | static struct vm_operations_struct gate_vma_ops = { | ||
1193 | .name = gate_vma_name, | ||
1194 | }; | ||
1188 | static struct vm_area_struct gate_vma = { | 1195 | static struct vm_area_struct gate_vma = { |
1189 | .vm_start = VSYSCALL_ADDR, | 1196 | .vm_start = VSYSCALL_ADDR, |
1190 | .vm_end = VSYSCALL_ADDR + PAGE_SIZE, | 1197 | .vm_end = VSYSCALL_ADDR + PAGE_SIZE, |
1191 | .vm_page_prot = PAGE_READONLY_EXEC, | 1198 | .vm_page_prot = PAGE_READONLY_EXEC, |
1192 | .vm_flags = VM_READ | VM_EXEC | 1199 | .vm_flags = VM_READ | VM_EXEC, |
1200 | .vm_ops = &gate_vma_ops, | ||
1193 | }; | 1201 | }; |
1194 | 1202 | ||
1195 | struct vm_area_struct *get_gate_vma(struct mm_struct *mm) | 1203 | struct vm_area_struct *get_gate_vma(struct mm_struct *mm) |
@@ -1221,13 +1229,6 @@ int in_gate_area_no_mm(unsigned long addr) | |||
1221 | return (addr & PAGE_MASK) == VSYSCALL_ADDR; | 1229 | return (addr & PAGE_MASK) == VSYSCALL_ADDR; |
1222 | } | 1230 | } |
1223 | 1231 | ||
1224 | const char *arch_vma_name(struct vm_area_struct *vma) | ||
1225 | { | ||
1226 | if (vma == &gate_vma) | ||
1227 | return "[vsyscall]"; | ||
1228 | return NULL; | ||
1229 | } | ||
1230 | |||
1231 | #ifdef CONFIG_X86_UV | 1232 | #ifdef CONFIG_X86_UV |
1232 | unsigned long memory_block_size_bytes(void) | 1233 | unsigned long memory_block_size_bytes(void) |
1233 | { | 1234 | { |