From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Subject: Re: [Xen-staging] [xen-unstable] [ioemu] Update to qemu 0.90. Date: Wed, 09 May 2007 11:13:18 -0600 Message-ID: <1178730798.6512.14.camel@lappy> References: <200705091318.l49DINUx021283@latara.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <200705091318.l49DINUx021283@latara.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Christian Limpach List-Id: xen-devel@lists.xenproject.org On Wed, 2007-05-09 at 14:18 +0100, Xen staging patchbot-unstable wrote: > # HG changeset patch > # User Christian Limpach > # Date 1178716635 -3600 > # Node ID 00618037d37d04e614080d3067cc5ba6b1b1ef9e > # Parent d2ef85c6bf84cc619ca2d42c2edfc6229e70a6ad > [ioemu] Update to qemu 0.90. This chunk doesn't build: > --- a/tools/ioemu/hw/mc146818rtc.c Wed Jul 12 19:16:10 2006 +0100 > +++ b/tools/ioemu/hw/mc146818rtc.c Wed May 09 14:17:15 2007 +0100 > @@ -403,6 +403,30 @@ void rtc_set_date(RTCState *s, const str > rtc_copy_date(s); > } > =20 > +/* PC cmos mappings */ > +#define REG_IBM_CENTURY_BYTE 0x32 > +#define REG_IBM_PS2_CENTURY_BYTE 0x37 > + > +void rtc_set_date_from_host(RTCState *s) > +{ > + time_t ti; > + struct tm *tm; > + int val; > + > + /* set the CMOS date */ > + time(&ti); > + ti +=3D timeoffset; > + if (rtc_utc) > + tm =3D gmtime(&ti); /home/xenbuild/xen-staging-build/tmp-xen-unstable.hg/tools/ioemu/hw/mc146= 818rtc.c:418: error: =E2=80=98timeoffset=E2=80=99 undeclared (first use i= n this function) I think the following patch is needed: Signed-off-by: Alex Williamson --- diff -r 8df600f56acd tools/ioemu/hw/mc146818rtc.c --- a/tools/ioemu/hw/mc146818rtc.c Wed May 09 15:31:37 2007 +0100 +++ b/tools/ioemu/hw/mc146818rtc.c Wed May 09 10:55:30 2007 -0600 @@ -412,6 +412,7 @@ void rtc_set_date_from_host(RTCState *s) time_t ti; struct tm *tm; int val; + extern time_t timeoffset; =20 /* set the CMOS date */ time(&ti);