summaryrefslogtreecommitdiffstats
path: root/drivers/target/tcm_fc
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2014-04-05 01:54:11 +0200
committerNicholas Bellinger <nab@linux-iscsi.org>2014-04-12 00:30:50 +0200
commitb295e76900223e4b8e350d02f7b6801fe126d8d2 (patch)
treef010baa4febeba61e59fbbb498b30df8cd63a80b /drivers/target/tcm_fc
parenttarget/tcm_fc: Fix use-after-free of ft_tpg (diff)
downloadlinux-b295e76900223e4b8e350d02f7b6801fe126d8d2.tar.xz
linux-b295e76900223e4b8e350d02f7b6801fe126d8d2.zip
target/tcm_fc: Don't export ft_lport_list
Nobody outside tfc_conf.c uses it. Signed-off-by: Andy Grover <agrover@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/tcm_fc')
-rw-r--r--drivers/target/tcm_fc/tcm_fc.h1
-rw-r--r--drivers/target/tcm_fc/tfc_conf.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/target/tcm_fc/tcm_fc.h b/drivers/target/tcm_fc/tcm_fc.h
index 4f4b97161228..aba6861c362b 100644
--- a/drivers/target/tcm_fc/tcm_fc.h
+++ b/drivers/target/tcm_fc/tcm_fc.h
@@ -128,7 +128,6 @@ struct ft_cmd {
u32 sg_cnt; /* No. of item in scatterlist */
};
-extern struct list_head ft_lport_list;
extern struct mutex ft_lport_lock;
extern struct fc4_prov ft_prov;
extern struct target_fabric_configfs *ft_configfs;
diff --git a/drivers/target/tcm_fc/tfc_conf.c b/drivers/target/tcm_fc/tfc_conf.c
index b8b5a719a784..9c2da1ff886a 100644
--- a/drivers/target/tcm_fc/tfc_conf.c
+++ b/drivers/target/tcm_fc/tfc_conf.c
@@ -50,7 +50,7 @@
struct target_fabric_configfs *ft_configfs;
-LIST_HEAD(ft_lport_list);
+static LIST_HEAD(ft_lport_list);
DEFINE_MUTEX(ft_lport_lock);
unsigned int ft_debug_logging;