Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 496990 Details for
Bug 631716
x11-drivers/nvidia-drivers-340.104 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to allow the uvm module compile on 4.12.12
4.12.0_nvidia_uvm_lite.patch (text/plain), 1.06 KB, created by
Paul Healy
on 2017-09-29 08:12:06 UTC
(
hide
)
Description:
patch to allow the uvm module compile on 4.12.12
Filename:
MIME Type:
Creator:
Paul Healy
Created:
2017-09-29 08:12:06 UTC
Size:
1.06 KB
patch
obsolete
>--- a/kernel/uvm/nvidia_uvm_lite.c >+++ b/kernel/uvm/nvidia_uvm_lite.c >@@ -818,7 +818,11 @@ > } > > #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT) >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) >+int _fault(struct vm_fault *vmf) >+#else > int _fault(struct vm_area_struct *vma, struct vm_fault *vmf) >+#endif > { > #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0) > unsigned long vaddr = (unsigned long)vmf->virtual_address; >@@ -828,7 +832,11 @@ > struct page *page = NULL; > int retval; > >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) >+ retval = _fault_common(NULL, vaddr, &page, vmf->flags); >+#else > retval = _fault_common(vma, vaddr, &page, vmf->flags); >+#endif > > vmf->page = page; > >@@ -866,7 +874,11 @@ > // it's dealing with anonymous mapping (see handle_pte_fault). > // > #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT) >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) >+int _sigbus_fault(struct vm_fault *vmf) >+#else > int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf) >+#endif > { > vmf->page = NULL; > return VM_FAULT_SIGBUS; >
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 631716
: 496990