Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 313939 Details for
Bug 419361
app-emulation/virtualbox-modules: error: implicit declaration of function "do_mmap"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Corrected patch
virtualbox-modules-20120601.patch (text/plain), 1.12 KB, created by
Arvydas Sidorenko
on 2012-06-02 15:13:36 UTC
(
hide
)
Description:
Corrected patch
Filename:
MIME Type:
Creator:
Arvydas Sidorenko
Created:
2012-06-02 15:13:36 UTC
Size:
1.12 KB
patch
obsolete
>diff --git a/vboxdrv/r0drv/linux/memobj-r0drv-linux.c b/vboxdrv/r0drv/linux/memobj-r0drv-linux.c >index 425c1cc..c298910 100644 >--- a/vboxdrv/r0drv/linux/memobj-r0drv-linux.c >+++ b/vboxdrv/r0drv/linux/memobj-r0drv-linux.c >@@ -1147,10 +1147,18 @@ static void *rtR0MemObjLinuxDoMmap(RTR3PTR R3PtrFixed, size_t cb, size_t uAlignm > } > > if (R3PtrFixed != (RTR3PTR)-1) >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 0) >+ ulAddr = vm_mmap(NULL, R3PtrFixed, cb, fLnxProt, MAP_SHARED | MAP_ANONYMOUS | MAP_FIXED, 0); >+#else > ulAddr = do_mmap(NULL, R3PtrFixed, cb, fLnxProt, MAP_SHARED | MAP_ANONYMOUS | MAP_FIXED, 0); >+#endif > else > { >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 0) >+ ulAddr = vm_mmap(NULL, 0, cb, fLnxProt, MAP_SHARED | MAP_ANONYMOUS, 0); >+#else > ulAddr = do_mmap(NULL, 0, cb, fLnxProt, MAP_SHARED | MAP_ANONYMOUS, 0); >+#endif > if ( !(ulAddr & ~PAGE_MASK) > && (ulAddr & (uAlignment - 1))) > { >diff --git a/virtualbox-modules.vtg b/virtualbox-modules.vtg >index 2fca603..7db8ffe 100644 >Binary files a/virtualbox-modules.vtg and b/virtualbox-modules.vtg differ
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 419361
:
313937
| 313939 |
314031
|
314345
|
353502