[Devel] [PATCH RHEL8 COMMIT] ve/fs: Compilation fix: vz_fs_table[] initialization

Konstantin Khorenko khorenko at virtuozzo.com
Mon Apr 19 13:34:55 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.15
------>
commit fb60dfa9d77b98aa7598a35cb28fee25c28e8baa
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Mon Apr 19 13:32:16 2021 +0300

    ve/fs: Compilation fix: vz_fs_table[] initialization
    
    kernel/ve/veowner.c:75:4: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
      { 0 }
        ^
    kernel/ve/veowner.c:75:4: note: (near initialization for 'vz_fs_table[2]')
    
    Fixes: 9872dca0f40c ("ve/fs: add per-VE limit of mount points")
    
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 kernel/ve/veowner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/ve/veowner.c b/kernel/ve/veowner.c
index 6cae5746d244..c9127165e7fe 100644
--- a/kernel/ve/veowner.c
+++ b/kernel/ve/veowner.c
@@ -72,7 +72,7 @@ static struct ctl_table vz_fs_table[] = {
 		.extra1		= &ve_mount_nr_min,
 		.extra2		= &ve_mount_nr_max,
 	},
-	{ 0 }
+	{ }
 };
 
 static struct ctl_path fs_path[] = {


More information about the Devel mailing list