]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
generic-dynamic-per-cpu-refcounting-fix
authorAndrew Morton <akpm@linux-foundation.org>
Sun, 10 Mar 2013 10:55:40 +0000 (21:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 12 Mar 2013 03:57:42 +0000 (14:57 +1100)
lib/percpu-refcount.c: In function 'percpu_ref_init':
lib/percpu-refcount.c:22: error: 'jiffies' undeclared (first use in this function)
lib/percpu-refcount.c:22: error: (Each undeclared identifier is reported only once
lib/percpu-refcount.c:22: error: for each function it appears in.)
lib/percpu-refcount.c: In function 'percpu_ref_alloc':
lib/percpu-refcount.c:36: error: 'jiffies' undeclared (first use in this function)
lib/percpu-refcount.c:41: error: 'HZ' undeclared (first use in this function)

Cc: Kent Overstreet <koverstreet@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/percpu-refcount.c

index 522b2df4a78a0a8e6a9e9e9c84182a4a398fd5c2..e2d8d1250c74d53c007db81937329896cef4067b 100644 (file)
@@ -1,6 +1,7 @@
 #define pr_fmt(fmt) "%s: " fmt "\n", __func__
 
 #include <linux/kernel.h>
+#include <linux/jiffies.h>
 #include <linux/percpu-refcount.h>
 #include <linux/rcupdate.h>