Linux GPIO subsystem development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Arnd Bergmann" <arnd@kernel.org>
Cc: linux-gpio@vger.kernel.org
Subject: Re: [PATCH 2/2] [v8] gpiolib: remove linux/gpio.h
Date: Mon, 23 Nov 2026 09:05:56 +0000	[thread overview]
Message-ID: <sashiko-outbox-228932@kernel.org> (raw)
In-Reply-To: <20261123085723.156933-3-arnd@kernel.org>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] gpiolib: build failure in rsk7203_devices_setup() after
  removing linux/gpio.h
--

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

gpiolib: remove linux/gpio.h

This commit removes the remaining includes of <linux/gpio.h> in gpiolib,
rbtx4927, and mm81x, and deletes include/linux/gpio.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 @@
> -/* SPDX-License-Identifier: GPL-2.0 */
> -/*
> - * NOTE: This header *must not* be included.
> - *
> - * If you're implementing a GPIO driver, only include <linux/gpio/driver.h>
> - * If you're implementing a GPIO consumer, only include <linux/gpio/consumer.h>
> - * If you're using the legacy interfaces, include <linux/gpio/legacy.h>
> - */
> -
> -#ifndef __LINUX_GPIO_H
> -#define __LINUX_GPIO_H
> -
> -#include <linux/types.h>
> -#ifdef CONFIG_GPIOLIB
> -#include <linux/gpio/consumer.h>
> -#endif
> -
> -#ifdef CONFIG_GPIOLIB_LEGACY
> -#include <linux/gpio/legacy.h>
> -#endif /* CONFIG_GPIOLIB_LEGACY */
> -
> -#endif /* __LINUX_GPIO_H */

[Severity: High]
Does removing include/linux/gpio.h break the build for
arch/sh/boards/mach-rsk/devices-rsk7203.c (CONFIG_SH_RSK7203)?

That file still includes <linux/gpio.h>, which now resolves to
include/uapi/linux/gpio.h without pulling in <linux/gpio/legacy.h>, leaving
gpio_request() undeclared in rsk7203_devices_setup():

arch/sh/boards/mach-rsk/devices-rsk7203.c:rsk7203_devices_setup() {
    ...
	/* Select pins for SCIF0 */
	gpio_request(GPIO_FN_TXD0, NULL);
	gpio_request(GPIO_FN_RXD0, NULL);
    ...
}

Should arch/sh/boards/mach-rsk/devices-rsk7203.c be updated to include
<linux/gpio/legacy.h>?

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

      reply	other threads:[~2026-11-23  9:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  8:57 [PATCH 0/2 v8] gpiolib: finish the legacy cleanup Arnd Bergmann
2026-11-23  8:57 ` [PATCH 1/2] [v8] gpiolib: turn off legacy interface by default Arnd Bergmann
2026-11-23  8:57 ` [PATCH 2/2] [v8] gpiolib: remove linux/gpio.h Arnd Bergmann
2026-11-23  9:05   ` sashiko-bot [this message]

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=sashiko-outbox-228932@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=arnd@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox