summaryrefslogtreecommitdiffstats
path: root/xlators/features/gfid-access/src
diff options
context:
space:
mode:
authorXavi Hernandez <xhernandez@redhat.com>2018-09-25 13:22:47 +0200
committerAmar Tumballi <amarts@redhat.com>2018-10-10 05:50:29 +0000
commit2d96ce8faa277809c0c94aca54320483889f577d (patch)
tree999ef8b148b186e6bf74bb22c3ff670fc6e34d38 /xlators/features/gfid-access/src
parent0cda00f08d3d620be89830bad9d0e252648388e9 (diff)
all: fix warnings on non 64-bits architectures
When compiling in other architectures there appear many warnings. Some of them are actual problems that prevent gluster to work correctly on those architectures. Change-Id: Icdc7107a2bc2da662903c51910beddb84bdf03c0 fixes: bz#1632717 Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
Diffstat (limited to 'xlators/features/gfid-access/src')
-rw-r--r--xlators/features/gfid-access/src/gfid-access.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/xlators/features/gfid-access/src/gfid-access.c b/xlators/features/gfid-access/src/gfid-access.c
index 3d5008666f6..68768eebf4e 100644
--- a/xlators/features/gfid-access/src/gfid-access.c
+++ b/xlators/features/gfid-access/src/gfid-access.c
@@ -35,7 +35,7 @@ ga_valid_inode_loc_copy(loc_t *dst, loc_t *src, xlator_t *this)
goto out;
}
inode_unref(dst->parent);
- dst->parent = inode_ref((inode_t *)value);
+ dst->parent = inode_ref((inode_t *)(uintptr_t)value);
gf_uuid_copy(dst->pargfid, dst->parent->gfid);
}
@@ -46,7 +46,7 @@ ga_valid_inode_loc_copy(loc_t *dst, loc_t *src, xlator_t *this)
goto out;
}
inode_unref(dst->inode);
- dst->inode = inode_ref((inode_t *)value);
+ dst->inode = inode_ref((inode_t *)(uintptr_t)value);
gf_uuid_copy(dst->gfid, dst->inode->gfid);
}
out:
@@ -284,7 +284,7 @@ ga_fill_tmp_loc(loc_t *loc, xlator_t *this, uuid_t gfid, char *bname,
parent = loc->inode;
ret = inode_ctx_get(loc->inode, this, &value);
if (!ret) {
- parent = (void *)value;
+ parent = (void *)(uintptr_t)value;
if (gf_uuid_is_null(parent->gfid))
parent = loc->inode;
}
@@ -349,7 +349,7 @@ ga_forget(xlator_t *this, inode_t *inode)
if (ret)
goto out;
- tmp_inode = (void *)value;
+ tmp_inode = (void *)(uintptr_t)value;
inode_unref(tmp_inode);
out:
@@ -685,7 +685,7 @@ ga_virtual_lookup_cbk(call_frame_t *frame, void *cookie, xlator_t *this,
inode = true_inode;
}
- ret = inode_ctx_put(cbk_inode, this, (uint64_t)inode);
+ ret = inode_ctx_put(cbk_inode, this, (uint64_t)(uintptr_t)inode);
if (ret) {
gf_log(this->name, GF_LOG_WARNING,
"failed to set the inode ctx with"
@@ -830,7 +830,7 @@ ga_lookup(call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *xdata)
if (ret)
goto wind;
- inode = (inode_t *)value;
+ inode = (inode_t *)(uintptr_t)value;
ret = loc_copy_overload_parent(&tmp_loc, loc, inode);
if (ret)
@@ -859,7 +859,7 @@ ga_lookup(call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *xdata)
if (ret)
goto err;
- inode = (void *)value;
+ inode = (void *)(uintptr_t)value;
/* valid inode, already looked up, work on that */
if (inode->ia_type)
@@ -1363,7 +1363,7 @@ ga_dump_inodectx(xlator_t *this, inode_t *inode)
ret = inode_ctx_get(inode, this, &value);
if (ret == 0) {
- tmp_inode = (void *)value;
+ tmp_inode = (void *)(uintptr_t)value;
gf_proc_dump_build_key(key_prefix, this->name, "inode");
gf_proc_dump_add_section(key_prefix);
gf_proc_dump_write("real-gfid", "%s", uuid_utoa(tmp_inode->gfid));