Skip to contentSkip to conversation

samples: vfio-mdev: mtty.c: delete MODULE_VERSION

PATCH In review Xose Vazquez Perez 2 participants 2 messages May 31, 2025 – Jun 2, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 samples: vfio-mdev: mtty.c: delete MODULE_VERSION

Reminiscence of ancient times when modules were developed outside the kernel.

Cc Kirti Wankhede <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc KVM ML <[email protected]>
Cc KERNEL ML <[email protected]>
---
 samples/vfio-mdev/mtty.c | 2 --
 1 file changed, 2 deletions(-)
samples/vfio-mdev/mtty.c +0 -2
index 59eefe2fed10..f9f7472516c9 100644
@@ -35,7 +35,6 @@
  * #defines
  */
 
-#define VERSION_STRING  "0.1"
 #define DRIVER_AUTHOR   "NVIDIA Corporation"
 
 #define MTTY_CLASS_NAME "mtty"
@@ -2057,5 +2056,4 @@ module_exit(mtty_dev_exit)
 
 MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("Test driver that simulate serial port over PCI");
-MODULE_VERSION(VERSION_STRING);
 MODULE_AUTHOR(DRIVER_AUTHOR);
Signature · 1 line
2.49.0
#1 lore raw
Quoted 1 line · On Sat, 31 May 2025 18:18:36 +0200 Xose Vazquez Perez <[email protected]>…

Reminiscence of ancient times when modules were developed outside the kernel.

s/Reminiscence/Reminiscent/

I think there are likely better arguments that could be made for removal though, ex. citing specific policies or discussions.

Quoted 4 lines
Cc Kirti Wankhede <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc KVM ML <[email protected]>
Cc KERNEL ML <[email protected]>

Signed-off-by?

See Developer's Certificate of Origin:
Documentation/process/submitting-patches.rst

Thanks,
Alex

Quoted 22 lines
---
 samples/vfio-mdev/mtty.c | 2 --
 1 file changed, 2 deletions(-)
samples/vfio-mdev/mtty.c +0 -2
index 59eefe2fed10..f9f7472516c9 100644
@@ -35,7 +35,6 @@
  * #defines
  */
 
-#define VERSION_STRING  "0.1"
 #define DRIVER_AUTHOR   "NVIDIA Corporation"
 
 #define MTTY_CLASS_NAME "mtty"
@@ -2057,5 +2056,4 @@ module_exit(mtty_dev_exit)
 
 MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("Test driver that simulate serial port over PCI");
-MODULE_VERSION(VERSION_STRING);
 MODULE_AUTHOR(DRIVER_AUTHOR);