From: Julia Lawall Date: Wed, 1 Jan 2020 07:43:30 +0000 (+0100) Subject: SUNRPC: constify copied structure X-Git-Tag: v5.6-rc1~29^2~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2bd2c0a55dd36c16b25a8fd93aa1053b576b72c;p=thirdparty%2Flinux.git SUNRPC: constify copied structure The empty_iov structure is only copied into another structure, so make it const. The opportunity for this change was found using Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Anna Schumaker --- diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c index f3104be8ff5dc..e5497dc2475b8 100644 --- a/net/sunrpc/xdr.c +++ b/net/sunrpc/xdr.c @@ -1079,7 +1079,7 @@ void xdr_enter_page(struct xdr_stream *xdr, unsigned int len) } EXPORT_SYMBOL_GPL(xdr_enter_page); -static struct kvec empty_iov = {.iov_base = NULL, .iov_len = 0}; +static const struct kvec empty_iov = {.iov_base = NULL, .iov_len = 0}; void xdr_buf_from_iov(struct kvec *iov, struct xdr_buf *buf)