From: Ladislav Michl Date: Thu, 5 Oct 2017 12:11:06 +0000 (-0300) Subject: [media] media: rc: fix gpio-ir-receiver build failure X-Git-Tag: v5.15~9827^2~268 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1301077213d4dca34f01fc372b64d3c4a49a437;p=platform%2Fkernel%2Flinux-starfive.git [media] media: rc: fix gpio-ir-receiver build failure The 0-day robot reports: drivers/media/rc/gpio-ir-recv.c: In function 'gpio_ir_recv_irq': >> drivers/media/rc/gpio-ir-recv.c:38:8: error: implicit declaration of function 'gpiod_get_value' [-Werror=implicit-function-declaration] Fixes: eed008e605d1 ("[media] media: rc: gpio-ir-recv: use gpiolib API") For some reason only partial patch was applied. Also include gpio/consumer.h otherwise compile test fails. Reported-by: kbuild test robot Signed-off-by: Ladislav Michl Acked-by: Sean Young --- diff --git a/drivers/media/rc/Kconfig b/drivers/media/rc/Kconfig index 467cf2b..451cba1 100644 --- a/drivers/media/rc/Kconfig +++ b/drivers/media/rc/Kconfig @@ -392,6 +392,7 @@ config RC_LOOPBACK config IR_GPIO_CIR tristate "GPIO IR remote control" depends on RC_CORE + depends on (OF && GPIOLIB) || COMPILE_TEST ---help--- Say Y if you want to use GPIO based IR Receiver. diff --git a/drivers/media/rc/gpio-ir-recv.c b/drivers/media/rc/gpio-ir-recv.c index 24641a9..3d99b51 100644 --- a/drivers/media/rc/gpio-ir-recv.c +++ b/drivers/media/rc/gpio-ir-recv.c @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include #include