]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rtc: fsl-ftm-alarm: Mark acpi_id table as maybe unused
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 22 Feb 2025 11:41:45 +0000 (12:41 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 28 Feb 2025 16:56:22 +0000 (17:56 +0100)
For !ACPI builds, the acpi_device_id table will not be referenced
because of ACPI_PTR:

  rtc-fsl-ftm-alarm.c:312:36: error: unused variable 'ftm_imx_acpi_ids' [-Werror,-Wunused-const-variable]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250222114146.162835-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-fsl-ftm-alarm.c

index a72c4ad0cec6e5f0c37c9e9ffcaa0c466a44ad30..c8015f04c71fc75b994ef6181e08d546a0b0a292 100644 (file)
@@ -309,7 +309,7 @@ static const struct of_device_id ftm_rtc_match[] = {
 };
 MODULE_DEVICE_TABLE(of, ftm_rtc_match);
 
-static const struct acpi_device_id ftm_imx_acpi_ids[] = {
+static const struct acpi_device_id ftm_imx_acpi_ids[] __maybe_unused = {
        {"NXP0014",},
        { }
 };