From mboxrd@z Thu Jan 1 00:00:00 1970 From: josh@joshtriplett.org Subject: Re: [PATCH 4/4] drivers: target: Mark functions and structures as static in tfc_conf.c Date: Wed, 18 Dec 2013 10:40:36 -0800 Message-ID: <20131218184036.GE24229@cloud> References: <1a63603bc5ff05147c419a301d59b135cd0c8406.1387390091.git.rashika.kheria@gmail.com> <94a49e2b29220b2a3fb93449a7b2c96fb6ea4667.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: <94a49e2b29220b2a3fb93449a7b2c96fb6ea4667.1387390091.git.rashika.kheria@gmail.com> Sender: linux-kernel-owner@vger.kernel.org To: Rashika Kheria Cc: linux-kernel@vger.kernel.org, "Nicholas A. Bellinger" , Jingoo Han , Andy Grover , Christoph Hellwig , linux-scsi@vger.kernel.org, target-devel@vger.kernel.org List-Id: linux-scsi@vger.kernel.org On Thu, Dec 19, 2013 at 12:05:59AM +0530, Rashika Kheria wrote: > 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. >=20 > This eliminates the following warnings in tcm_fc/tfc_conf.c: > drivers/target/tcm_fc/tfc_conf.c:270:21: warning: no previous prototy= pe for =E2=80=98ft_tpg_alloc_fabric_acl=E2=80=99 [-Wmissing-prototypes] > drivers/target/tcm_fc/tfc_conf.c:555:5: warning: no previous prototyp= e for =E2=80=98ft_register_configfs=E2=80=99 [-Wmissing-prototypes] > drivers/target/tcm_fc/tfc_conf.c:602:6: warning: no previous prototyp= e for =E2=80=98ft_deregister_configfs=E2=80=99 [-Wmissing-prototypes] >=20 > Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett > drivers/target/tcm_fc/tfc_conf.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/drivers/target/tcm_fc/tfc_conf.c b/drivers/target/tcm_fc= /tfc_conf.c > index c6932fb..e879da8 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) > return found; > } > =20 > -struct se_node_acl *ft_tpg_alloc_fabric_acl(struct se_portal_group *= se_tpg) > +static struct se_node_acl *ft_tpg_alloc_fabric_acl(struct se_portal_= group *se_tpg) > { > struct ft_node_acl *acl; > =20 > @@ -552,7 +552,7 @@ static struct target_core_fabric_ops ft_fabric_op= s =3D { > .fabric_drop_nodeacl =3D &ft_del_acl, > }; > =20 > -int ft_register_configfs(void) > +static int ft_register_configfs(void) > { > struct target_fabric_configfs *fabric; > int ret; > @@ -599,7 +599,7 @@ int ft_register_configfs(void) > return 0; > } > =20 > -void ft_deregister_configfs(void) > +static void ft_deregister_configfs(void) > { > if (!ft_configfs) > return; > --=20 > 1.7.9.5 >=20