65 lines
1.6 KiB
Diff
65 lines
1.6 KiB
Diff
From 8fadbed84951d54ef7379f2b08a63bb601dc8a08 Mon Sep 17 00:00:00 2001
|
|
From: RageLtMan <sempervictus@users.noreply.github.com>
|
|
Date: Fri, 13 Jan 2017 17:12:42 -0500
|
|
Subject: [PATCH] Update struct member intializers to C89
|
|
|
|
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 | 10 +++++-----
|
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/module/spl/spl-proc.c b/module/spl/spl-proc.c
|
|
index eb00505d..08ca9741 100644
|
|
--- a/module/spl/spl-proc.c
|
|
+++ b/module/spl/spl-proc.c
|
|
@@ -402,11 +402,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[] = {
|
|
@@ -437,7 +437,7 @@ static struct ctl_table spl_table[] = {
|
|
.mode = 0555,
|
|
.child = spl_kstat_table,
|
|
},
|
|
- { 0 },
|
|
+ {},
|
|
};
|
|
|
|
static struct ctl_table spl_dir[] = {
|
|
@@ -446,7 +446,7 @@ static struct ctl_table spl_dir[] = {
|
|
.mode = 0555,
|
|
.child = spl_table,
|
|
},
|
|
- { 0 }
|
|
+ {}
|
|
};
|
|
|
|
static struct ctl_table spl_root[] = {
|
|
@@ -458,7 +458,7 @@ static struct ctl_table spl_root[] = {
|
|
.mode = 0555,
|
|
.child = spl_dir,
|
|
},
|
|
- { 0 }
|
|
+ {}
|
|
};
|
|
|
|
int
|