Skip to content

Commit

Permalink
mm-mlock-add-new-mlock-system-call-checkpatch-fixes
Browse files Browse the repository at this point in the history
WARNING: Missing a blank line after declarations
torvalds#99: FILE: mm/mlock.c:649:
+	vm_flags_t vm_flags = VM_LOCKED;
+	if (flags)

total: 0 errors, 1 warnings, 51 lines checked

./patches/mm-mlock-add-new-mlock-system-call.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: Eric B Munson <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
akpm00 authored and hnaz committed Aug 6, 2015
1 parent ec3e15b commit fd5b7c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mm/mlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,11 +646,10 @@ SYSCALL_DEFINE2(mlock, unsigned long, start, size_t, len)

SYSCALL_DEFINE3(mlock2, unsigned long, start, size_t, len, int, flags)
{
vm_flags_t vm_flags = VM_LOCKED;
if (flags)
return -EINVAL;

return do_mlock(start, len, vm_flags);
return do_mlock(start, len, VM_LOCKED);
}

SYSCALL_DEFINE2(munlock, unsigned long, start, size_t, len)
Expand Down

0 comments on commit fd5b7c2

Please sign in to comment.