]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/vdev_mirror.c
Linux 4.14 compat: CONFIG_GCC_PLUGIN_RANDSTRUCT
authorMark Wright <markwright@internode.on.net>
Tue, 28 Nov 2017 23:33:48 +0000 (10:33 +1100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 28 Nov 2017 23:33:48 +0000 (17:33 -0600)
commit56d8d8ace4724bde16145be25b75d8f551961813
treea8b73d0e193fa5a6c649ff6318466a7fc29c932c
parent48ac22d8559313b2a33a80b9690aeea9acb9976c
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 <behlendorf1@llnl.gov>
Signed-off-by: Mark Wright <gienah@gentoo.org>
Closes #5390
Closes #6903
12 files changed:
module/icp/io/aes.c
module/icp/io/sha1_mod.c
module/icp/io/sha2_mod.c
module/icp/io/skein_mod.c
module/icp/os/modconf.c
module/nvpair/nvpair.c
module/nvpair/nvpair_alloc_fixed.c
module/nvpair/nvpair_alloc_spl.c
module/zfs/fm.c
module/zfs/vdev_mirror.c
module/zfs/vdev_raidz.c
module/zfs/zfs_acl.c