All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Arnd Bergmann" <arnd@kernel.org>
Cc: linux-sunxi@lists.linux.dev, dmitry.torokhov@gmail.com,
	neil.armstrong@linaro.org, olteanv@gmail.com, vkoul@kernel.org,
	linux-phy@lists.infradead.org, linux-input@vger.kernel.org
Subject: Re: [PATCH 13/13] gpiolib: remove linux/gpio.h
Date: Tue, 30 Jun 2026 13:28:37 +0000	[thread overview]
Message-ID: <20260630132838.113F91F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260629132633.1300009-14-arnd@kernel.org>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] Removing `include/linux/gpio.h` breaks the build for multiple drivers across the kernel tree that still include it and rely on it for legacy GPIO declarations.
- [Low] Typographical error in `drivers/gpio/TODO` where `legacy.h` is misspelled as `lagacy.h`.
--

commit eb8b9c8709d4fc96f518f3578deb6f0d05993604
Author: Arnd Bergmann <arnd@arndb.de>

gpiolib: remove linux/gpio.h

This commit removes the include/linux/gpio.h header entirely, cleaning up
leftover bits under the assumption that all drivers have been converted to
consumer.h or legacy.h. It also updates internal gpiolib includes and a 
TODO file accordingly.

> diff --git a/drivers/gpio/TODO b/drivers/gpio/TODO
> index 7ce80fde1f17e..894c7e1af252a 100644
> --- a/drivers/gpio/TODO
> +++ b/drivers/gpio/TODO
> @@ -52,9 +52,7 @@ Work items:
>    base can be made dynamic (set to -1) if CONFIG_GPIO_SYSFS is disabled.
>  
>  - When this work is complete (will require some of the items in the
> -  following ongoing work as well) we can delete the old global
> -  numberspace accessors from <linux/gpio.h> and eventually delete
> -  <linux/gpio.h> altogether.
> +  following ongoing work as well) we can delete <linux/gpio/lagacy.h>.
                                                                ^^^^^^^^
[Severity: Low]
This isn't a bug, but there is a typo here (lagacy.h instead of legacy.h).

[ ... ]

> diff --git a/include/linux/gpio.h b/include/linux/gpio.h
> deleted file mode 100644
> index b0d4942a65de2..0000000000000
> --- a/include/linux/gpio.h
> +++ /dev/null
> @@ -1,22 +0,0 @@
[ ... ]
> -#ifdef CONFIG_GPIOLIB_LEGACY
> -#include <linux/gpio/legacy.h>
> -#endif /* CONFIG_GPIOLIB_LEGACY */
> -
> -#endif /* __LINUX_GPIO_H */

[Severity: Low]
Does removing this header break the build for remaining unconverted legacy
GPIO consumers?

For example, drivers/input/keyboard/gpio_keys.c:gpio_keys_setup_key() still
appears to rely on this header for devm_gpio_request_one():

    error = devm_gpio_request_one(dev, button->gpio, GPIOF_IN, desc);

Similarly, drivers/leds/leds-gpio.c:gpio_led_get_gpiod() also relies on it:

    ret = devm_gpio_request_one(dev, template->gpio, GPIOF_OUT_INIT_LOW,
                                template->name);

And arch/x86/platform/olpc/olpc-xo1-sci.c:setup_ec_sci() still uses
gpio_request():

    r = gpio_request(OLPC_GPIO_ECSCI, "OLPC-ECSCI");

Will these drivers fail to compile since functions like devm_gpio_request_one()
and gpio_request() will now be missing or implicitly declared?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260629132633.1300009-1-arnd@kernel.org?part=13

WARNING: multiple messages have this Message-ID (diff)
From: sashiko-bot@kernel.org
To: "Arnd Bergmann" <arnd@kernel.org>
Cc: linux-sunxi@lists.linux.dev, dmitry.torokhov@gmail.com,
	neil.armstrong@linaro.org, olteanv@gmail.com, vkoul@kernel.org,
	linux-phy@lists.infradead.org, linux-input@vger.kernel.org
