diff mbox

genalloc: spinlock_t needs spinlock_types.h

Message ID 1389336140-25640-1-git-send-email-shawn.guo@linaro.org
State Accepted
Commit b30afea019a4548ee77b73e83f03104e0e3a0556
Headers show

Commit Message

Shawn Guo Jan. 10, 2014, 6:42 a.m. UTC
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>
---
 include/linux/genalloc.h |    2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

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;