Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 315873 Details for
Bug 420751
x11-drivers/ati-drivers-12.4 fails to build against kernel 3.5-rc1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
New patch to fix do_mmap removal
ati-drivers-do_mmap.patch (text/plain), 1.37 KB, created by
Enrico Tagliavini
on 2012-06-20 17:28:26 UTC
(
hide
)
Description:
New patch to fix do_mmap removal
Filename:
MIME Type:
Creator:
Enrico Tagliavini
Created:
2012-06-20 17:28:26 UTC
Size:
1.37 KB
patch
obsolete
>--- a/common/lib/modules/fglrx/build_mod/firegl_public.c 2012-06-15 18:30:13.483762070 +0200 >+++ b/common/lib/modules/fglrx/build_mod/firegl_public.c 2012-06-17 17:47:36.543041869 +0200 >@@ -2106,6 +2106,12 @@ > } > } > >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0) >+# define NO_DO_MMAP >+# define do_mmap(a,b,c,d,e,f) vm_mmap(a, b, c, d, e, f) >+# define do_munmap(a,b,c) vm_munmap(b, c) >+#endif >+ > unsigned long ATI_API_CALL KCL_MEM_AllocLinearAddrInterval( > KCL_IO_FILE_Handle file, > unsigned long addr, >@@ -2117,10 +2123,13 @@ > > flags = MAP_SHARED; > prot = PROT_READ|PROT_WRITE; >- >+#ifdef NO_DO_MMAP >+ vaddr = (void *) vm_mmap(file, 0, len, prot, flags, pgoff); >+#else > down_write(¤t->mm->mmap_sem); > vaddr = (void *) do_mmap(file, 0, len, prot, flags, pgoff); > up_write(¤t->mm->mmap_sem); >+#endif > if (IS_ERR(vaddr)) > return 0; > else >@@ -2131,7 +2140,9 @@ > { > int retcode = 0; > >+#ifndef NO_DO_MMAP > down_write(¤t->mm->mmap_sem); >+#endif > #ifdef FGL_LINUX_RHEL_MUNMAP_API > retcode = do_munmap(current->mm, > addr, >@@ -2142,7 +2153,9 @@ > addr, > len); > #endif >+#ifndef NO_DO_MMAP > up_write(¤t->mm->mmap_sem); >+#endif > return retcode; > } >
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 420751
:
315599
|
315871
| 315873