diff --git a/cmd/zpios/zpios_main.c b/cmd/zpios/zpios_main.c index d0e3f7b91..a413453e4 100644 --- a/cmd/zpios/zpios_main.c +++ b/cmd/zpios/zpios_main.c @@ -388,7 +388,7 @@ dev_clear(void) fprintf(stderr, "Ioctl() error %lu / %d: %d\n", (unsigned long) ZPIOS_CFG, cfg.cfg_cmd, errno); - lseek(zpiosctl_fd, 0, SEEK_SET); + (void) lseek(zpiosctl_fd, 0, SEEK_SET); return (rc); } diff --git a/cmd/zpool/zpool_vdev.c b/cmd/zpool/zpool_vdev.c index b51b9c9c3..b0db5e873 100644 --- a/cmd/zpool/zpool_vdev.c +++ b/cmd/zpool/zpool_vdev.c @@ -735,7 +735,7 @@ make_leaf_vdev(nvlist_t *props, const char *arg, uint64_t is_log) } if (ashift > 0) - nvlist_add_uint64(vdev, ZPOOL_CONFIG_ASHIFT, ashift); + (void) nvlist_add_uint64(vdev, ZPOOL_CONFIG_ASHIFT, ashift); return (vdev); } diff --git a/lib/libzfs/libzfs_pool.c b/lib/libzfs/libzfs_pool.c index a37ea7913..f515419b1 100644 --- a/lib/libzfs/libzfs_pool.c +++ b/lib/libzfs/libzfs_pool.c @@ -3468,7 +3468,7 @@ zpool_vdev_name(libzfs_handle_t *hdl, zpool_handle_t *zhp, nvlist_t *nv, if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_NOT_PRESENT, &value) == 0 || name_flags & VDEV_NAME_GUID) { - nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID, &value); + (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID, &value); (void) snprintf(buf, sizeof (buf), "%llu", (u_longlong_t)value); path = buf; } else if (nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &path) == 0) { diff --git a/module/zfs/fm.c b/module/zfs/fm.c index 2a425a740..a1069d140 100644 --- a/module/zfs/fm.c +++ b/module/zfs/fm.c @@ -652,7 +652,7 @@ zfs_zevent_next(zfs_zevent_t *ze, nvlist_t **event, uint64_t *event_size, ze->ze_zevent = ev; list_insert_head(&ev->ev_ze_list, ze); - nvlist_dup(ev->ev_nvl, event, KM_SLEEP); + (void) nvlist_dup(ev->ev_nvl, event, KM_SLEEP); *dropped = ze->ze_dropped; ze->ze_dropped = 0; out: diff --git a/module/zfs/zfs_znode.c b/module/zfs/zfs_znode.c index 12dada4fc..647ce48dc 100644 --- a/module/zfs/zfs_znode.c +++ b/module/zfs/zfs_znode.c @@ -456,7 +456,7 @@ zfs_inode_set_ops(zfs_sb_t *zsb, struct inode *ip) */ case S_IFCHR: case S_IFBLK: - sa_lookup(ITOZ(ip)->z_sa_hdl, SA_ZPL_RDEV(zsb), &rdev, + (void) sa_lookup(ITOZ(ip)->z_sa_hdl, SA_ZPL_RDEV(zsb), &rdev, sizeof (rdev)); /*FALLTHROUGH*/ case S_IFIFO: