-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gpu-sunxi-midgard: Fix building with 5.1
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
packages/linux-drivers/gpu-sunxi-midgard/patches/09-fix-building-with-5.1.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff -Nur a/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem_linux.c b/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem_linux.c | ||
--- a/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem_linux.c 2019-04-18 22:11:29.000000000 +0200 | ||
+++ b/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem_linux.c 2019-04-18 22:15:09.982940904 +0200 | ||
@@ -1661,7 +1661,11 @@ | ||
static int kbase_cpu_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf) | ||
{ | ||
#else | ||
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0)) | ||
static int kbase_cpu_vm_fault(struct vm_fault *vmf) | ||
+#else | ||
+static vm_fault_t kbase_cpu_vm_fault(struct vm_fault *vmf) | ||
+#endif | ||
{ | ||
struct vm_area_struct *vma = vmf->vma; | ||
#endif |