Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 658144 | Differences between
and this patch

Collapse All | Expand All

(-)a/work/vboxpci/linux/VBoxPci-linux.c (+8 lines)
Lines 80-86 MODULE_VERSION(VBOX_VERSION_STRING " r" RT_XSTR(VBOX_SVN_REV)); Link Here
80
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20)
80
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20)
81
# define PCI_DEV_GET(v,d,p)            pci_get_device(v,d,p)
81
# define PCI_DEV_GET(v,d,p)            pci_get_device(v,d,p)
82
# define PCI_DEV_PUT(x)                pci_dev_put(x)
82
# define PCI_DEV_PUT(x)                pci_dev_put(x)
83
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0)
84
/* assume the domain number to be zero - exactly the same assumption of
85
 * pci_get_bus_and_slot()
86
 * See https://www.virtualbox.org/changeset/72139/vbox/trunk/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c
87
 */
88
# define PCI_DEV_GET_SLOT(bus, devfn)  pci_get_domain_bus_and_slot(0, bus, devfn)
89
#else
83
# define PCI_DEV_GET_SLOT(bus, devfn)  pci_get_bus_and_slot(bus, devfn)
90
# define PCI_DEV_GET_SLOT(bus, devfn)  pci_get_bus_and_slot(bus, devfn)
91
#endif
84
#else
92
#else
85
# define PCI_DEV_GET(v,d,p)            pci_find_device(v,d,p)
93
# define PCI_DEV_GET(v,d,p)            pci_find_device(v,d,p)
86
# define PCI_DEV_PUT(x)                do { } while (0)
94
# define PCI_DEV_PUT(x)                do { } while (0)

Return to bug 658144