+ vmcore-introduce-remap_oldmem_pfn_range-fix.patch added to -mm tree
Subsystems (2)
[email protected]
maintainerSubject: + vmcore-introduce-remap_oldmem_pfn_range-fix.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 05 Aug 2013 14:08:36 -0700
The patch titled
Subject: vmcore: fix address space sparse warnings
has been added to the -mm tree. Its filename is
vmcore-introduce-remap_oldmem_pfn_range-fix.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/vmcore-introduce-remap_oldmem_pfn_range-fix.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/vmcore-introduce-remap_oldmem_pfn_range-fix.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Michael Holzheu <[email protected]>
Subject: vmcore: fix address space sparse warnings
Fix the following sparse warnings:
fs/proc/vmcore.c:173:34: sparse: incorrect type in argument 1
(different address spaces)
fs/proc/vmcore.c:173:34: expected void [noderef] <asn:1>*dst
fs/proc/vmcore.c:173:34: got void *target
fs/proc/vmcore.c:256:30: sparse: incorrect type in argument 1
(different address spaces)
fs/proc/vmcore.c:256:30: expected char *[assigned] buffer
fs/proc/vmcore.c:256:30: got char [noderef] <asn:1>*buffer
---
fs/proc/vmcore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/proc/vmcore.c renamed from fs/proc/vmcore.c~vmcore-introduce-remap_oldmem_pfn_range-fix +2 -2
@@ -170,7 +170,7 @@ int __weak remap_oldmem_pfn_range(structstatic int copy_to (void *target,void *src,size_t size,int userbuf) {if (userbuf) { -if (copy_to_user (target, src, size)) +if (copy_to_user ((char __user *) target, src, size))return -EFAULT ; }else {memcpy (target, src, size);
@@ -253,7 +253,7 @@ static ssize_t __read_vmcore(char *buffestatic ssize_t read_vmcore (struct file *file,char __user *buffer,size_t buflen,loff_t *fpos) { -return __read_vmcore (buffer, buflen, fpos,1 ); +return __read_vmcore ((__force char *) buffer, buflen, fpos,1 ); }/*
_
Patches currently in -mm which might be from [email protected] are
vmcore-introduce-elf-header-in-new-memory-feature.patch s390-vmcore-use-elf-header-in-new-memory-feature.patch vmcore-introduce-remap_oldmem_pfn_range.patch vmcore-introduce-remap_oldmem_pfn_range-fix.patch s390-vmcore-implement-remap_oldmem_pfn_range-for-s390.patch vmcore-enable-proc-vmcore-mmap-for-s390.patch s390-vmcore-use-vmcore-for-zfcpdump.patch