diff options
author | RageLtMan <[email protected]> | 2017-01-13 17:12:42 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-01-13 14:12:42 -0800 |
commit | 120faefed90aa4c276a3db45525dc5c804cb1a00 (patch) | |
tree | 53ef18154f2416db1b5f0205cf833faf1fe139b2 /module | |
parent | 8e99d66b0555fe3d6f5b028e8f03883dbf1399bc (diff) |
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 <[email protected]>
Signed-off-by: RageLtMan <rageltman@sempervictus>
Closes #597
Diffstat (limited to 'module')
-rw-r--r-- | module/spl/spl-proc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/spl/spl-proc.c b/module/spl/spl-proc.c index 345d0d5c7..d6159b4b6 100644 --- a/module/spl/spl-proc.c +++ b/module/spl/spl-proc.c @@ -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 |