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>
This commit is contained in:
Xiu Jianfeng 2022-09-11 10:51:40 +08:00 committed by Richard Weinberger
parent b7f28a37a5
commit 98639412fe
1 changed files with 2 additions and 2 deletions

View File

@ -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);