diff options
author | Arnd Bergmann <[email protected]> | 2017-01-20 17:24:30 +0100 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2017-01-30 14:52:15 -0600 |
commit | 0b351c986a5ffedb502632c1b27690c9730d79c4 (patch) | |
tree | 7a5bc62cbe083cea3771cb9bd8ebb07148768088 /lib/netdev-notifier-error-inject.c | |
parent | 7faebda21d573a6889bab1e0100ed4092a5a4716 (diff) |
PCI: rockchip: Mark PM functions as __maybe_unused
When CONFIG_PM_SLEEP is disabled, we get harmless build warnings:
host/pcie-rockchip.c:1267:12: error: 'rockchip_pcie_resume_noirq' defined but not used [-Werror=unused-function]
host/pcie-rockchip.c:1240:12: error: 'rockchip_pcie_suspend_noirq' defined but not used [-Werror=unused-function]
Marking both functions as __maybe_unused avoids the warning without the
need for #ifdef around them.
Fixes: 013dd3d5e183 ("PCI: rockchip: Add system PM support")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Shawn Lin <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions