summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2014-01-24 00:53:18 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-24 01:36:52 +0100
commitb30afea019a4548ee77b73e83f03104e0e3a0556 (patch)
tree3108ae32bfb2bd5902b072c1f20e34ed501b7653
parentDocumentation/trace/postprocess/trace-vmscan-postprocess.pl: fix the traceeve... (diff)
downloadlinux-b30afea019a4548ee77b73e83f03104e0e3a0556.tar.xz
linux-b30afea019a4548ee77b73e83f03104e0e3a0556.zip
include/linux/genalloc.h: spinlock_t needs spinlock_types.h
Compiling a C file which includes genalloc.h but without spinlock_types.h being included before, we will see the compile error below. include/linux/genalloc.h:54:2: error: unknown type name `spinlock_t' Include spinlock_types.h from genalloc.h to fix the problem. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--include/linux/genalloc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/genalloc.h b/include/linux/genalloc.h
index 1eda33d7cb10..1c2fdaa2ffc3 100644
--- a/include/linux/genalloc.h
+++ b/include/linux/genalloc.h
@@ -30,6 +30,8 @@
#ifndef __GENALLOC_H__
#define __GENALLOC_H__
+#include <linux/spinlock_types.h>
+
struct device;
struct device_node;