WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] rebased opensuse 2.6.31 xen patches

To: Marco Nenciarini <mnencia@xxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxxxx>, xen-users List <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] rebased opensuse 2.6.31 xen patches
From: Andrew Lyon <andrew.lyon@xxxxxxxxx>
Date: Fri, 23 Oct 2009 12:35:01 +0100
Cc:
Delivery-date: Fri, 23 Oct 2009 04:35:50 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=R9le9Rk/NbQp4jjJpM6ia72IBTR59A7l20POj38E+AY=; b=lZ7o+KPV2v7VuBgdFNFkuWAxdhDHHZbTz++yDGqq8im/B8Tb84oWudUkPFdNIOW3jM HVqA7jTEnOtcEHhcf+hHyzDfImEi9x4OQA+1SXRbKwnbRaD71PwhxZ3cxRzg8ocEOzfn yGqycb7rhit3Itx9Z8xDZmND/fTCT19WL9BD8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=e+uuHG/si699Rq54Buwh12Sb2SbEDYkp+9dKoSbISSFQ+ec67yuplyRqvh2H4bdUQ9 o90hFvXhGwA40CE4wDtlELlkWr0LBNI+A4nATkzwGP1DXAV3eKTwKp9i7uG9kkIgfuhO 36aZpt4gyaM4LvUzWkzj6+YhJ2jHoIuH2QRJ0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <f4527be0910230428o515a4d6frdb8b30c47a14e861@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <f4527be0910140836n773edebdt111533bc415602a7@xxxxxxxxxxxxxx> <20091023102712.GA23463@xxxxxxxxxxxxxxxxxxxx> <f4527be0910230341r3f15aa94w50d333e45cf24965@xxxxxxxxxxxxxx> <4AE18D7B.9050008@xxxxxxxxxxxxxx> <f4527be0910230428o515a4d6frdb8b30c47a14e861@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, Oct 23, 2009 at 12:28 PM, Andrew Lyon <andrew.lyon@xxxxxxxxx> wrote:
> On Fri, Oct 23, 2009 at 12:03 PM, Marco Nenciarini
> <mnencia@xxxxxxxxxxxxxx> wrote:
>> Andrew Lyon ha scritto:
>>>
>>> On Fri, Oct 23, 2009 at 11:27 AM, Marco Nenciarini
>>>
>>> Thanks, does this fix a problem you have encountered? If so I would
>>> like to see an example of the oops or warning you receive due to this
>>> error.
>>>
>>> Andy
>>
>> Without that patch it does not compile at all.
>>
>>
>> scripts/kconfig/conf -s arch/x86/Kconfig
>>  Using
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen
>> as source for kernel
>>  GEN
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/build_amd64_xen_amd64/Makefile
>>  CHK     include/linux/version.h
>>  UPD     include/linux/version.h
>>  CHK     include/linux/utsrelease.h
>>  UPD     include/linux/utsrelease.h
>>  SYMLINK include/asm -> include/asm-x86
>>  Updating
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/build_amd64_xen_amd64/scripts/Makefile.xen
>>  CC      kernel/bounds.s
>>  GEN     include/linux/bounds.h
>>  CC      arch/x86/kernel/asm-offsets.s
>> In file included from
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/include/linux/spinlock.h:88,
>>                 from
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/include/linux/seqlock.h:29,
>>                 from
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/include/linux/time.h:8,
>>                 from
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/include/linux/stat.h:60,
>>                 from
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/include/linux/module.h:10,
>>                 from
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/include/linux/crypto.h:21,
>>                 from
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/arch/x86/kernel/asm-offsets_64.c:7,
>>                 from
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/arch/x86/kernel/asm-offsets.c:4:
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/arch/x86/include/mach-xen/asm/spinlock.h:134:
>> error: expected identifier or ‘(’ before ‘:’ token
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/arch/x86/include/mach-xen/asm/spinlock.h:138:
>> error: expected identifier or ‘(’ before ‘}’ token
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/arch/x86/include/mach-xen/asm/spinlock.h:138:
>> error: expected identifier or ‘(’ before ‘while’
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/arch/x86/include/mach-xen/asm/spinlock.h:
>> In function ‘__ticket_spin_lock’:
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/arch/x86/include/mach-xen/asm/spinlock.h:217:
>> error: expected ‘:’ or ‘)’ before ‘;’ token
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/arch/x86/include/mach-xen/asm/spinlock.h:217:
>> warning: unused variable ‘tmp’
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/arch/x86/include/mach-xen/asm/spinlock.h:227:
>> error: expected ‘while’ before ‘static’
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/arch/x86/kernel/asm-offsets.c:5:
>> error: expected declaration or statement at end of input
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/arch/x86/include/mach-xen/asm/spinlock.h:215:
>> warning: unused variable ‘free’
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/arch/x86/include/mach-xen/asm/spinlock.h:214:
>> warning: unused variable ‘count’
>> /home/mnencia/deb/kernel/lab/linux-2.6-2.6.31/debian/build/source_amd64_xen/arch/x86/include/mach-xen/asm/spinlock.h:214:
>> warning: unused variable ‘token’
>> make[5]: *** [arch/x86/kernel/asm-offsets.s] Error 1
>> make[4]: *** [prepare0] Error 2
>>
>> Marco
>>
>> --
>> ---------------------------------------------------------------------
>> |    Marco Nenciarini    | Debian/GNU Linux Developer - Plug Member |
>> | mnencia@xxxxxxxxxxxxxx | http://www.prato.linux.it/~mnencia       |
>> ---------------------------------------------------------------------
>> Key fingerprint = FED9 69C7 9E67 21F5 7D95  5270 6864 730D F095 E5E4
>>
>>
>
> Weird, I can compile both 32 and 64 bit domU and dom0 without any
> errors like that, looking at the code I'd expect to hit that error
> straight away.

Ah ha, you have NR_CPUS set to greater than 256, yes?

>
> I've CC'ed Jan and attached your patch to this message, he may want to
> merge this upstream (or point out that I'm wrong again).

Jan: I've checked the opensuse patches that I exclude and none of them
would fix this error, so it does appear that you should merge this fix
otherwise compile will fail with NR_CPUS > 256

>
> Andy
>

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>