Skip to content

Commit

Permalink
net: hns3: add __init/__exit annotations to module init/exit funcs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Xiu Jianfeng authored and Jakub Kicinski committed Sep 22, 2022
1 parent 2801f30 commit 134a464
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
Expand Down

0 comments on commit 134a464

Please sign in to comment.