aboutsummaryrefslogtreecommitdiffstats
path: root/net/9p
diff options
context:
space:
mode:
authorRashika <rashika.kheria@gmail.com>2014-02-09 19:57:33 +0530
committerEric Van Hensbergen <ericvh@gmail.com>2014-03-25 16:38:09 -0500
commit05a782d416944593ca0268d5718fe4b9cba5ef67 (patch)
treec010e680ddeba9d74488c4ce87422135020b1905 /net/9p
parent9P: Add memory barriers to protect request fields over cb/rpc threads handoff (diff)
downloadlinux-dev-05a782d416944593ca0268d5718fe4b9cba5ef67.tar.xz
linux-dev-05a782d416944593ca0268d5718fe4b9cba5ef67.zip
net: Mark function as static in 9p/client.c
Mark function as static in net/9p/client.c because it is not used outside this file. This eliminates the following warning in net/9p/client.c: net/9p/client.c:207:18: warning: no previous prototype for ‘p9_fcall_alloc’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net/9p')
-rw-r--r--net/9p/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/9p/client.c b/net/9p/client.c
index 95b1836173e1..ce26da95f63f 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -204,7 +204,7 @@ free_and_return:
return ret;
}
-struct p9_fcall *p9_fcall_alloc(int alloc_msize)
+static struct p9_fcall *p9_fcall_alloc(int alloc_msize)
{
struct p9_fcall *fc;
fc = kmalloc(sizeof(struct p9_fcall) + alloc_msize, GFP_NOFS);