From mboxrd@z Thu Jan 1 00:00:00 1970 From: josh@joshtriplett.org Subject: Re: [PATCH 1/4] drivers: target: Move prototype declaration of function to header file target_core_pr.h Date: Wed, 18 Dec 2013 10:37:41 -0800 Message-ID: <20131218183741.GA24229@cloud> References: <1a63603bc5ff05147c419a301d59b135cd0c8406.1387390091.git.rashika.kheria@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <1a63603bc5ff05147c419a301d59b135cd0c8406.1387390091.git.rashika.kheria@gmail.com> Sender: target-devel-owner@vger.kernel.org To: Rashika Kheria Cc: linux-kernel@vger.kernel.org, "Nicholas A. Bellinger" , linux-scsi@vger.kernel.org, target-devel@vger.kernel.org List-Id: linux-scsi@vger.kernel.org On Wed, Dec 18, 2013 at 11:54:32PM +0530, Rashika Kheria wrote: > Move prototype declaration of function > spc_parse_naa_6h_vendor_specific() from target_core_xcopy.c to header > file target_core_pr.h because it is used by more than one file. >=20 > This eliminates the following warning in target_core_spc.c: > drivers/target/target_core_spc.c:138:6: warning: no previous prototyp= e for =E2=80=98spc_parse_naa_6h_vendor_specific=E2=80=99 [-Wmissing-pro= totypes] >=20 > Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett > drivers/target/target_core_pr.h | 5 +++++ > drivers/target/target_core_xcopy.c | 4 ---- > 2 files changed, 5 insertions(+), 4 deletions(-) >=20 > diff --git a/drivers/target/target_core_pr.h b/drivers/target/target_= core_pr.h > index ed75cdd..2ee2936 100644 > --- a/drivers/target/target_core_pr.h > +++ b/drivers/target/target_core_pr.h > @@ -43,6 +43,11 @@ > #define PR_APTPL_MAX_IPORT_LEN 256 > #define PR_APTPL_MAX_TPORT_LEN 256 > =20 > +/* > + * Function defined in target_core_spc.c > + */ > +void spc_parse_naa_6h_vendor_specific(struct se_device *, unsigned c= har *); > + > extern struct kmem_cache *t10_pr_reg_cache; > =20 > extern void core_pr_dump_initiator_port(struct t10_pr_registration *= , > diff --git a/drivers/target/target_core_xcopy.c b/drivers/target/targ= et_core_xcopy.c > index 6b88a99..669c536 100644 > --- a/drivers/target/target_core_xcopy.c > +++ b/drivers/target/target_core_xcopy.c > @@ -40,10 +40,6 @@ > =20 > static struct workqueue_struct *xcopy_wq =3D NULL; > /* > - * From target_core_spc.c > - */ > -extern void spc_parse_naa_6h_vendor_specific(struct se_device *, uns= igned char *); > -/* > * From target_core_device.c > */ > extern struct mutex g_device_mutex; > --=20 > 1.7.9.5 >=20