Created
April 22, 2018 17:24
-
-
Save ObserverHerb/f706df30818201e197829db49eb22b2d to your computer and use it in GitHub Desktop.
virtualbox-modules-5.2.10 vs. kernel 4.17-rc1+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/vboxpci/linux/VBoxPci-linux.c b/vboxpci/linux/VBoxPci-linux.c | |
index 4484496..a460d5b 100644 | |
--- a/vboxpci/linux/VBoxPci-linux.c | |
+++ b/vboxpci/linux/VBoxPci-linux.c | |
@@ -89,7 +89,7 @@ MODULE_VERSION(VBOX_VERSION_STRING " r" RT_XSTR(VBOX_SVN_REV)); | |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20) | |
# define PCI_DEV_GET(v,d,p) pci_get_device(v,d,p) | |
# define PCI_DEV_PUT(x) pci_dev_put(x) | |
-# define PCI_DEV_GET_SLOT(bus, devfn) pci_get_bus_and_slot(bus, devfn) | |
+# define PCI_DEV_GET_SLOT(bus, devfn) pci_get_domain_bus_and_slot(0, bus, devfn) | |
#else | |
# define PCI_DEV_GET(v,d,p) pci_find_device(v,d,p) | |
# define PCI_DEV_PUT(x) do { } while (0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment