diff options
| author | Krzysztof Kozlowski <[email protected]> | 2023-03-12 14:26:24 +0100 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2023-03-16 16:11:03 +0100 |
| commit | 06984c83e9afbb718f501b17b1f0a7a4ae6d0bb5 (patch) | |
| tree | d305eed1546d513525dde7cade40760afc9ac56d | |
| parent | e970607955eba62bb361e9dea493cd103e5ebd6b (diff) | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
| -rw-r--r-- | drivers/platform/x86/sony-laptop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index 537d6a2d0781..9569f11dec8c 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c @@ -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}, |