From: Arnd Bergmann <arnd@kernel.org>
To: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Arnd Bergmann <arnd@arndb.de>,
linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] rtc: fsl-ftm: remove incorrect ACPI_PTR annotation
Date: Tue, 25 Feb 2025 17:34:19 +0100 [thread overview]
Message-ID: <20250225163427.4168570-1-arnd@kernel.org> (raw)
From: Arnd Bergmann <arnd@arndb.de>
Building with W=1 shows a warning about ftm_imx_acpi_ids being unused when
CONFIG_ACPI is disabled:
drivers/rtc/rtc-fsl-ftm-alarm.c:312:36: error: unused variable 'ftm_imx_acpi_ids' [-Werror,-Wunused-const-variable]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/rtc/rtc-fsl-ftm-alarm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-fsl-ftm-alarm.c b/drivers/rtc/rtc-fsl-ftm-alarm.c
index a72c4ad0cec6..12da7d36e520 100644
--- a/drivers/rtc/rtc-fsl-ftm-alarm.c
+++ b/drivers/rtc/rtc-fsl-ftm-alarm.c
@@ -320,7 +320,7 @@ static struct platform_driver ftm_rtc_driver = {
.driver = {
.name = "ftm-alarm",
.of_match_table = ftm_rtc_match,
- .acpi_match_table = ACPI_PTR(ftm_imx_acpi_ids),
+ .acpi_match_table = ftm_imx_acpi_ids,
},
};
--
2.39.5
next reply other threads:[~2025-02-25 16:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-25 16:34 Arnd Bergmann [this message]
2025-02-25 17:12 ` [PATCH] rtc: fsl-ftm: remove incorrect ACPI_PTR annotation Krzysztof Kozlowski
2025-02-25 17:16 ` Alexandre Belloni
2025-02-25 17:26 ` Krzysztof Kozlowski
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=20250225163427.4168570-1-arnd@kernel.org \
--to=arnd@kernel.org \
--cc=alexandre.belloni@bootlin.com \
--cc=arnd@arndb.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox