]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: dbgtty: Make some functions static
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 27 Jul 2020 17:11:49 +0000 (01:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Jul 2020 11:15:01 +0000 (13:15 +0200)
commit65aa56997e61e6c4456212f46539eac12c02d5e7
tree59b9b7360ece0d3252f032236753163495976fe5
parent697a72327e2194a44a252761044d68ba782b31f9
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 commit a6aad2c0f0ad ("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: a6aad2c0f0ad ("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>
drivers/usb/host/xhci-dbgtty.c