aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-03-14 07:06:09 -0400
committerJames Bottomley <James.Bottomley@suse.de>2011-03-23 12:36:49 -0400
commit54550fabfecdb71e0deb51999cca7d28bb4299ed (patch)
tree83ccd42c4cdc4ea7a0089f77a7752dcabd07ba07
parent58c3e6477f3840df7d9b346627420bc7b246cdc8 (diff)
[SCSI] target: Add __init/__exit annotation for target_core_[init,exit]_configfs
This patch fixes the follownig section mismatch warning: WARNING: vmlinux.o(.text+0x21617a): Section mismatch in reference from the function target_core_init_configfs() to the function .init.text:rd_module_init() The function target_core_init_configfs() references the function __init rd_module_init(). This is often because target_core_init_configfs() lacks a __init annotation or the annotation of rd_module_init is wrong. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
-rw-r--r--drivers/target/target_core_configfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c
index 9721ef28335..a38fec4acce 100644
--- a/drivers/target/target_core_configfs.c
+++ b/drivers/target/target_core_configfs.c
@@ -3075,7 +3075,7 @@ static struct config_item_type target_core_cit = {
3075 3075
3076/* Stop functions for struct config_item_type target_core_hba_cit */ 3076/* Stop functions for struct config_item_type target_core_hba_cit */
3077 3077
3078static int target_core_init_configfs(void) 3078static int __init target_core_init_configfs(void)
3079{ 3079{
3080 struct config_group *target_cg, *hba_cg = NULL, *alua_cg = NULL; 3080 struct config_group *target_cg, *hba_cg = NULL, *alua_cg = NULL;
3081 struct config_group *lu_gp_cg = NULL; 3081 struct config_group *lu_gp_cg = NULL;
@@ -3207,7 +3207,7 @@ out_global:
3207 return -1; 3207 return -1;
3208} 3208}
3209 3209
3210static void target_core_exit_configfs(void) 3210static void __exit target_core_exit_configfs(void)
3211{ 3211{
3212 struct configfs_subsystem *subsys; 3212 struct configfs_subsystem *subsys;
3213 struct config_group *hba_cg, *alua_cg, *lu_gp_cg; 3213 struct config_group *hba_cg, *alua_cg, *lu_gp_cg;