mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
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:
parent
2801f30e2c
commit
134a464792
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user