Skip to contentSkip to conversation

md: dm-ps-*: delete version strings

PATCH In review Xose Vazquez Perez 2 participants 3 messages Jun 25, 2025 – Jul 2, 2025 Device mapper

lore
Share & tools
lore
#0 lore raw

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.

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))

---
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
index b49e10d76d03..fa6198c0276b 100644
@@ -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
index e305f05ad1e5..31decbef9837 100644
@@ -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
index d1745b123dc1..67f7f5ec5428 100644
@@ -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
index 969d31c40272..cbb0ac63bb7a 100644
@@ -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
maintainer
#1 lore raw

Hi

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))

---
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
index b49e10d76d03..fa6198c0276b 100644
@@ -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
index e305f05ad1e5..31decbef9837 100644
@@ -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
index d1745b123dc1..67f7f5ec5428 100644
@@ -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
index 969d31c40272..cbb0ac63bb7a 100644
@@ -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
#2 lore raw
Quoted 20 lines · Mikulas Patocka
Quoted 20 lines · Xose Vazquez Perez

[...]>> diff --git a/drivers/md/dm-ps-service-time.c b/drivers/md/dm-ps-service-time.c index 969d31c40272..cbb0ac63bb7a 100644

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");
 
Quoted 6 lines
Quoted 4 lines
drivers/md/dm-ps-service-time.c +0 -0
  	return r;
  }
Signature · 1 line
2.50.0

I 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.