netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] vhost/vsock: specify module version
@ 2024-09-26 16:16 Alexander Mikhalitsyn
  2024-09-29 16:56 ` Michael S. Tsirkin
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Mikhalitsyn @ 2024-09-26 16:16 UTC (permalink / raw)
  To: stefanha
  Cc: Alexander Mikhalitsyn, Stefano Garzarella, Michael S. Tsirkin,
	Jason Wang, Eugenio Pérez, kvm, virtualization, netdev,
	linux-kernel

Add an explicit MODULE_VERSION("0.0.1") specification
for a vhost_vsock module. It is useful because it allows
userspace to check if vhost_vsock is there when it is
configured as a built-in.

Without this change, there is no /sys/module/vhost_vsock directory.

With this change:
$ ls -la /sys/module/vhost_vsock/
total 0
drwxr-xr-x   2 root root    0 Sep 26 15:59 .
drwxr-xr-x 100 root root    0 Sep 26 15:59 ..
--w-------   1 root root 4096 Sep 26 15:59 uevent
-r--r--r--   1 root root 4096 Sep 26 15:59 version

Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
---
 drivers/vhost/vsock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c
index 802153e23073..287ea8e480b5 100644
--- a/drivers/vhost/vsock.c
+++ b/drivers/vhost/vsock.c
@@ -956,6 +956,7 @@ static void __exit vhost_vsock_exit(void)
 
 module_init(vhost_vsock_init);
 module_exit(vhost_vsock_exit);
+MODULE_VERSION("0.0.1");
 MODULE_LICENSE("GPL v2");
 MODULE_AUTHOR("Asias He");
 MODULE_DESCRIPTION("vhost transport for vsock ");
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-09-29 18:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-26 16:16 [PATCH] vhost/vsock: specify module version Alexander Mikhalitsyn
2024-09-29 16:56 ` Michael S. Tsirkin
2024-09-29 17:35   ` Aleksandr Mikhalitsyn
2024-09-29 17:48     ` Michael S. Tsirkin
2024-09-29 17:48     ` Michael S. Tsirkin
2024-09-29 18:23       ` Aleksandr Mikhalitsyn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).