From: Shraddha Barke <shraddha.6596@gmail.com>
To: <outreachy-kernel@googlegroups.com>
Subject: [PATCH 1/2] Staging: lustre: ptlrpc: Make functions static
Date: Thu, 1 Oct 2015 15:07:57 +0530 [thread overview]
Message-ID: <1443692278-9074-2-git-send-email-shraddha.6596@gmail.com> (raw)
In-Reply-To: <1443692278-9074-1-git-send-email-shraddha.6596@gmail.com>
Since these functions are not called anywhere apart from this particular
file, declare them as static.
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
---
drivers/staging/lustre/lustre/ptlrpc/pack_generic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/lustre/lustre/ptlrpc/pack_generic.c b/drivers/staging/lustre/lustre/ptlrpc/pack_generic.c
index d2fc627..0d32147 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/pack_generic.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/pack_generic.c
@@ -1929,7 +1929,7 @@ void lustre_swab_fid2path(struct getinfo_fid2path *gf)
}
EXPORT_SYMBOL(lustre_swab_fid2path);
-void lustre_swab_fiemap_extent(struct ll_fiemap_extent *fm_extent)
+static void lustre_swab_fiemap_extent(struct ll_fiemap_extent *fm_extent)
{
__swab64s(&fm_extent->fe_logical);
__swab64s(&fm_extent->fe_physical);
@@ -2405,7 +2405,7 @@ void lustre_swab_hsm_state_set(struct hsm_state_set *hss)
}
EXPORT_SYMBOL(lustre_swab_hsm_state_set);
-void lustre_swab_hsm_extent(struct hsm_extent *extent)
+static void lustre_swab_hsm_extent(struct hsm_extent *extent)
{
__swab64s(&extent->offset);
__swab64s(&extent->length);
--
2.1.4
next prev parent reply other threads:[~2015-10-01 9:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-01 9:37 [PATCH 0/2] Declare functions and structures as static Shraddha Barke
2015-10-01 9:37 ` Shraddha Barke [this message]
2015-10-01 10:03 ` [Outreachy kernel] [PATCH 1/2] Staging: lustre: ptlrpc: Make functions static Arnd Bergmann
2015-10-01 10:05 ` Shraddha Barke
2015-10-01 13:20 ` Julia Lawall
2015-10-01 13:34 ` Shraddha Barke
2015-10-01 13:37 ` Arnd Bergmann
2015-10-01 13:49 ` Julia Lawall
2015-10-01 13:57 ` Arnd Bergmann
2015-10-01 14:12 ` Julia Lawall
2015-10-01 20:53 ` Arnd Bergmann
2015-10-01 21:21 ` Julia Lawall
2015-10-01 11:54 ` Sudip Mukherjee
2015-10-01 9:37 ` [PATCH 2/2] Staging: lustre: obdclass: Declare structure as static Shraddha Barke
2015-10-01 9:54 ` [Outreachy kernel] " Arnd Bergmann
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=1443692278-9074-2-git-send-email-shraddha.6596@gmail.com \
--to=shraddha.6596@gmail.com \
--cc=outreachy-kernel@googlegroups.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.