Messages in this thread Patch in this message | | | From | Daniel Palmer <> | Subject | [PATCH] serial: 8250_dw: Mark acpi match table as maybe unused | Date | Thu, 30 Sep 2021 21:49:50 +0900 |
| |
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
| |