From: "Kashmira. K." Subject: Re: [Xen-devel] Re: Xen-3.4-testing build failure Date: Thu, 7 Jan 2010 17:08:08 -0800 (PST) Message-ID: <302119.70594.qm@web50608.mail.re2.yahoo.com> References: <20100107210003.GA25902@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20100107210003.GA25902@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-users-bounces@lists.xensource.com Errors-To: xen-users-bounces@lists.xensource.com To: =?utf-8?B?UGFzaSBLw6Rya2vDpGluZW4=?= Cc: xen-devel@lists.xensource.com, xen-users@lists.xensource.com, Jan Beulich List-Id: xen-devel@lists.xenproject.org Thanks Pasi, That worked for me. I could apply the patch and build linux, and then separ= ately built xen. -Kashmira --- On Thu, 1/7/10, Pasi K=C3=A4rkk=C3=A4inen wrote: > From: Pasi K=C3=A4rkk=C3=A4inen > Subject: Re: [Xen-devel] Re: [Xen-users] Xen-3.4-testing build failure > To: "Kashmira. K." > Cc: "Jan Beulich" , xen-devel@lists.xensource.com, x= en-users@lists.xensource.com > Date: Thursday, January 7, 2010, 1:00 PM > On Thu, Jan 07, 2010 at 12:34:22PM > -0800, Kashmira. K. wrote: > > Hi Jan, > >=20 > > I patch this change manually and restart "make world". > It does not work. "make world" pulls the 2.6.18 tree again > overwriting the changes. > >=20 >=20 > You can always pull the 2.6.18-xen tree manually, and > compile it > separately from Xen. >=20 > hg clone http://xenbits.xen.org/linux-2.6.18-xen.hg >=20 > -- Pasi >=20 > > Thanks > > Kashmira > >=20 > > --- On Thu, 1/7/10, Jan Beulich > wrote: > >=20 > > > From: Jan Beulich > > > Subject: [Xen-devel] Re: [Xen-users] > Xen-3.4-testing build failure > > > To: "Pasi K=C3=A4rkk=C3=A4inen" , > "Kashmira. K." > > > Cc: xen-devel@lists.xensource.com, > xen-users@lists.xensource.com > > > Date: Thursday, January 7, 2010, 12:15 AM > > > On Wed, Jan 06, 2010 at 10:23:04PM > > > -0800, Kashmira. K. wrote: > > > > Hello Xen users > > > >=20 > > > > I am trying to do a Xen cable linux build > and am > > > seeing a build failures. > > > >=20 > > > > I did=20 > > > >=C2=A0 =C2=A0=C2=A0=C2=A0- hg clone http://xenbits.xensource.com/xen= -3.4-testing.hg=20 > > > >=C2=A0 =C2=A0=C2=A0=C2=A0- cd xen-3.4-testing > > > >=C2=A0 =C2=A0=C2=A0=C2=A0- make world > > > >=20 > > > > During the=C2=A0 "make world" I see the > following > > > compile error.=20 > > > >=C2=A0=C2=A0=C2=A0LD=C2=A0 =C2=A0 =C2=A0 > > > drivers/xen/pcifront/built-in.o > > > >=C2=A0=C2=A0=C2=A0CC=C2=A0 =C2=A0 =C2=A0 > > > drivers/xen/privcmd/privcmd.o > > > > > > > > /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/pri= vcmd.c: > > > 37: error: expected declaration > > > specifiers or =C3=A2=E2=82=AC??...=C3=A2=E2=82=AC??? before > > > =C3=A2=E2=82=AC??pgtable_t=C3=A2=E2=82=AC??? > > > > > > > > /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/pri= vcmd.c:=C2=A0 > > > In function > > > =C3=A2=E2=82=AC??enforce_singleshot_mapping=C3=A2=E2=82=AC???: > > > > > > > > /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/pri= vcmd.c: > > > 48: warning: passing argument 4 of > > > =C3=A2=E2=82=AC??apply_to_page_range=C3=A2=E2=82=AC??? from > incompatible point > > > er type > > > > make[9]: *** [drivers/xen/privcmd/privcmd.o] > Error 1 > > > > make[8]: *** [drivers/xen/privcmd] Error 2 > > > > make[7]: *** [drivers/xen] Error 2 > > > > make[6]: *** [drivers] Error 2 > > > > make[5]: *** [vmlinuz] Error 2 > > > > make[4]: *** [vmlinuz] Error 2 > > > >=20 > > > > Any pointer on how to fix this. > > >=20 > > > Patch below - pgtable_t apparently didn't exist > in 2.6.18 > > > yet. > > >=20 > > > Jan > > >=20 > > > Subject: privcmd: fix build > > >=20 > > > Signed-off-by: Jan Beulich > > >=20 > > > --- > > > > head-2010-01-04.orig/drivers/xen/privcmd/privcmd.c=C2=A0=C2=A0=C2=A0 > > > 2010-01-04 13:32:08.000000000 +0100 > > > +++ > > > > head-2010-01-04/drivers/xen/privcmd/privcmd.c=C2=A0=C2=A0=C2=A0 > > > 2010-01-05 11:21:42.000000000 +0100 > > > @@ -34,7 +34,7 @@ static struct proc_dir_entry > *capabiliti > > >=C2=A0 static struct proc_dir_entry > *capabilities_intf; > > >=C2=A0=20 > > >=C2=A0 #ifndef HAVE_ARCH_PRIVCMD_MMAP > > > -static int enforce_singleshot_mapping_fn(pte_t > *pte, > > > pgtable_t token, > > > +static int enforce_singleshot_mapping_fn(pte_t > *pte, > > > struct page *pmd_page, > > >=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 > > > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0unsigned > > > long addr, void *data) > > >=C2=A0 { > > >=C2=A0 =C2=A0=C2=A0=C2=A0 return pte_none(*pte) ? 0 : -EBUSY; > > >=20 > > >=20 > > >=20 > >=20 > >=20 > >=20 > =0A=0A=0A