Skip to content

Commit 22cb438

Browse files
trondmypdJ. Bruce Fields
authored andcommitted
SUNRPC: xdr_get_next_encode_buffer should be declared static
Quell another sparse warning. Signed-off-by: Trond Myklebust <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
1 parent 3c45ddf commit 22cb438

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/sunrpc/xdr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,8 @@ void xdr_commit_encode(struct xdr_stream *xdr)
509509
}
510510
EXPORT_SYMBOL_GPL(xdr_commit_encode);
511511

512-
__be32 *xdr_get_next_encode_buffer(struct xdr_stream *xdr, size_t nbytes)
512+
static __be32 *xdr_get_next_encode_buffer(struct xdr_stream *xdr,
513+
size_t nbytes)
513514
{
514515
static __be32 *p;
515516
int space_left;

0 commit comments

Comments
 (0)