]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: microchip: Make some symbols static
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 8 Mar 2021 09:48:42 +0000 (09:48 +0000)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 22 Mar 2021 14:23:05 +0000 (14:23 +0000)
commit1a3806e49fb8143e5fa41f8321f1e3eab0890be3
tree2901be180a1cc6bbca5caee32fb179c436fecba1
parent219c9076286fd92026e818ab1375558e5b20649f
PCI: microchip: Make some symbols static

The sparse tool complains as follows:

drivers/pci/controller/pcie-microchip-host.c:304:18: warning:
 symbol 'pcie_event_to_event' was not declared. Should it be static?
drivers/pci/controller/pcie-microchip-host.c:310:18: warning:
 symbol 'sec_error_to_event' was not declared. Should it be static?
drivers/pci/controller/pcie-microchip-host.c:317:18: warning:
 symbol 'ded_error_to_event' was not declared. Should it be static?
drivers/pci/controller/pcie-microchip-host.c:324:18: warning:
 symbol 'local_status_to_event' was not declared. Should it be static?

Those symbols are not used outside of pcie-microchip-host.c, so this
commit marks them static.

Link: https://lore.kernel.org/r/20210308094842.3588847-1-weiyongjun1@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Krzysztof WilczyƄski <kw@linux.com>
drivers/pci/controller/pcie-microchip-host.c