Skip to content

Commit

Permalink
target: Add __exit annotation for module_exit functions
Browse files Browse the repository at this point in the history
Inclues sbp_exit, fileio_module_exit, iblock_module_exit and
pscsi_module_exit.

Note: rd_module_exit() can not be annotated by __exit, becasue it is
called by target_core_init_configfs() which is annotated by __init.

Signed-off-by: Asias He <asias@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
  • Loading branch information
Asias He authored and Nicholas Bellinger committed Feb 28, 2013
1 parent fd3a902 commit 63b91d5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/target/sbp/sbp_target.c
Original file line number Diff line number Diff line change
Expand Up @@ -2598,7 +2598,7 @@ static int __init sbp_init(void)
return 0;
};

static void sbp_exit(void)
static void __exit sbp_exit(void)
{
sbp_deregister_configfs();
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/target/target_core_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ static int __init fileio_module_init(void)
return transport_subsystem_register(&fileio_template);
}

static void fileio_module_exit(void)
static void __exit fileio_module_exit(void)
{
transport_subsystem_release(&fileio_template);
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/target/target_core_iblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ static int __init iblock_module_init(void)
return transport_subsystem_register(&iblock_template);
}

static void iblock_module_exit(void)
static void __exit iblock_module_exit(void)
{
transport_subsystem_release(&iblock_template);
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/target/target_core_pscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ static int __init pscsi_module_init(void)
return transport_subsystem_register(&pscsi_template);
}

static void pscsi_module_exit(void)
static void __exit pscsi_module_exit(void)
{
transport_subsystem_release(&pscsi_template);
}
Expand Down

0 comments on commit 63b91d5

Please sign in to comment.