PCI: rockchip: Mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Fri, 20 Jan 2017 16:24:30 +0000 (17:24 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 30 Jan 2017 20:52:15 +0000 (14:52 -0600)
commit0b351c986a5ffedb502632c1b27690c9730d79c4
tree7a5bc62cbe083cea3771cb9bd8ebb07148768088
parent7faebda21d573a6889bab1e0100ed4092a5a4716
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 <arnd@arndb.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Shawn Lin <shawn.lin@rock-chips.com>
drivers/pci/host/pcie-rockchip.c