Toomas Soome 40ab927ae8
implicit conversion from 'boolean_t' to 'ds_hold_flags_t'
Build error on illumos with gcc 10 did reveal:

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

libzfs_input_check.c: In function 'zfs_ioc_input_tests':
libzfs_input_check.c:754:28: error: implicit conversion from
'enum dmu_objset_type' to 'enum lzc_dataset_type'
[-Werror=enum-conversion]
  754 |  err = lzc_create(dataset, DMU_OST_ZFS, NULL, NULL, 0);
      |                            ^~~~~~~~~~~
cc1: all warnings being treated as errors

The same issue is present in openzfs, and also the same issue about
ds_hold_flags_t, which currently defines exactly one valid value.

Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Toomas Soome <tsoome@me.com>
Closes #11406
2020-12-27 16:31:02 -08:00
..
2016-03-16 13:46:16 -07:00
2020-11-13 13:51:51 -08:00
2016-03-16 13:46:16 -07:00
2017-05-22 12:34:32 -04:00
2020-06-18 12:20:38 -07:00
2020-06-09 21:24:09 -07:00
2019-12-18 12:29:43 -08:00
2019-12-18 12:29:43 -08:00
2017-05-22 12:34:32 -04:00
2020-07-10 14:26:00 -07:00
2019-09-02 18:14:53 -07:00
2016-03-16 13:46:16 -07:00
2016-03-16 13:46:16 -07:00
2019-06-19 09:48:12 -07:00
2016-03-16 13:46:16 -07:00
2017-05-22 12:34:32 -04:00
2020-11-13 13:51:51 -08:00