From patchwork Thu Sep 1 13:47:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 602164 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E97A9ECAAD3 for ; Thu, 1 Sep 2022 13:47:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233598AbiIANrx (ORCPT ); Thu, 1 Sep 2022 09:47:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231351AbiIANrw (ORCPT ); Thu, 1 Sep 2022 09:47:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6398B4BB; Thu, 1 Sep 2022 06:47:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 98BC0B82639; Thu, 1 Sep 2022 13:47:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B33E3C433C1; Thu, 1 Sep 2022 13:47:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662040069; bh=vuVIZawZ9Wnxn37Lh9V1DnkOYn/crY5zCr59oWUarXI=; h=From:To:Cc:Subject:Date:From; b=wn9j/Jcfpel6MEfsiKPgtOboixHcXMPg2TjtR28J4Mu+znvkuJ0hCL8DiD31odUoV tmLAFs4raZsWv/EEdv1V/u9+9u3yOXUkwUVGGq2PGhApgRHfs87eHuDz3S/eB+yk1I rXFJhKSHOpSYzq2viFBhlZmDQruLCAzmZCo5QaP8= From: Greg Kroah-Hartman To: mathias.nyman@intel.com Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] USB: xhci: make xhci_get_endpoint_address static Date: Thu, 1 Sep 2022 15:47:44 +0200 Message-Id: <20220901134744.2039891-1-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1743; i=gregkh@linuxfoundation.org; h=from:subject; bh=vuVIZawZ9Wnxn37Lh9V1DnkOYn/crY5zCr59oWUarXI=; b=owGbwMvMwCRo6H6F97bub03G02pJDMkC2/+Fb30h7vVIzSP8o/aDZwIur9scExVdTS/sFJnEcuji A7kbHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRQ4kM86zUlqe1zNzedFph/0q/XQ J7p7x6O51hrkT/Cr6mSTOvsc0V1Gx22lS1+tjZywA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This is only called in the xhci.c file, so make the symbol static. Cc: Mathias Nyman Cc: linux-usb@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/xhci.c | 2 +- drivers/usb/host/xhci.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 65858f607437..7a854ce7cc62 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -1491,7 +1491,7 @@ EXPORT_SYMBOL_GPL(xhci_get_endpoint_index); /* The reverse operation to xhci_get_endpoint_index. Calculate the USB endpoint * address from the XHCI endpoint index. */ -unsigned int xhci_get_endpoint_address(unsigned int ep_index) +static unsigned int xhci_get_endpoint_address(unsigned int ep_index) { unsigned int number = DIV_ROUND_UP(ep_index, 2); unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN; diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 1960b47acfb2..5b110b78db60 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -2041,7 +2041,6 @@ int xhci_setup_addressable_virt_dev(struct xhci_hcd *xhci, struct usb_device *ud void xhci_copy_ep0_dequeue_into_input_ctx(struct xhci_hcd *xhci, struct usb_device *udev); unsigned int xhci_get_endpoint_index(struct usb_endpoint_descriptor *desc); -unsigned int xhci_get_endpoint_address(unsigned int ep_index); unsigned int xhci_last_valid_endpoint(u32 added_ctxs); void xhci_endpoint_zero(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_host_endpoint *ep); void xhci_update_tt_active_eps(struct xhci_hcd *xhci,