From ca5cc869e2e32bfcc32fd311a3f5f901c427604e Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 30 Jul 2015 09:55:16 +1000 Subject: [PATCH] mm-mlock-refactor-mlock-munlock-and-munlockall-code-checkpatch-fixes WARNING: Missing a blank line after declarations #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 Signed-off-by: Andrew Morton --- mm/mlock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/mlock.c b/mm/mlock.c index c24e242ba5e904..c32ad8f6a9d19d 100644 --- a/mm/mlock.c +++ b/mm/mlock.c @@ -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. */