]> Pileus Git - ~andy/linux/blobdiff - fs/proc/vmcore.c
s390/kdump: Disable mmap for s390
[~andy/linux] / fs / proc / vmcore.c
index 28503172f2e4a2d16a87a87098ad5db615317565..a1a16eb97c7bd141c7a68419b44769ebea35c854 100644 (file)
@@ -223,7 +223,7 @@ static inline char *alloc_elfnotes_buf(size_t notes_sz)
  * regions in the 1st kernel pointed to by PT_LOAD entries) into
  * virtually contiguous user-space in ELF layout.
  */
-#ifdef CONFIG_MMU
+#if defined(CONFIG_MMU) && !defined(CONFIG_S390)
 static int mmap_vmcore(struct file *file, struct vm_area_struct *vma)
 {
        size_t size = vma->vm_end - vma->vm_start;