From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C1EAC2D0CE for ; Sun, 29 Dec 2019 18:14:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2C2D6207E0 for ; Sun, 29 Dec 2019 18:14:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577643278; bh=MB4wfjNAr84QKgu1o/8ij9NJCI4/njW1sZSxPHurkPQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=KkGKwsH6RJUqZnyE8vcS2JWNf1J7ZDK+FY5O9yCpeLsIVao0mAU88xAZZDXqd3T6z +SSqHAnZJUYTVNVWu0q0rcJ2YpRgVlEPWcAYE9wrJEvdKVsUT0mcDSQzf3lPEdnckk S+4dCo7WDiq4rcMBOmIGFo1aMd5dgn0+kJEM1oLY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728242AbfL2R0f (ORCPT ); Sun, 29 Dec 2019 12:26:35 -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: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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