Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2007552ybl; Thu, 19 Dec 2019 06:36:23 -0800 (PST) X-Google-Smtp-Source: APXvYqx0+y5TMPWngumInu2UXDkAC+66ywly7msiPrBbzH/mwN/hHVniLEQZflUabZCE/RdS85NU X-Received: by 2002:a05:6830:1608:: with SMTP id g8mr8734506otr.169.1576766183047; Thu, 19 Dec 2019 06:36:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576766183; cv=none; d=google.com; s=arc-20160816; b=Wx3efTgEIpMvDu9GZ+ceIjUY/RVH41v20O7uFPQipWfRNLkyha5Sy8kf+RRWrcLqES Pd5VM4FaI/KdUOh3LOUU7CnPIcY/hz1ljQ8zPSvJhIiNA3RmMB4XbVcYFxrDMuPnSQ8m gHbwPtv3mmCSbG6Z2uTUMfWLHGGFtRdX5NLietSnm21iYazwMZ6KQ4tFWMa/H7F2A/EU fdESmIoA3hfGSckZzVcRcNjHGAMMg10RtUUlf1GrOOmBFFqs26couT4zT92o1eKbrXIK U2k9vu8FSlhVvvPVI2TDgJGzyzVaJ/uL5AV1owCGvzPGTxwGypHfkJCQlrF+6U1L4uU6 up5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=o9ntcE7J/rz+sE2a7fTLc1kN3jbu0s8JGmNbuDWJPZg=; b=yunZ816aBiOO/1dwZV/kKx/RuAPB5DPR6voRAA3RaL2fU2xFZiF4eLWuopU2SVyQKV EUf8hKSsbl//cAj47ptXthDfdggAmztNX7Z8pTKRLj95Gu+2rm7H9TNYQvgKw9Sts299 10bG5iHL1Yb/kgNrWimD5hirQWhtg4GyZbZQUDLJ4mZgVhkkZwhOHzjXC70Ku0Eb88iY gESC/pv8TyM2llqzyS41QImyVkEqDh1Nf1n/oGNZUEQ1dfmia1S9iWiH2rhd8CqxAVFL 110bwy+JZdPGgKVeBcEy8xQQg7sF62jEdZ2DpH9e63pZOkk+4wFk+83zqUK95Rvj2xLv lAkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15si3286509otm.263.2019.12.19.06.36.09; Thu, 19 Dec 2019 06:36:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726928AbfLSOeb (ORCPT + 99 others); Thu, 19 Dec 2019 09:34:31 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8154 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726701AbfLSOeb (ORCPT ); Thu, 19 Dec 2019 09:34:31 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id BF39BA5643C43FECAB3D; Thu, 19 Dec 2019 22:34:18 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.439.0; Thu, 19 Dec 2019 22:34:09 +0800 From: Chen Zhou To: , CC: , , Subject: [PATCH] usb: xhci: fix unused function warning Date: Thu, 19 Dec 2019 22:30:50 +0800 Message-ID: <20191219143050.86205-1-chenzhou10@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org xhci_pci_shutdown() function is no longer called outside of the CONFIG_PM #ifdef section, causing a harmless warning: drivers/usb/host/xhci-pci.c:524:13: warning: ‘xhci_pci_shutdown’ defined but not used [-Wunused-function] static void xhci_pci_shutdown(struct usb_hcd *hcd) This moves the function into the #ifdef to get a clean build again. Fixes: f2c710f7dca8 ("usb: xhci: only set D3hot for pci device") Signed-off-by: Chen Zhou --- drivers/usb/host/xhci-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 2907fe4..4917c5b 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -519,7 +519,6 @@ static int xhci_pci_resume(struct usb_hcd *hcd, bool hibernated) retval = xhci_resume(xhci, hibernated); return retval; } -#endif /* CONFIG_PM */ static void xhci_pci_shutdown(struct usb_hcd *hcd) { @@ -532,6 +531,7 @@ static void xhci_pci_shutdown(struct usb_hcd *hcd) if (xhci->quirks & XHCI_SPURIOUS_WAKEUP) pci_set_power_state(pdev, PCI_D3hot); } +#endif /* CONFIG_PM */ /*-------------------------------------------------------------------------*/ -- 2.7.4