Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Drivers: hv: remove HV_DRV_VERSION

Remove HV_DRV_VERSION, it has no meaning for upstream drivers.

Initially it was supposed to show the "Linux Integration Services"
version, now it is not in sync anymore with the out-of-tree drivers
available from the MSFT website.

The only place where a version string is still required is the KVP
command "IntegrationServicesVersion" which is handled by
tools/hv/hv_kvp_daemon.c. To satisfy such KVP request from the host pass
the current string to the daemon during KVP userland registration.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Olaf Hering and committed by
Greg Kroah-Hartman
cfc25993 9c5891bd

+2 -29
-1
drivers/hid/hid-hyperv.c
··· 590 590 } 591 591 592 592 MODULE_LICENSE("GPL"); 593 - MODULE_VERSION(HV_DRV_VERSION); 594 593 module_init(mousevsc_init); 595 594 module_exit(mousevsc_exit);
-1
drivers/hv/hv_balloon.c
··· 1526 1526 module_init(init_balloon_drv); 1527 1527 1528 1528 MODULE_DESCRIPTION("Hyper-V Balloon"); 1529 - MODULE_VERSION(HV_DRV_VERSION); 1530 1529 MODULE_LICENSE("GPL");
+2
drivers/hv/hv_kvp.c
··· 86 86 /* 87 87 * Register the kernel component with the user-level daemon. 88 88 * As part of this registration, pass the LIC version number. 89 + * This number has no meaning, it satisfies the registration protocol. 89 90 */ 91 + #define HV_DRV_VERSION "3.1" 90 92 91 93 static void 92 94 kvp_register(int reg_value)
-1
drivers/hv/hv_util.c
··· 395 395 module_exit(exit_hyperv_utils); 396 396 397 397 MODULE_DESCRIPTION("Hyper-V Utilities"); 398 - MODULE_VERSION(HV_DRV_VERSION); 399 398 MODULE_LICENSE("GPL");
-1
drivers/hv/vmbus_drv.c
··· 816 816 817 817 818 818 MODULE_LICENSE("GPL"); 819 - MODULE_VERSION(HV_DRV_VERSION); 820 819 821 820 subsys_initcall(hv_acpi_init); 822 821 module_exit(vmbus_exit);
-2
drivers/net/hyperv/netvsc_drv.c
··· 306 306 struct ethtool_drvinfo *info) 307 307 { 308 308 strlcpy(info->driver, KBUILD_MODNAME, sizeof(info->driver)); 309 - strlcpy(info->version, HV_DRV_VERSION, sizeof(info->version)); 310 309 strlcpy(info->fw_version, "N/A", sizeof(info->fw_version)); 311 310 } 312 311 ··· 528 529 } 529 530 530 531 MODULE_LICENSE("GPL"); 531 - MODULE_VERSION(HV_DRV_VERSION); 532 532 MODULE_DESCRIPTION("Microsoft Hyper-V network driver"); 533 533 534 534 module_init(netvsc_drv_init);
-1
drivers/scsi/storvsc_drv.c
··· 1879 1879 } 1880 1880 1881 1881 MODULE_LICENSE("GPL"); 1882 - MODULE_VERSION(HV_DRV_VERSION); 1883 1882 MODULE_DESCRIPTION("Microsoft Hyper-V virtual storage driver"); 1884 1883 module_init(storvsc_drv_init); 1885 1884 module_exit(storvsc_drv_exit);
-1
drivers/video/hyperv_fb.c
··· 825 825 module_exit(hvfb_drv_exit); 826 826 827 827 MODULE_LICENSE("GPL"); 828 - MODULE_VERSION(HV_DRV_VERSION); 829 828 MODULE_DESCRIPTION("Microsoft Hyper-V Synthetic Video Frame Buffer Driver");
-21
include/linux/hyperv.h
··· 463 463 *read = dsize - *write; 464 464 } 465 465 466 - 467 - /* 468 - * We use the same version numbering for all Hyper-V modules. 469 - * 470 - * Definition of versioning is as follows; 471 - * 472 - * Major Number Changes for these scenarios; 473 - * 1. When a new version of Windows Hyper-V 474 - * is released. 475 - * 2. A Major change has occurred in the 476 - * Linux IC's. 477 - * (For example the merge for the first time 478 - * into the kernel) Every time the Major Number 479 - * changes, the Revision number is reset to 0. 480 - * Minor Number Changes when new functionality is added 481 - * to the Linux IC's that is not a bug fix. 482 - * 483 - * 3.1 - Added completed hv_utils driver. Shutdown/Heartbeat/Timesync 484 - */ 485 - #define HV_DRV_VERSION "3.1" 486 - 487 466 /* 488 467 * VMBUS version is 32 bit entity broken up into 489 468 * two 16 bit quantities: major_number. minor_number.