platform/x86: sony: mark SPI related data as maybe unused
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 12 Mar 2023 13:26:24 +0000 (14:26 +0100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 16 Mar 2023 15:11:03 +0000 (16:11 +0100)
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>
drivers/platform/x86/sony-laptop.c

index 537d6a2d0781b741ce1839c501fbd5b1af1da1dc..9569f11dec8c563c5b8f14d86ec44c9e1183edd3 100644 (file)
@@ -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},