diff options
author | Arnd Bergmann <arnd@arndb.de> | 2014-05-08 09:42:25 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-05-16 11:52:36 -0400 |
commit | cdf86cd233207ed992a647f0b9d42c60735756e7 (patch) | |
tree | 80f6acea44c17444703c8d8ffef3734bb9b530fb | |
parent | 345477ffe2ed0c53ffbbfeae73f9bca38e827d0d (diff) |
gpio: include linux/bug.h in interface header
Today's linux-next kernel started showing build errors for the
use of WARN_ON in linux/gpio/consumer.h:
In file included from drivers/video/backlight/pwm_bl.c:13:0:
include/linux/gpio/consumer.h: In function 'gpiod_put':
include/linux/gpio/consumer.h:81:2: error: implicit declaration of function 'WARN_ON' [-Werror=implicit-function-declaration]
It's not clear why this never happened before, but this patch
fixes it by including the header that contains the defintion
of this macro.
Signed-off-by: Arnd Bergmann <arnd@arnd.de>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | include/linux/gpio/consumer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/gpio/consumer.h b/include/linux/gpio/consumer.h index 6a37ef0dc59c..05e53ccb708b 100644 --- a/include/linux/gpio/consumer.h +++ b/include/linux/gpio/consumer.h | |||
@@ -1,6 +1,7 @@ | |||
1 | #ifndef __LINUX_GPIO_CONSUMER_H | 1 | #ifndef __LINUX_GPIO_CONSUMER_H |
2 | #define __LINUX_GPIO_CONSUMER_H | 2 | #define __LINUX_GPIO_CONSUMER_H |
3 | 3 | ||
4 | #include <linux/bug.h> | ||
4 | #include <linux/err.h> | 5 | #include <linux/err.h> |
5 | #include <linux/kernel.h> | 6 | #include <linux/kernel.h> |
6 | 7 | ||