]> granicus.if.org Git - zfs/commit
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)
committerTony Hutter <hutter2@llnl.gov>
Tue, 5 Dec 2017 01:21:39 +0000 (17:21 -0800)
commite06711412b361c7e44ce16e67e8b5eae5251d686
treec713ca468c284b0fa812b628a3847d88127ff2a8
parent68ba1d2fa974db2ecb799385f1b3e8e0180e5f6b
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