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 3E421C3276C for ; Thu, 2 Jan 2020 22:36:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 103E02464B for ; Thu, 2 Jan 2020 22:36:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578004588; bh=qWspZePQbi8G0U3n4JitokKO6py1iZ/JWW1uP31pH6U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=YhZw2rd6K5FE0x7KSSm1v1wNeLUeBPRpSvxlZDen3slxwKZMSwkPlbgf/UBmROiyd B1gUUU7ec3vYPl5/5af52zW1UV9uYydmVFsNXoJ2GGcu0cFjJwd+NNhc0dO5Xyyr5/ G0oisAQZEgfTmnBf41nrvUqyJx7W8Ew7Qnrl44MM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730946AbgABWg0 (ORCPT ); Thu, 2 Jan 2020 17:36:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:47390 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730931AbgABWgV (ORCPT ); Thu, 2 Jan 2020 17:36:21 -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 A376020866; Thu, 2 Jan 2020 22:36:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578004581; bh=qWspZePQbi8G0U3n4JitokKO6py1iZ/JWW1uP31pH6U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UZxIngmxDve6ORPSAvGS/1ZNi6ff8laiBvgw6+wf0uKihYIgvcpXIGy/iRPxg2pB0 PaUkN+2Tmwlann5Flzt3EoBPNGBK/TAIWFbiBAUNdVi06KdpNsAq7uKru0uV/ypbpF V5Jg7EyXQBgwAr7i64uoEd3Xv0CO8h57TT3ENGdM= 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.4 067/137] usb: xhci: Fix build warning seen with CONFIG_PM=n Date: Thu, 2 Jan 2020 23:07:20 +0100 Message-Id: <20200102220555.569244418@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102220546.618583146@linuxfoundation.org> References: <20200102220546.618583146@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 bda176fa6e48..df86ea308415 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -444,7 +444,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) { @@ -457,6 +456,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