diff options
author | Hank Janssen <hjanssen@microsoft.com> | 2010-02-11 18:02:42 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-03 19:42:37 -0500 |
commit | 26c14cc119204adc218259251919c5198d07dafe (patch) | |
tree | 879bbb2c7e4c97d6f6e9ce1165c3d25e06921654 /drivers | |
parent | 4408f5319b6c8784120e0784df315b87e8a5dfef (diff) |
Staging: hv: Add proper versioning to HV drivers
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/hv/VersionInfo.h | 22 | ||||
-rw-r--r-- | drivers/staging/hv/Vmbus.c | 6 | ||||
-rw-r--r-- | drivers/staging/hv/blkvsc_drv.c | 2 | ||||
-rw-r--r-- | drivers/staging/hv/netvsc_drv.c | 5 | ||||
-rw-r--r-- | drivers/staging/hv/storvsc_drv.c | 2 | ||||
-rw-r--r-- | drivers/staging/hv/vmbus_drv.c | 2 |
6 files changed, 30 insertions, 9 deletions
diff --git a/drivers/staging/hv/VersionInfo.h b/drivers/staging/hv/VersionInfo.h index 9c3641d99ed..10d7b19a485 100644 --- a/drivers/staging/hv/VersionInfo.h +++ b/drivers/staging/hv/VersionInfo.h | |||
@@ -24,8 +24,24 @@ | |||
24 | #ifndef __HV_VERSION_INFO | 24 | #ifndef __HV_VERSION_INFO |
25 | #define __HV_VERSION_INFO | 25 | #define __HV_VERSION_INFO |
26 | 26 | ||
27 | static const char VersionDate[] = __DATE__; | 27 | /* |
28 | static const char VersionTime[] = __TIME__; | 28 | * We use the same version numbering for all Hyper-V modules. |
29 | static const char VersionDesc[] = "Version 2.0"; | 29 | * |
30 | * Definition of versioning is as follows; | ||
31 | * | ||
32 | * Major Number Changes for these scenarios; | ||
33 | * 1. When a new version of Windows Hyper-V | ||
34 | * is released. | ||
35 | * 2. A Major change has occurred in the | ||
36 | * Linux IC's. | ||
37 | * (For example the merge for the first time | ||
38 | * into the kernel) Every time the Major Number | ||
39 | * changes, the Revision number is reset to 0. | ||
40 | * Minor Number Changes when new functionality is added | ||
41 | * to the Linux IC's that is not a bug fix. | ||
42 | * | ||
43 | */ | ||
44 | #define HV_DRV_VERSION "3.0" | ||
45 | |||
30 | 46 | ||
31 | #endif | 47 | #endif |
diff --git a/drivers/staging/hv/Vmbus.c b/drivers/staging/hv/Vmbus.c index 35a023e9f9d..3d0a240ed66 100644 --- a/drivers/staging/hv/Vmbus.c +++ b/drivers/staging/hv/Vmbus.c | |||
@@ -273,10 +273,8 @@ int VmbusInitialize(struct hv_driver *drv) | |||
273 | 273 | ||
274 | DPRINT_ENTER(VMBUS); | 274 | DPRINT_ENTER(VMBUS); |
275 | 275 | ||
276 | DPRINT_INFO(VMBUS, "+++++++ Build Date=%s %s +++++++", | 276 | DPRINT_INFO(VMBUS, "+++++++ HV Driver version = %s +++++++", |
277 | VersionDate, VersionTime); | 277 | HV_DRV_VERSION); |
278 | DPRINT_INFO(VMBUS, "+++++++ Build Description=%s +++++++", | ||
279 | VersionDesc); | ||
280 | DPRINT_INFO(VMBUS, "+++++++ Vmbus supported version = %d +++++++", | 278 | DPRINT_INFO(VMBUS, "+++++++ Vmbus supported version = %d +++++++", |
281 | VMBUS_REVISION_NUMBER); | 279 | VMBUS_REVISION_NUMBER); |
282 | DPRINT_INFO(VMBUS, "+++++++ Vmbus using SINT %d +++++++", | 280 | DPRINT_INFO(VMBUS, "+++++++ Vmbus using SINT %d +++++++", |
diff --git a/drivers/staging/hv/blkvsc_drv.c b/drivers/staging/hv/blkvsc_drv.c index 62b282844a5..635692d5995 100644 --- a/drivers/staging/hv/blkvsc_drv.c +++ b/drivers/staging/hv/blkvsc_drv.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <scsi/scsi_dbg.h> | 31 | #include <scsi/scsi_dbg.h> |
32 | #include "osd.h" | 32 | #include "osd.h" |
33 | #include "logging.h" | 33 | #include "logging.h" |
34 | #include "VersionInfo.h" | ||
34 | #include "vmbus.h" | 35 | #include "vmbus.h" |
35 | #include "StorVscApi.h" | 36 | #include "StorVscApi.h" |
36 | 37 | ||
@@ -1507,6 +1508,7 @@ static void __exit blkvsc_exit(void) | |||
1507 | } | 1508 | } |
1508 | 1509 | ||
1509 | MODULE_LICENSE("GPL"); | 1510 | MODULE_LICENSE("GPL"); |
1511 | MODULE_VERSION(HV_DRV_VERSION); | ||
1510 | module_param(blkvsc_ringbuffer_size, int, S_IRUGO); | 1512 | module_param(blkvsc_ringbuffer_size, int, S_IRUGO); |
1511 | module_init(blkvsc_init); | 1513 | module_init(blkvsc_init); |
1512 | module_exit(blkvsc_exit); | 1514 | module_exit(blkvsc_exit); |
diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c index 3234a7c4a42..0a780671cef 100644 --- a/drivers/staging/hv/netvsc_drv.c +++ b/drivers/staging/hv/netvsc_drv.c | |||
@@ -35,11 +35,10 @@ | |||
35 | #include <net/pkt_sched.h> | 35 | #include <net/pkt_sched.h> |
36 | #include "osd.h" | 36 | #include "osd.h" |
37 | #include "logging.h" | 37 | #include "logging.h" |
38 | #include "VersionInfo.h" | ||
38 | #include "vmbus.h" | 39 | #include "vmbus.h" |
39 | #include "NetVscApi.h" | 40 | #include "NetVscApi.h" |
40 | 41 | ||
41 | MODULE_LICENSE("GPL"); | ||
42 | |||
43 | struct net_device_context { | 42 | struct net_device_context { |
44 | /* point back to our device context */ | 43 | /* point back to our device context */ |
45 | struct device_context *device_ctx; | 44 | struct device_context *device_ctx; |
@@ -603,6 +602,8 @@ static void __exit netvsc_exit(void) | |||
603 | DPRINT_EXIT(NETVSC_DRV); | 602 | DPRINT_EXIT(NETVSC_DRV); |
604 | } | 603 | } |
605 | 604 | ||
605 | MODULE_LICENSE("GPL"); | ||
606 | MODULE_VERSION(HV_DRV_VERSION); | ||
606 | module_param(netvsc_ringbuffer_size, int, S_IRUGO); | 607 | module_param(netvsc_ringbuffer_size, int, S_IRUGO); |
607 | 608 | ||
608 | module_init(netvsc_init); | 609 | module_init(netvsc_init); |
diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index 12f8f3f64c6..a10fa0ea98e 100644 --- a/drivers/staging/hv/storvsc_drv.c +++ b/drivers/staging/hv/storvsc_drv.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <scsi/scsi_dbg.h> | 32 | #include <scsi/scsi_dbg.h> |
33 | #include "osd.h" | 33 | #include "osd.h" |
34 | #include "logging.h" | 34 | #include "logging.h" |
35 | #include "VersionInfo.h" | ||
35 | #include "vmbus.h" | 36 | #include "vmbus.h" |
36 | #include "StorVscApi.h" | 37 | #include "StorVscApi.h" |
37 | 38 | ||
@@ -990,6 +991,7 @@ static void __exit storvsc_exit(void) | |||
990 | } | 991 | } |
991 | 992 | ||
992 | MODULE_LICENSE("GPL"); | 993 | MODULE_LICENSE("GPL"); |
994 | MODULE_VERSION(HV_DRV_VERSION); | ||
993 | module_param(storvsc_ringbuffer_size, int, S_IRUGO); | 995 | module_param(storvsc_ringbuffer_size, int, S_IRUGO); |
994 | module_init(storvsc_init); | 996 | module_init(storvsc_init); |
995 | module_exit(storvsc_exit); | 997 | module_exit(storvsc_exit); |
diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c index 894eecfc63c..92d70cd881b 100644 --- a/drivers/staging/hv/vmbus_drv.c +++ b/drivers/staging/hv/vmbus_drv.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/irq.h> | 24 | #include <linux/irq.h> |
25 | #include <linux/interrupt.h> | 25 | #include <linux/interrupt.h> |
26 | #include <linux/sysctl.h> | 26 | #include <linux/sysctl.h> |
27 | #include "VersionInfo.h" | ||
27 | #include "osd.h" | 28 | #include "osd.h" |
28 | #include "logging.h" | 29 | #include "logging.h" |
29 | #include "vmbus.h" | 30 | #include "vmbus.h" |
@@ -974,6 +975,7 @@ static void __exit vmbus_exit(void) | |||
974 | } | 975 | } |
975 | 976 | ||
976 | MODULE_LICENSE("GPL"); | 977 | MODULE_LICENSE("GPL"); |
978 | MODULE_VERSION(HV_DRV_VERSION); | ||
977 | module_param(vmbus_irq, int, S_IRUGO); | 979 | module_param(vmbus_irq, int, S_IRUGO); |
978 | module_param(vmbus_loglevel, int, S_IRUGO); | 980 | module_param(vmbus_loglevel, int, S_IRUGO); |
979 | 981 | ||