Message ID | 20210526130037.856068-23-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp5199318jac; Wed, 26 May 2021 06:01:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBjD2W6IXD/uxR1/BWUw3QfAl2H8/J47jZNIDbSx+yB6rlYQMcJHzWNXmiPztIa++QMCQg X-Received: by 2002:aa7:cb90:: with SMTP id r16mr37664212edt.247.1622034103843; Wed, 26 May 2021 06:01:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622034103; cv=none; d=google.com; s=arc-20160816; b=AgN/3bgorzQ36AMTosr6ienmxeO/3UzS1y7pE5ku/7U1rQ0Md8AeeVFj5wFGIc6SKH jODNnpls41vzR72ZcP2f+IPekI9iF5ibyOr64z85zafli+S8zIC46VpikR5OH9nDLRYc Ryh2yX9VszT8N8+/czTiNf2UMg0RJ3s5LUGX/GRSMl3JVxyeEys4I/y1+sPFyBqBPCfj TnxlQrUz5wULH7WcQvCvnTXCH3q3qPKcMaJUcQwpVOb1bs08MrJzdHEGJ2VUyJ3XQw2l oBQpJMohRpka/YmyrmG/nVmbDnKY6YJqTKTz7rGFuUThl8jc6RM2KiGWbxjFl7wQJKXQ W4zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YbRRFg5q2VbYY8xpOifIVrVfW0BWBSAPTYk+9466Ez8=; b=FlEMIknKvsidZ/0GBXYIF1sapXja6BBk4O3GCdmZuU4xa7qEkSm+7Vwj54zaCZLs1s ODOkE5KnWyYlUepzXfEb/080R04HWSE05h/fDnOwVC1obf8XWWWyK64mBDCHyxG5WroU VdpLrXrp2Y9reuCO0Q0xBL9xgZhfepwMBTL/ZruzvKoxUW5HjNgvkbcax/BjIckydL52 rkddiCzgHTIDIoTqrVGpVQF0yPDDYea45Mo3gYV4/x7ksVRkt39whRLHVHQsRRCPmrga SWw3xDOkKkcOAXXlWsJnPZ19VmL5OX3kw4le1VHVBcxLPx6TQLtzVXLWqG/hhjd51ZaQ u3zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bnjcSmFQ; 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: <linux-usb-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m9si20452093ejj.467.2021.05.26.06.01.43; Wed, 26 May 2021 06:01:43 -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=bnjcSmFQ; 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 S235146AbhEZNDL (ORCPT <rfc822;naresh.kamboju@linaro.org> + 4 others); Wed, 26 May 2021 09:03:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235008AbhEZNCo (ORCPT <rfc822; linux-usb@vger.kernel.org>); Wed, 26 May 2021 09:02:44 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91568C061346 for <linux-usb@vger.kernel.org>; Wed, 26 May 2021 06:01:10 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id n2so1109986wrm.0 for <linux-usb@vger.kernel.org>; Wed, 26 May 2021 06:01:10 -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=YbRRFg5q2VbYY8xpOifIVrVfW0BWBSAPTYk+9466Ez8=; b=bnjcSmFQOnzl2lNbk/am+nyD7cQvcvfgS+Sx/AaVCXefBJ113iOMCnRSumhjEoFxxi +vWmddFD5J+aSHc7dfIyjkTBP4PjK70itrF9GGHI0JDdtN9+C2ugDJZm3miTuc6UWKZu jkHa1oS6BKsQ6eoQ4opfRQIxo8Wi711cZ5QbinNBG9n2khSMFrUMml6K2NG4FTVJczp3 a4Yjqa1Az8PhaQbyf+L+YBM6Tz/a7MeVVEmBk+2jFjrMiToDIEs5ic/UPvGBpBof3a1U PHz+4NilOwlYsfzu62F+TxpSNFVN6ZQ3oNSzmZd/wMZryi35H2pyCqLs5NICtIvCG/7N 40mg== 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=YbRRFg5q2VbYY8xpOifIVrVfW0BWBSAPTYk+9466Ez8=; b=jLekqI4415ZLZiPrFAu/LSNK5VAALO2aLroNRGnVCxzrGq4xgcVFz9UkcY+jvrvSxT XqzlgdgiaqF2heSlhLHBfwIehwBrGa4vR0dV7HbAC92hGIveNnN+S714Qx9qMP/N2INi Xp0ry3KEGX05CfxUxaV+WHG+/L6hGVAMRZI/MOHfDWSHicMMkGwumGauUA7UD+3hPgVq ti9Rk0MxYZpvU906r/J+pT0/PqkaRFG1v3rPiSk1bANJwhyKz2KsgqqOCCD4ZuEG3aMX Iohe/SAuM3yMEIkeMgfz8f7OK5A1Kbxg89ohvqbFXNibL2peROmZjk4Gk0YqDuvzYWrA 3U4w== X-Gm-Message-State: AOAM533tF8oZ1fRDDqLWzubG0M5VziKY4A19iAKW5ZeiMJRmFd4CBv3U MV6Gdu2EjzkQ+QoYl2PRSt9qnw== X-Received: by 2002:a5d:690b:: with SMTP id t11mr30464981wru.250.1622034069220; Wed, 26 May 2021 06:01:09 -0700 (PDT) Received: from dell.default ([91.110.221.223]) by smtp.gmail.com with ESMTPSA id y14sm6430036wmj.37.2021.05.26.06.01.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 06:01:08 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Mathias Nyman <mathias.nyman@intel.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-usb@vger.kernel.org Subject: [PATCH 22/24] usb: host: xhci: Document xhci_get_endpoint_index()'s 'desc' param Date: Wed, 26 May 2021 14:00:35 +0100 Message-Id: <20210526130037.856068-23-lee.jones@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210526130037.856068-1-lee.jones@linaro.org> References: <20210526130037.856068-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-usb.vger.kernel.org> X-Mailing-List: linux-usb@vger.kernel.org |
Series |
Rid W=1 warnings from USB
|
expand
|
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 40ce4b4eb12ad..094b2bf1e2657 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -1415,6 +1415,8 @@ static void xhci_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb) * HCDs. Find the index for an endpoint given its descriptor. Use the return * value to right shift 1 for the bitmask. * + * @desc: USB endpoint descriptor + * * Index = (epnum * 2) + direction - 1, * where direction = 0 for OUT, 1 for IN. * For control endpoints, the IN index is used (OUT index is unused), so
Fixes the following W=1 kernel build warning(s): drivers/usb/host/xhci.c:1424: warning: Function parameter or member 'desc' not described in 'xhci_get_endpoint_index' Cc: Mathias Nyman <mathias.nyman@intel.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-usb@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/usb/host/xhci.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.31.1