Skip to contentSkip to conversation

vhost: remove unnecessary module_init/exit functions

PATCH New Ethan Nelson-Moore 1 participant 1 message Jan 31

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

PATCH 1/1 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.

---
 drivers/vhost/vhost.c | 12 ------------
 1 file changed, 12 deletions(-)
drivers/vhost/vhost.c +0 -12
index bccdc9eab267..d0e2b9638ecc 100644
@@ -3326,18 +3326,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");
Signature · 1 line
2.43.0