diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2014-01-23 18:53:18 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-23 19:36:52 -0500 |
commit | b30afea019a4548ee77b73e83f03104e0e3a0556 (patch) | |
tree | 3108ae32bfb2bd5902b072c1f20e34ed501b7653 | |
parent | bd7278166aaf8b33da1a3ee437354e2ed88bf70f (diff) |
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.h | 2 |
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 @@ | |||
30 | #ifndef __GENALLOC_H__ | 30 | #ifndef __GENALLOC_H__ |
31 | #define __GENALLOC_H__ | 31 | #define __GENALLOC_H__ |
32 | 32 | ||
33 | #include <linux/spinlock_types.h> | ||
34 | |||
33 | struct device; | 35 | struct device; |
34 | struct device_node; | 36 | struct device_node; |
35 | 37 | ||