OSDN Git Service

PCI: vmd: Fix suspend handlers defined-but-not-used warning
authorBorislav Petkov <bp@suse.de>
Sat, 26 Nov 2016 18:29:57 +0000 (19:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Feb 2018 10:05:51 +0000 (11:05 +0100)
commit8947af550462c600d90cd672dad732a1575b9f36
treeb1411f116ce29e59d8e716b2a55d4e299837a3b0
parente72c7a3b48db4b72abb201c3d85f68a3c41c9448
PCI: vmd: Fix suspend handlers defined-but-not-used warning

commit 42db500a551f97551a901e2258f84a60baf4edfc upstream.

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 <bp@suse.de>
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/host/vmd.c