tree: https://github.com/ceph/ceph-client.git wip-fs-filelayout2 head: f3d10f2b8cb86727e6a25e2817818cdb91ce7b49 commit: 1dcfb90ff006e0bb9311a3f13afbffd442125155 [2/6] libceph: introduce pool namespace cache reproduce: # apt-get install sparse git checkout 1dcfb90ff006e0bb9311a3f13afbffd442125155 make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) include/linux/compiler.h:228:8: sparse: attribute 'no_sanitize_address': unknown attribute >> net/ceph/pool_ns.c:112:14: sparse: incompatible types in comparison expression (different address spaces) vim +112 net/ceph/pool_ns.c 96 97 spin_lock(&pool_ns_lock); 98 if (!RB_EMPTY_NODE(&ns->node)) { 99 rb_erase(&ns->node, &pool_ns_tree); 100 RB_CLEAR_NODE(&ns->node); 101 } 102 spin_unlock(&pool_ns_lock); 103 104 call_rcu(&ns->rcu, ceph_free_pool_ns); 105 } 106 EXPORT_SYMBOL(ceph_release_pool_ns); 107 108 struct ceph_pool_ns *ceph_try_get_pool_ns(struct ceph_pool_ns **pns) 109 { 110 struct ceph_pool_ns *ns; 111 rcu_read_lock(); > 112 ns = rcu_dereference(*pns); 113 if (ns && !kref_get_unless_zero(&ns->kref)) 114 ns = NULL; 115 rcu_read_unlock(); 116 return ns; 117 } 118 EXPORT_SYMBOL(ceph_try_get_pool_ns); 119 120 void ceph_pool_ns_cleanup(void) --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html