SUNRPC: xdr_get_next_encode_buffer should be declared static
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 12 Jul 2014 22:01:02 +0000 (18:01 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 18 Jul 2014 15:35:46 +0000 (11:35 -0400)
Quell another sparse warning.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/xdr.c

index 23fb4e75e24546bd7b2394511fec972cec1aa6d6..290af97bf6f94a72eeb291a6324f4b80fc29db1e 100644 (file)
@@ -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;