LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Daniel Palmer <daniel@0x0f.com>
To: andriy.shevchenko@linux.intel.com, gregkh@linuxfoundation.org,
linux-serial@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Daniel Palmer <daniel@0x0f.com>
Subject: [PATCH] serial: 8250_dw: Mark acpi match table as maybe unused
Date: Thu, 30 Sep 2021 21:49:50 +0900 [thread overview]
Message-ID: <20210930124950.3069638-1-daniel@0x0f.com> (raw)
When building kernels without ACPI support the table is declared
but is not used because ACPI_PTR() turns it into a NULL.
Add the __maybe_unused attribute to stop the compiler whining.
Signed-off-by: Daniel Palmer <daniel@0x0f.com>
---
drivers/tty/serial/8250/8250_dw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c
index a3a0154da567..599d2bfff045 100644
--- a/drivers/tty/serial/8250/8250_dw.c
+++ b/drivers/tty/serial/8250/8250_dw.c
@@ -704,7 +704,7 @@ static const struct of_device_id dw8250_of_match[] = {
};
MODULE_DEVICE_TABLE(of, dw8250_of_match);
-static const struct acpi_device_id dw8250_acpi_match[] = {
+static const struct acpi_device_id __maybe_unused dw8250_acpi_match[] = {
{ "INT33C4", 0 },
{ "INT33C5", 0 },
{ "INT3434", 0 },
--
2.33.0
next reply other threads:[~2021-09-30 12:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-30 12:49 Daniel Palmer [this message]
2021-09-30 15:23 ` Andy Shevchenko
2021-09-30 15:31 ` Daniel Palmer
2021-09-30 21:04 ` Andy Shevchenko
2021-10-01 0:16 ` Daniel Palmer
2021-10-05 12:14 ` Andy Shevchenko
2021-10-05 12:41 ` Daniel Palmer
2021-10-06 16:01 ` 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=20210930124950.3069638-1-daniel@0x0f.com \
--to=daniel@0x0f.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--subject='Re: [PATCH] serial: 8250_dw: Mark acpi match table as maybe unused' \
/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
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).