processor_xen.o should depend on CONFIG_XEN
By accident CONFIG_XEN got disabled in my .config. I noticed that in xen.git/drivers/acpi/Makefile processor_xen.o is compiled unconditionally. I think it should be processor-$(CONFIG_XEN) instead of processor-y because it references xen_pcpu_index().
Olaf
Olaf Hering writes ("[Xen-devel] processor_xen.o should depend on CONFIG_XEN"):
Quoted 4 lines
By accident
CONFIG_XENgot disabled in my .config. I noticed that in xen.git/drivers/acpi/Makefile processor_xen.o is compiled unconditionally. I think it should be processor-$(CONFIG_XEN) instead of processor-y because it referencesxen_pcpu_index().
Would you care to write a patch to this effect ?
Ian.
PATCH 1/1 processor_xen.o should depend on CONFIG_XEN
processor_xen.c references symbols which are only availabe if CONFIG_XEN is enabled.
--- drivers/acpi/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/Makefile +1 -1
@@ -61,7 +61,7 @@ obj-$(CONFIG_ACPI_POWER_METER) += power_ # processor has its own "processor." module_param namespace processor-y := processor_core.o processor_throttling.o processor-y += processor_idle.o processor_thermal.o -processor-y += processor_xen.o +processor-$(CONFIG_XEN) += processor_xen.o processor-$(CONFIG_CPU_FREQ) += processor_perflib.o obj-$(CONFIG_ACPI_PROCESSOR_AGGREGATOR) += acpi_pad.o
Olaf Hering writes ("[PATCH] processor_xen.o should depend on CONFIG_XEN"):
Quoted 2 lines
processor_xen.creferences symbols which are only availabe ifCONFIG_XENis enabled.
Thanks. This should be sent to linux-kernel and perhaps go in via the Xen tree ?
Ian.
Quoted 2 lines · Olaf Hering
processor_xen.creferences symbols which are only availabe ifCONFIG_XENis enabled.
Hehe. I saw this for 2.6.38 some time ago from Ian Campbell and promptly forgot. Now it comes up again. Will stick it on 2.6.39 bug-fix branch shortly.
Quoted 25 lines
Signed-off-by Olaf Hering <[email protected]>--- drivers/acpi/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Index: linux-2.6.32.32-0.2-pvops/drivers/acpi/Makefile
===================================================================drivers/acpi/Makefile +1
-1@@ -61,7 +61,7 @@ obj-$(CONFIG_ACPI_POWER_METER) += power_ # processor has its own "processor." module_param namespace processor-y := processor_core.o processor_throttling.o processor-y += processor_idle.o processor_thermal.o -processor-y += processor_xen.o +processor-$(CONFIG_XEN) += processor_xen.o processor-$(CONFIG_CPU_FREQ) += processor_perflib.o obj-$(CONFIG_ACPI_PROCESSOR_AGGREGATOR) += acpi_pad.o_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 6 lines · Konrad Rzeszutek Wilk
Quoted 2 lines · Olaf Hering
processor_xen.creferences symbols which are only availabe ifCONFIG_XENis enabled.Hehe. I saw this for 2.6.38 some time ago from Ian Campbell and promptly forgot. Now it comes up again. Will stick it on 2.6.39 bug-fix branch shortly.
Thats mainly for stable-2.6.32.x, if it applies to other trees too, fine with me.
Olaf