From patchwork Sat Nov 26 18:29:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 9448497 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EB4DD60235 for ; Sat, 26 Nov 2016 18:30:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CEDDB26C2F for ; Sat, 26 Nov 2016 18:30:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE97A26E39; Sat, 26 Nov 2016 18:30:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F5F026C2F for ; Sat, 26 Nov 2016 18:30:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753205AbcKZSaC (ORCPT ); Sat, 26 Nov 2016 13:30:02 -0500 Received: from mail.skyhub.de ([78.46.96.112]:57790 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753204AbcKZSaB (ORCPT ); Sat, 26 Nov 2016 13:30:01 -0500 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (door.skyhub.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id UQ+z3KS-bGIu; Sat, 26 Nov 2016 19:29:59 +0100 (CET) Received: from pd.tnic (p2003008C2F66A70081EBDDBD1F96A747.dip0.t-ipconnect.de [IPv6:2003:8c:2f66:a700:81eb:ddbd:1f96:a747]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 805E91DA258; Sat, 26 Nov 2016 19:29:59 +0100 (CET) Received: by pd.tnic (Postfix, from userid 1000) id E14FB1608C6; Sat, 26 Nov 2016 19:29:57 +0100 (CET) From: Borislav Petkov To: LKML Cc: Keith Busch , Bjorn Helgaas , linux-pci@vger.kernel.org Subject: [PATCH] drivers/pci/host/vmd: Fix suspend handlers unused warning Date: Sat, 26 Nov 2016 19:29:57 +0100 Message-Id: <20161126182957.6144-1-bp@alien8.de> X-Mailer: git-send-email 2.10.0 MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Borislav Petkov Fix: 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 Cc: Keith Busch Cc: Bjorn Helgaas Cc: linux-pci@vger.kernel.org Reviewed-by: Keith Busch --- drivers/pci/host/vmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/vmd.c b/drivers/pci/host/vmd.c index 37e29b580be3..0e7f8f319fe3 100644 --- a/drivers/pci/host/vmd.c +++ b/drivers/pci/host/vmd.c @@ -727,7 +727,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);