mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
platform/x86: sony: mark SPI related data as maybe unused
The driver can be compile tested as built-in making certain data unused: drivers/platform/x86/sony-laptop.c:3290:36: error: ‘sony_device_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230312132624.352703-3-krzysztof.kozlowski@linaro.org Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
e970607955
commit
06984c83e9
@ -3287,7 +3287,7 @@ static void sony_nc_remove(struct acpi_device *device)
|
||||
dprintk(SONY_NC_DRIVER_NAME " removed.\n");
|
||||
}
|
||||
|
||||
static const struct acpi_device_id sony_device_ids[] = {
|
||||
static const struct acpi_device_id sony_device_ids[] __maybe_unused = {
|
||||
{SONY_NC_HID, 0},
|
||||
{SONY_PIC_HID, 0},
|
||||
{"", 0},
|
||||
|
Loading…
Reference in New Issue
Block a user