]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drop_caches-add-some-documentation-and-info-messsge-checkpatch-fixes
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 25 Oct 2012 01:14:53 +0000 (12:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 25 Oct 2012 03:14:40 +0000 (14:14 +1100)
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 <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/drop_caches.c

index f72395e602517df6df08338447c7debecc8b9d50..f23d2a7ed43808e660e9e4159141edb435794589 100644 (file)
@@ -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)