From: Mike Frysinger <vapier@gentoo.org>
Date: Thu, 1 Oct 2009 22:43:56 +0000 (-0700)
Subject: asm-generic/gpio.h: pull in linux/kernel.h for might_sleep()
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b3db4a8ad19173a8fd0ced13d47c97910f1ab14b;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git

asm-generic/gpio.h: pull in linux/kernel.h for might_sleep()

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>
---

diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h
index 9cca3785cab8..66d6106a2067 100644
--- a/include/asm-generic/gpio.h
+++ b/include/asm-generic/gpio.h
@@ -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>