aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-02-19 13:25:56 -0500
committerAlex Elder <elder@inktank.com>2013-02-25 16:37:14 -0500
commit2c3dd4ff595e604cd4c4c51cff7a208f23148c2d (patch)
tree1939c63d31082d3d33402657276fffd2d022a847
parentcc344fa1b541b116190291d366583585f03d0fe6 (diff)
ceph: eliminate sparse warnings in fs code
Fix the causes for sparse warnings reported in the ceph file system code. Here there are only two (and they're sort of silly but they're easy to fix). This partially resolves: http://tracker.ceph.com/issues/4184 Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
-rw-r--r--fs/ceph/xattr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c
index 2135817e708d..9b6b2b6dd164 100644
--- a/fs/ceph/xattr.c
+++ b/fs/ceph/xattr.c
@@ -213,7 +213,7 @@ static struct ceph_vxattr ceph_dir_vxattrs[] = {
213 XATTR_NAME_CEPH(dir, rsubdirs), 213 XATTR_NAME_CEPH(dir, rsubdirs),
214 XATTR_NAME_CEPH(dir, rbytes), 214 XATTR_NAME_CEPH(dir, rbytes),
215 XATTR_NAME_CEPH(dir, rctime), 215 XATTR_NAME_CEPH(dir, rctime),
216 { 0 } /* Required table terminator */ 216 { .name = NULL, 0 } /* Required table terminator */
217}; 217};
218static size_t ceph_dir_vxattrs_name_size; /* total size of all names */ 218static size_t ceph_dir_vxattrs_name_size; /* total size of all names */
219 219
@@ -232,7 +232,7 @@ static struct ceph_vxattr ceph_file_vxattrs[] = {
232 XATTR_LAYOUT_FIELD(file, layout, stripe_count), 232 XATTR_LAYOUT_FIELD(file, layout, stripe_count),
233 XATTR_LAYOUT_FIELD(file, layout, object_size), 233 XATTR_LAYOUT_FIELD(file, layout, object_size),
234 XATTR_LAYOUT_FIELD(file, layout, pool), 234 XATTR_LAYOUT_FIELD(file, layout, pool),
235 { 0 } /* Required table terminator */ 235 { .name = NULL, 0 } /* Required table terminator */
236}; 236};
237static size_t ceph_file_vxattrs_name_size; /* total size of all names */ 237static size_t ceph_file_vxattrs_name_size; /* total size of all names */
238 238