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-devel

Re: [Xen-devel] Re: linux-next: Tree for July 25 (xen)

To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Subject: Re: [Xen-devel] Re: linux-next: Tree for July 25 (xen)
From: Randy Dunlap <rdunlap@xxxxxxxxxxxx>
Date: Thu, 04 Aug 2011 16:53:59 -0700
Cc: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Ingo Molnar <mingo@xxxxxxx>, LKML <linux-kernel@xxxxxxxxxxxxxxx>, virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx, Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>, linux-next@xxxxxxxxxxxxxxx, "H. Peter Anvin" <hpa@xxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Delivery-date: Thu, 04 Aug 2011 16:54:57 -0700
Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenotime.net; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=CG7D9pOpufQhDOvZxJNaOaB1n15bVps5lurbeubABYA=; b=cA8JAbKxPLBpJ10SLfe6bajXI7epiF1hiblC47Wco+ZSYzFIkcWz+FB1lGRSVlJCrUwQs+COJgbs+Q+mm+87mb2IninGNG5mWNWg2/DMd6+xzxmB/gAiquUbRX0uEn4w;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110804224020.GA21492@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: YPO4
References: <20110725162542.39ea8d8cbd51604523635c1a@xxxxxxxxxxxxxxxx> <20110725144629.b752bf14.rdunlap@xxxxxxxxxxxx> <20110804193534.GB12729@xxxxxxx> <20110804195539.GA11198@xxxxxxxxxxxx> <20110804131516.c4da6595.rdunlap@xxxxxxxxxxxx> <20110804223259.GB4370@xxxxxxxxxxxx> <20110804224020.GA21492@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-3.fc11 Thunderbird/3.0
On 08/04/11 15:40, Konrad Rzeszutek Wilk wrote:
> On Thu, Aug 04, 2011 at 06:32:59PM -0400, Konrad Rzeszutek Wilk wrote:
>>>>> These build failures are still triggering upstream:
>>>>>
>>>>>  arch/x86/xen/trace.c:44:2: error: array index in initializer not of 
>>>>> integer type
>>>>>  arch/x86/xen/trace.c:44:2: error: (near initialization for 
>>>>> ‘xen_hypercall_names’)
>>>>>  arch/x86/xen/trace.c:45:1: error: ‘__HYPERVISOR_arch_4’ undeclared here 
>>>>> (not in a function)
>>>>>  arch/x86/xen/trace.c:45:2: error: array index in initializer not of 
>>>>> integer type
>>>>>  arch/x86/xen/trace.c:45:2: error: (near initialization for 
>>>>> ‘xen_hypercall_names’)
>>>>
>>>> Oh, that I haven't seen. Can you send me the .config for that please.
>>>
>>> You can't be trying very hard then.  I see lots of these (but no,
>>
>> Ah, I am getting it now. Thanks for reporting it.
> 
> This should do the trick:

Acked-by: Randy Dunlap <rdunlap@xxxxxxxxxxxx>

Thanks.


> diff --git a/arch/x86/xen/trace.c b/arch/x86/xen/trace.c
> index 734beba..520022d 100644
> --- a/arch/x86/xen/trace.c
> +++ b/arch/x86/xen/trace.c
> @@ -1,4 +1,5 @@
>  #include <linux/ftrace.h>
> +#include <xen/interface/xen.h>
>  
>  #define N(x) [__HYPERVISOR_##x] = "("#x")"
>  static const char *xen_hypercall_names[] = {


-- 
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

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