Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: xhci: make xhci_get_endpoint_address static

This is only called in the xhci.c file, so make the symbol static.

Cc: Mathias Nyman <mathias.nyman@intel.com>
Link: https://lore.kernel.org/r/20220901134744.2039891-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+1 -2
+1 -1
drivers/usb/host/xhci.c
··· 1482 1482 /* The reverse operation to xhci_get_endpoint_index. Calculate the USB endpoint 1483 1483 * address from the XHCI endpoint index. 1484 1484 */ 1485 - unsigned int xhci_get_endpoint_address(unsigned int ep_index) 1485 + static unsigned int xhci_get_endpoint_address(unsigned int ep_index) 1486 1486 { 1487 1487 unsigned int number = DIV_ROUND_UP(ep_index, 2); 1488 1488 unsigned int direction = ep_index % 2 ? USB_DIR_OUT : USB_DIR_IN;
-1
drivers/usb/host/xhci.h
··· 2042 2042 void xhci_copy_ep0_dequeue_into_input_ctx(struct xhci_hcd *xhci, 2043 2043 struct usb_device *udev); 2044 2044 unsigned int xhci_get_endpoint_index(struct usb_endpoint_descriptor *desc); 2045 - unsigned int xhci_get_endpoint_address(unsigned int ep_index); 2046 2045 unsigned int xhci_last_valid_endpoint(u32 added_ctxs); 2047 2046 void xhci_endpoint_zero(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, struct usb_host_endpoint *ep); 2048 2047 void xhci_update_tt_active_eps(struct xhci_hcd *xhci,