Commit b3db4a8ad19173a8fd0ced13d47c97910f1ab14b

Authored by Mike Frysinger
Committed by Linus Torvalds
1 parent 828c09509b

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

include/asm-generic/gpio.h
1 1 #ifndef _ASM_GENERIC_GPIO_H
2 2 #define _ASM_GENERIC_GPIO_H
3 3  
  4 +#include <linux/kernel.h>
4 5 #include <linux/types.h>
5 6 #include <linux/errno.h>
6 7