From: sashiko-bot@kernel.org
To: "Uwe Kleine-König (The Capable Hub)" <u.kleine-koenig@baylibre.com>
Cc: Frank.Li@kernel.org, imx@lists.linux.dev
Subject: Re: [PATCH v1 07/20] gpio: Add missing OF module annotations
Date: Tue, 14 Jul 2026 07:34:25 +0000 [thread overview]
Message-ID: <20260714073425.CA6181F000E9@smtp.kernel.org> (raw)
In-Reply-To: <72f0871dda4d65bb2b6ff8827da6a3b2dfdffab6.1784013063.git.u.kleine-koenig@baylibre.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] Missing MODULE_DEVICE_TABLE export for the mpc52xx_simple_gpiochip_match table.
--
--- Patch [7]: [PATCH v1 07/20] gpio: Add missing OF module annotations ---
commit 292bbbdcede3ce86fe1309d514a852f272c27bac
Author: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
gpio: Add missing OF module annotations
A driver module matching devices using an of device id table is supposed
to declare that in the module's metadata. Add this information for
several drivers that failed to declare these.
[ ... ]
> diff --git a/drivers/gpio/gpio-mpc5200.c b/drivers/gpio/gpio-mpc5200.c
> index 00f209157fd0f..2c828bc922ae3 100644
> --- a/drivers/gpio/gpio-mpc5200.c
> +++ b/drivers/gpio/gpio-mpc5200.c
> @@ -180,6 +180,7 @@ static const struct of_device_id mpc52xx_wkup_gpiochip_match[] = {
> { .compatible = "fsl,mpc5200-gpio-wkup", },
> {}
> };
> +MODULE_DEVICE_TABLE(of, mpc52xx_wkup_gpiochip_match);
>
> static struct platform_driver mpc52xx_wkup_gpiochip_driver = {
> .driver = {
[Severity: High]
This isn't a bug introduced by this patch, but since the patch focuses on
adding missing OF module annotations, should it also add one for the second
match table in this same file?
Further down in drivers/gpio/gpio-mpc5200.c, mpc52xx_simple_gpiochip_match
is also missing an export:
static const struct of_device_id mpc52xx_simple_gpiochip_match[] = {
{ .compatible = "fsl,mpc5200-gpio", },
{}
};
static struct platform_driver mpc52xx_simple_gpiochip_driver = {
.driver = {
.name = "mpc5200-gpio",
.of_match_table = mpc52xx_simple_gpiochip_match,
...
Without exporting this second match table, the module lacks the modalias for
"fsl,mpc5200-gpio". Could this prevent it from automatically loading if the
system's device tree only contains the simple GPIO node (such as when the
wakeup node is absent or disabled)?
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1784013063.git.u.kleine-koenig@baylibre.com?part=7
next prev parent reply other threads:[~2026-07-14 7:34 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 7:24 [PATCH v1 00/20] gpio: Improvements around device-id arrays Uwe Kleine-König (The Capable Hub)
2026-07-14 7:24 ` Uwe Kleine-König (The Capable Hub)
2026-07-14 7:24 ` [PATCH v1 01/20] gpio: Drop unused assignment of acpi_device_id driver data Uwe Kleine-König (The Capable Hub)
2026-07-14 7:24 ` [PATCH v1 02/20] gpio: max7301: Drop unused assignment of spi_device_id " Uwe Kleine-König (The Capable Hub)
2026-07-14 7:24 ` [PATCH v1 03/20] gpio: mmio: Drop unused assignment of platform_device_id " Uwe Kleine-König (The Capable Hub)
2026-07-14 7:24 ` [PATCH v1 04/20] gpio: ljca: Drop unused assignment of auxiliary_device_id " Uwe Kleine-König (The Capable Hub)
2026-07-14 8:12 ` Sakari Ailus
2026-07-14 7:24 ` [PATCH v1 05/20] gpio: Add missing ACPI module annotations Uwe Kleine-König (The Capable Hub)
2026-07-14 7:24 ` [PATCH v1 06/20] gpio: sodaville: Add missing pci " Uwe Kleine-König (The Capable Hub)
2026-07-14 8:22 ` Andy Shevchenko
2026-07-14 7:24 ` [PATCH v1 07/20] gpio: Add missing OF " Uwe Kleine-König (The Capable Hub)
2026-07-14 7:24 ` Uwe Kleine-König (The Capable Hub)
2026-07-14 7:34 ` sashiko-bot [this message]
2026-07-14 8:09 ` Uwe Kleine-König (The Capable Hub)
2026-07-14 13:55 ` Daniel Palmer
2026-07-14 13:55 ` Daniel Palmer
2026-07-14 7:24 ` [PATCH v1 08/20] gpio: pxa: Add missing platform " Uwe Kleine-König (The Capable Hub)
2026-07-14 7:24 ` [PATCH v1 09/20] gpio: Add missing dmi " Uwe Kleine-König (The Capable Hub)
2026-07-14 8:23 ` Andy Shevchenko
2026-07-14 8:36 ` Andy Shevchenko
2026-07-14 7:24 ` [PATCH v1 10/20] gpio: pl061: Use empty initializer for amba_id terminator Uwe Kleine-König (The Capable Hub)
2026-07-14 7:24 ` [PATCH v1 11/20] gpio: Use named initializers for acpi_device_id array Uwe Kleine-König (The Capable Hub)
2026-07-14 8:28 ` Andy Shevchenko
2026-07-14 7:24 ` [PATCH v1 12/20] gpio: Use named initializers for spi_device_id array Uwe Kleine-König (The Capable Hub)
2026-07-14 7:24 ` [PATCH v1 13/20] gpio: virtio: Use a named initializer for virtio_device_id array Uwe Kleine-König (The Capable Hub)
2026-07-14 8:10 ` Viresh Kumar
2026-07-14 7:24 ` [PATCH v1 14/20] gpio: pcf857x: Use named initializers for of_device_id array Uwe Kleine-König (The Capable Hub)
2026-07-14 7:24 ` [PATCH v1 15/20] gpio: Unify style of acpi_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-07-14 8:26 ` Andy Shevchenko
2026-07-14 7:24 ` [PATCH v1 16/20] gpio: Unify style of of_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-07-14 7:24 ` Uwe Kleine-König (The Capable Hub)
2026-07-14 7:24 ` [PATCH v1 17/20] gpio: max77620: Unify style of platform_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-07-14 7:24 ` [PATCH v1 18/20] gpio: Unify style of spi_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-07-14 7:24 ` [PATCH v1 19/20] gpio: Unify style of pci_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-07-14 8:25 ` Andy Shevchenko
2026-07-14 7:24 ` [PATCH v1 20/20] gpio: Unify style of various *_device_id arrays Uwe Kleine-König (The Capable Hub)
2026-07-14 8:10 ` Viresh Kumar
2026-07-14 8:12 ` Sakari Ailus
2026-07-14 8:37 ` Andy Shevchenko
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=20260714073425.CA6181F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Frank.Li@kernel.org \
--cc=imx@lists.linux.dev \
--cc=sashiko-reviews@lists.linux.dev \
--cc=u.kleine-koenig@baylibre.com \
/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.