linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sh: mach-x3proto: Add missing #include <linux/gpio/driver.h>
@ 2023-03-09 13:52 Geert Uytterhoeven
  2023-03-09 13:54 ` John Paul Adrian Glaubitz
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2023-03-09 13:52 UTC (permalink / raw)
  To: Linus Walleij, Andy Shevchenko
  Cc: Yoshinori Sato, Rich Felker, John Paul Adrian Glaubitz,
	linux-gpio, linux-sh, linux-kernel, Geert Uytterhoeven,
	Linux Kernel Functional Testing

shx3_defconfig:

    arch/sh/boards/mach-x3proto/setup.c: In function ‘x3proto_devices_setup’:
    arch/sh/boards/mach-x3proto/setup.c:246:62: error: invalid use of undefined type ‘struct gpio_chip’
      246 |                 baseboard_buttons[i].gpio = x3proto_gpio_chip.base + i;
	  |                                                              ^

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Link: https://lore.kernel.org/r/CA+G9fYs7suzGsEDK40G0pzxXyR1o2V4Pn-oy1owTsTWRVEVHog@mail.gmail.com
Fixes: 21d9526d13b5467b ("gpiolib: Make the legacy <linux/gpio.h> consumer-only")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/sh/boards/mach-x3proto/setup.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/sh/boards/mach-x3proto/setup.c b/arch/sh/boards/mach-x3proto/setup.c
index 95b85f2e13dda75b..7f39fca95e57a109 100644
--- a/arch/sh/boards/mach-x3proto/setup.c
+++ b/arch/sh/boards/mach-x3proto/setup.c
@@ -17,6 +17,7 @@
 #include <linux/usb/r8a66597.h>
 #include <linux/usb/m66592.h>
 #include <linux/gpio.h>
+#include <linux/gpio/driver.h>
 #include <linux/gpio_keys.h>
 #include <mach/ilsel.h>
 #include <mach/hardware.h>
-- 
2.34.1


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

* Re: [PATCH] sh: mach-x3proto: Add missing #include <linux/gpio/driver.h>
  2023-03-09 13:52 [PATCH] sh: mach-x3proto: Add missing #include <linux/gpio/driver.h> Geert Uytterhoeven
@ 2023-03-09 13:54 ` John Paul Adrian Glaubitz
  2023-03-09 13:56   ` Geert Uytterhoeven
  2023-03-09 14:04 ` Andy Shevchenko
  2023-03-09 14:08 ` Linus Walleij
  2 siblings, 1 reply; 8+ messages in thread
From: John Paul Adrian Glaubitz @ 2023-03-09 13:54 UTC (permalink / raw)
  To: Geert Uytterhoeven, Linus Walleij, Andy Shevchenko
  Cc: Yoshinori Sato, Rich Felker, linux-gpio, linux-sh, linux-kernel,
	Linux Kernel Functional Testing

Hi Geert!

On Thu, 2023-03-09 at 14:52 +0100, Geert Uytterhoeven wrote:
> shx3_defconfig:
> 
>     arch/sh/boards/mach-x3proto/setup.c: In function ‘x3proto_devices_setup’:
>     arch/sh/boards/mach-x3proto/setup.c:246:62: error: invalid use of undefined type ‘struct gpio_chip’
>       246 |                 baseboard_buttons[i].gpio = x3proto_gpio_chip.base + i;
> 	  |                                                              ^
> 
> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> Link: https://lore.kernel.org/r/CA+G9fYs7suzGsEDK40G0pzxXyR1o2V4Pn-oy1owTsTWRVEVHog@mail.gmail.com
> Fixes: 21d9526d13b5467b ("gpiolib: Make the legacy <linux/gpio.h> consumer-only")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
>  arch/sh/boards/mach-x3proto/setup.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/sh/boards/mach-x3proto/setup.c b/arch/sh/boards/mach-x3proto/setup.c
> index 95b85f2e13dda75b..7f39fca95e57a109 100644
> --- a/arch/sh/boards/mach-x3proto/setup.c
> +++ b/arch/sh/boards/mach-x3proto/setup.c
> @@ -17,6 +17,7 @@
>  #include <linux/usb/r8a66597.h>
>  #include <linux/usb/m66592.h>
>  #include <linux/gpio.h>
> +#include <linux/gpio/driver.h>
>  #include <linux/gpio_keys.h>
>  #include <mach/ilsel.h>
>  #include <mach/hardware.h>

Thanks. You were much faster than me. I didn't even have the time to have a look
at the problem yet ;-). Is it sufficient to pick this up for 6.4?

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

* Re: [PATCH] sh: mach-x3proto: Add missing #include <linux/gpio/driver.h>
  2023-03-09 13:54 ` John Paul Adrian Glaubitz
@ 2023-03-09 13:56   ` Geert Uytterhoeven
  2023-03-09 13:58     ` John Paul Adrian Glaubitz
  0 siblings, 1 reply; 8+ messages in thread
From: Geert Uytterhoeven @ 2023-03-09 13:56 UTC (permalink / raw)
  To: John Paul Adrian Glaubitz
  Cc: Linus Walleij, Andy Shevchenko, Yoshinori Sato, Rich Felker,
	linux-gpio, linux-sh, linux-kernel,
	Linux Kernel Functional Testing

Hi Adrian,

> On Thu, 2023-03-09 at 14:52 +0100, Geert Uytterhoeven wrote:
> > shx3_defconfig:
> >
> >     arch/sh/boards/mach-x3proto/setup.c: In function ‘x3proto_devices_setup’:
> >     arch/sh/boards/mach-x3proto/setup.c:246:62: error: invalid use of undefined type ‘struct gpio_chip’
> >       246 |                 baseboard_buttons[i].gpio = x3proto_gpio_chip.base + i;
> >         |                                                              ^
> >
> > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> > Link: https://lore.kernel.org/r/CA+G9fYs7suzGsEDK40G0pzxXyR1o2V4Pn-oy1owTsTWRVEVHog@mail.gmail.com
> > Fixes: 21d9526d13b5467b ("gpiolib: Make the legacy <linux/gpio.h> consumer-only")
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

> > --- a/arch/sh/boards/mach-x3proto/setup.c
> > +++ b/arch/sh/boards/mach-x3proto/setup.c
> > @@ -17,6 +17,7 @@
> >  #include <linux/usb/r8a66597.h>
> >  #include <linux/usb/m66592.h>
> >  #include <linux/gpio.h>
> > +#include <linux/gpio/driver.h>
> >  #include <linux/gpio_keys.h>
> >  #include <mach/ilsel.h>
> >  #include <mach/hardware.h>
>
> Thanks. You were much faster than me. I didn't even have the time to have a look
> at the problem yet ;-). Is it sufficient to pick this up for 6.4?

As the problem is introduced in and only found in gpio/for-next,
I expect Linus or Andy to pick it up.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH] sh: mach-x3proto: Add missing #include <linux/gpio/driver.h>
  2023-03-09 13:56   ` Geert Uytterhoeven
@ 2023-03-09 13:58     ` John Paul Adrian Glaubitz
  0 siblings, 0 replies; 8+ messages in thread
From: John Paul Adrian Glaubitz @ 2023-03-09 13:58 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Linus Walleij, Andy Shevchenko, Yoshinori Sato, Rich Felker,
	linux-gpio, linux-sh, linux-kernel,
	Linux Kernel Functional Testing

On Thu, 2023-03-09 at 14:56 +0100, Geert Uytterhoeven wrote:
> Hi Adrian,
> 
> > On Thu, 2023-03-09 at 14:52 +0100, Geert Uytterhoeven wrote:
> > > shx3_defconfig:
> > > 
> > >     arch/sh/boards/mach-x3proto/setup.c: In function ‘x3proto_devices_setup’:
> > >     arch/sh/boards/mach-x3proto/setup.c:246:62: error: invalid use of undefined type ‘struct gpio_chip’
> > >       246 |                 baseboard_buttons[i].gpio = x3proto_gpio_chip.base + i;
> > >         |                                                              ^
> > > 
> > > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> > > Link: https://lore.kernel.org/r/CA+G9fYs7suzGsEDK40G0pzxXyR1o2V4Pn-oy1owTsTWRVEVHog@mail.gmail.com
> > > Fixes: 21d9526d13b5467b ("gpiolib: Make the legacy <linux/gpio.h> consumer-only")
> > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> 
> > > --- a/arch/sh/boards/mach-x3proto/setup.c
> > > +++ b/arch/sh/boards/mach-x3proto/setup.c
> > > @@ -17,6 +17,7 @@
> > >  #include <linux/usb/r8a66597.h>
> > >  #include <linux/usb/m66592.h>
> > >  #include <linux/gpio.h>
> > > +#include <linux/gpio/driver.h>
> > >  #include <linux/gpio_keys.h>
> > >  #include <mach/ilsel.h>
> > >  #include <mach/hardware.h>
> > 
> > Thanks. You were much faster than me. I didn't even have the time to have a look
> > at the problem yet ;-). Is it sufficient to pick this up for 6.4?
> 
> As the problem is introduced in and only found in gpio/for-next,
> I expect Linus or Andy to pick it up.

