29 lines
949 B
Diff
29 lines
949 B
Diff
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
|
|
|