Skip to content

Commit

Permalink
[SCSI] target: Add __init/__exit annotation for target_core_[init,exi…
Browse files Browse the repository at this point in the history
…t]_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>
  • Loading branch information
Axel Lin authored and James Bottomley committed Mar 23, 2011
1 parent 58c3e64 commit 54550fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/target/target_core_configfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3075,7 +3075,7 @@ static struct config_item_type target_core_cit = {

/* Stop functions for struct config_item_type target_core_hba_cit */

static int target_core_init_configfs(void)
static int __init target_core_init_configfs(void)
{
struct config_group *target_cg, *hba_cg = NULL, *alua_cg = NULL;
struct config_group *lu_gp_cg = NULL;
Expand Down Expand Up @@ -3207,7 +3207,7 @@ static int target_core_init_configfs(void)
return -1;
}

static void target_core_exit_configfs(void)
static void __exit target_core_exit_configfs(void)
{
struct configfs_subsystem *subsys;
struct config_group *hba_cg, *alua_cg, *lu_gp_cg;
Expand Down

0 comments on commit 54550fa

Please sign in to comment.