diff options
| author | Lee Jones <[email protected]> | 2020-07-06 14:33:38 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-07-09 17:19:59 +0200 |
| commit | b789710de583f069609cc626651556b81e6f23dc (patch) | |
| tree | b22cf54945c62057402a3454b2eb1df7fe02ef06 /include/linux/debugobjects.h | |
| parent | 6dba06ceee70e83f6baa817867560b2272de0f0b (diff) | |
usb: dwc3: dwc3-qcom: Do not define 'struct acpi_device_id' when !CONFIG_ACPI
Since ACPI_PTR() is used to NULLify the value when !CONFIG_ACPI,
struct dwc3_qcom_acpi_match becomes defined by unused.
Also need to place the platform data obtained via the matching process
inside the #ifdef, else that becomes unused too.
Fixes the following W=1 kernel build warning(s):
drivers/usb/dwc3/dwc3-qcom.c:761:36: warning: ‘dwc3_qcom_acpi_match’ defined but not used [-Wunused-const-variable=]
761 | static const struct acpi_device_id dwc3_qcom_acpi_match[] = {
| ^~~~~~~~~~~~~~~~~~~~
Cc: Andy Gross <[email protected]>
Cc: Bjorn Andersson <[email protected]>
Cc: Felipe Balbi <[email protected]>
Cc: Philipp Zabel <[email protected]>
Cc: [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