summaryrefslogtreecommitdiff
path: root/fs/ceph/addr.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2021-05-14 09:39:53 +0300
committerIlya Dryomov <idryomov@gmail.com>2021-06-29 00:49:24 +0300
commit675d4d8997ac1891aa143a049b10ce0f4d4a2117 (patch)
tree582e99e6be24d6c9adabc52494599ace5fa84e4b /fs/ceph/addr.c
parent22d41cdcd3cfd467a4af074165357fcbea1c37f5 (diff)
downloadlinux-675d4d8997ac1891aa143a049b10ce0f4d4a2117.tar.xz
ceph: make ceph_netfs_read_ops static
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 mark it static. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/addr.c')
-rw-r--r--fs/ceph/addr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index 998dc4dfdc6b..9c17b3a30880 100644
--- a/fs/ceph/addr.c
+++ b/fs/ceph/addr.c
@@ -305,7 +305,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,