Skip to content

Commit 06984c8

Browse files
krzkjwrdegoede
authored andcommitted
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]>
1 parent e970607 commit 06984c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/x86/sony-laptop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3287,7 +3287,7 @@ static void sony_nc_remove(struct acpi_device *device)
32873287
dprintk(SONY_NC_DRIVER_NAME " removed.\n");
32883288
}
32893289

3290-
static const struct acpi_device_id sony_device_ids[] = {
3290+
static const struct acpi_device_id sony_device_ids[] __maybe_unused = {
32913291
{SONY_NC_HID, 0},
32923292
{SONY_PIC_HID, 0},
32933293
{"", 0},

0 commit comments

Comments
 (0)