| Summary: | app-emulation/virtualbox-modules-4.3.26 VBoxPci-linux.c uses deprecated "IRQF_DISABLED" which is removed now from linux kernel | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | jospezial <jospezial> |
| Component: | Current packages | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | bkohler, patrick |
| Priority: | Normal | Keywords: | PATCH |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | virtualbox-modules-4.3.26_VBoxPci_linux_4.1.patch | ||
|
Description
jospezial
2015-04-29 06:50:57 UTC
https://www.virtualbox.org/changeset/55508/vbox/trunk/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c HostDrivers/VBoxPci: Linux 4.1 compile fix --- a/trunk/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c +++ b/trunk/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c @@ -924,5 +924,6 @@ /* We don't allow interrupts sharing */ -# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20) + /* XXX overhaul */ +# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0) IRQF_DISABLED, /* keep irqs disabled when calling the action handler */ # else Created attachment 402386 [details, diff]
virtualbox-modules-4.3.26_VBoxPci_linux_4.1.patch
this is adapted for virtualbox-modules-4.3.26
--- vboxpci/linux/VBoxPci-linux.c.orig 2014-10-10 10:00:57.000000000 +0200
+++ vboxpci/linux/VBoxPci-linux.c 2015-05-01 14:11:11.795455862 +0200
@@ -885,7 +885,8 @@
#else
/* We don't allow interrupts sharing */
-# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20)
+ /* XXX overhaul */
+# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)
IRQF_DISABLED, /* keep irqs disabled when calling the action handler */
# else
0,
diff -u virtualbox-modules-4.3.26.ebuild.orig virtualbox-modules-4.3.26.ebuild
--- virtualbox-modules-4.3.26.ebuild.orig 2015-03-17 08:59:31.000000000 +0100
+++ virtualbox-modules-4.3.26.ebuild 2015-05-01 14:22:15.085454812 +0200
@@ -43,6 +43,7 @@
if use pax_kernel && kernel_is -ge 3 0 0 ; then
epatch "${FILESDIR}"/${PN}-4.1.4-pax-const.patch
fi
+ epatch "${FILESDIR}"/${PN}-4.3.26_VBoxPci_linux_4.1.patch
}
src_install() {
|