mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 11:13:58 +08:00
xhci: dbgtty: Make some functions static
The sparse tool complains as follows: drivers/usb/host/xhci-dbgtty.c:401:5: warning: symbol 'xhci_dbc_tty_register_device' was not declared. Should it be static? drivers/usb/host/xhci-dbgtty.c:452:6: warning: symbol 'xhci_dbc_tty_unregister_device' was not declared. Should it be static? After commit6ae6470bfa
("xhci: dbc: Add a operations structure to access driver functions"), those functions are not used outside of xhci-dbgtty.c, so this commit marks them static. Fixes:6ae6470bfa
("xhci: dbc: Add a operations structure to access driver functions") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Link: https://lore.kernel.org/r/20200727171149.3011-1-weiyongjun1@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b0e0255034
commit
25252919a1
@ -398,7 +398,7 @@ xhci_dbc_tty_exit_port(struct dbc_port *port)
|
||||
tty_port_destroy(&port->port);
|
||||
}
|
||||
|
||||
int xhci_dbc_tty_register_device(struct xhci_dbc *dbc)
|
||||
static int xhci_dbc_tty_register_device(struct xhci_dbc *dbc)
|
||||
{
|
||||
int ret;
|
||||
struct device *tty_dev;
|
||||
@ -449,7 +449,7 @@ register_fail:
|
||||
return ret;
|
||||
}
|
||||
|
||||
void xhci_dbc_tty_unregister_device(struct xhci_dbc *dbc)
|
||||
static void xhci_dbc_tty_unregister_device(struct xhci_dbc *dbc)
|
||||
{
|
||||
struct dbc_port *port = dbc_to_port(dbc);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user