Project

General

Profile

Actions

Bug #13399

closed

zfs: error: implicit conversion from 'boolean_t' to 'ds_hold_flags_t'

Added by Toomas Soome over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build error with gcc 10:

    ../../common/fs/zfs/dmu_objset.c: In function 'dmu_objset_refresh_ownership':
    ../../common/fs/zfs/dmu_objset.c:857:25: error: implicit conversion from 'boolean_t' to 'ds_hold_flags_t' {aka 'enum ds_hold_flags'} [-Werror=enum-conversion]
      857 |  dsl_dataset_disown(ds, decrypt, tag);
                            |                         ^~~~~~~
    cc1: all warnings being treated as errors

ds_hold_flags_t is with single value and can not hold boolean. OpenZFS update https://github.com/openzfs/zfs/pull/11406.

Testing done: zfs-tests from OpenZFS workflow + illumos build/install/boot.


Related issues

Related to illumos gate - Bug #13400: zfs-tests: implicit conversion from 'enum dmu_objset_type' to 'enum lzc_dataset_type'ClosedToomas Soome

Actions
Actions

Also available in: Atom PDF