Subject: Re: [PATCH 13/13] gpiolib: remove linux/gpio.h
Date: Tue, 30 Jun 2026 13:28:37 +0000	[thread overview]
Message-ID: <20260630132838.113F91F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260629132633.1300009-14-arnd@kernel.org>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] Removing `include/linux/gpio.h` breaks the build for multiple drivers across the kernel tree that still include it and rely on it for legacy GPIO declarations.
- [Low] Typographical error in `drivers/gpio/TODO` where `legacy.h` is misspelled as `lagacy.h`.
--

commit eb8b9c8709d4fc96f518f3578deb6f0d05993604
Author: Arnd Bergmann <arnd@arndb.de>

gpiolib: remove linux/gpio.h

This commit removes the include/linux/gpio.h header entirely, cleaning up
leftover bits under the assumption that all drivers have been converted to
consumer.h or legacy.h. It also updates internal gpiolib includes and a 
TODO file accordingly.

> diff --git a/drivers/gpio/TODO b/drivers/gpio/TODO
> index 7ce80fde1f17e..894c7e1af252a 100644
> --- a/drivers/gpio/TODO
> +++ b/drivers/gpio/TODO
> @@ -52,9 +52,7 @@ Work items:
>    base can be made dynamic (set to -1) if CONFIG_GPIO_SYSFS is disabled.
>  
>  - When this work is complete (will require some of the items in the
> -  following ongoing work as well) we can delete the old global
> -  numberspace accessors from <linux/gpio.h> and eventually delete
> -  <linux/gpio.h> altogether.
> +  following ongoing work as well) we can delete <linux/gpio/lagacy.h>.
                                                                ^^^^^^^^
[Severity: Low]
This isn't a bug, but there is a typo here (lagacy.h instead of legacy.h).

[ ... ]

> diff --git a/include/linux/gpio.h b/include/linux/gpio.h
> deleted file mode 100644
> index b0d4942a65de2..0000000000000
> --- a/include/linux/gpio.h
> +++ /dev/null
> @@ -1,22 +0,0 @@
[ ... ]
> -#ifdef CONFIG_GPIOLIB_LEGACY
> -#include <linux/gpio/legacy.h>
> -#endif /* CONFIG_GPIOLIB_LEGACY */
> -
> -#endif /* __LINUX_GPIO_H */

[Severity: Low]
Does removing this header break the build for remaining unconverted legacy
GPIO consumers?

For example, drivers/input/keyboard/gpio_keys.c:gpio_keys_setup_key() still
appears to rely on this header for devm_gpio_request_one():

    error = devm_gpio_request_one(dev, button->gpio, GPIOF_IN, desc);

Similarly, drivers/leds/leds-gpio.c:gpio_led_get_gpiod() also relies on it:

    ret = devm_gpio_request_one(dev, template->gpio, GPIOF_OUT_INIT_LOW,
                                template->name);

And arch/x86/platform/olpc/olpc-xo1-sci.c:setup_ec_sci() still uses
gpio_request():

    r = gpio_request(OLPC_GPIO_ECSCI, "OLPC-ECSCI");

Will these drivers fail to compile since functions like devm_gpio_request_one()
and gpio_request() will now be missing or implicitly declared?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260629132633.1300009-1-arnd@kernel.org?part=13

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

  reply	other threads:[~2026-06-30 13:28 UTC|newest]

