diff options
author | Mark Wright <[email protected]> | 2017-11-29 10:33:48 +1100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-11-28 17:33:48 -0600 |
commit | 56d8d8ace4724bde16145be25b75d8f551961813 (patch) | |
tree | a8b73d0e193fa5a6c649ff6318466a7fc29c932c /module/zfs/vdev_raidz.c | |
parent | 48ac22d8559313b2a33a80b9690aeea9acb9976c (diff) |
Linux 4.14 compat: CONFIG_GCC_PLUGIN_RANDSTRUCT
Fix build errors with gcc 7.2.0 on Gentoo with kernel 4.14
built with CONFIG_GCC_PLUGIN_RANDSTRUCT=y such as:
module/nvpair/nvpair.c:2810:2:error:
positional initialization of field in ?struct? declared with
'designated_init' attribute [-Werror=designated-init]
nvs_native_nvlist,
^~~~~~~~~~~~~~~~~
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Mark Wright <[email protected]>
Closes #5390
Closes #6903
Diffstat (limited to 'module/zfs/vdev_raidz.c')
-rw-r--r-- | module/zfs/vdev_raidz.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/vdev_raidz.c b/module/zfs/vdev_raidz.c index ed764add8..ef81af6f7 100644 --- a/module/zfs/vdev_raidz.c +++ b/module/zfs/vdev_raidz.c @@ -318,8 +318,8 @@ vdev_raidz_cksum_report(zio_t *zio, zio_cksum_report_t *zcr, void *arg) } static const zio_vsd_ops_t vdev_raidz_vsd_ops = { - vdev_raidz_map_free_vsd, - vdev_raidz_cksum_report + .vsd_free = vdev_raidz_map_free_vsd, + .vsd_cksum_report = vdev_raidz_cksum_report }; /* |