diff options
author | Georgy Yakovlev <[email protected]> | 2018-05-10 23:00:18 -0700 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2018-07-06 02:46:51 -0700 |
commit | 30d8b8570243fe5b944f26a964cf5204cb1e71e0 (patch) | |
tree | b6847e37a85b295bc3048dc88b9a8bd77ac0063f /module | |
parent | 45f0437912f4688bb15b353c8773b0e37e0b1a89 (diff) |
Fix build with CONFIG_GCC_PLUGIN_RANDSTRUCT
fs/zfs/zfs/metaslab.c:1055:2: error: positional initialization of field
in ‘struct’ declared with ‘designated_init’ attribute
[-Werror=designated-init]
metaslab_rt_remove,
Signed-off-by: Georgy Yakovlev <[email protected]>
Reviewed-by: Giuseppe Di Natale <[email protected]>
Closes: #7069
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/metaslab.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/zfs/metaslab.c b/module/zfs/metaslab.c index 5e413c065..ee24850dd 100644 --- a/module/zfs/metaslab.c +++ b/module/zfs/metaslab.c @@ -1049,11 +1049,11 @@ metaslab_rt_vacate(range_tree_t *rt, void *arg) } static range_tree_ops_t metaslab_rt_ops = { - metaslab_rt_create, - metaslab_rt_destroy, - metaslab_rt_add, - metaslab_rt_remove, - metaslab_rt_vacate + .rtop_create = metaslab_rt_create, + .rtop_destroy = metaslab_rt_destroy, + .rtop_add = metaslab_rt_add, + .rtop_remove = metaslab_rt_remove, + .rtop_vacate = metaslab_rt_vacate }; /* |