From patchwork Tue Jun 30 11:58:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 11633811 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3DC1B13B4 for ; Tue, 30 Jun 2020 12:00:35 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1681620702 for ; Tue, 30 Jun 2020 12:00:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="3gOTAwO+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1681620702 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Pt0B12HUG6r6LiCgg8gm+4ULJcjGSNdcejFZUbvIwDA=; b=3gOTAwO+/XocdY4O4y9VsqArZG WHNy8ge8BaaohwBxPH+c6tJML0JmTxQQeAVTQAL3cBQz428HKegX6rQE7nDuZ3rRUiB++vbMdWXk8 p9QDAQ76qDmEEdLflrvVgnkWxqhSF1YFOTNWWFkiWlBr7/Ar71LLOz2HLArV3/WoY+HckFMaruy8o IPqSjZOaakqzz/H3dxNAEEMjN+7esgJS3XpQsjrnoZgG7YgPOUwcLTsJxCv0eOuewEkyQ+wkAPiAK 3qh4NXdI7zc+EAInbMJt4Dycmyom011o56J4dvhgGdLhwWVPdMlLDLStlNhkZt1HTajW4ILv9xfii 9i+wULxg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqEul-000196-D6; Tue, 30 Jun 2020 11:59:03 +0000 Received: from mout.kundenserver.de ([212.227.126.133]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqEui-00017p-Iz for linux-arm-kernel@lists.infradead.org; Tue, 30 Jun 2020 11:59:01 +0000 Received: from threadripper.lan ([149.172.98.151]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPA (Nemesis) id 1MQuwR-1jUbpB2phn-00O0Fd; Tue, 30 Jun 2020 13:58:38 +0200 From: Arnd Bergmann To: Felipe Balbi , Greg Kroah-Hartman , Vladimir Zapolskiy , Sylvain Lemieux Subject: [PATCH] udc: lpc32xx: mark local function static Date: Tue, 30 Jun 2020 13:58:15 +0200 Message-Id: <20200630115836.1283978-1-arnd@arndb.de> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:veseWBWr1h5vpkppXNC/0CmWqCIFH50Srfs8LPsw5xH/JdVmkgX sejJf0abhmbrS9AYLMm/Sj5uVMzCbA4TtKcgK1Unm6zyyDZzCz5wkeySLEDQA8DmnHMeamE hF5MvVdhAXWySGe1eBjylbtP/fYK70Ua/aAp+cCqFh6TasJvTjA0FnncHPzkc86tXVz6YXq VP/TGHYu23YysT8LVNHAA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:7T6V5aSeTAs=:yJ8wghqXSVPKlr7tAlROEt rmI8tWkpNOImq4me4JBuv3h/w5RoAidkAuFxaO0YhclkFqg53dcd7rEj9IyVUpOi9P1gGkfMl Iu52sA7n75Jk8w1dA8BIugJ0XK6kpVwro+lIb3sa9pbFGNDdnhjqbA16ZV+S1ZK4zf9KJ7uI5 tP8djaRtyV/00QsQwjRD6bcnnenifrkflKYgUmJ2GolntzrOAxisySifXcYb1l5ayVQvF+w3p M60Pa5A5XWJwbeF5hL8O6ePVUAmJe9uSjZzTC9Y5GstwoCUltovKdvpwwtWFJoKDOiWJu3Tql pbB9CYn5T4RjN5nSXGElEJ+pvyop9a2zCskD3wiK37CSj+FwMpSiNUNmFOalOEQ32RdO2mXps btMvhvk/r9Fy3K2PBvfcCfHWELIg5tUlztTFaFAQcXyJ347IaOZUufKG2C6yVeXgzoVvHsHg2 CHIKRJS0kroSlZclNQNPbpg+wq04O+/fmC3sPDd7u96/YLon9oDt9dFqLX/xLxbxh9A4t6UDj TxskZ/bhg3kNaZh8UZvJuJgk02ODW1LJfgxktnDQbRfLIl7EpMdLKXGkW7LSMwLYIWcjb72vp YcgSq8qFdzOgujt76GhE1QFk7VeGlbl2dWouO0mi8hNgJqczSm87TSgjYRhkR2avU+izyfyF4 nMmvg7GoqQg04covHnIzI9GM7dvUXiZHcpBJ0EmPi+8v84MysYrhUSgLeg0i3CfPwX/EniiVc bScdziPooi9MX1v3Y8ipQf3zXnQJsmVtxXTyPkcWyYqxArC2h0qwoJFc30JQXlcuewNGzhLUa Ll0SLMtCZ1Xr7dlLy3Mx7gzpg2KDLNAK3eswA7mpRGI3XYv204= X-Spam-Note: CRM114 invocation failed X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [212.227.126.133 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.126.133 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel test robot , Arnd Bergmann , "Gustavo A. R. Silva" , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The kernel test robot reports two functions that should be marked static: >> drivers/usb/gadget/udc/lpc32xx_udc.c:1928:6: warning: no previous prototype for 'udc_send_in_zlp' [-Wmissing-prototypes] 1928 | void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) >> drivers/usb/gadget/udc/lpc32xx_udc.c:1942:6: warning: no previous prototype for 'udc_handle_eps' [-Wmissing-prototypes] 1942 | void udc_handle_eps(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) This showed up after my commit 792e559e94bc ("udc: lpc32xx: fix 64-bit compiler warning") made it possible to build the driver on x86-64. Fix the warning as suggested. Reported-by: kernel test robot Signed-off-by: Arnd Bergmann Acked-by: Vladimir Zapolskiy --- drivers/usb/gadget/udc/lpc32xx_udc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/lpc32xx_udc.c b/drivers/usb/gadget/udc/lpc32xx_udc.c index 465d0b7c6522..4a112670cc6c 100644 --- a/drivers/usb/gadget/udc/lpc32xx_udc.c +++ b/drivers/usb/gadget/udc/lpc32xx_udc.c @@ -1926,7 +1926,7 @@ static const struct usb_ep_ops lpc32xx_ep_ops = { }; /* Send a ZLP on a non-0 IN EP */ -void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) +static void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) { /* Clear EP status */ udc_clearep_getsts(udc, ep->hwep_num); @@ -1940,7 +1940,7 @@ void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) * This function will only be called when a delayed ZLP needs to be sent out * after a DMA transfer has filled both buffers. */ -void udc_handle_eps(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) +static void udc_handle_eps(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) { u32 epstatus; struct lpc32xx_request *req;