Page MenuHomeFreeBSD

D35205.diff
No OneTemporary

D35205.diff

diff --git a/net/intel-em-kmod/files/patch-devclass b/net/intel-em-kmod/files/patch-devclass
new file mode 100644
--- /dev/null
+++ b/net/intel-em-kmod/files/patch-devclass
@@ -0,0 +1,30 @@
+--- if_em.c.orig 2022-05-13 15:26:41.055245000 -0700
++++ if_em.c 2022-05-13 15:27:11.443359000 -0700
+@@ -379,8 +379,12 @@ static driver_t em_driver = {
+ "em", em_methods, sizeof(struct adapter),
+ };
+
++#if __FreeBSD_version >= 1400058
++DRIVER_MODULE(em, pci, em_driver, 0, 0);
++#else
+ devclass_t em_devclass;
+ DRIVER_MODULE(em, pci, em_driver, em_devclass, 0, 0);
++#endif
+ MODULE_DEPEND(em, pci, 1, 1, 1);
+ MODULE_DEPEND(em, ether, 1, 1, 1);
+
+--- if_lem.c.orig 2022-05-13 15:26:44.154782000 -0700
++++ if_lem.c 2022-05-13 15:27:38.402591000 -0700
+@@ -289,8 +289,12 @@ static driver_t lem_driver = {
+ "em", lem_methods, sizeof(struct adapter),
+ };
+
++#if __FreeBSD_version >= 1400058
++DRIVER_MODULE(lem, pci, lem_driver, 0, 0);
++#else
+ extern devclass_t em_devclass;
+ DRIVER_MODULE(lem, pci, lem_driver, em_devclass, 0, 0);
++#endif
+ MODULE_DEPEND(lem, pci, 1, 1, 1);
+ MODULE_DEPEND(lem, ether, 1, 1, 1);
+

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 21, 5:55 PM (20 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16018270
Default Alt Text
D35205.diff (1 KB)

Event Timeline