Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Shawn Guo and committed by
Linus Torvalds
b30afea0 bd727816

+2
+2
include/linux/genalloc.h
··· 30 30 #ifndef __GENALLOC_H__ 31 31 #define __GENALLOC_H__ 32 32 33 + #include <linux/spinlock_types.h> 34 + 33 35 struct device; 34 36 struct device_node; 35 37