Commit 63b91d5a492ae1cdc1ba0a0a45024718f6d1437f

Authored by Asias He
Committed by Nicholas Bellinger
1 parent fd3a9025c0

target: Add __exit annotation for module_exit functions

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>

Showing 4 changed files with 4 additions and 4 deletions Side-by-side Diff

drivers/target/sbp/sbp_target.c
... ... @@ -2598,7 +2598,7 @@
2598 2598 return 0;
2599 2599 };
2600 2600  
2601   -static void sbp_exit(void)
  2601 +static void __exit sbp_exit(void)
2602 2602 {
2603 2603 sbp_deregister_configfs();
2604 2604 };
drivers/target/target_core_file.c
... ... @@ -631,7 +631,7 @@
631 631 return transport_subsystem_register(&fileio_template);
632 632 }
633 633  
634   -static void fileio_module_exit(void)
  634 +static void __exit fileio_module_exit(void)
635 635 {
636 636 transport_subsystem_release(&fileio_template);
637 637 }
drivers/target/target_core_iblock.c
... ... @@ -821,7 +821,7 @@
821 821 return transport_subsystem_register(&iblock_template);
822 822 }
823 823  
824   -static void iblock_module_exit(void)
  824 +static void __exit iblock_module_exit(void)
825 825 {
826 826 transport_subsystem_release(&iblock_template);
827 827 }
drivers/target/target_core_pscsi.c
... ... @@ -1178,7 +1178,7 @@
1178 1178 return transport_subsystem_register(&pscsi_template);
1179 1179 }
1180 1180  
1181   -static void pscsi_module_exit(void)
  1181 +static void __exit pscsi_module_exit(void)
1182 1182 {
1183 1183 transport_subsystem_release(&pscsi_template);
1184 1184 }