From: josh@joshtriplett.org
To: Rashika Kheria <rashika.kheria@gmail.com>
Cc: linux-kernel@vger.kernel.org,
"Nicholas A. Bellinger" <nab@linux-iscsi.org>,
Jingoo Han <jg1.han@samsung.com>,
Andy Grover <agrover@redhat.com>, Christoph Hellwig <hch@lst.de>,
linux-scsi@vger.kernel.org, target-devel@vger.kernel.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 [thread overview]
Message-ID: <20131218184036.GE24229@cloud> (raw)
In-Reply-To: <94a49e2b29220b2a3fb93449a7b2c96fb6ea4667.1387390091.git.rashika.kheria@gmail.com>
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.
>
> 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>
> drivers/target/tcm_fc/tfc_conf.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> 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;
> }
>
> -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;
>
> @@ -552,7 +552,7 @@ static struct target_core_fabric_ops ft_fabric_ops = {
> .fabric_drop_nodeacl = &ft_del_acl,
> };
>
> -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;
> }
>
> -void ft_deregister_configfs(void)
> +static void ft_deregister_configfs(void)
> {
> if (!ft_configfs)
> return;
> --
> 1.7.9.5
>
next prev parent reply other threads:[~2013-12-18 18:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-18 18:24 [PATCH 1/4] drivers: target: Move prototype declaration of function to header file target_core_pr.h Rashika Kheria
2013-12-18 18:26 ` [PATCH 2/4] drivers: target: Mark function as static in target_core_iblock.c Rashika Kheria
2013-12-18 18:38 ` josh
2013-12-19 0:11 ` Nicholas A. Bellinger
2013-12-18 18:32 ` [PATCH 3/4] drivers: target: Mark functions as static in tcm_loop.c Rashika Kheria
2013-12-18 18:39 ` josh
2013-12-19 0:11 ` Nicholas A. Bellinger
2013-12-18 18:35 ` [PATCH 4/4] drivers: target: Mark functions and structures as static in tfc_conf.c Rashika Kheria
2013-12-18 18:40 ` josh [this message]
2013-12-19 0:12 ` Nicholas A. Bellinger
2013-12-18 18:37 ` [PATCH 1/4] drivers: target: Move prototype declaration of function to header file target_core_pr.h josh
2013-12-19 0:11 ` Nicholas A. Bellinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131218184036.GE24229@cloud \
--to=josh@joshtriplett.org \
--cc=agrover@redhat.com \
--cc=hch@lst.de \
--cc=jg1.han@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=nab@linux-iscsi.org \
--cc=rashika.kheria@gmail.com \
--cc=target-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox