Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13331597ybl; Sun, 29 Dec 2019 09:28:50 -0800 (PST) X-Google-Smtp-Source: APXvYqzpze5k6stO26pGdAs2w83HRM5TXcjU+uHvN+u0k/7fgpFna1h2sGlBWUON7w3AhGctCrZR X-Received: by 2002:a05:6830:1691:: with SMTP id k17mr72005189otr.282.1577640530275; Sun, 29 Dec 2019 09:28:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577640530; cv=none; d=google.com; s=arc-20160816; b=03OZLL2S420JR3Xl9Gg6P/YeOslfT1Fey5rq1UNx/3hPXcezPPe/q/3v99i5XepJQG YeH+T/kmmeWvCi71qJDwcB4dkc2TSqvRHGshjFoq8HiOKku9QTcLv/d0w+Q20l7JfaB5 zs1DB2vdDLB5qeXYTFBRfMn6fZUyL/d4TyvmlShwGkT5i1WIi3UXyRDT8Y1JFFcPjB/W J7QzUql+fV2zPQhaCfV2kX7maAFqqx4hmP6VOP8xnJk8SwmGSux6ShtED5UlgVX20Ue/ G55a9jJql/Al6FS4Mc4EqsL24YvQRp5HBwtUuowQDM0o9mJB1ZPrMXPoqP0ukvJJq5/7 zAfQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=oRXOGeOHcaqGG5PXdoWm51FTIetOD4dY/wv4/zhaKd8=; b=HJRjuujSlvEHGrMKUWyP80JgU2IsKLMM8GaMJSMYCbgj28JevpO42JAHrjiwnxA2Am HDV9mqHIxpNg0Mdt9r3d9XhqPpz92bB2Xb52CJfxlaaI55aY39OwzztIpcEouxLqKB19 SjzAmBIqMDex06ceTub0pl38MqE9rB1XoTvE4zluuWwEgQrSVKWB74DYOPtCA2vN7MRo rYnNq7VAWKrPhPMZ3GRwpUlXO1nXPimGlBNY2sB7FD75Q1LNeSQxm9HseMDuswO30/Nx tb9FFYMbuysVBIr/4A/F2lPHyXK14XhvLKNRBZefL8+J8zmpbE3gPM4DJKUAvfy5nq4C cx9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iQKbwvtB; 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 a64si20336237oif.256.2019.12.29.09.28.38; Sun, 29 Dec 2019 09:28:50 -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; dkim=pass header.i=@kernel.org header.s=default header.b=iQKbwvtB; 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 S1728249AbfL2R0g (ORCPT + 99 others); Sun, 29 Dec 2019 12:26:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:47790 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728238AbfL2R0f (ORCPT ); Sun, 29 Dec 2019 12:26:35 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4F2BB207FF; Sun, 29 Dec 2019 17:26:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577640394; bh=MB4wfjNAr84QKgu1o/8ij9NJCI4/njW1sZSxPHurkPQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iQKbwvtB0AhtUdKnz8RE9qnojd3TvfFrfewF0UYs3FpsmAMs3AjhKQ89ZsODLcBNx jaZH/Hz8gvu3cswTx6wcabqOTk62Ms6lTq9JOuhVRhh7WpgolsYOCi9RYZr6hUhvAI NeHjMWiTQiux3fsZJBWuYQ41tO/GJ7wAW225yCPE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Henry Lin , Guenter Roeck , Mathias Nyman , Sasha Levin Subject: [PATCH 4.14 140/161] usb: xhci: Fix build warning seen with CONFIG_PM=n Date: Sun, 29 Dec 2019 18:19:48 +0100 Message-Id: <20191229162441.462168981@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229162355.500086350@linuxfoundation.org> References: <20191229162355.500086350@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guenter Roeck [ Upstream commit 6056a0f8ede27b296d10ef46f7f677cc9d715371 ] The following build warning is seen if CONFIG_PM is disabled. drivers/usb/host/xhci-pci.c:498:13: warning: unused function 'xhci_pci_shutdown' Fixes: f2c710f7dca8 ("usb: xhci: only set D3hot for pci device") Cc: Henry Lin Cc: stable@vger.kernel.org # all stable releases with f2c710f7dca8 Signed-off-by: Guenter Roeck Acked-by: Mathias Nyman Link: https://lore.kernel.org/r/20191218011911.6907-1-linux@roeck-us.net Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- 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 021a2d320acc..09f228279c01 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -497,7 +497,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) { @@ -510,6 +509,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.20.1