From af296ec9ee9bd6a8c59e0fdda4446a1751ee3804 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 30 Jul 2015 00:01:05 +0000 Subject: [PATCH] mm-mlock-add-new-mlock-system-call-checkpatch-fixes WARNING: Missing a blank line after declarations #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 Signed-off-by: Andrew Morton --- mm/mlock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/mlock.c b/mm/mlock.c index fb6912f3efe670..a23a533e946245 100644 --- a/mm/mlock.c +++ b/mm/mlock.c @@ -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)