md: dm-ps-*: delete version strings
PATCH 1/1 md: dm-ps-*: delete version strings
Reminiscent of ancient times, when modules were developed outside the kernel. Pretty useless nowadays for code included in the official kernel repo, with constant changes and without updating the version number.
---
BTW, MODULE_VERSION should be removed from the entire tree.
___
drivers/md/dm-ps-historical-service-time.c | 3 +-- drivers/md/dm-ps-queue-length.c | 3 +-- drivers/md/dm-ps-round-robin.c | 3 +-- drivers/md/dm-ps-service-time.c | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-)
drivers/md/dm-ps-historical-service-time.c +1 -2
@@ -31,7 +31,6 @@#define DM_MSG_PREFIX "multipath historical-service-time"#define HST_MIN_IO 1 -#define HST_VERSION "0.1.1"#define HST_FIXED_SHIFT 10/* 10 bits of decimal precision */ #define HST_FIXED_MAX (ULLONG_MAX >> HST_FIXED_SHIFT)
@@ -544,7 +543,7 @@ static int __init dm_hst_init(void)if (r <0 )DMERR ("register failed %d" , r); -DMINFO ("version " HST_VERSION " loaded" ); +DMINFO (" loaded" );return r; }
drivers/md/dm-ps-queue-length.c +1 -2
@@ -25,7 +25,6 @@#define DM_MSG_PREFIX "multipath queue-length"#define QL_MIN_IO 1 -#define QL_VERSION "0.2.0"struct selector {struct list_head valid_paths;
@@ -263,7 +262,7 @@ static int __init dm_ql_init(void)if (r <0 )DMERR ("register failed %d" , r); -DMINFO ("version " QL_VERSION " loaded" ); +DMINFO (" loaded" );return r; }
drivers/md/dm-ps-round-robin.c +1 -2
@@ -19,7 +19,6 @@#define DM_MSG_PREFIX "multipath round-robin"#define RR_MIN_IO 1 -#define RR_VERSION "1.2.0"/* *---------------------------------------------------------------
@@ -223,7 +222,7 @@ static int __init dm_rr_init(void)if (r <0 )DMERR ("register failed %d" , r); -DMINFO ("version " RR_VERSION " loaded" ); +DMINFO (" loaded" );return r; }
drivers/md/dm-ps-service-time.c +1 -2
@@ -20,7 +20,6 @@#define ST_MAX_RELATIVE_THROUGHPUT 100#define ST_MAX_RELATIVE_THROUGHPUT_SHIFT 7#define ST_MAX_INFLIGHT_SIZE ((size_t)-1 >> ST_MAX_RELATIVE_THROUGHPUT_SHIFT) -#define ST_VERSION "0.3.0"struct selector {struct list_head valid_paths;
@@ -344,7 +343,7 @@ static int __init dm_st_init(void)if (r <0 )DMERR ("register failed %d" , r); -DMINFO ("version " ST_VERSION " loaded" ); +DMINFO (" loaded" );return r; }
Signature · 1 line
2.50.0
Mikulas Patocka
maintainerHi
I think this isn't needed. The version doesn't do any harm.
Mikulas
Quoted 105 lines · Xose Vazquez Perez
Reminiscent of ancient times, when modules were developed outside the kernel. Pretty useless nowadays for code included in the official kernel repo, with constant changes and without updating the version number.
Cc Alasdair Kergon <[email protected]> (maintainer:DEVICE-MAPPER (LVM))Cc Mike Snitzer <[email protected]> (maintainer:DEVICE-MAPPER (LVM))Cc Mikulas Patocka <[email protected]> (maintainer:DEVICE-MAPPER (LVM))Cc DM-DEVEL ML <[email protected]> (open list:DEVICE-MAPPER (LVM))Signed-off-by Xose Vazquez Perez <[email protected]>---
BTW,MODULE_VERSIONshould be removed from the entire tree.
___drivers/md/dm-ps-historical-service-time.c | 3 +-- drivers/md/dm-ps-queue-length.c | 3 +-- drivers/md/dm-ps-round-robin.c | 3 +-- drivers/md/dm-ps-service-time.c | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-)drivers/md/dm-ps-historical-service-time.c +1
-2@@ -31,7 +31,6 @@#define DM_MSG_PREFIX "multipath historical-service-time"#define HST_MIN_IO 1 -#define HST_VERSION "0.1.1"#define HST_FIXED_SHIFT 10/* 10 bits of decimal precision */ #define HST_FIXED_MAX (ULLONG_MAX >> HST_FIXED_SHIFT)@@ -544,7 +543,7 @@ static int __init dm_hst_init(void)if (r <0 )DMERR ("register failed %d" , r); -DMINFO ("version " HST_VERSION " loaded" ); +DMINFO (" loaded" );return r; }drivers/md/dm-ps-queue-length.c +1
-2@@ -25,7 +25,6 @@#define DM_MSG_PREFIX "multipath queue-length"#define QL_MIN_IO 1 -#define QL_VERSION "0.2.0"struct selector {struct list_head valid_paths;@@ -263,7 +262,7 @@ static int __init dm_ql_init(void)if (r <0 )DMERR ("register failed %d" , r); -DMINFO ("version " QL_VERSION " loaded" ); +DMINFO (" loaded" );return r; }drivers/md/dm-ps-round-robin.c +1
-2@@ -19,7 +19,6 @@#define DM_MSG_PREFIX "multipath round-robin"#define RR_MIN_IO 1 -#define RR_VERSION "1.2.0"/* *--------------------------------------------------------------- @@ -223,7 +222,7 @@ static int __init dm_rr_init(void)if (r <0 )DMERR ("register failed %d" , r); -DMINFO ("version " RR_VERSION " loaded" ); +DMINFO (" loaded" );return r; }drivers/md/dm-ps-service-time.c +1
-2@@ -20,7 +20,6 @@#define ST_MAX_RELATIVE_THROUGHPUT 100#define ST_MAX_RELATIVE_THROUGHPUT_SHIFT 7#define ST_MAX_INFLIGHT_SIZE ((size_t)-1 >> ST_MAX_RELATIVE_THROUGHPUT_SHIFT) -#define ST_VERSION "0.3.0"struct selector {struct list_head valid_paths;@@ -344,7 +343,7 @@ static int __init dm_st_init(void)if (r <0 )DMERR ("register failed %d" , r); -DMINFO ("version " ST_VERSION " loaded" ); +DMINFO (" loaded" );return r; }Signature · 1 line
2.50.0
Quoted 20 lines · Mikulas Patocka
Quoted 20 lines · Xose Vazquez Perez
[...]>> diff --git
a/drivers/md/dm-ps-service-time.cb/drivers/md/dm-ps-service-time.cindex969d31c40272..cbb0ac63bb7a100644drivers/md/dm-ps-service-time.c +1
-2@@ -20,7 +20,6 @@#define ST_MAX_RELATIVE_THROUGHPUT 100#define ST_MAX_RELATIVE_THROUGHPUT_SHIFT 7#define ST_MAX_INFLIGHT_SIZE ((size_t)-1 >> ST_MAX_RELATIVE_THROUGHPUT_SHIFT) -#define ST_VERSION "0.3.0"struct selector {struct list_head valid_paths;@@ -344,7 +343,7 @@ static int __init dm_st_init(void)if (r <0 )DMERR ("register failed %d" , r); -DMINFO ("version " ST_VERSION " loaded" ); +DMINFO (" loaded" );
Quoted 6 lines
Quoted 4 lines
drivers/md/dm-ps-service-time.c +0
-0return r; }Signature · 1 line
2.50.0I think this isn't needed. The version doesn't do any harm.
Wrong information is provided to the user.
The code is modified, but the version remains the same.
Usually MODULE_VERSION has the same problem in the kernel tree.