|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH][pv_ops] fix the compiling warning when CONFIG_ACPI_P
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 */
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 <=
|
|
|
|
|