Commit 8212a49d1c1e53ad2bc3176b983a2483b48fd989

Authored by Dmitry Torokhov
Committed by Sarah Sharp
1 parent c50a00f8fe

USB: xhci: mark local functions as static

Functions that are not used outsde of the module they are defined
should be marked as static.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>

Showing 3 changed files with 8 additions and 8 deletions Side-by-side Diff

drivers/usb/host/xhci-dbg.c
... ... @@ -450,7 +450,7 @@
450 450 }
451 451 }
452 452  
453   -void xhci_dbg_slot_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx)
  453 +static void xhci_dbg_slot_ctx(struct xhci_hcd *xhci, struct xhci_container_ctx *ctx)
454 454 {
455 455 /* Fields are 32 bits wide, DMA addresses are in bytes */
456 456 int field_size = 32 / 8;
... ... @@ -489,7 +489,7 @@
489 489 dbg_rsvd64(xhci, (u64 *)slot_ctx, dma);
490 490 }
491 491  
492   -void xhci_dbg_ep_ctx(struct xhci_hcd *xhci,
  492 +static void xhci_dbg_ep_ctx(struct xhci_hcd *xhci,
493 493 struct xhci_container_ctx *ctx,
494 494 unsigned int last_ep)
495 495 {
drivers/usb/host/xhci-mem.c
... ... @@ -307,7 +307,7 @@
307 307  
308 308 /***************** Streams structures manipulation *************************/
309 309  
310   -void xhci_free_stream_ctx(struct xhci_hcd *xhci,
  310 +static void xhci_free_stream_ctx(struct xhci_hcd *xhci,
311 311 unsigned int num_stream_ctxs,
312 312 struct xhci_stream_ctx *stream_ctx, dma_addr_t dma)
313 313 {
... ... @@ -335,7 +335,7 @@
335 335 * The stream context array must be a power of 2, and can be as small as
336 336 * 64 bytes or as large as 1MB.
337 337 */
338   -struct xhci_stream_ctx *xhci_alloc_stream_ctx(struct xhci_hcd *xhci,
  338 +static struct xhci_stream_ctx *xhci_alloc_stream_ctx(struct xhci_hcd *xhci,
339 339 unsigned int num_stream_ctxs, dma_addr_t *dma,
340 340 gfp_t mem_flags)
341 341 {
drivers/usb/host/xhci.c
... ... @@ -109,7 +109,7 @@
109 109 /*
110 110 * Set the run bit and wait for the host to be running.
111 111 */
112   -int xhci_start(struct xhci_hcd *xhci)
  112 +static int xhci_start(struct xhci_hcd *xhci)
113 113 {
114 114 u32 temp;
115 115 int ret;
... ... @@ -329,7 +329,7 @@
329 329  
330 330  
331 331 #ifdef CONFIG_USB_XHCI_HCD_DEBUGGING
332   -void xhci_event_ring_work(unsigned long arg)
  332 +static void xhci_event_ring_work(unsigned long arg)
333 333 {
334 334 unsigned long flags;
335 335 int temp;
... ... @@ -857,7 +857,7 @@
857 857 /* Returns 1 if the arguments are OK;
858 858 * returns 0 this is a root hub; returns -EINVAL for NULL pointers.
859 859 */
860   -int xhci_check_args(struct usb_hcd *hcd, struct usb_device *udev,
  860 +static int xhci_check_args(struct usb_hcd *hcd, struct usb_device *udev,
861 861 struct usb_host_endpoint *ep, int check_ep, bool check_virt_dev,
862 862 const char *func) {
863 863 struct xhci_hcd *xhci;
... ... @@ -1693,7 +1693,7 @@
1693 1693 xhci_dbg_ctx(xhci, in_ctx, xhci_last_valid_endpoint(add_flags));
1694 1694 }
1695 1695  
1696   -void xhci_setup_input_ctx_for_quirk(struct xhci_hcd *xhci,
  1696 +static void xhci_setup_input_ctx_for_quirk(struct xhci_hcd *xhci,
1697 1697 unsigned int slot_id, unsigned int ep_index,
1698 1698 struct xhci_dequeue_state *deq_state)
1699 1699 {