usb: xhci: Mark two functions __maybe_unused
authorOlof Johansson <olof@lixom.net>
Tue, 23 Jul 2013 18:58:20 +0000 (11:58 -0700)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Thu, 25 Jul 2013 15:09:48 +0000 (08:09 -0700)
commitd5c82feb5cf8026cd4af048330fdcd46e861c686
tree3ae6fb4428172bae6bc5ae248e7f1440595651ff
parent203a86613fb3bf2767335659513fa98563a3eb71
usb: xhci: Mark two functions __maybe_unused

Resolves the following build warnings:
drivers/usb/host/xhci.c:332:13: warning: 'xhci_msix_sync_irqs' defined but not used [-Wunused-function]
drivers/usb/host/xhci.c:3901:12: warning: 'xhci_change_max_exit_latency' defined but not used [-Wunused-function]

These functions are not always used, and since they're marked static
they will produce build warnings:
- xhci_msix_sync_irqs is only used with CONFIG_PCI.
- xhci_change_max_exit_latency is a little more complicated with
  dependencies on CONFIG_PM and CONFIG_PM_RUNTIME.

Instead of building a bigger maze of ifdefs in this code, I've just
marked both with __maybe_unused.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci.c