From 089500e79234c9cb741090ade96baec266f0ace4 Mon Sep 17 00:00:00 2001 From: Mark Wright Date: Sat, 21 Apr 2018 02:53:25 +1000 Subject: Fix CONFIG_GCC_PLUGIN_RANDSTRUCT build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Giuseppe Di Natale Signed-off-by: Mark Wright Closes #7464 --- module/zfs/vdev_indirect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module') 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 }; /* -- cgit v1.2.3