From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jirislaby@kernel.org>
Cc: Hugo Villeneuve <hvilleneuve@dimonoff.com>,
Paul Mbewe <paultyson.mbewe@ziehl-abegg.de>,
Joachim Knorr <joachim.knorr@ziehl-abegg.de>,
Martin Fuzzey <martin.fuzzey@flowbird.group>,
Luca Fresi <luca.fresi@bithiatec.com>,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org
Subject: [PATCH v1 2/2] serial: sc16is7xx: Drop unneeded __maybe_unused
Date: Wed, 25 Nov 2026 11:08:39 +0100 [thread overview]
Message-ID: <e9ebc84efca3b347bde38e6134669259edddfbbe.1795601260.git.u.kleine-koenig@baylibre.com> (raw)
In-Reply-To: <cover.1795601260.git.u.kleine-koenig@baylibre.com>
With `MODULE_DEVICE_TABLE(of, sc16is7xx_dt_ids);` the array is used
unconditionally since commit commit 5ab23c7923a1 ("modpost: Create
modalias for builtin modules"). So the __maybe_unused marker has no
relevant effect here and can be dropped.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
---
drivers/tty/serial/sc16is7xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c
index dbf38825a78c..afedb89018af 100644
--- a/drivers/tty/serial/sc16is7xx.c
+++ b/drivers/tty/serial/sc16is7xx.c
@@ -1745,7 +1745,7 @@ void sc16is7xx_remove(struct device *dev)
}
EXPORT_SYMBOL_GPL(sc16is7xx_remove);
-const struct of_device_id __maybe_unused sc16is7xx_dt_ids[] = {
+const struct of_device_id sc16is7xx_dt_ids[] = {
{ .compatible = "nxp,sc16is740", .data = &sc16is74x_devtype, },
{ .compatible = "nxp,sc16is741", .data = &sc16is74x_devtype, },
{ .compatible = "nxp,sc16is750", .data = &sc16is750_devtype, },
--
2.47.3
prev parent reply other threads:[~2026-11-25 10:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 10:08 [PATCH v1 0/2] serial: sc16is7xx: Two simplifications Uwe Kleine-König
2026-11-25 10:08 ` [PATCH v1 1/2] serial: sc16is7xx: Drop usage of <linux/mod_devicetable.h> Uwe Kleine-König
2026-11-25 10:08 ` Uwe Kleine-König [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=e9ebc84efca3b347bde38e6134669259edddfbbe.1795601260.git.u.kleine-koenig@baylibre.com \
--to=u.kleine-koenig@baylibre.com \
--cc=gregkh@linuxfoundation.org \
--cc=hvilleneuve@dimonoff.com \
--cc=jirislaby@kernel.org \
--cc=joachim.knorr@ziehl-abegg.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=luca.fresi@bithiatec.com \
--cc=martin.fuzzey@flowbird.group \
--cc=paultyson.mbewe@ziehl-abegg.de \
/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
all inboxes | Powered by JetHome®