linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: nomadik: include linux/seq_file.h
@ 2022-12-15 17:00 Arnd Bergmann
  2022-12-15 17:16 ` Andy Shevchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2022-12-15 17:00 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Arnd Bergmann, Miaoqian Lin, Andy Shevchenko, Marc Zyngier,
	Lukas Bulwahn, linux-arm-kernel, linux-gpio, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

In some randconfig builds, the missing #include causes a
build failure:

drivers/pinctrl/nomadik/pinctrl-nomadik.c: In function 'nmk_gpio_irq_print_chip':
drivers/pinctrl/nomadik/pinctrl-nomadik.c:1084:9: error: implicit declaration of function 'seq_printf'; did you mean 'bstr_printf'? [-Werror=implicit-function-declaration]
 1084 |         seq_printf(p, "nmk%u-%u-%u", nmk_chip->bank,
      |         ^~~~~~~~~~
      |         bstr_printf

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/pinctrl/nomadik/pinctrl-nomadik.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pinctrl/nomadik/pinctrl-nomadik.c b/drivers/pinctrl/nomadik/pinctrl-nomadik.c
index f7d02513d8cc..1d8e36c2785d 100644
--- a/drivers/pinctrl/nomadik/pinctrl-nomadik.c
+++ b/drivers/pinctrl/nomadik/pinctrl-nomadik.c
@@ -17,6 +17,7 @@
 #include <linux/gpio/driver.h>
 #include <linux/spinlock.h>
 #include <linux/interrupt.h>
+#include <linux/seq_file.h>
 #include <linux/slab.h>
 #include <linux/of_device.h>
 #include <linux/of_address.h>
-- 
2.35.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] pinctrl: nomadik: include linux/seq_file.h
  2022-12-15 17:00 [PATCH] pinctrl: nomadik: include linux/seq_file.h Arnd Bergmann
@ 2022-12-15 17:16 ` Andy Shevchenko
  2022-12-28  8:52   ` Andy Shevchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Shevchenko @ 2022-12-15 17:16 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Linus Walleij, Arnd Bergmann, Miaoqian Lin, Marc Zyngier,
	Lukas Bulwahn, linux-arm-kernel, linux-gpio, linux-kernel

On Thu, Dec 15, 2022 at 06:00:57PM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> In some randconfig builds, the missing #include causes a
> build failure:
> 
> drivers/pinctrl/nomadik/pinctrl-nomadik.c: In function 'nmk_gpio_irq_print_chip':
> drivers/pinctrl/nomadik/pinctrl-nomadik.c:1084:9: error: implicit declaration of function 'seq_printf'; did you mean 'bstr_printf'? [-Werror=implicit-function-declaration]
>  1084 |         seq_printf(p, "nmk%u-%u-%u", nmk_chip->bank,
>       |         ^~~~~~~~~~
>       |         bstr_printf

Hmm... Strange that I have not noticed this from CIs.
Nevertheless, I have a patch that adds more missing
headers to this driver. I have planned to send it
after v6.2-rc1.

I'm fine if this goes first. Up to Linus.

-- 
With Best Regards,
Andy Shevchenko



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] pinctrl: nomadik: include linux/seq_file.h
  2022-12-15 17:16 ` Andy Shevchenko
@ 2022-12-28  8:52   ` Andy Shevchenko
  0 siblings, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2022-12-28  8:52 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Linus Walleij, Arnd Bergmann, Miaoqian Lin, Marc Zyngier,
	Lukas Bulwahn, linux-arm-kernel, linux-gpio, linux-kernel

On Thu, Dec 15, 2022 at 07:16:54PM +0200, Andy Shevchenko wrote:
> On Thu, Dec 15, 2022 at 06:00:57PM +0100, Arnd Bergmann wrote:
> > From: Arnd Bergmann <arnd@arndb.de>
> > 
> > In some randconfig builds, the missing #include causes a
> > build failure:
> > 
> > drivers/pinctrl/nomadik/pinctrl-nomadik.c: In function 'nmk_gpio_irq_print_chip':
> > drivers/pinctrl/nomadik/pinctrl-nomadik.c:1084:9: error: implicit declaration of function 'seq_printf'; did you mean 'bstr_printf'? [-Werror=implicit-function-declaration]
> >  1084 |         seq_printf(p, "nmk%u-%u-%u", nmk_chip->bank,
> >       |         ^~~~~~~~~~
> >       |         bstr_printf
> 
> Hmm... Strange that I have not noticed this from CIs.
> Nevertheless, I have a patch that adds more missing
> headers to this driver. I have planned to send it
> after v6.2-rc1.
> 
> I'm fine if this goes first. Up to Linus.

FYI: I have just sent my version
https://lore.kernel.org/r/20221228084310.85210-1-andriy.shevchenko@linux.intel.com

-- 
With Best Regards,
Andy Shevchenko



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2022-12-28  8:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-15 17:00 [PATCH] pinctrl: nomadik: include linux/seq_file.h Arnd Bergmann
2022-12-15 17:16 ` Andy Shevchenko
2022-12-28  8:52   ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).