From: Krzysztof Kozlowski Date: Tue, 8 Mar 2022 07:41:57 +0000 (+0100) Subject: serial: 8250_tegra: mark acpi_device_id as unused with !ACPI X-Git-Tag: v5.18-rc1~80^2~13 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=dffa58b64cca6ca266bc0310d8e6b27abd1f8048;p=linux-block.git serial: 8250_tegra: mark acpi_device_id as unused with !ACPI The driver's acpi_device_id table is referenced via ACPI_PTR() so it will be unused for !CONFIG_ACPI builds: drivers/tty/serial/8250/8250_tegra.c:178:36: warning: ‘tegra_uart_acpi_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20220308074157.113568-1-krzysztof.kozlowski@canonical.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/8250/8250_tegra.c b/drivers/tty/serial/8250/8250_tegra.c index e13ae18b0713..e7cddeec9d8e 100644 --- a/drivers/tty/serial/8250/8250_tegra.c +++ b/drivers/tty/serial/8250/8250_tegra.c @@ -175,7 +175,7 @@ static const struct of_device_id tegra_uart_of_match[] = { }; MODULE_DEVICE_TABLE(of, tegra_uart_of_match); -static const struct acpi_device_id tegra_uart_acpi_match[] = { +static const struct acpi_device_id tegra_uart_acpi_match[] __maybe_unused = { { "NVDA0100", 0 }, { }, };