summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-12-11 17:45:36 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-12 13:16:07 +0100
commit66222f0d4b0ffba0bae2a6a785dc6eaa67cf532e (patch)
tree49cd340a3f9be3d97d671050908a36a16f85f0df
parentxhci: fixup incorrect memset size parameter when clearing up DbC on exit. (diff)
downloadlinux-66222f0d4b0ffba0bae2a6a785dc6eaa67cf532e.tar.xz
linux-66222f0d4b0ffba0bae2a6a785dc6eaa67cf532e.zip
usb: xhci: make function xhci_dbc_free_req static
Function xhci_dbc_free_req is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'xhci_dbc_free_req' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Cc: Mathias Nyman <mathias.nyman@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/host/xhci-dbgtty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-dbgtty.c b/drivers/usb/host/xhci-dbgtty.c
index 48811d72a94c..8d47b6fbf973 100644
--- a/drivers/usb/host/xhci-dbgtty.c
+++ b/drivers/usb/host/xhci-dbgtty.c
@@ -122,7 +122,7 @@ static void dbc_write_complete(struct xhci_hcd *xhci, struct dbc_request *req)
spin_unlock(&port->port_lock);
}
-void xhci_dbc_free_req(struct dbc_ep *dep, struct dbc_request *req)
+static void xhci_dbc_free_req(struct dbc_ep *dep, struct dbc_request *req)
{
kfree(req->buf);
dbc_free_request(dep, req);