]> git.baikalelectronics.ru Git - kernel.git/commit
include/linux/genalloc.h: spinlock_t needs spinlock_types.h
authorShawn Guo <shawn.guo@linaro.org>
Thu, 23 Jan 2014 23:53:18 +0000 (15:53 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:36:52 +0000 (16:36 -0800)
commit78307fad08b0b60c4fd5c6a8cd695b56cbbc3340
tree3108ae32bfb2bd5902b072c1f20e34ed501b7653
parentf3631da5ac813cb3d21c4dfe462e29bb3b58c4a8
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>
include/linux/genalloc.h