From: Michael Holzheu Date: Wed, 11 Sep 2013 21:24:53 +0000 (-0700) Subject: vmcore: enable /proc/vmcore mmap for s390 X-Git-Tag: upstream/snapshot3+hdmi~4342^2~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11e376a3f9ffa85bf444b65df5326612b083c501;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git vmcore: enable /proc/vmcore mmap for s390 The patch "s390/vmcore: Implement remap_oldmem_pfn_range for s390" allows now to use mmap also on s390. So enable mmap for s390 again. Signed-off-by: Michael Holzheu Cc: HATAYAMA Daisuke Cc: Jan Willeke Cc: Vivek Goyal Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index d07b70a..9100d69 100644 --- a/fs/proc/vmcore.c +++ b/fs/proc/vmcore.c @@ -327,7 +327,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. */ -#if defined(CONFIG_MMU) && !defined(CONFIG_S390) +#ifdef CONFIG_MMU static int mmap_vmcore(struct file *file, struct vm_area_struct *vma) { size_t size = vma->vm_end - vma->vm_start;