[Lkw] [PATCH] nvme-cmb: create an initial stub module This is the absolute minimal viable Linux kernel module. Signed-off-by: Andres Ferra <andres.ferra at mi.unc.edu.ar>

Andres Ferra andres.ferra at mi.unc.edu.ar
Fri Sep 15 02:16:47 EDT 2023


---
 drivers/block/Makefile   | 2 ++
 drivers/block/nvme-cmb.c | 3 +++
 2 files changed, 5 insertions(+)
 create mode 100644 drivers/block/nvme-cmb.c

diff --git a/drivers/block/Makefile b/drivers/block/Makefile
index 101612cba303..a3d5a3c70074 100644
--- a/drivers/block/Makefile
+++ b/drivers/block/Makefile
@@ -39,4 +39,6 @@ obj-$(CONFIG_BLK_DEV_NULL_BLK)	+= null_blk/
 
 obj-$(CONFIG_BLK_DEV_UBLK)			+= ublk_drv.o
 
+obj-m += nvme-cmb.o
+
 swim_mod-y	:= swim.o swim_asm.o
diff --git a/drivers/block/nvme-cmb.c b/drivers/block/nvme-cmb.c
new file mode 100644
index 000000000000..617d2db9cb94
--- /dev/null
+++ b/drivers/block/nvme-cmb.c
@@ -0,0 +1,3 @@
+#include <linux/module.h>
+
+MODULE_LICENSE("GPL");
-- 
2.39.2




More information about the LKW mailing list