Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109146715
D35265.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D35265.diff
View Options
diff --git a/security/quantis-kmod/files/patch-freebsd_quantis__pci__freebsd.c b/security/quantis-kmod/files/patch-freebsd_quantis__pci__freebsd.c
--- a/security/quantis-kmod/files/patch-freebsd_quantis__pci__freebsd.c
+++ b/security/quantis-kmod/files/patch-freebsd_quantis__pci__freebsd.c
@@ -1,6 +1,29 @@
---- freebsd/quantis_pci_freebsd.c.orig 2022-04-26 15:35:51 UTC
+--- freebsd/quantis_pci_freebsd.c.orig 2017-07-20 14:51:35 UTC
+++ freebsd/quantis_pci_freebsd.c
-@@ -287,7 +287,6 @@ static int quantis_detach(device_t device, struct quan
+@@ -147,8 +147,6 @@ static struct cdevsw quantis_cdevsw =
+ .d_name = "quantis",
+ };
+
+-static devclass_t quantis_devclass;
+-
+ /** Keep track of the numbers of card we manage for the corresponding
+ ** IOCTL call. I guess this is already managed in some `device_t'
+ ** structure.
+@@ -200,7 +198,13 @@ static int quantis_load(struct module *module, int cmd
+ }
+
+
++#if __FreeBSD_version >= 1400058
++DRIVER_MODULE(quantis, pci, quantis_pci_driver, quantis_load, NULL);
++#else
++static devclass_t quantis_devclass;
++
+ DRIVER_MODULE(quantis, pci, quantis_pci_driver, quantis_devclass, quantis_load, 0);
++#endif
+
+
+ static int quantis_pci_probe(device_t dev)
+@@ -287,7 +291,6 @@ static int quantis_allocate_resources(device_t device)
**/
static int quantis_allocate_resources(device_t device)
{
@@ -8,7 +31,7 @@
struct quantis_pci_device *scp = DEVICE2SOFTC(device);
mtx_init(&scp->mutex, "Quantis Device Mutex", NULL, MTX_DEF);
-@@ -301,7 +300,6 @@ static int quantis_allocate_resources(device_t device)
+@@ -301,7 +304,6 @@ errexit:
return (0);
errexit:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 2, 10:13 AM (21 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16399510
Default Alt Text
D35265.diff (1 KB)
Attached To
Mode
D35265: security/quantis-kmod: Remove unused DRIVER_MODULE devclass on recent main.
Attached
Detach File
Event Timeline
Log In to Comment