Hello Xen users I am trying to do a Xen cable linux build and am seeing a build failures. I did - hg clone http://xenbits.xensource.com/xen-3.4-testing.hg - cd xen-3.4-testing - make world During the "make world" I see the following compile error. LD drivers/xen/pcifront/built-in.o CC drivers/xen/privcmd/privcmd.o /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: 37: error: expected declaration specifiers or ‘...’ before ‘pgtable_t’ /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: In function ‘enforce_singleshot_mapping’: /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: 48: warning: passing argument 4 of ‘apply_to_page_range’ 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 Any pointer on how to fix this. Thanks in advance. Kashmira _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2010-Jan-07 07:19 UTC
[Xen-devel] Re: [Xen-users] Xen-3.4-testing build failure
Hello, Forwarding to xen-devel.. On Wed, Jan 06, 2010 at 10:23:04PM -0800, Kashmira. K. wrote:> Hello Xen users > > I am trying to do a Xen cable linux build and am seeing a build failures. > > I did > - hg clone http://xenbits.xensource.com/xen-3.4-testing.hg > - cd xen-3.4-testing > - make world > > During the "make world" I see the following compile error. > LD drivers/xen/pcifront/built-in.o > CC drivers/xen/privcmd/privcmd.o > /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: 37: error: expected declaration specifiers or �?...�?? before �?pgtable_t�?? > /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: In function �?enforce_singleshot_mapping�??: > /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: 48: warning: passing argument 4 of �?apply_to_page_range�?? 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 > > Any pointer on how to fix this. > > Thanks in advance. > > Kashmira >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jan Beulich
2010-Jan-07 08:15 UTC
[Xen-devel] Re: [Xen-users] Xen-3.4-testing build failure
On Wed, Jan 06, 2010 at 10:23:04PM -0800, Kashmira. K. wrote:> Hello Xen users > > I am trying to do a Xen cable linux build and am seeing a build failures. > > I did > - hg clone http://xenbits.xensource.com/xen-3.4-testing.hg > - cd xen-3.4-testing > - make world > > During the "make world" I see the following compile error. > LD drivers/xen/pcifront/built-in.o > CC drivers/xen/privcmd/privcmd.o > /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: 37: error: expected declarationspecifiers or �?...�?? before �?pgtable_t�??> /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: In function�?enforce_singleshot_mapping�??:> /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: 48: warning: passing argument 4 of�?apply_to_page_range�?? 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 > > Any pointer on how to fix this.Patch below - pgtable_t apparently didn''t exist in 2.6.18 yet. Jan Subject: privcmd: fix build Signed-off-by: Jan Beulich <jbeulich@novell.com> --- head-2010-01-04.orig/drivers/xen/privcmd/privcmd.c 2010-01-04 13:32:08.000000000 +0100 +++ head-2010-01-04/drivers/xen/privcmd/privcmd.c 2010-01-05 11:21:42.000000000 +0100 @@ -34,7 +34,7 @@ static struct proc_dir_entry *capabiliti static struct proc_dir_entry *capabilities_intf; #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, unsigned long addr, void *data) { return pte_none(*pte) ? 0 : -EBUSY; _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Kashmira. K.
2010-Jan-07 20:34 UTC
Re: [Xen-devel] Re: [Xen-users] Xen-3.4-testing build failure
Hi Jan, 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. Thanks Kashmira --- On Thu, 1/7/10, Jan Beulich <JBeulich@novell.com> wrote:> From: Jan Beulich <JBeulich@novell.com> > Subject: [Xen-devel] Re: [Xen-users] Xen-3.4-testing build failure > To: "Pasi Kärkkäinen" <pasik@iki.fi>, "Kashmira. K." <chimnee@yahoo.com> > 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 > > > > I am trying to do a Xen cable linux build and am > seeing a build failures. > > > > I did > > - hg clone http://xenbits.xensource.com/xen-3.4-testing.hg > > - cd xen-3.4-testing > > - make world > > > > During the "make world" I see the following > compile error. > > LD > drivers/xen/pcifront/built-in.o > > CC > drivers/xen/privcmd/privcmd.o > > > /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: > 37: error: expected declaration > specifiers or â€??...â€??? before > â€??pgtable_tâ€??? > > > /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: > In function > â€??enforce_singleshot_mappingâ€???: > > > /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: > 48: warning: passing argument 4 of > â€??apply_to_page_rangeâ€??? 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 > > > > Any pointer on how to fix this. > > Patch below - pgtable_t apparently didn''t exist in 2.6.18 > yet. > > Jan > > Subject: privcmd: fix build > > Signed-off-by: Jan Beulich <jbeulich@novell.com> > > --- > head-2010-01-04.orig/drivers/xen/privcmd/privcmd.c > 2010-01-04 13:32:08.000000000 +0100 > +++ > head-2010-01-04/drivers/xen/privcmd/privcmd.c > 2010-01-05 11:21:42.000000000 +0100 > @@ -34,7 +34,7 @@ static struct proc_dir_entry *capabiliti > static struct proc_dir_entry *capabilities_intf; > > #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, > > unsigned > long addr, void *data) > { > return pte_none(*pte) ? 0 : -EBUSY; > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2010-Jan-07 21:00 UTC
Re: [Xen-devel] Re: [Xen-users] Xen-3.4-testing build failure
On Thu, Jan 07, 2010 at 12:34:22PM -0800, Kashmira. K. wrote:> Hi Jan, > > 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. >You can always pull the 2.6.18-xen tree manually, and compile it separately from Xen. hg clone http://xenbits.xen.org/linux-2.6.18-xen.hg -- Pasi> Thanks > Kashmira > > --- On Thu, 1/7/10, Jan Beulich <JBeulich@novell.com> wrote: > > > From: Jan Beulich <JBeulich@novell.com> > > Subject: [Xen-devel] Re: [Xen-users] Xen-3.4-testing build failure > > To: "Pasi Kärkkäinen" <pasik@iki.fi>, "Kashmira. K." <chimnee@yahoo.com> > > 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 > > > > > > I am trying to do a Xen cable linux build and am > > seeing a build failures. > > > > > > I did > > > - hg clone http://xenbits.xensource.com/xen-3.4-testing.hg > > > - cd xen-3.4-testing > > > - make world > > > > > > During the "make world" I see the following > > compile error. > > > LD > > drivers/xen/pcifront/built-in.o > > > CC > > drivers/xen/privcmd/privcmd.o > > > > > /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: > > 37: error: expected declaration > > specifiers or â€??...â€??? before > > â€??pgtable_tâ€??? > > > > > /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: > > In function > > â€??enforce_singleshot_mappingâ€???: > > > > > /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: > > 48: warning: passing argument 4 of > > â€??apply_to_page_rangeâ€??? 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 > > > > > > Any pointer on how to fix this. > > > > Patch below - pgtable_t apparently didn''t exist in 2.6.18 > > yet. > > > > Jan > > > > Subject: privcmd: fix build > > > > Signed-off-by: Jan Beulich <jbeulich@novell.com> > > > > --- > > head-2010-01-04.orig/drivers/xen/privcmd/privcmd.c > > 2010-01-04 13:32:08.000000000 +0100 > > +++ > > head-2010-01-04/drivers/xen/privcmd/privcmd.c > > 2010-01-05 11:21:42.000000000 +0100 > > @@ -34,7 +34,7 @@ static struct proc_dir_entry *capabiliti > > static struct proc_dir_entry *capabilities_intf; > > > > #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, > > > > unsigned > > long addr, void *data) > > { > > return pte_none(*pte) ? 0 : -EBUSY; > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Kashmira. K.
2010-Jan-08 01:08 UTC
Re: [Xen-devel] Re: [Xen-users] Xen-3.4-testing build failure
Thanks Pasi, That worked for me. I could apply the patch and build linux, and then separately built xen. -Kashmira --- On Thu, 1/7/10, Pasi Kärkkäinen <pasik@iki.fi> wrote:> From: Pasi Kärkkäinen <pasik@iki.fi> > Subject: Re: [Xen-devel] Re: [Xen-users] Xen-3.4-testing build failure > To: "Kashmira. K." <chimnee@yahoo.com> > Cc: "Jan Beulich" <JBeulich@novell.com>, xen-devel@lists.xensource.com, xen-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, > > > > 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. > > > > You can always pull the 2.6.18-xen tree manually, and > compile it > separately from Xen. > > hg clone http://xenbits.xen.org/linux-2.6.18-xen.hg > > -- Pasi > > > Thanks > > Kashmira > > > > --- On Thu, 1/7/10, Jan Beulich <JBeulich@novell.com> > wrote: > > > > > From: Jan Beulich <JBeulich@novell.com> > > > Subject: [Xen-devel] Re: [Xen-users] > Xen-3.4-testing build failure > > > To: "Pasi Kärkkäinen" <pasik@iki.fi>, > "Kashmira. K." <chimnee@yahoo.com> > > > 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 > > > > > > > > I am trying to do a Xen cable linux build > and am > > > seeing a build failures. > > > > > > > > I did > > > > - hg clone http://xenbits.xensource.com/xen-3.4-testing.hg > > > > - cd xen-3.4-testing > > > > - make world > > > > > > > > During the "make world" I see the > following > > > compile error. > > > > LD > > > drivers/xen/pcifront/built-in.o > > > > CC > > > drivers/xen/privcmd/privcmd.o > > > > > > > > /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: > > > 37: error: expected declaration > > > specifiers or â€??...â€??? before > > > â€??pgtable_tâ€??? > > > > > > > > /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: > > > In function > > > â€??enforce_singleshot_mappingâ€???: > > > > > > > > /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: > > > 48: warning: passing argument 4 of > > > â€??apply_to_page_rangeâ€??? 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 > > > > > > > > Any pointer on how to fix this. > > > > > > Patch below - pgtable_t apparently didn''t exist > in 2.6.18 > > > yet. > > > > > > Jan > > > > > > Subject: privcmd: fix build > > > > > > Signed-off-by: Jan Beulich <jbeulich@novell.com> > > > > > > --- > > > > head-2010-01-04.orig/drivers/xen/privcmd/privcmd.c > > > 2010-01-04 13:32:08.000000000 +0100 > > > +++ > > > > head-2010-01-04/drivers/xen/privcmd/privcmd.c > > > 2010-01-05 11:21:42.000000000 +0100 > > > @@ -34,7 +34,7 @@ static struct proc_dir_entry > *capabiliti > > > static struct proc_dir_entry > *capabilities_intf; > > > > > > #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, > > > > > > unsigned > > > long addr, void *data) > > > { > > > return pte_none(*pte) ? 0 : -EBUSY; > > > > > > > > > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sander Eikelenboom
2010-Jan-11 17:27 UTC
Re: [Xen-devel] Re: [Xen-users] Xen-3.4-testing build failure
Hello Kashmira., There are other build targets, you could use "make linux-2.6-xen-build" and "make linux-2.6-xen-install" for example to only rebuild and install a the xen 2.6.18 kernel (usable as dom0 and domU) It uses the source in your local copy "linux-2.6.18-xen.hg" or if not available create that one first. -- Sander Thursday, January 7, 2010, 9:34:22 PM, you wrote:> Hi Jan,> 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.> Thanks > Kashmira> --- On Thu, 1/7/10, Jan Beulich <JBeulich@novell.com> wrote:>> From: Jan Beulich <JBeulich@novell.com> >> Subject: [Xen-devel] Re: [Xen-users] Xen-3.4-testing build failure >> To: "Pasi Kärkkäinen" <pasik@iki.fi>, "Kashmira. K." <chimnee@yahoo.com> >> 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 >> > >> > I am trying to do a Xen cable linux build and am >> seeing a build failures. >> > >> > I did >> > - hg clone http://xenbits.xensource.com/xen-3.4-testing.hg >> > - cd xen-3.4-testing >> > - make world >> > >> > During the "make world" I see the following >> compile error. >> > LD >> drivers/xen/pcifront/built-in.o >> > CC >> drivers/xen/privcmd/privcmd.o >> > >> /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: >> 37: error: expected declaration >> specifiers or â€??...â€??? before >> â€??pgtable_tâ€??? >> > >> /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: >> In function >> â€??enforce_singleshot_mappingâ€???: >> > >> /root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: >> 48: warning: passing argument 4 of >> â€??apply_to_page_rangeâ€??? 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 >> > >> > Any pointer on how to fix this. >> >> Patch below - pgtable_t apparently didn''t exist in 2.6.18 >> yet. >> >> Jan >> >> Subject: privcmd: fix build >> >> Signed-off-by: Jan Beulich <jbeulich@novell.com> >> >> --- >> head-2010-01-04.orig/drivers/xen/privcmd/privcmd.c >> 2010-01-04 13:32:08.000000000 +0100 >> +++ >> head-2010-01-04/drivers/xen/privcmd/privcmd.c >> 2010-01-05 11:21:42.000000000 +0100 >> @@ -34,7 +34,7 @@ static struct proc_dir_entry *capabiliti >> static struct proc_dir_entry *capabilities_intf; >> >> #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, >> >> unsigned >> long addr, void *data) >> { >> return pte_none(*pte) ? 0 : -EBUSY; >> >> >>>-- Best regards, Sander mailto:linux@eikelenboom.it _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users