File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -457,10 +457,6 @@ static vm_fault_t mmap_vmcore_fault(struct vm_fault *vmf)
457
457
#endif
458
458
}
459
459
460
- static const struct vm_operations_struct vmcore_mmap_ops = {
461
- .fault = mmap_vmcore_fault ,
462
- };
463
-
464
460
/**
465
461
* vmcore_alloc_buf - allocate buffer in vmalloc memory
466
462
* @size: size of buffer
@@ -488,6 +484,11 @@ static inline char *vmcore_alloc_buf(size_t size)
488
484
* virtually contiguous user-space in ELF layout.
489
485
*/
490
486
#ifdef CONFIG_MMU
487
+
488
+ static const struct vm_operations_struct vmcore_mmap_ops = {
489
+ .fault = mmap_vmcore_fault ,
490
+ };
491
+
491
492
/*
492
493
* remap_oldmem_pfn_checked - do remap_oldmem_pfn_range replacing all pages
493
494
* reported as not being ram with the zero page.
You can’t perform that action at this time.
0 commit comments