[packages/xorg-driver-video-nvidia-legacy-390xx] - use version to select function to use
baggins
baggins at pld-linux.org
Wed Jan 2 12:34:19 CET 2019
commit 88cd179929ace6f0fa7674af5300d3e9bc2dad49
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Jan 2 20:33:39 2019 +0900
- use version to select function to use
kernel-4.20.patch | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/kernel-4.20.patch b/kernel-4.20.patch
index 957b8cb..33279b1 100644
--- a/kernel-4.20.patch
+++ b/kernel-4.20.patch
@@ -30,7 +30,7 @@
#if defined(NV_DRM_ATOMIC_MODESET_AVAILABLE)
-+#include <linux/mm.h>
++#include <linux/version.h>
+
#include "nvidia-drm-gem-nvkms-memory.h"
#include "nvidia-drm-ioctl.h"
@@ -39,7 +39,7 @@
page_offset = vmf->pgoff - drm_vma_node_start(&gem->vma_node);
-+#if !defined(vm_insert_pfn)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0)
+ return vmf_insert_pfn(vma, address, pfn + page_offset);
+#else
ret = vm_insert_pfn(vma, address, pfn + page_offset);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xorg-driver-video-nvidia-legacy-390xx.git/commitdiff/88cd179929ace6f0fa7674af5300d3e9bc2dad49
More information about the pld-cvs-commit
mailing list