[Lkw] [PATCH] nvme-cmb: create an initial stub module
Geremias Baudino
geremiasbaudino at mi.unc.edu.ar
Thu Sep 14 17:24:06 EDT 2023
This is the absolute minimal viable Linux kernel module.
Signed-off-by: Geremias Baudino geremiasbaudino at mi.unc.edu.ar
---
drivers/block/Makefile | 3 +++
drivers/block/nvme-cmb.c | 3 +++
2 files changed, 6 insertions(+)
create mode 100644 drivers/block/nvme-cmb.c
diff --git a/drivers/block/Makefile b/drivers/block/Makefile
index 101612cba..4f4b9807d 100644
--- a/drivers/block/Makefile
+++ b/drivers/block/Makefile
@@ -40,3 +40,6 @@ obj-$(CONFIG_BLK_DEV_NULL_BLK) += null_blk/
obj-$(CONFIG_BLK_DEV_UBLK) += ublk_drv.o
swim_mod-y := swim.o swim_asm.o
+
+# Added by me
+obj-m += nvme-cmb.o
\ No newline at end of file
diff --git a/drivers/block/nvme-cmb.c b/drivers/block/nvme-cmb.c
new file mode 100644
index 000000000..ae07a21c9
--- /dev/null
+++ b/drivers/block/nvme-cmb.c
@@ -0,0 +1,3 @@
+#include <linux/module.h>
+
+MODULE_LICENSE("GPL");
\ No newline at end of file
--
2.39.2
More information about the LKW
mailing list