OK, thanks! I'm planning to prepare my for-next changes this weekend.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

* Re: [PATCH] sh: mach-x3proto: Add missing #include <linux/gpio/driver.h>
  2023-03-09 13:52 [PATCH] sh: mach-x3proto: Add missing #include <linux/gpio/driver.h> Geert Uytterhoeven
  2023-03-09 13:54 ` John Paul Adrian Glaubitz
@ 2023-03-09 14:04 ` Andy Shevchenko
  2023-03-09 14:35   ` Geert Uytterhoeven
  2023-03-09 14:08 ` Linus Walleij
  2 siblings, 1 reply; 8+ messages in thread
From: Andy Shevchenko @ 2023-03-09 14:04 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Linus Walleij, Yoshinori Sato, Rich Felker,
	John Paul Adrian Glaubitz, linux-gpio, linux-sh, linux-kernel,
	Linux Kernel Functional Testing

On Thu, Mar 09, 2023 at 02:52:55PM +0100, Geert Uytterhoeven wrote:
> shx3_defconfig:
> 
>     arch/sh/boards/mach-x3proto/setup.c: In function ‘x3proto_devices_setup’:
>     arch/sh/boards/mach-x3proto/setup.c:246:62: error: invalid use of undefined type ‘struct gpio_chip’
>       246 |                 baseboard_buttons[i].gpio = x3proto_gpio_chip.base + i;
> 	  |                                                              ^
> 
> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> Link: https://lore.kernel.org/r/CA+G9fYs7suzGsEDK40G0pzxXyR1o2V4Pn-oy1owTsTWRVEVHog@mail.gmail.com
> Fixes: 21d9526d13b5467b ("gpiolib: Make the legacy <linux/gpio.h> consumer-only")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Thank you!

...

>  #include <linux/gpio.h>
> +#include <linux/gpio/driver.h>

Do we still need the legacy header?

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH] sh: mach-x3proto: Add missing #include <linux/gpio/driver.h>
  2023-03-09 13:52 [PATCH] sh: mach-x3proto: Add missing #include <linux/gpio/driver.h> Geert Uytterhoeven
  2023-03-09 13:54 ` John Paul Adrian Glaubitz
  2023-03-09 14:04 ` Andy Shevchenko
@ 2023-03-09 14:08 ` Linus Walleij
  2023-03-09 14:36   ` Andy Shevchenko
  2 siblings, 1 reply; 8+ messages in thread
From: Linus Walleij @ 2023-03-09 14:08 UTC (permalink / raw)
  To: Geert Uytterhoeven, Bartosz Golaszewski, Arnd Bergmann
  Cc: Andy Shevchenko, Yoshinori Sato, Rich Felker,
	John Paul Adrian Glaubitz, linux-gpio, linux-sh, linux-kernel,
	Linux Kernel Functional Testing

On Thu, Mar 9, 2023 at 2:52 PM Geert Uytterhoeven
<geert+renesas@glider.be> wrote:

> shx3_defconfig:
>
>     arch/sh/boards/mach-x3proto/setup.c: In function ‘x3proto_devices_setup’:
>     arch/sh/boards/mach-x3proto/setup.c:246:62: error: invalid use of undefined type ‘struct gpio_chip’
>       246 |                 baseboard_buttons[i].gpio = x3proto_gpio_chip.base + i;
>           |                                                              ^
>
> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> Link: https://lore.kernel.org/r/CA+G9fYs7suzGsEDK40G0pzxXyR1o2V4Pn-oy1owTsTWRVEVHog@mail.gmail.com
> Fixes: 21d9526d13b5467b ("gpiolib: Make the legacy <linux/gpio.h> consumer-only")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

This is fallout from cleanups in Bartosz GPIO tree, so it will be applied there.
Make sure Bartosz gets the patch (now on To:)

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

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

