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

media: i2c: imx355: silence unused acpi_device_id warning

If driver is built without ACPI, the struct acpi_device_id won't be
used:

drivers/media/i2c/imx355.c:1836:36: warning:
'imx355_acpi_ids' defined but not used [-Wunused-const-variable=]

[Sakari Ailus: Added a space before __maybe_unused]

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mauro Carvalho Chehab
bbaecc36 be0b9b63

+1 -1
+1 -1
drivers/media/i2c/imx355.c
··· 1833 1833 SET_SYSTEM_SLEEP_PM_OPS(imx355_suspend, imx355_resume) 1834 1834 }; 1835 1835 1836 - static const struct acpi_device_id imx355_acpi_ids[] = { 1836 + static const struct acpi_device_id imx355_acpi_ids[] __maybe_unused = { 1837 1837 { "SONY355A" }, 1838 1838 { /* sentinel */ } 1839 1839 };