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] [PATCH] xen: allow CONFIG_ACPI_PROCESSOR_XEN=m

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] xen: allow CONFIG_ACPI_PROCESSOR_XEN=m
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Thu, 3 Dec 2009 22:46:02 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Jeremy, Fitzhardinge <Jeremy.Fitzhardinge@xxxxxxxxxx>, Yu Ke <ke.yu@xxxxxxxxx>
Delivery-date: Thu, 03 Dec 2009 14:46:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B183E8F.6040601@xxxxxxxx>
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: Citrix Systems, Inc.
References: <1259877811-32572-1-git-send-email-ian.campbell@xxxxxxxxxx> <4B183E8F.6040601@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2009-12-03 at 22:41 +0000, Jeremy Fitzhardinge wrote: 
> On 12/03/09 14:03, Ian Campbell wrote:
> > diff --git a/include/xen/acpi.h b/include/xen/acpi.h
> > index 3d7ea40..8506688 100644
> > --- a/include/xen/acpi.h
> > +++ b/include/xen/acpi.h
> > @@ -41,7 +41,7 @@ int acpi_notify_hypervisor_state(u8 sleep_state,
> >   #define HOTPLUG_TYPE_ADD  0
> >   #define HOTPLUG_TYPE_REMOVE       1
> >
> > -#ifdef CONFIG_ACPI_PROCESSOR_XEN
> > +#if defined(CONFIG_ACPI_PROCESSOR_XEN) || 
> > defined(CONFIG_ACPI_PROCESSOR_XEN_MODULE)
> >    
> 
> Is this necessary?  I thought =m defined CONFIG_ACPI_PROCESSOR_XE.

I thought so too but I got a build error without this change:

  CC [M]  drivers/xen/acpi_processor.o
drivers/xen/acpi_processor.c:41: error: variable ‘xen_ops’ has initializer but 
incomplete type
drivers/xen/acpi_processor.c:42: error: unknown field ‘hotplug’ specified in 
initializer
drivers/xen/acpi_processor.c:42: warning: excess elements in struct initializer
drivers/xen/acpi_processor.c:42: warning: (near initialization for ‘xen_ops’)
drivers/xen/acpi_processor.c:47: error: redefinition of 
‘processor_cntl_xen_power_cache’
include/xen/acpi.h:74: error: previous definition of 
‘processor_cntl_xen_power_cache’ was here
drivers/xen/acpi_processor.c:72: error: redefinition of ‘processor_cntl_xen’
include/xen/acpi.h:63: error: previous definition of ‘processor_cntl_xen’ was 
here
drivers/xen/acpi_processor.c:78: error: redefinition of ‘processor_cntl_xen_pm’
include/xen/acpi.h:64: error: previous definition of ‘processor_cntl_xen_pm’ 
was here
drivers/xen/acpi_processor.c: In function ‘processor_cntl_xen_pm’:
drivers/xen/acpi_processor.c:80: error: invalid use of undefined type ‘struct 
processor_cntl_xen_ops’
drivers/xen/acpi_processor.c: At top level:
drivers/xen/acpi_processor.c:84: error: redefinition of 
‘processor_cntl_xen_pmperf’
include/xen/acpi.h:65: error: previous definition of 
‘processor_cntl_xen_pmperf’ was here
drivers/xen/acpi_processor.c: In function ‘processor_cntl_xen_pmperf’:
drivers/xen/acpi_processor.c:86: error: invalid use of undefined type ‘struct 
processor_cntl_xen_ops’
drivers/xen/acpi_processor.c: At top level:
drivers/xen/acpi_processor.c:90: error: redefinition of 
‘processor_cntl_xen_pmthr’
include/xen/acpi.h:66: error: previous definition of ‘processor_cntl_xen_pmthr’ 
was here
drivers/xen/acpi_processor.c: In function ‘processor_cntl_xen_pmthr’:
drivers/xen/acpi_processor.c:92: error: invalid use of undefined type ‘struct 
processor_cntl_xen_ops’
drivers/xen/acpi_processor.c: At top level:
drivers/xen/acpi_processor.c:96: error: redefinition of 
‘processor_cntl_xen_notify’
include/xen/acpi.h:69: error: previous definition of 
‘processor_cntl_xen_notify’ was here
drivers/xen/acpi_processor.c: In function ‘processor_cntl_xen_notify’:
drivers/xen/acpi_processor.c:104: error: invalid use of undefined type ‘struct 
processor_cntl_xen_ops’
drivers/xen/acpi_processor.c:107: error: invalid use of undefined type ‘struct 
processor_cntl_xen_ops’
drivers/xen/acpi_processor.c:110: error: invalid use of undefined type ‘struct 
processor_cntl_xen_ops’
drivers/xen/acpi_processor.c:111: error: invalid use of undefined type ‘struct 
processor_cntl_xen_ops’
drivers/xen/acpi_processor.c: In function ‘xen_acpi_processor_extcntl_init’:
drivers/xen/acpi_processor.c:327: error: invalid use of undefined type ‘struct 
processor_cntl_xen_ops’
drivers/xen/acpi_processor.c:329: error: invalid use of undefined type ‘struct 
processor_cntl_xen_ops’
drivers/xen/acpi_processor.c:331: error: invalid use of undefined type ‘struct 
processor_cntl_xen_ops’
make[2]: *** [drivers/xen/acpi_processor.o] Error 1
make[1]: *** [drivers/xen/] Error 2
make: *** [sub-make] Error 2


Ian.



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

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