From: Lee Jones Date: Wed, 4 Nov 2020 19:35:30 +0000 (+0000) Subject: tty: serial: amba-pl011: Mark 'sbsa_uart_acpi_match' as __maybe_unused X-Git-Tag: v5.15~2219^2~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7789c1f1f0551b6430f524842bc8ecec85c7145e;p=platform%2Fkernel%2Flinux-starfive.git tty: serial: amba-pl011: Mark 'sbsa_uart_acpi_match' as __maybe_unused When !ACPI 'sbsa_uart_acpi_match' is not referenced. Fixes the following W=1 kernel build warning(s): drivers/tty/serial/amba-pl011.c:2792:36: warning: ‘sbsa_uart_acpi_match’ defined but not used [-Wunused-const-variable=] Cc: Russell King Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-serial@vger.kernel.org Signed-off-by: Lee Jones Link: https://lore.kernel.org/r/20201104193549.4026187-18-lee.jones@linaro.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index 87dc3fc..c255476 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -2789,7 +2789,7 @@ static const struct of_device_id sbsa_uart_of_match[] = { }; MODULE_DEVICE_TABLE(of, sbsa_uart_of_match); -static const struct acpi_device_id sbsa_uart_acpi_match[] = { +static const struct acpi_device_id __maybe_unused sbsa_uart_acpi_match[] = { { "ARMH0011", 0 }, {}, };