asm-generic/gpio.h: pull in linux/kernel.h for might_sleep()
authorMike Frysinger <vapier@gentoo.org>
Thu, 1 Oct 2009 22:43:56 +0000 (15:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Oct 2009 23:11:11 +0000 (16:11 -0700)
The asm-generic/gpio.h header uses the might_sleep() macro but doesn't
include the header for it, so any source code that might include
linux/gpio.h before linux/kernel.h can easily lead to a build failure.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-generic/gpio.h

index 9cca3785cab881c854236b00a37fa5e478f06a3a..66d6106a2067fefc1f4154e500d93ea889f94cd6 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _ASM_GENERIC_GPIO_H
 #define _ASM_GENERIC_GPIO_H
 
+#include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/errno.h>