git: 2f4109e4b203 - main - net/intel-ixl-kmod: Remove unused DRIVER_MODULE devclass on recent main.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 23 Jun 2022 21:33:54 UTC
The branch main has been updated by jhb (doc, src committer):
URL: https://cgit.FreeBSD.org/ports/commit/?id=2f4109e4b203207c869d9047b4a0e98eb97ab49c
commit 2f4109e4b203207c869d9047b4a0e98eb97ab49c
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-06-23 21:32:14 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-06-23 21:32:14 +0000
net/intel-ixl-kmod: Remove unused DRIVER_MODULE devclass on recent main.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D35202
---
net/intel-ixl-kmod/files/patch-if__ixl.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/net/intel-ixl-kmod/files/patch-if__ixl.c b/net/intel-ixl-kmod/files/patch-if__ixl.c
new file mode 100644
index 000000000000..90647e799d60
--- /dev/null
+++ b/net/intel-ixl-kmod/files/patch-if__ixl.c
@@ -0,0 +1,15 @@
+--- if_ixl.c.orig 2022-05-13 22:17:15 UTC
++++ if_ixl.c
+@@ -142,8 +142,12 @@ static driver_t ixl_driver = {
+ "ixl", ixl_methods, sizeof(struct ixl_pf),
+ };
+
++#if __FreeBSD_version >= 1400058
++DRIVER_MODULE(ixl, pci, ixl_driver, 0, 0);
++#else
+ devclass_t ixl_devclass;
+ DRIVER_MODULE(ixl, pci, ixl_driver, ixl_devclass, 0, 0);
++#endif
+
+ MODULE_VERSION(ixl, 2);
+