[Lkw] [PATCH] nvme-cmb: add some calls to module but do nothing
Guido
alvarezguidoa at ing.unrc.edu.ar
Thu Sep 14 17:51:22 EDT 2023
Signed-off-by: Guido Alvarez <alvarezguidoa at ing.unrc.edu.ar>
---
drivers/block/nvme-cmb.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/drivers/block/nvme-cmb.c b/drivers/block/nvme-cmb.c
index 617d2db9c..bd82bf5ea 100644
--- a/drivers/block/nvme-cmb.c
+++ b/drivers/block/nvme-cmb.c
@@ -1,3 +1,19 @@
#include <linux/module.h>
+#include <linux/init.h>
+#include <linux/kernel.h>
MODULE_LICENSE("GPL");
+
+static int __init nvme_cmb_init(void)
+{
+ pr_info("loading nvme-cmb module\n");
+ return 0;
+}
+
+static void __exit nvme_cmb_exit(void)
+{
+ pr_info("unloading nvme-cmb module \n");
+}
+
+module_init(nvme_cmb_init);
+module_exit(nvme_cmb_exit);
--
2.39.2
More information about the LKW
mailing list