mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
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>
This commit is contained in:
committed by
Alexandre Belloni
parent
2014c95afe
commit
f36d6362c6
@@ -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",},
|
||||
{ }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user