From 10e8774143de354b06c7d299fb4fe2bf9f982efe Mon Sep 17 00:00:00 2001 From: Jernej Skrabec Date: Thu, 18 Apr 2019 23:37:46 +0200 Subject: [PATCH] gpu-sunxi: Fix building with Linux 5.1 --- .../gpu-sunxi/patches/fix-building-with-5.1.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 packages/linux-drivers/gpu-sunxi/patches/fix-building-with-5.1.patch diff --git a/packages/linux-drivers/gpu-sunxi/patches/fix-building-with-5.1.patch b/packages/linux-drivers/gpu-sunxi/patches/fix-building-with-5.1.patch new file mode 100644 index 0000000000..2d726cb382 --- /dev/null +++ b/packages/linux-drivers/gpu-sunxi/patches/fix-building-with-5.1.patch @@ -0,0 +1,14 @@ +diff -Nur a/driver/src/devicedrv/mali/linux/mali_memory.c b/driver/src/devicedrv/mali/linux/mali_memory.c +--- a/driver/src/devicedrv/mali/linux/mali_memory.c 2018-09-13 08:52:20.000000000 +0200 ++++ b/driver/src/devicedrv/mali/linux/mali_memory.c 2019-04-18 19:58:27.389785486 +0200 +@@ -70,7 +70,9 @@ + } + } + +-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0) ++static vm_fault_t mali_mem_vma_fault(struct vm_fault *vmf) ++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) + static int mali_mem_vma_fault(struct vm_fault *vmf) + #else + static int mali_mem_vma_fault(struct vm_area_struct *vma, struct vm_fault *vmf)