[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240403080702.3509288-4-arnd@kernel.org>
Date: Wed, 3 Apr 2024 10:06:21 +0200
From: Arnd Bergmann <arnd@...nel.org>
To: linux-kernel@...r.kernel.org,
Alan Cox <alan@...ux.intel.com>,
Jason Hu <jia-cheng.hu@...el.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jin Qian <jinqian@...roid.com>
Cc: Arnd Bergmann <arnd@...db.de>,
Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
Subject: [PATCH 03/34] platform: goldfish: remove ACPI_PTR() annotations
From: Arnd Bergmann <arnd@...db.de>
On platforms without ACPI support, this causes a W=1 warning from gcc when
the driver is built-in:
drivers/platform/goldfish/goldfish_pipe.c:925:36: warning: 'goldfish_pipe_acpi_match' defined but not used [-Wunused-const-variable=]
925 | static const struct acpi_device_id goldfish_pipe_acpi_match[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
There is no real harm in just keeping the small table around, so rather
than adding more #ifdef checks, just reference it unconditionally to avoid
the warning.
Fixes: d62f324b0ac8 ("goldfish: Enable ACPI-based enumeration for android pipe")
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
drivers/platform/goldfish/goldfish_pipe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform/goldfish/goldfish_pipe.c
index 061aa9647c19..6a0a42887857 100644
--- a/drivers/platform/goldfish/goldfish_pipe.c
+++ b/drivers/platform/goldfish/goldfish_pipe.c
@@ -940,7 +940,7 @@ static struct platform_driver goldfish_pipe_driver = {
.driver = {
.name = "goldfish_pipe",
.of_match_table = goldfish_pipe_of_match,
- .acpi_match_table = ACPI_PTR(goldfish_pipe_acpi_match),
+ .acpi_match_table = goldfish_pipe_acpi_match,
}
};
--
2.39.2
Powered by blists - more mailing lists