summaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-07-12 19:42:51 -0700
committerSaul Wold <sgw@linux.intel.com>2017-07-13 11:14:49 -0700
commite76947d3ee70171cda00661d6367b0bc982cfe39 (patch)
treefcdb62fe6a8d94e928811f25caebf31ffeda77e5 /common/recipes-kernel
parent248b47feb364828087f00d1934d85234df6e0be2 (diff)
downloadmeta-intel-e76947d3ee70171cda00661d6367b0bc982cfe39.tar.gz
cryptodev-module: update 0001-zc-Force-4.10-get_user_pages_remote-API.patch
Update it for cryptodev-module 1.9. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'common/recipes-kernel')
-rw-r--r--common/recipes-kernel/cryptodev/cryptodev-module/0001-zc-Force-4.10-get_user_pages_remote-API.patch13
1 files changed, 5 insertions, 8 deletions
diff --git a/common/recipes-kernel/cryptodev/cryptodev-module/0001-zc-Force-4.10-get_user_pages_remote-API.patch b/common/recipes-kernel/cryptodev/cryptodev-module/0001-zc-Force-4.10-get_user_pages_remote-API.patch
index 6722b8cb..353126fe 100644
--- a/common/recipes-kernel/cryptodev/cryptodev-module/0001-zc-Force-4.10-get_user_pages_remote-API.patch
+++ b/common/recipes-kernel/cryptodev/cryptodev-module/0001-zc-Force-4.10-get_user_pages_remote-API.patch
@@ -12,18 +12,15 @@ Signed-off-by: Saul Wold <sgw@linux.intel.com>
12 1 file changed, 1 insertion(+), 1 deletion(-) 12 1 file changed, 1 insertion(+), 1 deletion(-)
13 13
14diff --git a/zc.c b/zc.c 14diff --git a/zc.c b/zc.c
15index 2f4ea99..fcd0669 100644 15index ae464ff..b2759ce 100644
16--- a/zc.c 16--- a/zc.c
17+++ b/zc.c 17+++ b/zc.c
18@@ -67,7 +67,7 @@ int __get_userbuf(uint8_t __user *addr, uint32_t len, int write, 18@@ -65,7 +65,7 @@ int __get_userbuf(uint8_t __user *addr, uint32_t len, int write,
19 #elif (LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0))
19 ret = get_user_pages_remote(task, mm, 20 ret = get_user_pages_remote(task, mm,
20 (unsigned long)addr, pgcount, write, 0, pg, NULL); 21 (unsigned long)addr, pgcount, write, 0, pg, NULL);
21 # else 22-#elif (LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0))
22-# if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)) 23+#elif (LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0) & 0)
23+# if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0) & 0)
24 ret = get_user_pages_remote(task, mm, 24 ret = get_user_pages_remote(task, mm,
25 (unsigned long)addr, pgcount, write ? FOLL_WRITE : 0, 25 (unsigned long)addr, pgcount, write ? FOLL_WRITE : 0,
26 pg, NULL); 26 pg, NULL);
27--
282.7.4
29