mirror of
git://git.yoctoproject.org/meta-intel.git
synced 2025-07-19 21:09:03 +02:00
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>
This commit is contained in:
parent
248b47feb3
commit
e76947d3ee
|
@ -12,18 +12,15 @@ Signed-off-by: Saul Wold <sgw@linux.intel.com>
|
|||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/zc.c b/zc.c
|
||||
index 2f4ea99..fcd0669 100644
|
||||
index ae464ff..b2759ce 100644
|
||||
--- a/zc.c
|
||||
+++ b/zc.c
|
||||
@@ -67,7 +67,7 @@ int __get_userbuf(uint8_t __user *addr, uint32_t len, int write,
|
||||
@@ -65,7 +65,7 @@ int __get_userbuf(uint8_t __user *addr, uint32_t len, int write,
|
||||
#elif (LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0))
|
||||
ret = get_user_pages_remote(task, mm,
|
||||
(unsigned long)addr, pgcount, write, 0, pg, NULL);
|
||||
# else
|
||||
-# if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0))
|
||||
+# if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0) & 0)
|
||||
-#elif (LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0))
|
||||
+#elif (LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0) & 0)
|
||||
ret = get_user_pages_remote(task, mm,
|
||||
(unsigned long)addr, pgcount, write ? FOLL_WRITE : 0,
|
||||
pg, NULL);
|
||||
--
|
||||
2.7.4
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user