alistair23-linux/drivers/usb/dwc3
Arnd Bergmann 9925e6ebe5 usb: dwc3: qcom: mark PM functions as __maybe_unused
The #ifdef guards around these are wrong, resulting in warnings
in certain configurations:

drivers/usb/dwc3/dwc3-qcom.c:244:12: error: 'dwc3_qcom_resume' defined but not used [-Werror=unused-function]
 static int dwc3_qcom_resume(struct dwc3_qcom *qcom)
            ^~~~~~~~~~~~~~~~
drivers/usb/dwc3/dwc3-qcom.c:223:12: error: 'dwc3_qcom_suspend' defined but not used [-Werror=unused-function]
 static int dwc3_qcom_suspend(struct dwc3_qcom *qcom)

This replaces the guards with __maybe_unused annotations to shut up
the warnings and give better compile time coverage.

Fixes: a4333c3a6b ("usb: dwc3: Add Qualcomm DWC3 glue driver")
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2018-06-19 12:48:12 +03:00
..
core.c usb: dwc3: Only call clk_bulk_get() on devicetree instantiated devices 2018-06-18 12:41:01 +03:00
core.h usb: dwc3: gadget: remove duplicated missed isoc handling 2018-05-21 10:00:53 +03:00
debug.h usb: dwc3: debug: decode uFrame from event too 2018-05-21 10:00:59 +03:00
debugfs.c USB: dwc3: no need to check return value of debugfs_create functions 2018-05-31 12:54:22 +02:00
drd.c usb: dwc3: dwc3_get_extcon() can be static 2018-05-21 10:01:01 +03:00
dwc3-exynos.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
dwc3-keystone.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
dwc3-of-simple.c usb: dwc3: of-simple: fix use-after-free on remove 2018-06-18 12:41:00 +03:00
dwc3-omap.c usb: dwc3: omap: don't miss events during suspend/resume 2018-02-12 10:53:18 +02:00
dwc3-pci.c usb: dwc3: pci: add support for Intel IceLake 2018-06-18 12:40:56 +03:00
dwc3-qcom.c usb: dwc3: qcom: mark PM functions as __maybe_unused 2018-06-19 12:48:12 +03:00
dwc3-st.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
ep0.c usb: dwc3: gadget: initialize transfer index from send_gadget_ep_cmd() 2018-05-21 10:01:01 +03:00
gadget.c usb: dwc3: gadget: Fix list_del corruption in dwc3_ep_dequeue 2018-05-21 10:36:14 +03:00
gadget.h usb: dwc3: gadget: assign resource_index inside get_transfer_index() 2018-05-21 10:01:00 +03:00
host.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
io.h USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
Kconfig usb: dwc3: Add Qualcomm DWC3 glue driver 2018-05-15 10:20:13 +03:00
Makefile usb: dwc3: Add Qualcomm DWC3 glue driver 2018-05-15 10:20:13 +03:00
trace.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00
trace.h usb: dwc3: gadget: remove duplicated missed isoc handling 2018-05-21 10:00:53 +03:00
ulpi.c USB: dwc3: Remove redundant license text 2017-11-07 15:45:01 +01:00