ipmi: 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> Message-Id: <20220922111924.36044-1-xiujianfeng@huawei.com> Signed-off-by: Corey Minyard <cminyard@mvista.com>
This commit is contained in:
parent
80d98a3300
commit
ec7174f637
|
@ -2100,7 +2100,7 @@ static struct platform_driver ipmi_driver = {
|
|||
.id_table = ssif_plat_ids
|
||||
};
|
||||
|
||||
static int init_ipmi_ssif(void)
|
||||
static int __init init_ipmi_ssif(void)
|
||||
{
|
||||
int i;
|
||||
int rv;
|
||||
|
@ -2142,7 +2142,7 @@ static int init_ipmi_ssif(void)
|
|||
}
|
||||
module_init(init_ipmi_ssif);
|
||||
|
||||
static void cleanup_ipmi_ssif(void)
|
||||
static void __exit cleanup_ipmi_ssif(void)
|
||||
{
|
||||
if (!initialized)
|
||||
return;
|
||||
|
|
|
@ -548,7 +548,7 @@ static struct kcs_bmc_driver kcs_bmc_ipmi_driver = {
|
|||
.ops = &kcs_bmc_ipmi_driver_ops,
|
||||
};
|
||||
|
||||
static int kcs_bmc_ipmi_init(void)
|
||||
static int __init kcs_bmc_ipmi_init(void)
|
||||
{
|
||||
kcs_bmc_register_driver(&kcs_bmc_ipmi_driver);
|
||||
|
||||
|
@ -556,7 +556,7 @@ static int kcs_bmc_ipmi_init(void)
|
|||
}
|
||||
module_init(kcs_bmc_ipmi_init);
|
||||
|
||||
static void kcs_bmc_ipmi_exit(void)
|
||||
static void __exit kcs_bmc_ipmi_exit(void)
|
||||
{
|
||||
kcs_bmc_unregister_driver(&kcs_bmc_ipmi_driver);
|
||||
}
|
||||
|
|
|
@ -140,7 +140,7 @@ static struct kcs_bmc_driver kcs_bmc_serio_driver = {
|
|||
.ops = &kcs_bmc_serio_driver_ops,
|
||||
};
|
||||
|
||||
static int kcs_bmc_serio_init(void)
|
||||
static int __init kcs_bmc_serio_init(void)
|
||||
{
|
||||
kcs_bmc_register_driver(&kcs_bmc_serio_driver);
|
||||
|
||||
|
@ -148,7 +148,7 @@ static int kcs_bmc_serio_init(void)
|
|||
}
|
||||
module_init(kcs_bmc_serio_init);
|
||||
|
||||
static void kcs_bmc_serio_exit(void)
|
||||
static void __exit kcs_bmc_serio_exit(void)
|
||||
{
|
||||
kcs_bmc_unregister_driver(&kcs_bmc_serio_driver);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue