[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1503672536.4722.20.camel@redhat.com>
Date: Fri, 25 Aug 2017 10:48:56 -0400
From: Jeff Layton <jlayton@...hat.com>
To: Bhumika Goyal <bhumirks@...il.com>, julia.lawall@...6.fr,
marcel@...tmann.org, gustavo@...ovan.org, johan.hedberg@...il.com,
davem@...emloft.net, pablo@...filter.org, kadlec@...ckhole.kfki.hu,
fw@...len.de, stephen@...workplumber.org, alex.aring@...il.com,
stefan@....samsung.com, kuznet@....inr.ac.ru,
yoshfuji@...ux-ipv6.org, santosh.shilimkar@...cle.com,
trond.myklebust@...marydata.com, anna.schumaker@...app.com,
bfields@...ldses.org, linux-bluetooth@...r.kernel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
netfilter-devel@...r.kernel.org, coreteam@...filter.org,
bridge@...ts.linux-foundation.org, linux-wpan@...r.kernel.org,
linux-rdma@...r.kernel.org, rds-devel@....oracle.com,
linux-nfs@...r.kernel.org
Subject: Re: [PATCH 7/7] SUNRPC: make kvec const
On Fri, 2017-08-25 at 19:51 +0530, Bhumika Goyal wrote:
> Make this const as it is only used during a copy operation.
>
> Signed-off-by: Bhumika Goyal <bhumirks@...il.com>
> ---
> net/sunrpc/xdr.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c
> index e34f4ee..a096025 100644
> --- a/net/sunrpc/xdr.c
> +++ b/net/sunrpc/xdr.c
> @@ -998,7 +998,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)
Reviewed-by: Jeff Layton <jlayton@...hat.com>
Powered by blists - more mailing lists