summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan Nelson-Moore <enelsonmoore@gmail.com>2026-01-31 05:00:09 +0300
committerMichael S. Tsirkin <mst@redhat.com>2026-06-10 09:17:00 +0300
commitb20b0867f2b36f382d6e77b8f2a489cc37a94366 (patch)
treecd26bb93328d54d60731e04ce2b5b62d6450a4f4
parent4d130b63bd08b789f70a9f4a7af33104cc8cebce (diff)
downloadlinux-b20b0867f2b36f382d6e77b8f2a489cc37a94366.tar.xz
vhost: remove unnecessary module_init/exit functions
The vhost driver has unnecessary empty module_init and module_exit functions. Remove them. Note that if a module_init function exists, a module_exit function must also exist; otherwise, the module cannot be unloaded. Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20260131020010.45647-1-enelsonmoore@gmail.com>
-rw-r--r--drivers/vhost/vhost.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index db329a6f6145..4c525b3e16ea 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -3324,18 +3324,6 @@ void vhost_set_backend_features(struct vhost_dev *dev, u64 features)
}
EXPORT_SYMBOL_GPL(vhost_set_backend_features);
-static int __init vhost_init(void)
-{
- return 0;
-}
-
-static void __exit vhost_exit(void)
-{
-}
-
-module_init(vhost_init);
-module_exit(vhost_exit);
-
MODULE_VERSION("0.0.1");
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Michael S. Tsirkin");