aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/tcm_fc
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2013-12-18 13:35:59 -0500
committerNicholas Bellinger <nab@linux-iscsi.org>2014-01-10 00:48:37 -0500
commit594c42e9bd9f70a41bf79236db985ba940d28eb8 (patch)
tree19956c4fbb102e42987c50f8dd302fdc422c793e /drivers/target/tcm_fc
parentf0a6c693695ab305b16c89f6313061f20ca5e240 (diff)
drivers: target: Mark functions and structures as static in tfc_conf.c
Mark functions ft_tpg_alloc_fabric_acl(), ft_register_configfs() and ft_deregister_configfs() as static in tcm_fc/tfc_conf.c because they are not used outside this file. This eliminates the following warnings in tcm_fc/tfc_conf.c: drivers/target/tcm_fc/tfc_conf.c:270:21: warning: no previous prototype for ‘ft_tpg_alloc_fabric_acl’ [-Wmissing-prototypes] drivers/target/tcm_fc/tfc_conf.c:555:5: warning: no previous prototype for ‘ft_register_configfs’ [-Wmissing-prototypes] drivers/target/tcm_fc/tfc_conf.c:602:6: warning: no previous prototype for ‘ft_deregister_configfs’ [-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>
Diffstat (limited to 'drivers/target/tcm_fc')
-rw-r--r--drivers/target/tcm_fc/tfc_conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/target/tcm_fc/tfc_conf.c b/drivers/target/tcm_fc/tfc_conf.c
index c6932fb53a8d..e879da81ad93 100644
--- a/drivers/target/tcm_fc/tfc_conf.c
+++ b/drivers/target/tcm_fc/tfc_conf.c
@@ -267,7 +267,7 @@ struct ft_node_acl *ft_acl_get(struct ft_tpg *tpg, struct fc_rport_priv *rdata)
267 return found; 267 return found;
268} 268}
269 269
270struct se_node_acl *ft_tpg_alloc_fabric_acl(struct se_portal_group *se_tpg) 270static struct se_node_acl *ft_tpg_alloc_fabric_acl(struct se_portal_group *se_tpg)
271{ 271{
272 struct ft_node_acl *acl; 272 struct ft_node_acl *acl;
273 273
@@ -552,7 +552,7 @@ static struct target_core_fabric_ops ft_fabric_ops = {
552 .fabric_drop_nodeacl = &ft_del_acl, 552 .fabric_drop_nodeacl = &ft_del_acl,
553}; 553};
554 554
555int ft_register_configfs(void) 555static int ft_register_configfs(void)
556{ 556{
557 struct target_fabric_configfs *fabric; 557 struct target_fabric_configfs *fabric;
558 int ret; 558 int ret;
@@ -599,7 +599,7 @@ int ft_register_configfs(void)
599 return 0; 599 return 0;
600} 600}
601 601
602void ft_deregister_configfs(void) 602static void ft_deregister_configfs(void)
603{ 603{
604 if (!ft_configfs) 604 if (!ft_configfs)
605 return; 605 return;