Skip to content

Commit e970607

Browse files
krzkjwrdegoede
authored andcommitted
platform/x86: classmate: mark SPI related data as maybe unused
The driver can be compile tested as built-in making certain data unused: drivers/platform/x86/classmate-laptop.c:1137:36: error: ‘cmpc_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 daaa2a1 commit e970607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/x86/classmate-laptop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ static void cmpc_exit(void)
11341134
module_init(cmpc_init);
11351135
module_exit(cmpc_exit);
11361136

1137-
static const struct acpi_device_id cmpc_device_ids[] = {
1137+
static const struct acpi_device_id cmpc_device_ids[] __maybe_unused = {
11381138
{CMPC_ACCEL_HID, 0},
11391139
{CMPC_ACCEL_HID_V4, 0},
11401140
{CMPC_TABLET_HID, 0},

0 commit comments

Comments
 (0)