summaryrefslogtreecommitdiffstats
path: root/module/splat
diff options
context:
space:
mode:
authorBrian Behlendorf <behlendo@fedora-17-amd64.(none)>2012-06-13 13:43:29 -0700
committerBrian Behlendorf <[email protected]>2012-06-13 16:17:22 -0700
commiteaac9ba5102797e0a7e5a1eedb43d792a44770c8 (patch)
tree4d6637c6cbb6c3537156cb483d71cc86ebe3355f /module/splat
parent2371321e8a3d29e19cbc3a280f48636211abb480 (diff)
Fix uninit variable in slab reclaim test
Gcc version 4.7.0 reports the delta.tv_sec in the slab reclaim test as potentially unitialized. In practice this will never occur but to keep gcc happy we initialize the variable to zero. Signed-off-by: Brian Behlendorf <behlendo@fedora-17-amd64.(none)>
Diffstat (limited to 'module/splat')
-rw-r--r--module/splat/splat-kmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/splat/splat-kmem.c b/module/splat/splat-kmem.c
index 8613ddc29..284c7c30e 100644
--- a/module/splat/splat-kmem.c
+++ b/module/splat/splat-kmem.c
@@ -1135,7 +1135,7 @@ splat_kmem_test13(struct file *file, void *arg)
kmem_cache_data_t *kcd;
dummy_page_t *dp;
struct list_head list;
- struct timespec start, delta;
+ struct timespec start, delta = { 0, 0 };
int size, count, slabs, fails = 0;
int i, rc = 0, max_time = 10;