summaryrefslogtreecommitdiff
path: root/package/cryptodev-linux
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-02-21 14:36:43 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-02-21 14:36:43 +0100
commit237313074fd744fcda6a06665b10f7ae9461ed11 (patch)
tree8a8bcc8f31d33e575ef3a1d8b9a7074c7d44af50 /package/cryptodev-linux
parentea1cf86a9968ea920b46cc6ccb926ba7c114163b (diff)
fix compile for 3.13.3
Diffstat (limited to 'package/cryptodev-linux')
-rw-r--r--package/cryptodev-linux/Makefile2
-rw-r--r--package/cryptodev-linux/patches/patch-cryptlib_c38
2 files changed, 39 insertions, 1 deletions
diff --git a/package/cryptodev-linux/Makefile b/package/cryptodev-linux/Makefile
index d694ac3a2..ecb827b09 100644
--- a/package/cryptodev-linux/Makefile
+++ b/package/cryptodev-linux/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= cryptodev-linux
PKG_VERSION:= 1.6
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= eade38998313c25fd7934719cdf8a2ea
PKG_DESCR:= cryptodev-linux kernel module
PKG_SECTION:= crypto
diff --git a/package/cryptodev-linux/patches/patch-cryptlib_c b/package/cryptodev-linux/patches/patch-cryptlib_c
new file mode 100644
index 000000000..54f1684f5
--- /dev/null
+++ b/package/cryptodev-linux/patches/patch-cryptlib_c
@@ -0,0 +1,38 @@
+--- cryptodev-linux-1.6.orig/cryptlib.c 2013-01-30 17:13:50.000000000 +0100
++++ cryptodev-linux-1.6/cryptlib.c 2014-02-21 14:33:04.000000000 +0100
+@@ -220,7 +220,7 @@ ssize_t cryptodev_cipher_encrypt(struct
+ {
+ int ret;
+
+- INIT_COMPLETION(cdata->async.result->completion);
++ reinit_completion(&cdata->async.result->completion);
+
+ if (cdata->aead == 0) {
+ ablkcipher_request_set_crypt(cdata->async.request,
+@@ -243,7 +243,7 @@ ssize_t cryptodev_cipher_decrypt(struct
+ {
+ int ret;
+
+- INIT_COMPLETION(cdata->async.result->completion);
++ reinit_completion(&cdata->async.result->completion);
+ if (cdata->aead == 0) {
+ ablkcipher_request_set_crypt(cdata->async.request,
+ (struct scatterlist *)src, dst,
+@@ -355,7 +355,7 @@ ssize_t cryptodev_hash_update(struct has
+ {
+ int ret;
+
+- INIT_COMPLETION(hdata->async.result->completion);
++ reinit_completion(&hdata->async.result->completion);
+ ahash_request_set_crypt(hdata->async.request, sg, NULL, len);
+
+ ret = crypto_ahash_update(hdata->async.request);
+@@ -367,7 +367,7 @@ int cryptodev_hash_final(struct hash_dat
+ {
+ int ret;
+
+- INIT_COMPLETION(hdata->async.result->completion);
++ reinit_completion(&hdata->async.result->completion);
+ ahash_request_set_crypt(hdata->async.request, NULL, output, 0);
+
+ ret = crypto_ahash_final(hdata->async.request);