aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2013-12-18 13:32:54 -0500
committerNicholas Bellinger <nab@linux-iscsi.org>2014-01-10 00:48:37 -0500
commitf0a6c693695ab305b16c89f6313061f20ca5e240 (patch)
tree571619d4c5527e718f1d921ee5cd0cf3c0759d69
parent452e20106c422dbbb439bbae69166532dc0eb816 (diff)
drivers: target: Mark functions as static in tcm_loop.c
Mark functions tcm_loop_make_naa_tpg(), tcm_loop_drop_naa_tpg(), tcm_loop_make_scsi_hba() and tcm_loop_drop_scsi_hba() as static in loopback/tcm_loop.c because they are not used outside this file. This eliminates the following warning in loopback/tcm_loop.c: drivers/target/loopback/tcm_loop.c:1231:25: warning: no previous prototype for ‘tcm_loop_make_naa_tpg’ [-Wmissing-prototypes] drivers/target/loopback/tcm_loop.c:1276:6: warning: no previous prototype for ‘tcm_loop_drop_naa_tpg’ [-Wmissing-prototypes] drivers/target/loopback/tcm_loop.c:1308:16: warning: no previous prototype for ‘tcm_loop_make_scsi_hba’ [-Wmissing-prototypes] drivers/target/loopback/tcm_loop.c:1378:6: warning: no previous prototype for ‘tcm_loop_drop_scsi_hba’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
-rw-r--r--drivers/target/loopback/tcm_loop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c
index 1b41e6776152..763ee450f71b 100644
--- a/drivers/target/loopback/tcm_loop.c
+++ b/drivers/target/loopback/tcm_loop.c
@@ -1228,7 +1228,7 @@ static struct configfs_attribute *tcm_loop_tpg_attrs[] = {
1228 1228
1229/* Start items for tcm_loop_naa_cit */ 1229/* Start items for tcm_loop_naa_cit */
1230 1230
1231struct se_portal_group *tcm_loop_make_naa_tpg( 1231static struct se_portal_group *tcm_loop_make_naa_tpg(
1232 struct se_wwn *wwn, 1232 struct se_wwn *wwn,
1233 struct config_group *group, 1233 struct config_group *group,
1234 const char *name) 1234 const char *name)
@@ -1273,7 +1273,7 @@ struct se_portal_group *tcm_loop_make_naa_tpg(
1273 return &tl_tpg->tl_se_tpg; 1273 return &tl_tpg->tl_se_tpg;
1274} 1274}
1275 1275
1276void tcm_loop_drop_naa_tpg( 1276static void tcm_loop_drop_naa_tpg(
1277 struct se_portal_group *se_tpg) 1277 struct se_portal_group *se_tpg)
1278{ 1278{
1279 struct se_wwn *wwn = se_tpg->se_tpg_wwn; 1279 struct se_wwn *wwn = se_tpg->se_tpg_wwn;
@@ -1305,7 +1305,7 @@ void tcm_loop_drop_naa_tpg(
1305 1305
1306/* Start items for tcm_loop_cit */ 1306/* Start items for tcm_loop_cit */
1307 1307
1308struct se_wwn *tcm_loop_make_scsi_hba( 1308static struct se_wwn *tcm_loop_make_scsi_hba(
1309 struct target_fabric_configfs *tf, 1309 struct target_fabric_configfs *tf,
1310 struct config_group *group, 1310 struct config_group *group,
1311 const char *name) 1311 const char *name)
@@ -1375,7 +1375,7 @@ out:
1375 return ERR_PTR(ret); 1375 return ERR_PTR(ret);
1376} 1376}
1377 1377
1378void tcm_loop_drop_scsi_hba( 1378static void tcm_loop_drop_scsi_hba(
1379 struct se_wwn *wwn) 1379 struct se_wwn *wwn)
1380{ 1380{
1381 struct tcm_loop_hba *tl_hba = container_of(wwn, 1381 struct tcm_loop_hba *tl_hba = container_of(wwn,