File kernel-4.11.patch of Package nvidia-gfxG03

diff -u -r NVIDIA-Linux-x86_64-340.108/kernel.orig/uvm/nvidia_uvm_lite.c NVIDIA-Linux-x86_64-340.108/kernel/uvm/nvidia_uvm_lite.c
--- NVIDIA-Linux-x86_64-340.108/kernel.orig/uvm/nvidia_uvm_lite.c	2020-01-05 14:28:03.064474828 +0100
+++ NVIDIA-Linux-x86_64-340.108/kernel/uvm/nvidia_uvm_lite.c	2020-01-05 14:28:09.820602285 +0100
@@ -820,7 +820,11 @@
 }
 
 #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
 int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
+#else 	
+int _fault(struct vm_fault *vmf) 	
+#endif
 {
 #if defined(NV_VM_FAULT_HAS_ADDRESS)
     unsigned long vaddr = vmf->address;
@@ -830,7 +834,11 @@
     struct page *page = NULL;
     int retval;
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
     retval = _fault_common(vma, vaddr, &page, vmf->flags);
+#else
+    retval = _fault_common(NULL, vaddr, &page, vmf->flags);
+#endif
 
     vmf->page = page;
 
@@ -868,7 +876,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_area_struct *vma, struct vm_fault *vmf)
+#else
+int _sigbus_fault(struct vm_fault *vmf)
+#endif
 {
     vmf->page = NULL;
     return VM_FAULT_SIGBUS;