net: hns3: add __init/__exit annotations to module init/exit funcs
authorXiu Jianfeng <xiujianfeng@huawei.com>
Sat, 17 Sep 2022 08:21:18 +0000 (16:21 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Sep 2022 01:22:18 +0000 (18:22 -0700)
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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c

index 7b25d8f..6962a9d 100644 (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);
index 34ac337..db6f7cd 100644 (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);