Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 435102 Details for
Bug 583574
x11-drivers/ati-drivers-15.12-r1 doesn't build with new kernels
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Kernel 4.6+ patch
kernel-4.6.patch (text/plain), 1.20 KB, created by
Marcin Deranek
on 2016-05-23 17:27:40 UTC
(
hide
)
Description:
Kernel 4.6+ patch
Filename:
MIME Type:
Creator:
Marcin Deranek
Created:
2016-05-23 17:27:40 UTC
Size:
1.20 KB
patch
obsolete
>--- common/lib/modules/fglrx/build_mod/firegl_public.c.orig 2016-05-23 18:31:53.997404477 +0200 >+++ common/lib/modules/fglrx/build_mod/firegl_public.c 2016-05-23 18:32:52.976508373 +0200 >@@ -3245,7 +3245,11 @@ > int ret; > > down_read(¤t->mm->mmap_sem); >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0) >+ ret = get_user_pages(vaddr, page_cnt, 1, 0, (struct page **)page_list, NULL); >+#else > ret = get_user_pages(current, current->mm, vaddr, page_cnt, 1, 0, (struct page **)page_list, NULL); >+#endif > up_read(¤t->mm->mmap_sem); > > return ret; >@@ -3263,7 +3267,11 @@ > int ret; > > down_read(¤t->mm->mmap_sem); >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0) >+ ret = get_user_pages(vaddr, page_cnt, 0, 0, (struct page **)page_list, NULL); >+#else > ret = get_user_pages(current, current->mm, vaddr, page_cnt, 0, 0, (struct page **)page_list, NULL); >+#endif > up_read(¤t->mm->mmap_sem); > > return ret; >@@ -3274,7 +3282,11 @@ > unsigned int i; > for (i=0; i<page_cnt; i++) > { >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0) >+ put_page((struct page*)page_list[i]); >+#else > page_cache_release((struct page*)page_list[i]); >+#endif > } > } >
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 583574
:
434770
| 435102 |
442216
|
455962
|
464540