From 79e0af9c64dde8e52daccf06cb790f8e2334619b Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 9 Nov 2012 14:04:35 +1100 Subject: [PATCH] drop_caches-add-some-documentation-and-info-messsge-checkpatch-fixes WARNING: Prefer netdev_notice(netdev, ... then dev_notice(dev, ... then pr_notice(... to printk(KERN_NOTICE ... #112: FILE: fs/drop_caches.c:61: + printk(KERN_NOTICE "%s (%d): dropped kernel caches: %d\n", WARNING: line over 80 characters #113: FILE: fs/drop_caches.c:62: + current->comm, task_pid_nr(current), sysctl_drop_caches); total: 0 errors, 2 warnings, 53 lines checked ./patches/drop_caches-add-some-documentation-and-info-messsge.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Michal Hocko Signed-off-by: Andrew Morton --- fs/drop_caches.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/drop_caches.c b/fs/drop_caches.c index f72395e60251..f23d2a7ed438 100644 --- a/fs/drop_caches.c +++ b/fs/drop_caches.c @@ -59,7 +59,7 @@ int drop_caches_sysctl_handler(ctl_table *table, int write, return ret; if (write) { printk(KERN_NOTICE "%s (%d): dropped kernel caches: %d\n", - current->comm, task_pid_nr(current), sysctl_drop_caches); + current->comm, task_pid_nr(current), sysctl_drop_caches); if (sysctl_drop_caches & 1) iterate_supers(drop_pagecache_sb, NULL); if (sysctl_drop_caches & 2) -- 2.39.5