diff options
author | Johannes Berg <johannes.berg@intel.com> | 2021-06-25 10:34:34 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2021-08-26 22:28:02 +0200 |
commit | b76dd9302af7803aac62243ae94d53067fc819b4 (patch) | |
tree | 71603141fa7189414acdeb7bd75e51d0964c4b2e /arch | |
parent | 7c60610d476766e128cc4284bb6349732cbd6606 (diff) | |
download | linux-stable-b76dd9302af7803aac62243ae94d53067fc819b4.tar.gz linux-stable-b76dd9302af7803aac62243ae94d53067fc819b4.tar.bz2 linux-stable-b76dd9302af7803aac62243ae94d53067fc819b4.zip |
um: make PCI emulation driver init/exit static
The functions aren't used elsewhere, so they can be static.
Reported-by: kernel test robot <lkp@intel.com>
Fixes: 68f5d3f3b654 ("um: add PCI over virtio emulation driver")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/um/drivers/virt-pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/drivers/virt-pci.c b/arch/um/drivers/virt-pci.c index 0b802834f40a..70c17de16662 100644 --- a/arch/um/drivers/virt-pci.c +++ b/arch/um/drivers/virt-pci.c @@ -810,7 +810,7 @@ void *pci_root_bus_fwnode(struct pci_bus *bus) return um_pci_fwnode; } -int um_pci_init(void) +static int um_pci_init(void) { int err, i; @@ -884,7 +884,7 @@ free: } module_init(um_pci_init); -void um_pci_exit(void) +static void um_pci_exit(void) { unregister_virtio_driver(&um_pci_virtio_driver); irq_domain_remove(um_pci_msi_domain); |