Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ceph: fix non static symbol warning

Fixes the following sparse warning:

fs/ceph/xattr.c:19:28: warning:
symbol 'ceph_other_xattr_handler' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>

authored by

Wei Yongjun and committed by
Ilya Dryomov
5130ccea 31ca5878

+2 -2
+2 -2
fs/ceph/xattr.c
··· 16 16 static int __remove_xattr(struct ceph_inode_info *ci, 17 17 struct ceph_inode_xattr *xattr); 18 18 19 - const struct xattr_handler ceph_other_xattr_handler; 19 + static const struct xattr_handler ceph_other_xattr_handler; 20 20 21 21 /* 22 22 * List of handlers for synthetic system.* attributes. Other ··· 1086 1086 return __ceph_setxattr(inode, name, value, size, flags); 1087 1087 } 1088 1088 1089 - const struct xattr_handler ceph_other_xattr_handler = { 1089 + static const struct xattr_handler ceph_other_xattr_handler = { 1090 1090 .prefix = "", /* match any name => handlers called with full name */ 1091 1091 .get = ceph_get_xattr_handler, 1092 1092 .set = ceph_set_xattr_handler,