summary refs log tree commit diff
path: root/pkgs/os-specific/linux/amdgpu-pro/patches/0004-Remove-extra-parameter-from-ttm_bo_reserve-for-4.7.0.patch
blob: 794da9b5fb71d94e5492b472d99f2fe0d92c10b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From d21e811c6f26674a0e1c2398dce6d247a1dd4918 Mon Sep 17 00:00:00 2001
From: "Luke A. Guest" <laguest@archeia.com>
Date: Sun, 25 Sep 2016 15:46:58 +0100
Subject: [PATCH 04/14] Remove extra parameter from ttm_bo_reserve for 4.7.0

---
 amd/backport/include/kcl/kcl_ttm.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/amd/backport/include/kcl/kcl_ttm.h b/amd/backport/include/kcl/kcl_ttm.h
index 05c444b..c5a602c 100644
--- a/amd/backport/include/kcl/kcl_ttm.h
+++ b/amd/backport/include/kcl/kcl_ttm.h
@@ -106,7 +106,11 @@ static inline int kcl_ttm_bo_reserve(struct ttm_buffer_object *bo,
 				 struct ww_acquire_ctx *ticket)
 {
 #if defined(BUILD_AS_DKMS)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0)
+	return ttm_bo_reserve(bo, interruptible, no_wait, ticket);
+#else
 	return ttm_bo_reserve(bo, interruptible, no_wait, false, ticket);
+#endif
 #else
 	return ttm_bo_reserve(bo, interruptible, no_wait, ticket);
 #endif
-- 
2.10.1