]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
generic-dynamic-per-cpu-refcounting-checkpatch-fixes
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 26 Mar 2013 23:26:22 +0000 (10:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:26:38 +0000 (17:26 +1100)
WARNING: line over 80 characters
#401: FILE: lib/percpu-refcount.c:215:
+ count += *per_cpu_ptr((unsigned __percpu *) pcpu_count, cpu);

total: 0 errors, 1 warnings, 365 lines checked

./patches/generic-dynamic-per-cpu-refcounting.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: Kent Overstreet <koverstreet@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/percpu-refcount.c

index 79c61580a2111ac8108399cf35e20fc0d53739a6..e9bb78705626bddd4ea789b83df748c78f5b5f14 100644 (file)
@@ -212,7 +212,8 @@ int percpu_ref_kill(struct percpu_ref *ref)
                synchronize_rcu();
 
                for_each_possible_cpu(cpu)
-                       count += *per_cpu_ptr((unsigned __percpu *) pcpu_count, cpu);
+                       count += *per_cpu_ptr((unsigned __percpu *)pcpu_count,
+                                             cpu);
 
                pr_debug("global %lli pcpu %i",
                         atomic64_read(&ref->count) & PCPU_COUNT_MASK,