Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ObserverHerb/f706df30818201e197829db49eb22b2d to your computer and use it in GitHub Desktop.
Save ObserverHerb/f706df30818201e197829db49eb22b2d to your computer and use it in GitHub Desktop.
virtualbox-modules-5.2.10 vs. kernel 4.17-rc1+
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