diff options
author | Mark Wright <[email protected]> | 2018-04-21 02:53:25 +1000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-04-20 09:53:25 -0700 |
commit | 089500e79234c9cb741090ade96baec266f0ace4 (patch) | |
tree | b21aa83cd4f9bf1f5ed69262ce869406a49c2afb /module/zfs | |
parent | b4555c777a0be3c0dba29662d278c57099c60a87 (diff) |
Fix CONFIG_GCC_PLUGIN_RANDSTRUCT build
Fix build errors with gcc 7.3.0 on Gentoo with kernel 4.16.3
built with CONFIG_GCC_PLUGIN_RANDSTRUCT=y such as:
module/zfs/vdev_indirect.c:296:2: error:
positional initialization of field in ‘struct’ declared with
‘designated_init’ attribute [-Werror=designated-init]
vdev_indirect_map_free,
^~~~~~~~~~~~~~~~~~~~~~
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Giuseppe Di Natale <[email protected]>
Signed-off-by: Mark Wright <[email protected]>
Closes #7464
Diffstat (limited to 'module/zfs')
-rw-r--r-- | module/zfs/vdev_indirect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/vdev_indirect.c b/module/zfs/vdev_indirect.c index 70bf3bf15..0a42f5196 100644 --- a/module/zfs/vdev_indirect.c +++ b/module/zfs/vdev_indirect.c @@ -293,8 +293,8 @@ vdev_indirect_map_free(zio_t *zio) } static const zio_vsd_ops_t vdev_indirect_vsd_ops = { - vdev_indirect_map_free, - zio_vsd_default_cksum_report + .vsd_free = vdev_indirect_map_free, + .vsd_cksum_report = zio_vsd_default_cksum_report }; /* |