[Lkw] [PATCH] nvme-cmb: create an initial stub module
Rodrigo Alejandro Melo
rodrigomelo9 at gmail.com
Thu Sep 14 17:14:40 EDT 2023
This is the absolute minimal viable Linux kernel module.
Signed-off-by: Rodrigo Alejandro Melo <rodrigomelo9 at gmail.com>
---
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 101612cba..3ad5dcb18 100644
--- a/drivers/block/Makefile
+++ b/drivers/block/Makefile
@@ -40,3 +40,5 @@ 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 000000000..617d2db9c
--- /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