Commit 134a4647 authored by Xiu Jianfeng's avatar Xiu Jianfeng Committed by Jakub Kicinski

net: hns3: add __init/__exit annotations to module init/exit funcs

Add missing __init/__exit annotations to module init/exit funcs.
Signed-off-by: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Link: https://lore.kernel.org/r/20220917082118.7971-1-xiujianfeng@huawei.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 2801f30e
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment