diff options
author | Brian Behlendorf <[email protected]> | 2016-10-04 17:26:36 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2016-10-04 17:26:36 -0700 |
commit | 341dfdb3fd44048a3149e8376b2a0f94da56f01a (patch) | |
tree | 128ac24f4848b1b2999c535fb6e53424c0024b6b | |
parent | 6c2a66bfa816793fbdcede8854816d526c925574 (diff) |
Fix p0 initializer
Due to changes in the task_struct the following warning is occurs
when initializing the global p0. Since this structure only exists
for it's address to be taken initialize it in a manor which isn't
sensitive to internal changes to the structure.
module/spl/spl-generic.c:58:1: error: missing braces around
initializer [-Werror=missing-braces]
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #576
-rw-r--r-- | module/spl/spl-generic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/spl/spl-generic.c b/module/spl/spl-generic.c index 88a0fcc51..c04cb538c 100644 --- a/module/spl/spl-generic.c +++ b/module/spl/spl-generic.c @@ -55,7 +55,7 @@ EXPORT_SYMBOL(spl_hostid); module_param(spl_hostid, ulong, 0644); MODULE_PARM_DESC(spl_hostid, "The system hostid."); -proc_t p0 = { 0 }; +proc_t p0; EXPORT_SYMBOL(p0); /* @@ -660,6 +660,7 @@ spl_init(void) { int rc = 0; + bzero(&p0, sizeof (proc_t)); spl_random_init(); if ((rc = spl_kvmem_init())) |