Skip to content

Commit

Permalink
gpu-sunxi-midgard: Fix building with 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jernejsk committed May 12, 2019
1 parent 69d550b commit d36571f
Showing 1 changed file with 15 additions and 0 deletions.
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

0 comments on commit d36571f

Please sign in to comment.