From: Borislav Petkov Date: Sat, 26 Nov 2016 18:29:57 +0000 (+0100) Subject: PCI: vmd: Fix suspend handlers defined-but-not-used warning X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=42db500a551f97551a901e2258f84a60baf4edfc;p=linux-beck.git PCI: vmd: Fix suspend handlers defined-but-not-used warning Fix the following warnings: drivers/pci/host/vmd.c:731:12: warning: ‘vmd_suspend’ defined but not used [-Wunused-function] static int vmd_suspend(struct device *dev) ^ drivers/pci/host/vmd.c:739:12: warning: ‘vmd_resume’ defined but not used [-Wunused-function] static int vmd_resume(struct device *dev) ^ Signed-off-by: Borislav Petkov Signed-off-by: Bjorn Helgaas Reviewed-by: Keith Busch --- diff --git a/drivers/pci/host/vmd.c b/drivers/pci/host/vmd.c index 6c5b7fd9f0c5..18ef1a93c10a 100644 --- a/drivers/pci/host/vmd.c +++ b/drivers/pci/host/vmd.c @@ -741,7 +741,7 @@ static void vmd_remove(struct pci_dev *dev) irq_domain_remove(vmd->irq_domain); } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int vmd_suspend(struct device *dev) { struct pci_dev *pdev = to_pci_dev(dev);