summaryrefslogtreecommitdiff
path: root/arch/um
diff options
context:
space:
mode:
authorXiu Jianfeng <xiujianfeng@huawei.com>2022-09-11 05:51:40 +0300
committerRichard Weinberger <richard@nod.at>2022-09-20 00:01:20 +0300
commit98639412fee2fda3c9da184825b469e5ac874829 (patch)
treef6055420b50628e30fecf7b602868484fa8b4f6c /arch/um
parentb7f28a37a59fb0ae35dc087b9cdfa77d089b996b (diff)
downloadlinux-98639412fee2fda3c9da184825b469e5ac874829.tar.xz
um: virt-pci: add __init/__exit annotations to module init/exit funcs
Add missing __init/__exit annotations to module init/exit funcs. Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/drivers/virt-pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/drivers/virt-pci.c b/arch/um/drivers/virt-pci.c
index 027847023184..acb55b302b14 100644
--- a/arch/um/drivers/virt-pci.c
+++ b/arch/um/drivers/virt-pci.c
@@ -857,7 +857,7 @@ void *pci_root_bus_fwnode(struct pci_bus *bus)
return um_pci_fwnode;
}
-static int um_pci_init(void)
+static int __init um_pci_init(void)
{
int err, i;
@@ -940,7 +940,7 @@ free:
}
module_init(um_pci_init);
-static void um_pci_exit(void)
+static void __exit um_pci_exit(void)
{
unregister_virtio_driver(&um_pci_virtio_driver);
irq_domain_remove(um_pci_msi_domain);