diff options
| author | Lee Jones <[email protected]> | 2020-07-06 14:33:41 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-07-09 17:19:59 +0200 |
| commit | f535ad6c73c3306ec10311e4953c6df84d3b46ed (patch) | |
| tree | 59fea8c90d1a70fed82cd30d5d504ca16219e61c /include/linux/debugobjects.h | |
| parent | a6a6d06f33af1414f0ce506b00d89d44d701fc36 (diff) | |
usb: host: xhci-plat: Do not define 'struct acpi_device_id' when !CONFIG_ACPI
Since ACPI_PTR() is used to NULLify the value when !CONFIG_ACPI,
struct usb_xhci_acpi_match becomes defined by unused.
Fixes the following W=1 kernel build warning(s):
drivers/usb/host/xhci-plat.c:457:36: warning: ‘usb_xhci_acpi_match’ defined but not used [-Wunused-const-variable=]
457 | static const struct acpi_device_id usb_xhci_acpi_match[] = {
| ^~~~~~~~~~~~~~~~~~~
Cc: Mathias Nyman <[email protected]>
Cc: Andrzej Siewior <[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