Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rtc: fsl-ftm-alarm: Mark acpi_id table as maybe unused

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>

authored by

Krzysztof Kozlowski and committed by
Alexandre Belloni
f36d6362 2014c95a

+1 -1
+1 -1
drivers/rtc/rtc-fsl-ftm-alarm.c
··· 309 309 }; 310 310 MODULE_DEVICE_TABLE(of, ftm_rtc_match); 311 311 312 - static const struct acpi_device_id ftm_imx_acpi_ids[] = { 312 + static const struct acpi_device_id ftm_imx_acpi_ids[] __maybe_unused = { 313 313 {"NXP0014",}, 314 314 { } 315 315 };