From 49ddb0512a446ec5e4d916e91310c9ca3134a3f9 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 16 Jun 2016 00:02:41 +0000 Subject: [PATCH] mm-frontswap-convert-frontswap_enabled-to-static-key-checkpatch-fixes WARNING: Possible unwrapped commit description (prefer a maximum 75 chars per line) #17: Thus, checks for "frontswap_enabled" are replaced with "frontswap_enabled()" WARNING: space prohibited between function name and open parenthesis '(' #208: FILE: mm/frontswap.c:255: + VM_BUG_ON (!frontswap_ops); total: 0 errors, 2 warnings, 188 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. ./patches/mm-frontswap-convert-frontswap_enabled-to-static-key.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" Signed-off-by: Andrew Morton --- mm/frontswap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/frontswap.c b/mm/frontswap.c index f3294d7ba68200..fec8b504404050 100644 --- a/mm/frontswap.c +++ b/mm/frontswap.c @@ -252,7 +252,7 @@ int __frontswap_store(struct page *page) pgoff_t offset = swp_offset(entry); struct frontswap_ops *ops; - VM_BUG_ON (!frontswap_ops); + VM_BUG_ON(!frontswap_ops); VM_BUG_ON(!PageLocked(page)); VM_BUG_ON(sis == NULL);