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

xen-devel

[Top] [All Lists]

[Xen-devel] [PATCH][pv_ops] fix the compiling warning when CONFIG_ACPI_P

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: [Xen-devel] [PATCH][pv_ops] fix the compiling warning when CONFIG_ACPI_PROCESSOR_XEN is not set
From: "Yu, Ke" <ke.yu@xxxxxxxxx>
Date: 2009年8月25日 22:08:04 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: Gianluca, Guida <Gianluca.Guida@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: 2009年8月25日 07:08:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcoljXbTRl31QzsIQJK92K9PpwYVqg==
Thread-topic: [PATCH][pv_ops] fix the compiling warning when CONFIG_ACPI_PROCESSOR_XEN is not set
fix the compiling warning when CONFIG_ACPI_PROCESSOR_XEN is not set
when CONFIG_ACPI_PROCESSOR_XEN is not set, the <include/acpi/processor.h>
is not included, thus the "struct acpi_processor" is not defined, which
will cause compiling warning for inline function
processor_cntl_xen_prepare(struct acpi_processor *pr);
moving the <include/acpi/processor.h> out of "#ifdef CONFIG_ACPI_PROCESSOR_XEN"
will fix this issue.
Signed-off-by: Yu Ke <ke.yu@xxxxxxxxx>
diff --git a/include/xen/acpi.h b/include/xen/acpi.h
index fafc337..3d73163 100644
--- a/include/xen/acpi.h
+++ b/include/xen/acpi.h
@@ -2,6 +2,8 @@
 #define _XEN_ACPI_H
 
 #include <linux/types.h>
+#include <acpi/acpi_drivers.h>
+#include <acpi/processor.h>
 
 #ifdef CONFIG_XEN_S3
 #include <asm/xen/hypervisor.h>
@@ -40,8 +42,6 @@ int acpi_notify_hypervisor_state(u8 sleep_state,
 #define HOTPLUG_TYPE_REMOVE 1
 
 #ifdef CONFIG_ACPI_PROCESSOR_XEN
-#include <acpi/acpi_drivers.h>
-#include <acpi/processor.h>
 
 struct processor_cntl_xen_ops {
 /* Transfer processor PM events to xen */

Attachment: pv_ops_compiling.patch
Description: pv_ops_compiling.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH][pv_ops] fix the compiling warning when CONFIG_ACPI_PROCESSOR_XEN is not set, Yu, Ke <=
Previous by Date: [Xen-devel] RE: About CONFIG_ACPI_PROCESSOR_XEN , Yu, Ke
Next by Date: [Xen-devel] [RFC] [PATCH] Accurate accounting for credit scheduler , George Dunlap
Previous by Thread: [Xen-devel] And another gplpv update , James Harper
Next by Thread: [Xen-devel] [RFC] [PATCH] Accurate accounting for credit scheduler , George Dunlap
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /