From d36571f635beef72eff9014c696f85313a72e0b3 Mon Sep 17 00:00:00 2001 From: Jernej Skrabec Date: Thu, 18 Apr 2019 23:37:17 +0200 Subject: [PATCH] gpu-sunxi-midgard: Fix building with 5.1 --- .../patches/09-fix-building-with-5.1.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 packages/linux-drivers/gpu-sunxi-midgard/patches/09-fix-building-with-5.1.patch diff --git a/packages/linux-drivers/gpu-sunxi-midgard/patches/09-fix-building-with-5.1.patch b/packages/linux-drivers/gpu-sunxi-midgard/patches/09-fix-building-with-5.1.patch new file mode 100644 index 00000000000..b5ba219bbbf --- /dev/null +++ b/packages/linux-drivers/gpu-sunxi-midgard/patches/09-fix-building-with-5.1.patch @@ -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