diff --git a/cmd/zstream/zstream_decompress.c b/cmd/zstream/zstream_decompress.c index e5527777bc..6e0da0852b 100644 --- a/cmd/zstream/zstream_decompress.c +++ b/cmd/zstream/zstream_decompress.c @@ -146,7 +146,7 @@ zstream_do_decompress(int argc, char *argv[]) p = hsearch(e, ENTER); if (p == NULL) errx(1, "hsearch"); - p->data = (void*)type; + p->data = (void*)(intptr_t)type; } if (isatty(STDIN_FILENO)) { diff --git a/module/zfs/zfs_vnops.c b/module/zfs/zfs_vnops.c index c63076f90c..593249e12c 100644 --- a/module/zfs/zfs_vnops.c +++ b/module/zfs/zfs_vnops.c @@ -64,7 +64,7 @@ zfs_fsync(znode_t *zp, int syncflag, cred_t *cr) int error = 0; zfsvfs_t *zfsvfs = ZTOZSB(zp); - (void) tsd_set(zfs_fsyncer_key, (void *)zfs_fsync_sync_cnt); + (void) tsd_set(zfs_fsyncer_key, (void *)(uintptr_t)zfs_fsync_sync_cnt); if (zfsvfs->z_os->os_sync != ZFS_SYNC_DISABLED) { if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0)