]> Git Repo - linux.git/commitdiff
xhci: dbc: Make function xhci_dbc_ring_alloc() static
authorWei Yongjun <[email protected]>
Mon, 27 Jul 2020 17:12:07 +0000 (01:12 +0800)
committerGreg Kroah-Hartman <[email protected]>
Tue, 28 Jul 2020 11:15:01 +0000 (13:15 +0200)
The sparse tool complains as follows:

drivers/usb/host/xhci-dbgcap.c:422:18: warning:
 symbol 'xhci_dbc_ring_alloc' was not declared. Should it be static?

This function is not used outside ofxhci-dbgcap.c, so this commit
marks it static.

Fixes: ac286428c69f ("xhci: dbc: don't use generic xhci ring allocation functions for dbc.")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Wei Yongjun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/host/xhci-dbgcap.c

index c57178db79942e6d2f58c767689b813a34961fd3..fcc5ac5ce8b10b7b61fe6937d4b4d1505950d46d 100644 (file)
@@ -419,7 +419,7 @@ dbc_alloc_ctx(struct device *dev, gfp_t flags)
        return ctx;
 }
 
-struct xhci_ring *
+static struct xhci_ring *
 xhci_dbc_ring_alloc(struct device *dev, enum xhci_ring_type type, gfp_t flags)
 {
        struct xhci_ring *ring;
This page took 0.062709 seconds and 4 git commands to generate.