diff options
author | Andrew Cooper <andrew.cooper3@citrix.com> | 2012-10-09 12:41:46 +0100 |
---|---|---|
committer | Andrew Cooper <andrew.cooper3@citrix.com> | 2012-10-09 12:41:46 +0100 |
commit | 5520dd2779bd324b9ca42ff37510006fb1b88209 (patch) | |
tree | f66332d10cd6bfd187dfae291c5834e198b239e5 | |
parent | c4b92d46aa7d32c4d07143b1d1e10d8c1f785362 (diff) | |
download | xen-5520dd2779bd324b9ca42ff37510006fb1b88209.tar.gz xen-5520dd2779bd324b9ca42ff37510006fb1b88209.tar.bz2 xen-5520dd2779bd324b9ca42ff37510006fb1b88209.zip |
build: Fix build when using -fno-inline
struct task_slice.migrated is not initialised by this function, and
subsequently returned by value, leading to the error:
sched_sedf.c: In function ‘sedf_do_extra_schedule’:
sched_sedf.c:711: error: ‘ret.migrated’ may be used uninitialised in
this function
for both gcc 4.1.2 and 4.4.3 (which are the two I have easily to hand)
when combined with the -fno-inline compile option.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
-rw-r--r-- | xen/common/sched_sedf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/sched_sedf.c b/xen/common/sched_sedf.c index 644787bc7f..66c6d68ada 100644 --- a/xen/common/sched_sedf.c +++ b/xen/common/sched_sedf.c @@ -667,7 +667,7 @@ static void desched_extra_dom(s_time_t now, struct vcpu *d) static struct task_slice sedf_do_extra_schedule( s_time_t now, s_time_t end_xt, struct list_head *extraq[], int cpu) { - struct task_slice ret; + struct task_slice ret = { 0 }; struct sedf_vcpu_info *runinf; ASSERT(end_xt > now); |