[Lkw] [PATCH] nvme-cmb: added hello
Rodrigo Alejandro Melo
rodrigomelo9 at gmail.com
Thu Sep 14 17:18:34 EDT 2023
Signed-off-by: Rodrigo Alejandro Melo <rodrigomelo9 at gmail.com>
---
drivers/block/nvme-cmb.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/drivers/block/nvme-cmb.c b/drivers/block/nvme-cmb.c
index 617d2db9c..59d1a0ff5 100644
--- a/drivers/block/nvme-cmb.c
+++ b/drivers/block/nvme-cmb.c
@@ -1,3 +1,20 @@
#include <linux/module.h>
+#include <linux/init.h>
+#include <linux/kernel.h>
+
+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);
+
MODULE_LICENSE("GPL");
--
2.39.2
More information about the LKW
mailing list