]> xenbits.xen.org Git - xenclient/linux-2.6.27-pq.git/commitdiff
Modified to allow test driver to be created as a module.
authorRoss Philipson <ross.philipson@citrix.com>
Sun, 1 Nov 2009 21:31:15 +0000 (16:31 -0500)
committerRoss Philipson <ross.philipson@citrix.com>
Sun, 1 Nov 2009 21:31:15 +0000 (16:31 -0500)
 Changes to be committed:
modified:   master/v2v-async
modified:   master/v2v-core

master/v2v-async
master/v2v-core

index e83f8a2a6ce523dcca75119ab628e1ae5622a37c..d5eed065153cc41a48eb3e0513bd038e931b9fbd 100644 (file)
@@ -423,10 +423,10 @@ index c623a2d..4af02ee 100644
      printk(KERN_ERR "v2v: " fmt, ##args)
  
  #endif /* !V2V_PRIVATE_H__ */
-diff --git a/drivers/xen/v2v/v2vdrv.c b/drivers/xen/v2v/v2vdrv.c
+diff --git a/drivers/xen/v2v/v2vsamp.c b/drivers/xen/v2v/v2vsamp.c
 index 0c362bb..dfa8a43 100644
---- a/drivers/xen/v2v/v2vdrv.c
-+++ b/drivers/xen/v2v/v2vdrv.c
+--- a/drivers/xen/v2v/v2vsamp.c
++++ b/drivers/xen/v2v/v2vsamp.c
 @@ -49,11 +49,13 @@
  
  static const char v2vdrv_usage[] = \
index 8bd90d3f15a9b765526f177c220962f76369607a..3afb6ad05a4d803c3c693110b75159b2f3176854 100644 (file)
@@ -19,7 +19,7 @@ index 873e5a3..408e7eb 100644
  obj-$(CONFIG_XEN_NETDEV_ACCEL_SFC_FRONTEND)   += sfc_netfront/
  obj-$(CONFIG_XEN_NETDEV_ACCEL_SFC_BACKEND)    += sfc_netback/
  obj-$(CONFIG_XEN_ACPI_WMI_WRAPPER)              += acpi-wmi/
-+obj-y                         += v2v/
++obj-$(CONFIG_XEN_V2V)          += v2v/
 diff --git a/drivers/xen/v2v/Kconfig b/drivers/xen/v2v/Kconfig
 new file mode 100644
 index 0000000..5966234
@@ -31,23 +31,23 @@ index 0000000..5966234
 +#
 +
 +config XEN_V2V
-+        tristate "Xen V2V communications driver"
++        bool "Xen V2V communications driver"
 +        depends on XEN
-+      default y
++        default y
 +        help
 +          Xen interdomain communication services.
 +
 +config XEN_V2V_DEBUG
-+      bool "Xen V2V Debugging"
++        bool "Xen V2V Debugging"
 +        depends on XEN_V2V
-+      default n
++        default n
 +        help
 +          V2V debugging and messages.
 +
 +config XEN_V2V_DRV
 +        tristate "Xen V2V sample communications client driver"
 +        depends on XEN_V2V
-+      default n
++        default n
 +        help
 +          Sample for Xen V2V interdomain communication services.
 diff --git a/drivers/xen/v2v/Makefile b/drivers/xen/v2v/Makefile
@@ -55,10 +55,13 @@ new file mode 100644
 index 0000000..f3442d9
 --- /dev/null
 +++ b/drivers/xen/v2v/Makefile
-@@ -0,0 +1,5 @@
+@@ -0,0 +1,8 @@
++obj-y += v2v.o v2vutl.o
 +
-+obj-$(CONFIG_XEN_V2V) += v2v.o v2vutl.o
-+obj-$(CONFIG_XEN_V2V_DRV) += v2vdrv.o v2vops.o
++obj-$(CONFIG_XEN_V2V_DRV) += v2vdrv.o
++
++v2vdrv-objs = 
++v2vdrv-objs += v2vsamp.o v2vops.o
 +
 +ccflags-$(CONFIG_XEN_V2V_DEBUG) += -DDEBUG
 diff --git a/drivers/xen/v2v/v2v.c b/drivers/xen/v2v/v2v.c
@@ -1658,14 +1661,14 @@ index 0000000..c623a2d
 +    printk(KERN_ERR "v2v: " fmt, ##args)
 +
 +#endif /* !V2V_PRIVATE_H__ */
-diff --git a/drivers/xen/v2v/v2vdrv.c b/drivers/xen/v2v/v2vdrv.c
+diff --git a/drivers/xen/v2v/v2vsamp.c b/drivers/xen/v2v/v2vsamp.c
 new file mode 100644
 index 0000000..0c362bb
 --- /dev/null
-+++ b/drivers/xen/v2v/v2vdrv.c
++++ b/drivers/xen/v2v/v2vsamp.c
 @@ -0,0 +1,369 @@
 +/******************************************************************************
-+ * drivers/xen/v2v/v2vdrv.c
++ * drivers/xen/v2v/v2vsamp.c
 + *
 + * V2V sample client driver.
 + *