[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [Xen-devel V2] sedf/build: Fix build when using -fno-inline
On Wed, 2012-10-03 at 13:38 +0100, Andrew Cooper wrote: > # HG changeset patch > # Parent 5fbdbf585f5f2ee9a3e3c75a8a9f9f2cc6eda65c > sedf/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@xxxxxxxxxx> > Acked-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx> > -- > This is compile tested only, but given that the sole caller of > sedf_do_extra_schedule() unconditionally sets migrated to 0, I am > fairly > confident of the correctness of the fix. > Agreed, sedf does not include any task migration mechanism, so 0 is all you can have there. :-) Thanks and Regards, Dario -- <<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://retis.sssup.it/people/faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) Attachment:
signature.asc _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |