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.

misc: eeprom: at24: Tell the compiler that ACPI functions may not be used

... as is the case when !CONFIG_ACPI.

Fixes the following W=1 kernel build warning:

drivers/misc/eeprom/at24.c:228:36: warning: ‘at24_acpi_ids’ defined but not used [-Wunused-const-variable=]

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Link: https://lore.kernel.org/r/20200701093616.GX1179328@dell
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Lee Jones and committed by
Greg Kroah-Hartman
8965930c 7ca78630

+1 -1
+1 -1
drivers/misc/eeprom/at24.c
··· 225 225 }; 226 226 MODULE_DEVICE_TABLE(of, at24_of_match); 227 227 228 - static const struct acpi_device_id at24_acpi_ids[] = { 228 + static const struct acpi_device_id __maybe_unused at24_acpi_ids[] = { 229 229 { "INT3499", (kernel_ulong_t)&at24_data_INT3499 }, 230 230 { "TPF0001", (kernel_ulong_t)&at24_data_24c1024 }, 231 231 { /* END OF LIST */ }