]> git.proxmox.com Git - mirror_spl.git/commitdiff
Update struct member intializers to C89
authorRageLtMan <sempervictus@users.noreply.github.com>
Fri, 13 Jan 2017 22:12:42 +0000 (17:12 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 13 Jan 2017 22:12:42 +0000 (14:12 -0800)
When building SPL within the kernel tree, C99 initializers cause
build failures and need to be converted to C89 as kernel CFLAGS
specify -std=gnu89.

This fix was provided by @behlendorf in #595 discussion notes and
manually implemented in the current master revision.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: RageLtMan <rageltman@sempervictus>
Closes #597

module/spl/spl-proc.c

index 345d0d5c7a444e4ea08fe8028c22f113f1aaf07d..d6159b4b60fa5ad820ba3f4331372f785bed53a8 100644 (file)
@@ -628,11 +628,11 @@ static struct ctl_table spl_kmem_table[] = {
                 .mode     = 0444,
                 .proc_handler = &proc_doslab,
         },
-       {0},
+       {},
 };
 
 static struct ctl_table spl_kstat_table[] = {
-       {0},
+       {},
 };
 
 static struct ctl_table spl_table[] = {
@@ -663,7 +663,7 @@ static struct ctl_table spl_table[] = {
                .mode     = 0555,
                .child    = spl_kstat_table,
        },
-        { 0 },
+        {},
 };
 
 static struct ctl_table spl_dir[] = {
@@ -672,7 +672,7 @@ static struct ctl_table spl_dir[] = {
                 .mode     = 0555,
                 .child    = spl_table,
         },
-        { 0 }
+        {}
 };
 
 static struct ctl_table spl_root[] = {
@@ -684,7 +684,7 @@ static struct ctl_table spl_root[] = {
        .mode = 0555,
        .child = spl_dir,
        },
-       { 0 }
+       {}
 };
 
 int