diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2014-01-23 15:53:18 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-23 16:36:52 -0800 |
commit | b30afea019a4548ee77b73e83f03104e0e3a0556 (patch) | |
tree | 3108ae32bfb2bd5902b072c1f20e34ed501b7653 /include/linux | |
parent | bd7278166aaf8b33da1a3ee437354e2ed88bf70f (diff) | |
download | op-kernel-dev-b30afea019a4548ee77b73e83f03104e0e3a0556.zip op-kernel-dev-b30afea019a4548ee77b73e83f03104e0e3a0556.tar.gz |
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>
Diffstat (limited to 'include/linux')
-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 1eda33d..1c2fdaa 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; |