UPSTREAM: PCI: rockchip: Mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Sun, 5 Feb 2017 02:19:54 +0000 (10:19 +0800)
committerShawn Lin <shawn.lin@rock-chips.com>
Sun, 5 Feb 2017 02:21:51 +0000 (10:21 +0800)
commit6c6074b2826d4cd37fb0816be4f54f72ae582f91
treed9b6422582f81a3095a644677ac3cffcdd65dfd7
parenta414768a12fe95fe4f337e0f0c3414d64989e512
UPSTREAM: 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.

Change-Id: Ic5f9f9d576049b77fd091488c785d09c46cb9b78
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>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry picked from git.kernel.org/cgit/linux/kernel/git/helgaas/pci.git
commit 0b351c986a5ffedb502632c1b27690c9730d79c4)
drivers/pci/host/pcie-rockchip.c