From 3c9d681a5fdd58343eb4b55ee6c9ca44ac3af326 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 5 Apr 2019 01:03:28 +0000 Subject: [PATCH] qla2x00t-32gbit, target: Move variable declarations into a header file git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8151 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t-32gbit/qla2x00-target/qla_tgt.c | 4 ---- qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c | 1 - qla2x00t-32gbit/qla_target.h | 3 +++ 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/qla2x00t-32gbit/qla2x00-target/qla_tgt.c b/qla2x00t-32gbit/qla2x00-target/qla_tgt.c index a6b010830..0dd5b619b 100644 --- a/qla2x00t-32gbit/qla2x00-target/qla_tgt.c +++ b/qla2x00t-32gbit/qla2x00-target/qla_tgt.c @@ -45,10 +45,6 @@ #include "qla_def.h" #include "scst_qla2xxx.h" -extern struct mutex qla_tgt_mutex; -extern struct list_head qla_tgt_glist; - - size_t qlt_add_vtarget(u64 port_name, u64 node_name, u64 parent_host) { struct Scsi_Host *shost = NULL; diff --git a/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c b/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c index 964d3673c..76233876e 100644 --- a/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c +++ b/qla2x00t-32gbit/qla2x00-target/scst_qla2xxx.c @@ -1528,7 +1528,6 @@ static int sqa_init_scst_tgt(struct scsi_qla_host *vha) return res; } -extern struct list_head qla_tgt_glist; static void sqa_get_target_list(void) { struct qla_tgt *tgt; diff --git a/qla2x00t-32gbit/qla_target.h b/qla2x00t-32gbit/qla_target.h index 874e4b24f..55d056e03 100644 --- a/qla2x00t-32gbit/qla_target.h +++ b/qla2x00t-32gbit/qla_target.h @@ -1043,6 +1043,9 @@ struct qla_tgt_prm { extern struct qla_tgt_data qla_target; +extern struct mutex qla_tgt_mutex; +extern struct list_head qla_tgt_glist; + /* * Function prototypes for qla_target.c logic used by qla2xxx LLD code.