Staging: hv: Add proper versioning to HV drivers
authorHank Janssen <hjanssen@microsoft.com>
Thu, 11 Feb 2010 23:02:42 +0000 (23:02 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:37 +0000 (16:42 -0800)
Provide proper versioning information for all HV drivers.

With removal of build time/date/and Minor number as requested by Greg KH

Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyang@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/VersionInfo.h
drivers/staging/hv/Vmbus.c
drivers/staging/hv/blkvsc_drv.c
drivers/staging/hv/netvsc_drv.c
drivers/staging/hv/storvsc_drv.c
drivers/staging/hv/vmbus_drv.c

index 9c3641d99ed8c9b0e65a9b1497d43edb2e1c1466..10d7b19a485f2316fae34f4084d1fc2b31b38ab3 100644 (file)
 #ifndef __HV_VERSION_INFO
 #define __HV_VERSION_INFO
 
-static const char VersionDate[] = __DATE__;
-static const char VersionTime[] = __TIME__;
-static const char VersionDesc[] = "Version 2.0";
+/*
+ * We use the same version numbering for all Hyper-V modules.
+ *
+ * Definition of versioning is as follows;
+ *
+ *     Major Number    Changes for these scenarios;
+ *                     1.      When a new version of Windows Hyper-V
+ *                             is released.
+ *                     2.      A Major change has occurred in the
+ *                             Linux IC's.
+ *                     (For example the merge for the first time
+ *                     into the kernel) Every time the Major Number
+ *                     changes, the Revision number is reset to 0.
+ *     Minor Number    Changes when new functionality is added
+ *                     to the Linux IC's that is not a bug fix.
+ *
+ */
+#define HV_DRV_VERSION           "3.0"
+
 
 #endif
index 35a023e9f9d1dd66f5f3b137a42a5997fdf9846c..3d0a240ed664c30590bcfaf5c4a237485e7dd532 100644 (file)
@@ -273,10 +273,8 @@ int VmbusInitialize(struct hv_driver *drv)
 
        DPRINT_ENTER(VMBUS);
 
-       DPRINT_INFO(VMBUS, "+++++++ Build Date=%s %s +++++++",
-                       VersionDate, VersionTime);
-       DPRINT_INFO(VMBUS, "+++++++ Build Description=%s +++++++",
-                       VersionDesc);
+       DPRINT_INFO(VMBUS, "+++++++ HV Driver version = %s +++++++",
+                   HV_DRV_VERSION);
        DPRINT_INFO(VMBUS, "+++++++ Vmbus supported version = %d +++++++",
                        VMBUS_REVISION_NUMBER);
        DPRINT_INFO(VMBUS, "+++++++ Vmbus using SINT %d +++++++",
index 62b282844a53eb2e29ff96e418d95d778b1fc700..635692d59954379ec290619e1002ca869f7e049a 100644 (file)
@@ -31,6 +31,7 @@
 #include <scsi/scsi_dbg.h>
 #include "osd.h"
 #include "logging.h"
+#include "VersionInfo.h"
 #include "vmbus.h"
 #include "StorVscApi.h"
 
@@ -1507,6 +1508,7 @@ static void __exit blkvsc_exit(void)
 }
 
 MODULE_LICENSE("GPL");
+MODULE_VERSION(HV_DRV_VERSION);
 module_param(blkvsc_ringbuffer_size, int, S_IRUGO);
 module_init(blkvsc_init);
 module_exit(blkvsc_exit);
index 3234a7c4a42985612d5c272ab183dae2302de21d..0a780671cefe3da2abf5f1e9a4497f0538b27b71 100644 (file)
 #include <net/pkt_sched.h>
 #include "osd.h"
 #include "logging.h"
+#include "VersionInfo.h"
 #include "vmbus.h"
 #include "NetVscApi.h"
 
-MODULE_LICENSE("GPL");
-
 struct net_device_context {
        /* point back to our device context */
        struct device_context *device_ctx;
@@ -603,6 +602,8 @@ static void __exit netvsc_exit(void)
        DPRINT_EXIT(NETVSC_DRV);
 }
 
+MODULE_LICENSE("GPL");
+MODULE_VERSION(HV_DRV_VERSION);
 module_param(netvsc_ringbuffer_size, int, S_IRUGO);
 
 module_init(netvsc_init);
index 12f8f3f64c6193e4678edb935ba1e96773326d37..a10fa0ea98e5a96da724932f8ee5733422caba98 100644 (file)
@@ -32,6 +32,7 @@
 #include <scsi/scsi_dbg.h>
 #include "osd.h"
 #include "logging.h"
+#include "VersionInfo.h"
 #include "vmbus.h"
 #include "StorVscApi.h"
 
@@ -990,6 +991,7 @@ static void __exit storvsc_exit(void)
 }
 
 MODULE_LICENSE("GPL");
+MODULE_VERSION(HV_DRV_VERSION);
 module_param(storvsc_ringbuffer_size, int, S_IRUGO);
 module_init(storvsc_init);
 module_exit(storvsc_exit);
index 894eecfc63ca5bd3e8e84fb2b5bf11dc4680df05..92d70cd881bafc09908a7f9dff6ce796cefdcab8 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/irq.h>
 #include <linux/interrupt.h>
 #include <linux/sysctl.h>
+#include "VersionInfo.h"
 #include "osd.h"
 #include "logging.h"
 #include "vmbus.h"
@@ -974,6 +975,7 @@ static void __exit vmbus_exit(void)
 }
 
 MODULE_LICENSE("GPL");
+MODULE_VERSION(HV_DRV_VERSION);
 module_param(vmbus_irq, int, S_IRUGO);
 module_param(vmbus_loglevel, int, S_IRUGO);