diff options
| author | Lee Jones <[email protected]> | 2020-07-06 14:33:37 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-07-09 17:19:59 +0200 |
| commit | 6dba06ceee70e83f6baa817867560b2272de0f0b (patch) | |
| tree | f62e266783565a6ee9265d833a0e5b87314a5370 /include/linux/debugobjects.h | |
| parent | 02ec8a098fb3fa2e1d8c1c8ed32c27e70356dafb (diff) | |
usb: host: ehci-platform: Do not define 'struct acpi_device_id' when !CONFIG_ACPI
Since ACPI_PTR() is used to NULLify the value when !CONFIG_ACPI,
struct ehci_acpi_match becomes defined by unused.
Fixes the following W=1 kernel build warning(s):
drivers/usb/host/ehci-platform.c:478:36: warning: ‘ehci_acpi_match’ defined but not used [-Wunused-const-variable=]
478 | static const struct acpi_device_id ehci_acpi_match[] = {
| ^~~~~~~~~~~~~~~
Cc: Tony Prisk <[email protected]>
Cc: Alan Stern <[email protected]>
Cc: Philipp Zabel <[email protected]>
Cc: Steven Brown <[email protected]>
Cc: Hauke Mehrtens <[email protected]>
Cc: de Goede <[email protected]>
Cc: Michael Buesch <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions