net: hns3: 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>
Link: https://lore.kernel.org/r/20220917082118.7971-1-xiujianfeng@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Xiu Jianfeng 2022-09-17 16:21:18 +08:00 committed by Jakub Kicinski
parent 2801f30e2c
commit 134a464792
2 changed files with 4 additions and 4 deletions

View File

@ -13107,7 +13107,7 @@ static struct hnae3_ae_algo ae_algo = {
.pdev_id_table = ae_algo_pci_tbl,
};
static int hclge_init(void)
static int __init hclge_init(void)
{
pr_info("%s is initializing\n", HCLGE_NAME);
@ -13122,7 +13122,7 @@ static int hclge_init(void)
return 0;
}
static void hclge_exit(void)
static void __exit hclge_exit(void)
{
hnae3_unregister_ae_algo_prepare(&ae_algo);
hnae3_unregister_ae_algo(&ae_algo);

View File

@ -3429,7 +3429,7 @@ static struct hnae3_ae_algo ae_algovf = {
.pdev_id_table = ae_algovf_pci_tbl,
};
static int hclgevf_init(void)
static int __init hclgevf_init(void)
{
pr_info("%s is initializing\n", HCLGEVF_NAME);
@ -3444,7 +3444,7 @@ static int hclgevf_init(void)
return 0;
}
static void hclgevf_exit(void)
static void __exit hclgevf_exit(void)
{
hnae3_unregister_ae_algo(&ae_algovf);
destroy_workqueue(hclgevf_wq);