[Lkw] [PATCH] nvme-cmb: create an initial stub module

Guido Butiler guidobutiler at mi.unc.edu.ar
Fri Sep 15 12:43:48 EDT 2023


	This is the absolute minimal viable Linux kernel module.

	Signed-off-by: Guido Butiler Núñez <guidobutiler at mi.unc.edu.ar>
---
 drivers/block/Makefile   | 1 +
 drivers/block/nvme-cmb.c | 5 +++++
 2 files changed, 6 insertions(+)
 create mode 100644 drivers/block/nvme-cmb.c

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




More information about the LKW mailing list