diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2015-08-25 14:32:00 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2015-08-28 17:19:01 +1000 |
commit | 368ff510c0f225e248c2509c0e634f022c4e9382 (patch) | |
tree | 188f9d55b0b64a522126a397ddf92c09244a79cc | |
parent | 7d09662fa1d6b4650e29309f27ab35ab9be06277 (diff) | |
download | linux-368ff510c0f225e248c2509c0e634f022c4e9382.tar.gz linux-368ff510c0f225e248c2509c0e634f022c4e9382.tar.xz |
mm-mpx-add-vm_flags_t-vm_flags-arg-to-do_mmap_pgoff-fix-checkpatch-fixes
WARNING: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#5:
>> mm/nommu.c:1248:30: error: 'vm_flags' redeclared as different kind of symbol
WARNING: please, no spaces at the start of a line
#28: FILE: mm/nommu.c:1248:
+ unsigned long capabilities, result;$
WARNING: please, no spaces at the start of a line
#37: FILE: mm/nommu.c:1266:
+ vm_flags |= determine_vm_flags(file, prot, flags, capabilities);$
total: 0 errors, 3 warnings, 16 lines checked
./patches/mm-mpx-add-vm_flags_t-vm_flags-arg-to-do_mmap_pgoff-fix.patch has style problems, please review.
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
Please run checkpatch prior to sending patches
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r-- | mm/nommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/nommu.c b/mm/nommu.c index d28173689f52..ab14a2014dea 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -1245,7 +1245,7 @@ unsigned long do_mmap(struct file *file, struct vm_area_struct *vma; struct vm_region *region; struct rb_node *rb; - unsigned long capabilities, result; + unsigned long capabilities, result; int ret; *populate = 0; @@ -1263,7 +1263,7 @@ unsigned long do_mmap(struct file *file, /* we've determined that we can make the mapping, now translate what we * now know into VMA flags */ - vm_flags |= determine_vm_flags(file, prot, flags, capabilities); + vm_flags |= determine_vm_flags(file, prot, flags, capabilities); /* we're going to need to record the mapping */ region = kmem_cache_zalloc(vm_region_jar, GFP_KERNEL); |