* Re: [PATCH] sh: mach-x3proto: Add missing #include <linux/gpio/driver.h>
  2023-03-09 14:04 ` Andy Shevchenko
@ 2023-03-09 14:35   ` Geert Uytterhoeven
  0 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2023-03-09 14:35 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Linus Walleij, Yoshinori Sato, Rich Felker,
	John Paul Adrian Glaubitz, linux-gpio, linux-sh, linux-kernel,
	Linux Kernel Functional Testing

Hi Andy,

On Thu, Mar 9, 2023 at 3:10 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
> On Thu, Mar 09, 2023 at 02:52:55PM +0100, Geert Uytterhoeven wrote:
> > shx3_defconfig:
> >
> >     arch/sh/boards/mach-x3proto/setup.c: In function ‘x3proto_devices_setup’:
> >     arch/sh/boards/mach-x3proto/setup.c:246:62: error: invalid use of undefined type ‘struct gpio_chip’
> >       246 |                 baseboard_buttons[i].gpio = x3proto_gpio_chip.base + i;
> >         |                                                              ^
> >
> > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> > Link: https://lore.kernel.org/r/CA+G9fYs7suzGsEDK40G0pzxXyR1o2V4Pn-oy1owTsTWRVEVHog@mail.gmail.com
> > Fixes: 21d9526d13b5467b ("gpiolib: Make the legacy <linux/gpio.h> consumer-only")
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>
> Thank you!
>
> ...
>
> >  #include <linux/gpio.h>
> > +#include <linux/gpio/driver.h>
>
> Do we still need the legacy header?

Apparently not.  And "make arch/sh/boards/mach-x3proto/setup.i"
confirms it's not included indirectly.

Will send a v2...

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH] sh: mach-x3proto: Add missing #include <linux/gpio/driver.h>
  2023-03-09 14:08 ` Linus Walleij
@ 2023-03-09 14:36   ` Andy Shevchenko
  0 siblings, 0 replies; 8+ messages in thread
From: Andy Shevchenko @ 2023-03-09 14:36 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Geert Uytterhoeven, Bartosz Golaszewski, Arnd Bergmann,
	Yoshinori Sato, Rich Felker, John Paul Adrian Glaubitz,
	linux-gpio, linux-sh, linux-kernel,
	Linux Kernel Functional Testing

On Thu, Mar 09, 2023 at 03:08:47PM +0100, Linus Walleij wrote:
> On Thu, Mar 9, 2023 at 2:52 PM Geert Uytterhoeven
> <geert+renesas@glider.be> wrote:
> 
> > shx3_defconfig:
> >
> >     arch/sh/boards/mach-x3proto/setup.c: In function ‘x3proto_devices_setup’:
> >     arch/sh/boards/mach-x3proto/setup.c:246:62: error: invalid use of undefined type ‘struct gpio_chip’
> >       246 |                 baseboard_buttons[i].gpio = x3proto_gpio_chip.base + i;
> >           |                                                              ^
> >
> > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> > Link: https://lore.kernel.org/r/CA+G9fYs7suzGsEDK40G0pzxXyR1o2V4Pn-oy1owTsTWRVEVHog@mail.gmail.com
> > Fixes: 21d9526d13b5467b ("gpiolib: Make the legacy <linux/gpio.h> consumer-only")
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> 
> This is fallout from cleanups in Bartosz GPIO tree, so it will be applied there.
> Make sure Bartosz gets the patch (now on To:)
> 
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Thanks, as for previous patch on the same topic, I am collecting this one.

I will sent a new PR to Bart including all fixes, but I would wait one or a
couple of weeks before doing that. Meanwhile these will be in Linux Next.

-- 
With Best Regards,
Andy Shevchenko



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

end of thread, other threads:[~2023-03-09 15:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-09 13:52 [PATCH] sh: mach-x3proto: Add missing #include <linux/gpio/driver.h> Geert Uytterhoeven
2023-03-09 13:54 ` John Paul Adrian Glaubitz
2023-03-09 13:56   ` Geert Uytterhoeven
2023-03-09 13:58     ` John Paul Adrian Glaubitz
2023-03-09 14:04 ` Andy Shevchenko
2023-03-09 14:35   ` Geert Uytterhoeven
2023-03-09 14:08 ` Linus Walleij
2023-03-09 14:36   ` 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).