Linux NFS development
 help / color / mirror / Atom feed
* [PATCH] SUNRPC: xdr_get_next_encode_buffer should be declared static
@ 2014-07-12 22:01 Trond Myklebust
  2014-07-15 17:01 ` Christoph Hellwig
  2014-07-16 20:58 ` Bruce Fields
  0 siblings, 2 replies; 6+ messages in thread
From: Trond Myklebust @ 2014-07-12 22:01 UTC (permalink / raw)
  To: Bruce Fields; +Cc: linux-nfs

Quell another sparse warning.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
---
 net/sunrpc/xdr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c
index 23fb4e75e245..290af97bf6f9 100644
--- a/net/sunrpc/xdr.c
+++ b/net/sunrpc/xdr.c
@@ -509,7 +509,8 @@ void xdr_commit_encode(struct xdr_stream *xdr)
 }
 EXPORT_SYMBOL_GPL(xdr_commit_encode);
 
-__be32 *xdr_get_next_encode_buffer(struct xdr_stream *xdr, size_t nbytes)
+static __be32 *xdr_get_next_encode_buffer(struct xdr_stream *xdr,
+		size_t nbytes)
 {
 	static __be32 *p;
 	int space_left;
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-17 18:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-12 22:01 [PATCH] SUNRPC: xdr_get_next_encode_buffer should be declared static Trond Myklebust
2014-07-15 17:01 ` Christoph Hellwig
2014-07-16 20:58 ` Bruce Fields
2014-07-16 21:40   ` Trond Myklebust
2014-07-16 21:44     ` Bruce Fields
2014-07-17 18:41       ` Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox