From: Shawn Guo Date: Thu, 23 Jan 2014 23:53:18 +0000 (-0800) Subject: include/linux/genalloc.h: spinlock_t needs spinlock_types.h X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=b30afea019a4548ee77b73e83f03104e0e3a0556;p=deliverable%2Flinux.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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 + struct device; struct device_node;