Actions
Bug #13399
closedzfs: error: implicit conversion from 'boolean_t' to 'ds_hold_flags_t'
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
Actions