Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752050AbdLFP1p (ORCPT ); Wed, 6 Dec 2017 10:27:45 -0500 Received: from smtprelay.synopsys.com ([198.182.60.111]:37400 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751453AbdLFP1k (ORCPT ); Wed, 6 Dec 2017 10:27:40 -0500 Date: Wed, 6 Dec 2017 19:27:01 +0400 From: Grigor Tovmasyan Subject: [PATCH] usb: dwc2: Make function static To: John Youn , Felipe Balbi , "Greg Kroah-Hartman" , , CC: Grigor Tovmasyan MIME-Version: 1.0 Content-Type: text/plain Message-ID: <0847aa44-d490-402e-97fb-6d6e23d3fcd0@US01WEHTC1.internal.synopsys.com> X-Originating-IP: [10.13.184.19] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 733 Lines: 23 Declared dwc2_force_mode() function as static, because it was used only in core.c file, for fixing sparse error. Signed-off-by: Grigor Tovmasyan --- drivers/usb/dwc2/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/core.c b/drivers/usb/dwc2/core.c index dbca3b8890da..c405a77a8edf 100644 --- a/drivers/usb/dwc2/core.c +++ b/drivers/usb/dwc2/core.c @@ -446,7 +446,7 @@ void dwc2_force_mode(struct dwc2_hsotg *hsotg, bool host) * the force mode. We only need to call this once during probe if * dr_mode == OTG. */ -void dwc2_clear_force_mode(struct dwc2_hsotg *hsotg) +static void dwc2_clear_force_mode(struct dwc2_hsotg *hsotg) { u32 gusbcfg; -- 2.11.0