From: Krzysztof Kozlowski Date: Fri, 28 May 2021 12:42:00 +0000 (-0400) Subject: nfc: st95hf: mark ACPI and OF device ID tables as maybe unused X-Git-Tag: v5.15~843^2~430 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ab4fe09977e9f32a6992072c648865fcd36b750;p=platform%2Fkernel%2Flinux-starfive.git nfc: st95hf: mark ACPI and OF device ID tables as maybe unused The driver can match either via OF or ACPI ID tables. If one configuration is disabled, the table will be unused: drivers/nfc/st95hf/core.c:1059:34: warning: ‘st95hf_spi_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20210528124200.79655-12-krzysztof.kozlowski@canonical.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/nfc/st95hf/core.c b/drivers/nfc/st95hf/core.c index 88924be..0d99181 100644 --- a/drivers/nfc/st95hf/core.c +++ b/drivers/nfc/st95hf/core.c @@ -1056,7 +1056,7 @@ static const struct spi_device_id st95hf_id[] = { }; MODULE_DEVICE_TABLE(spi, st95hf_id); -static const struct of_device_id st95hf_spi_of_match[] = { +static const struct of_device_id st95hf_spi_of_match[] __maybe_unused = { { .compatible = "st,st95hf" }, { }, };