]> git.karo-electronics.de Git - karo-tx-linux.git/commit
gpio: include linux/bug.h in interface header
authorArnd Bergmann <arnd@arndb.de>
Thu, 8 May 2014 13:42:25 +0000 (15:42 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 13 May 2014 13:15:40 +0000 (15:15 +0200)
commit17814f81f6134d22e358170bec16db8efabadfd5
tree6507129661d30192114b5b3370f270d98d2c8db9
parentcfb4b4e4fef8fa17f4af4e148a314cc84f14e3c2
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>
include/linux/gpio/consumer.h