From patchwork Thu Jul 2 14:46:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 192259 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1510919ilg; Thu, 2 Jul 2020 07:48:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMIfCy4AouEGtqmjQr9rlJz3NsSr4LE+uPLXTkUFXF5Yxbz2F3Sjjs4ng91vWYb6PWYGPm X-Received: by 2002:a17:906:8316:: with SMTP id j22mr27226241ejx.97.1593701286925; Thu, 02 Jul 2020 07:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593701286; cv=none; d=google.com; s=arc-20160816; b=TfnNjUPZ2BweaFZPtWASBYFijLnULk2W5KIHaP4DbCCPlVViNtDURBSeOUKafr1vQM OyOmVtJkZLqm6OnEKs8URvmg2QdXqniqxd74z09MkiEhqqYjw9/Cpzb8Sj+10AO2i0hQ u74aM3Z9XvYCmu936AqsEGcbII+saA3uSvM1PzD2QwY5XidwHvMsxO2KV8rTw+wT1Vg8 oadM9eeNMDQY4uIsLW3cUiOwuWGxR9A/o9Vb0hP2ry+UD9fAFWCDNotnxtv5L8FwhBo5 Fo1xtlGOuCccXFVK8QvMDZXJL5yIFIRZi0Fne9PJB7OVggb+lIQudrT2PecHJd7EvZTH VExA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=H2cePmcpx5tsP4U3KYd+LqwzZEatzdvDVRzwm5J/30A=; b=us3S9iXuYQI0iOuM484+TWOugytN309bygkqcCKE1iBrZ70q9K3Ne/q9Gy7SYnuOiw yVTLsq/pr/IfsHgyJUnf1gxlXR7lzAZzVfVBxlLizFAG8YOsDn2HKQxWbLURlW6S+ldW HPPUWZzqAR17X5t814hBP3QvZt4mYIAy+K6TBRqdnxVNb7qtb5ZfkSPUHCBWsEApNDzA qMTMEWBn6Qlf3sSmZunOcZkuQ6YzN5VkF2+p9K4jW823DOGoibemNi472qLRNcrXZ1dp 77nZDhO23VEshAhAOU9fcTiDy3550/tMcpxTXVZUinK3yiGVwoZDBZVmAGmCrio3MYbW Xf1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c53RgvRD; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si5850420eds.492.2020.07.02.07.48.06; Thu, 02 Jul 2020 07:48:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c53RgvRD; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730070AbgGBOrB (ORCPT + 5 others); Thu, 2 Jul 2020 10:47:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730058AbgGBOrA (ORCPT ); Thu, 2 Jul 2020 10:47:00 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E68BC08C5DD for ; Thu, 2 Jul 2020 07:47:00 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id 22so27110439wmg.1 for ; Thu, 02 Jul 2020 07:47:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=H2cePmcpx5tsP4U3KYd+LqwzZEatzdvDVRzwm5J/30A=; b=c53RgvRD10yT154GgQgeIyna2QYPrbkI+WTnp2UMoFo9CT36rTCyqrDngBqvuckw3S +oNa3YdgsimKjvPoCH/30TsKQMdDJPLwl5KHWSs/fy5BFSSaYO5/F8t+s9fUmd1kfbTt joQnwQce5qZ1EBcSIkEdbgflYXu4hOxUS6yHZw1bkvsDOdZNN1Lvp9vhf7mjC2cttpwR UMLjHgsZgsLUt6CM3mwFLJczW2/G2TFbYlK31eHuAJ0WUZDimWF74sk72FwUIAoR9soG 5nDZgi3NL2ZhkzfWwoPAK4IyiU44YXnPmkhwRZ/mQsAqgQkNxutA+aNeEwTG27koO4xd N+ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=H2cePmcpx5tsP4U3KYd+LqwzZEatzdvDVRzwm5J/30A=; b=rJp43+v2vEb5txrCqIRbC8bhj8KqgqF5+UlmTS/V4IAjpa4GWDryoTeHJlChu1AxVG nrZXInsSQhTcnyWQc3vGFIZuSilZzx/y+VXk9V9lM4f1mK55nYgCFR/iAi+sstvYpKlo aB2Ge/d8GbakPAmS6pYz0z8BAnjLpdwbimc6LKLi/Y73gzjx3Zot08TCye83IQmZoVkU VDsXRVEqhnKLlp68jSvwaTBkHKbgVwbP/AmQk7D5NJy44CRP71UKyBFlV2/zlklwgfUG JhUqfMUdTWHaJfdI4wK6hYDRcHLShf8SgV4WB/ufIqYQSv3skhOn3PqHCn6pVz1PN4tp Y1lQ== X-Gm-Message-State: AOAM531SPRE72BrKwEGu6pxPj3OPbbIKg+2EXZ1n0vBesw39FeGIKL8E 9SM8lmYiGo865+2l5m19CfVuoQ== X-Received: by 2002:a7b:c775:: with SMTP id x21mr17240384wmk.34.1593701218885; Thu, 02 Jul 2020 07:46:58 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id g14sm7002737wrw.83.2020.07.02.07.46.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 07:46:58 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Pawel Laszczak , Pawel Jez , Peter Chen Subject: [PATCH 22/30] usb: cdns3: ep0: Move 'zlp' description to appropriate function header Date: Thu, 2 Jul 2020 15:46:17 +0100 Message-Id: <20200702144625.2533530-23-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200702144625.2533530-1-lee.jones@linaro.org> References: <20200702144625.2533530-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org 'zlp' was documented, but in the wrong place. Fixes the following W=1 kernel build warning(s): drivers/usb/cdns3/ep0.c:36: warning: Function parameter or member 'zlp' not described in 'cdns3_ep0_run_transfer' drivers/usb/cdns3/ep0.c:705: warning: Excess function parameter 'zlp' description in 'cdns3_gadget_ep0_queue' Cc: Pawel Laszczak Cc: Pawel Jez Cc: Peter Chen Signed-off-by: Lee Jones --- drivers/usb/cdns3/ep0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/usb/cdns3/ep0.c b/drivers/usb/cdns3/ep0.c index 5b3f682338e50..5b1aec80b2d7f 100644 --- a/drivers/usb/cdns3/ep0.c +++ b/drivers/usb/cdns3/ep0.c @@ -29,6 +29,7 @@ static struct usb_endpoint_descriptor cdns3_gadget_ep0_desc = { * @length: data length * @erdy: set it to 1 when ERDY packet should be sent - * exit from flow control state + * @zlp: add zero length packet */ static void cdns3_ep0_run_transfer(struct cdns3_device *priv_dev, dma_addr_t dma_addr, @@ -695,7 +696,6 @@ static int cdns3_gadget_ep0_set_halt(struct usb_ep *ep, int value) * @ep: pointer to endpoint zero object * @request: pointer to request object * @gfp_flags: gfp flags - * @zlp: add zero length packet * * Returns 0 on success, error code elsewhere */