diff options
author | Olof Johansson <olof@lixom.net> | 2013-07-23 20:58:20 +0200 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2013-07-25 17:09:48 +0200 |
commit | d5c82feb5cf8026cd4af048330fdcd46e861c686 (patch) | |
tree | 3ae6fb4428172bae6bc5ae248e7f1440595651ff /drivers/pcmcia | |
parent | xhci: Avoid NULL pointer deref when host dies. (diff) | |
download | linux-d5c82feb5cf8026cd4af048330fdcd46e861c686.tar.xz linux-d5c82feb5cf8026cd4af048330fdcd46e861c686.zip |
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>
Diffstat (limited to 'drivers/pcmcia')
0 files changed, 0 insertions, 0 deletions