gpio: include linux/bug.h in interface header
authorArnd Bergmann <arnd@arndb.de>
Thu, 8 May 2014 13:42:25 +0000 (15:42 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 5 Dec 2014 04:19:25 +0000 (13:19 +0900)
commit08959d1bd80f0d20f145b1a0ab44a695085d0991
tree5f77ffe25a32d6a29c9f0e12b3c31357b6757c29
parent43fd7b19845667fb66cc7f80641c1387c5b1494e
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>
(cherry picked from commit cdf86cd233207ed992a647f0b9d42c60735756e7)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
include/linux/gpio/consumer.h