Skip to content

Commit

Permalink
mm-mlock-refactor-mlock-munlock-and-munlockall-code-checkpatch-fixes
Browse files Browse the repository at this point in the history
WARNING: Missing a blank line after declarations
torvalds#168: FILE: mm/mlock.c:581:
+		vm_flags_t newflags = vma->vm_flags & ~VM_LOCKED;
+		newflags |= flags;

total: 0 errors, 1 warnings, 90 lines checked

./patches/mm-mlock-refactor-mlock-munlock-and-munlockall-code.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 <emunson@akamai.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
akpm00 authored and sfrothwell committed Jul 29, 2015
1 parent 2daca54 commit ca5cc86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/mlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ static int apply_vma_lock_flags(unsigned long start, size_t len,

for (nstart = start ; ; ) {
vm_flags_t newflags = vma->vm_flags & ~VM_LOCKED;

newflags |= flags;

/* Here we know that vma->vm_start <= nstart < vma->vm_end. */
Expand Down

0 comments on commit ca5cc86

Please sign in to comment.