Mailing List Archive

[PATCH] linux: Make CONFIG_XEN_BACKEND=m build properly
Signed-off-by: Jan Beulich <jbeulich@novell.com>

Index: sle10-sp1-2006-12-05/drivers/xen/xenbus/Makefile
===================================================================
--- sle10-sp1-2006-12-05.orig/drivers/xen/xenbus/Makefile 2006-12-05 12:54:41.000000000 +0100
+++ sle10-sp1-2006-12-05/drivers/xen/xenbus/Makefile 2006-12-05 14:45:20.000000000 +0100
@@ -1,13 +1,9 @@
-obj-y += xenbus.o
+obj-y += xenbus_client.o xenbus_comms.o xenbus_xs.o xenbus_probe.o
obj-$(CONFIG_XEN_BACKEND) += xenbus_be.o

xenbus_be-objs =
xenbus_be-objs += xenbus_backend_client.o

-xenbus-objs =
-xenbus-objs += xenbus_client.o
-xenbus-objs += xenbus_comms.o
-xenbus-objs += xenbus_xs.o
-xenbus-objs += xenbus_probe.o
-obj-$(CONFIG_XEN_BACKEND) += xenbus_probe_backend.o
+xenbus-$(CONFIG_XEN_BACKEND) += xenbus_probe_backend.o
+obj-y += $(xenbus-y) $(xenbus-m)
obj-$(CONFIG_XEN_XENBUS_DEV) += xenbus_dev.o
Index: sle10-sp1-2006-12-05/drivers/xen/xenbus/xenbus_probe.h
===================================================================
--- sle10-sp1-2006-12-05.orig/drivers/xen/xenbus/xenbus_probe.h 2006-12-05 12:54:41.000000000 +0100
+++ sle10-sp1-2006-12-05/drivers/xen/xenbus/xenbus_probe.h 2006-12-05 14:46:00.000000000 +0100
@@ -34,7 +34,7 @@
#ifndef _XENBUS_PROBE_H
#define _XENBUS_PROBE_H

-#ifdef CONFIG_XEN_BACKEND
+#if defined(CONFIG_XEN_BACKEND) || defined(CONFIG_XEN_BACKEND_MODULE)
extern void xenbus_backend_suspend(int (*fn)(struct device *, void *));
extern void xenbus_backend_resume(int (*fn)(struct device *, void *));
extern void xenbus_backend_probe_and_watch(void);


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