Skip to contentSkip to conversation

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

PATCH New Mike Frysinger 1 participant 1 message Sep 23, 2009 Generic include/asm header files

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 include/asm-generic/gpio.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/asm-generic/gpio.h +1 -0
index d6c379d..634ec64 100644
@@ -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>
 
Signature · 1 line
1.6.5.rc1