Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178122890
D21382.1796037783.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D21382.1796037783.diff
View Options
Index: head/sys/dev/nvme/nvme.c
===================================================================
--- head/sys/dev/nvme/nvme.c
+++ head/sys/dev/nvme/nvme.c
@@ -364,3 +364,19 @@
memcpy(&status->cpl, cpl, sizeof(*cpl));
atomic_store_rel_int(&status->done, 1);
}
+
+static int
+nvme_modevent(module_t mod __unused, int type __unused, void *argp __unused)
+{
+ return (0);
+}
+
+static moduledata_t nvme_mod = {
+ "nvme",
+ nvme_modevent,
+ 0
+};
+
+DECLARE_MODULE(nvme, nvme_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
+MODULE_VERSION(nvme, 1);
+MODULE_DEPEND(nvme, cam, 1, 1, 1);
Index: head/sys/dev/nvme/nvme_ahci.c
===================================================================
--- head/sys/dev/nvme/nvme_ahci.c
+++ head/sys/dev/nvme/nvme_ahci.c
@@ -55,8 +55,6 @@
};
DRIVER_MODULE(nvme, ahci, nvme_ahci_driver, nvme_devclass, NULL, 0);
-MODULE_VERSION(nvme, 1);
-MODULE_DEPEND(nvme, cam, 1, 1, 1);
static int
nvme_ahci_probe (device_t device)
Index: head/sys/dev/nvme/nvme_pci.c
===================================================================
--- head/sys/dev/nvme/nvme_pci.c
+++ head/sys/dev/nvme/nvme_pci.c
@@ -62,8 +62,6 @@
};
DRIVER_MODULE(nvme, pci, nvme_pci_driver, nvme_devclass, NULL, 0);
-MODULE_VERSION(nvme, 1);
-MODULE_DEPEND(nvme, cam, 1, 1, 1);
static struct _pcsid
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 30, 11:23 AM (7 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42105081
Default Alt Text
D21382.1796037783.diff (1 KB)
Attached To
Mode
D21382: It turns out the duplication is only mostly harmless.
Attached
Detach File
Event Timeline