From: Samuel Thibault Subject: Re: [PATCH]: minios: don't retrieve the address of void variable Date: Fri, 7 Jan 2011 20:29:40 +0100 Message-ID: <20110107192940.GC5418@const.famille.thibault.fr> References: <1294420140.12018.82.camel@qabil.uk.xensource.com> <20110107171644.GZ5820@const.bordeaux.inria.fr> <1294421133.12018.95.camel@qabil.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Resent-Message-ID: <20110108000401.GT5418@const.famille.thibault.fr> Resent-To: xen-devel@lists.xensource.com Content-Disposition: inline In-Reply-To: <1294421133.12018.95.camel@qabil.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: Gianni Tedesco Cc: Xen Devel , Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Gianni Tedesco, le Fri 07 Jan 2011 17:25:33 +0000, a =E9crit : > On Fri, 2011-01-07 at 17:16 +0000, Samuel Thibault wrote: > > Gianni Tedesco, le Fri 07 Jan 2011 17:08:59 +0000, a =E9crit : > > > Apparently this is verboten and gcc-4.5 doesn't like it. > >=20 > > Damn! I'd say use the struct shared_info instead, since that's what i= t > > is. >=20 > Fair enough, I was just racing through trying to get it to build so > didn't have time to stop and smell the roses :) >=20 > Thanks for the incredibly prompt review of these by the way. >=20 > Gianni Missing your Signed-off :) Signed-off-by: Samuel Thibault > -- >=20 > diff -r c55b93f3f8cf extras/mini-os/arch/x86/mm.c > --- a/extras/mini-os/arch/x86/mm.c Fri Jan 07 15:27:30 2011 +0000 > +++ b/extras/mini-os/arch/x86/mm.c Fri Jan 07 17:04:48 2011 +0000 > @@ -281,7 +281,7 @@ static void build_pagetable(unsigned lon > /* > * Mark portion of the address space read only. > */ > -extern void shared_info; > +extern struct shared_info shared_info; > static void set_readonly(void *text, void *etext) > { > unsigned long start_address =3D >=20 >=20 --=20 Samuel > =B1z=ACO=A7_=B8g=B1`=AC=B0=A6p=A6=F3=A9=DD=AEi=A6=E6=BEP=BA=DE=B9= D=B6=CB=B8=A3=B5=AC? > =A5Z=B5n=B3=F8=AF=C8,=C2=F8=BBx=BCs=A7i=A9=CE=B6l=B1H=A2=D2=A2=DB (Dir= ect Mail)=ACO=A7_=A4w=B8g=B5L=AAk=B9F=A6=A8=B1z=B9w=B4=C1=AA=BA=BCs=A7i=AE= =C4=AAG? Je vous invite a consulter dans un premier temps le french-Howto. -+- JCD in Guide du linuxien pervers - "Bien configurer la lisibilit=E9 = de fcolm"