mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 02:56:41 +07:00
xhci: dbc: Make function xhci_dbc_ring_alloc() static
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: ac286428c6
("xhci: dbc: don't use generic xhci ring allocation functions for dbc.")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20200727171207.3101-1-weiyongjun1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ca63779009
commit
b0e0255034
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user