mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 11:47:43 +03:00
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
This commit is contained in:
committed by
Brian Behlendorf
parent
48ac22d855
commit
56d8d8ace4
+5
-5
@@ -794,11 +794,11 @@ i_fm_free(nv_alloc_t *nva, void *buf, size_t size)
|
||||
}
|
||||
|
||||
const nv_alloc_ops_t fm_mem_alloc_ops = {
|
||||
NULL,
|
||||
NULL,
|
||||
i_fm_alloc,
|
||||
i_fm_free,
|
||||
NULL
|
||||
.nv_ao_init = NULL,
|
||||
.nv_ao_fini = NULL,
|
||||
.nv_ao_alloc = i_fm_alloc,
|
||||
.nv_ao_free = i_fm_free,
|
||||
.nv_ao_reset = NULL
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user