All of lore.kernel.org
 help / color / mirror / Atom feed
* Compilation failure in gpio-vf610.c
@ 2022-07-05  7:00 Tariq Toukan
  2022-07-05  7:02 ` Peng Fan
  2022-07-05  9:20 ` Andy Shevchenko
  0 siblings, 2 replies; 5+ messages in thread
From: Tariq Toukan @ 2022-07-05  7:00 UTC (permalink / raw)
  To: linux-gpio, Bartosz Golaszewski, Linus Walleij, Peng Fan
  Cc: Tariq Toukan, Ran Rozenstein, gal, Leon Romanovsky, Saeed Mahameed

Hi,

Recently we started seeing the compilation error:

drivers/gpio/gpio-vf610.c: In function ‘vf610_gpio_direction_input’:
drivers/gpio/gpio-vf610.c:120:9: error: implicit declaration of function 
‘pinctrl_gpio_direction_input’; did you mean 
‘vf610_gpio_direction_input’? [-Werror=implicit-function-declaration]
   120 |  return pinctrl_gpio_direction_input(chip->base + gpio);
       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
       |         vf610_gpio_direction_input


Is it a known issue? Is there a fix we can cherry-pick?

Offending patch:

commit 30a35c07d9e9affaebd557c454df98e5ba269776
Author: Peng Fan <peng.fan@nxp.com>
Date:   Mon Apr 25 19:11:35 2022 +0800

     gpio: vf610: drop the SOC_VF610 dependency for GPIO_VF610

     i.MX7ULP, i.MX8 and i.MX9 use this driver, so drop
     the SOC_VF610 dependcy to make the driver could be built
     for i.MX platform.

     Signed-off-by: Peng Fan <peng.fan@nxp.com>
     Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>

This seems to solve the issue.
Is it the proper way for solving this?

diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c
index 23cddb265a0d..9db42f6a2043 100644
--- a/drivers/gpio/gpio-vf610.c
+++ b/drivers/gpio/gpio-vf610.c
@@ -19,6 +19,7 @@
  #include <linux/of.h>
  #include <linux/of_device.h>
  #include <linux/of_irq.h>
+#include <linux/pinctrl/consumer.h>

  #define VF610_GPIO_PER_PORT            32

Thanks,
Tariq

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-07-05  9:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-05  7:00 Compilation failure in gpio-vf610.c Tariq Toukan
2022-07-05  7:02 ` Peng Fan
2022-07-05  7:06   ` Tariq Toukan
2022-07-05  9:38     ` Peng Fan
2022-07-05  9:20 ` Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.