build: Fix build when using -fno-inline
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 9 Oct 2012 11:41:46 +0000 (12:41 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 9 Oct 2012 11:41:46 +0000 (12:41 +0100)
commit5520dd2779bd324b9ca42ff37510006fb1b88209
treef66332d10cd6bfd187dfae291c5834e198b239e5
parentc4b92d46aa7d32c4d07143b1d1e10d8c1f785362
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>
xen/common/sched_sedf.c