vboxguestdrivers: Add patch proposed upstream to fix a build failure on i386

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 09eb0ad187)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Gianfranco 2021-01-21 23:43:41 +01:00 committed by Armin Kuster
parent c67ddfd590
commit 4435dfaa9e
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,23 @@
Origin: https://www.mail-archive.com/pld-cvs-commit@lists.pld-linux.org/msg461494.html
From 80bfab5ec8575703ef26b442a3af2d030793ebde Mon Sep 17 00:00:00 2001
From: =?utf8?q?Jan=20R=C4=99korajski?= <baggins@pld-linux.org>
Date: Thu, 24 Dec 2020 23:03:55 +0100
Subject: [PATCH] - DECLCALLBACK generates incorrect code on ix86, remove it
---
kernel-5.10.patch | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel-5.10.patch b/kernel-5.10.patch
index b28d6e0..729235d 100644
--- a/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
+++ b/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
@@ -536,7 +536,7 @@ typedef const LNXAPPLYPGRANGE *PCLNXAPPLYPGRANGE;
* @param uAddr The address to apply the new protection to.
* @param pvUser The opaque user data.
*/
-static DECLCALLBACK(int) rtR0MemObjLinuxApplyPageRange(pte_t *pPte, unsigned long uAddr, void *pvUser)
+static int rtR0MemObjLinuxApplyPageRange(pte_t *pPte, unsigned long uAddr, void *pvUser)
{
PCLNXAPPLYPGRANGE pArgs = (PCLNXAPPLYPGRANGE)pvUser;
PRTR0MEMOBJLNX pMemLnx = pArgs->pMemLnx;

View File

@ -13,6 +13,7 @@ VBOX_NAME = "VirtualBox-${PV}"
SRC_URI = "http://download.virtualbox.org/virtualbox/${PV}/${VBOX_NAME}.tar.bz2 \
file://Makefile.utils \
file://kernel-5.10.patch \
"
SRC_URI[md5sum] = "c61001386eb3822ab8f06d688a82e84b"
SRC_URI[sha256sum] = "108d42b9b391b7a332a33df1662cf7b0e9d9a80f3079d16288d8b9487f427d40"