diff options
| author | Yu-Chun Lin <[email protected]> | 2025-02-17 16:50:13 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2025-02-19 09:04:58 +0000 |
| commit | 4bd0725c09f377ffaf22b834241f6c050742e4fc (patch) | |
| tree | ae134a93e73efe05b038c8d519fd71b731c1a3f8 /net/switchdev/switchdev.c | |
| parent | HID: nintendo: fix gencon button events map (diff) | |
| download | kernel-4bd0725c09f377ffaf22b834241f6c050742e4fc.tar.gz kernel-4bd0725c09f377ffaf22b834241f6c050742e4fc.zip | |
HID: google: fix unused variable warning under !CONFIG_ACPI
As reported by the kernel test robot, the following warning occurs:
>> drivers/hid/hid-google-hammer.c:261:36: warning: 'cbas_ec_acpi_ids' defined but not used [-Wunused-const-variable=]
261 | static const struct acpi_device_id cbas_ec_acpi_ids[] = {
| ^~~~~~~~~~~~~~~~
The 'cbas_ec_acpi_ids' array is only used when CONFIG_ACPI is enabled.
Wrapping its definition and 'MODULE_DEVICE_TABLE' in '#ifdef CONFIG_ACPI'
prevents a compiler warning when ACPI is disabled.
Fixes: eb1aac4c8744f75 ("HID: google: add support tablet mode switch for Whiskers")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Yu-Chun Lin <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