Thread overview: 97+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-29 13:26 [PATCH 00/13] treewide: replace linux/gpio.h Arnd Bergmann
2026-06-29 13:26 ` Arnd Bergmann
2026-06-29 13:26 ` Arnd Bergmann
2026-06-29 13:26 ` [PATCH 01/13] ARM: replace linux/gpio.h inclusions Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-29 13:26 ` [PATCH 02/13] m68k/coldfire: " Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-07-06 11:22   ` Greg Ungerer
2026-07-06 11:22     ` Greg Ungerer
2026-07-06 11:22     ` Greg Ungerer
2026-06-29 13:26 ` [PATCH 03/13] mips: " Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-30 22:08   ` Philippe Mathieu-Daudé
2026-06-30 22:08     ` Philippe Mathieu-Daudé
2026-06-30 22:08     ` Philippe Mathieu-Daudé
2026-06-29 13:26 ` [PATCH 04/13] sh: " Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-30 22:08   ` Philippe Mathieu-Daudé
2026-06-30 22:08     ` Philippe Mathieu-Daudé
2026-06-30 22:08     ` Philippe Mathieu-Daudé
2026-06-29 13:26 ` [PATCH 05/13] mfd: " Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-30 13:28   ` sashiko-bot
2026-06-30 13:28     ` sashiko-bot
2026-07-06  8:59   ` Charles Keepax
2026-07-06  8:59     ` Charles Keepax
2026-07-06  8:59     ` Charles Keepax
2026-06-29 13:26 ` [PATCH 06/13] [net-next] net: " Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-30 13:28   ` sashiko-bot
2026-06-30 13:28     ` sashiko-bot
2026-06-29 13:26 ` [PATCH 07/13] ASoC: " Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-30 13:28   ` sashiko-bot
2026-06-30 13:28     ` sashiko-bot
2026-07-06  9:01   ` Charles Keepax
2026-07-06  9:01     ` Charles Keepax
2026-07-06  9:01     ` Charles Keepax
2026-06-29 13:26 ` [PATCH 08/13] pcmcia: " Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-30 13:28   ` sashiko-bot
2026-06-30 13:28     ` sashiko-bot
2026-06-30 13:36     ` Arnd Bergmann
2026-06-30 13:36       ` Arnd Bergmann
2026-06-29 13:26 ` [PATCH 09/13] phy: " Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-30 13:28   ` sashiko-bot
2026-06-30 13:28     ` sashiko-bot
2026-06-30 13:37     ` Arnd Bergmann
2026-06-30 13:37       ` Arnd Bergmann
2026-06-29 13:26 ` [PATCH 10/13] media: " Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-29 13:26 ` [PATCH 11/13] Input: matrix_keyboard - replace linux/gpio.h inclusion Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-30 13:28   ` sashiko-bot
2026-06-30 13:28     ` sashiko-bot
2026-06-29 13:26 ` [PATCH 12/13] gpib: gpio: " Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-30 13:28   ` sashiko-bot
2026-06-30 13:28     ` sashiko-bot
2026-06-29 13:26 ` [PATCH 13/13] gpiolib: remove linux/gpio.h Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-29 13:26   ` Arnd Bergmann
2026-06-30 13:28   ` sashiko-bot [this message]
2026-06-30 13:28     ` sashiko-bot
2026-06-30 13:31     ` Arnd Bergmann
2026-06-30 13:31       ` Arnd Bergmann
2026-06-30 22:09   ` Philippe Mathieu-Daudé
2026-06-30 22:09     ` Philippe Mathieu-Daudé
2026-06-30 22:09     ` Philippe Mathieu-Daudé
2026-06-29 14:01 ` [PATCH 00/13] treewide: replace linux/gpio.h Andreas Schwab
2026-06-29 14:01   ` Andreas Schwab
2026-06-29 14:01   ` Andreas Schwab
2026-06-29 14:24   ` Arnd Bergmann
2026-06-29 14:24     ` Arnd Bergmann
2026-06-29 14:24     ` Arnd Bergmann
2026-06-30  7:53 ` Bartosz Golaszewski
2026-06-30  7:53   ` Bartosz Golaszewski
2026-06-30  7:53   ` Bartosz Golaszewski
2026-06-30 21:39 ` Linus Walleij
2026-06-30 21:39   ` Linus Walleij
2026-06-30 21:39   ` Linus Walleij
2026-07-01  0:00 ` patchwork-bot+netdevbpf
2026-07-01  0:00   ` patchwork-bot+netdevbpf
2026-07-01  0:00   ` patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260630132838.113F91F00A3A@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=arnd@kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=neil.armstrong@linaro.org \
    --cc=olteanv@gmail.com \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.