Re: [PATCH -next] ceph: make symbol 'ceph_netfs_read_ops' static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 14, 2021 at 8:30 AM Wei Yongjun <weiyongjun1@xxxxxxxxxx> wrote:
>
> The sparse tool complains as follows:
>
> fs/ceph/addr.c:316:37: warning:
>  symbol 'ceph_netfs_read_ops' was not declared. Should it be static?
>
> This symbol is not used outside of addr.c, so marks it static.
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: Wei Yongjun <weiyongjun1@xxxxxxxxxx>
> ---
>  fs/ceph/addr.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
> index c1570fada3d8..5dfd18d84a3b 100644
> --- a/fs/ceph/addr.c
> +++ b/fs/ceph/addr.c
> @@ -313,7 +313,7 @@ static void ceph_readahead_cleanup(struct address_space *mapping, void *priv)
>                 ceph_put_cap_refs(ci, got);
>  }
>
> -const struct netfs_read_request_ops ceph_netfs_read_ops = {
> +static const struct netfs_read_request_ops ceph_netfs_read_ops = {
>         .init_rreq              = ceph_init_rreq,
>         .is_cache_enabled       = ceph_is_cache_enabled,
>         .begin_cache_operation  = ceph_begin_cache_operation,
>

Applied.

Thanks,

                Ilya



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Ceph Dev]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux