diff options
author | Cristian Stoica <cristian.stoica@freescale.com> | 2015-07-17 17:29:44 +0800 |
---|---|---|
committer | Zhenhua Luo <zhenhua.luo@freescale.com> | 2015-07-20 17:24:46 +0800 |
commit | 8dcd2490816db6397d1677da933c6c19e7fbdd4f (patch) | |
tree | f2959e9dd028ea3b2a68d81b819b7186e4917c44 /recipes-kernel/cryptodev/files/0020-fix-uninitialized-variable-compiler-warning.patch | |
parent | ae92c669322865ac51321a65104a678ac9d713f8 (diff) | |
download | meta-fsl-ppc-8dcd2490816db6397d1677da933c6c19e7fbdd4f.tar.gz |
cryptodev: update to 1.7 plus FSL patches
To avoid build issue when Poky upgrades cryptodev, keep a copy
of cryptodev-{linux,modules,tests) recipe in this repository.
Based on the upstream, this includes the following FSL patches:
0001-add-support-for-composite-TLS10-SHA1-AES-algorithm-o.patch
0002-add-support-for-COMPAT_CIOCAUTHCRYPT-ioctl.patch
0003-PKC-support-added-in-cryptodev-module.patch
0004-Compat-versions-of-PKC-IOCTLs.patch
0005-Asynchronous-interface-changes-in-cryptodev.patch
0006-ECC_KEYGEN-and-DLC_KEYGEN-supported-in-cryptodev-mod.patch
0007-RCU-stall-fixed-in-PKC-asynchronous-interface.patch
0008-Add-RSA-Key-generation-offloading.patch
0009-Fixed-compilation-error-of-openssl-with-fsl-cryptode.patch
0010-add-support-for-composite-TLS10-SHA1-3DES-algorithm-.patch
0011-add-support-for-TLSv1.1-record-offload.patch
0012-add-support-for-TLSv1.2-record-offload.patch
0013-clean-up-code-layout.patch
0014-remove-redundant-data-copy-for-pkc-operations.patch
0015-fix-pkc-request-deallocation.patch
0016-add-basic-detection-of-asym-features.patch
0017-remove-dead-code.patch
0018-fix-compat-warnings.patch
0019-fix-size_t-print-format.patch
0020-fix-uninitialized-variable-compiler-warning.patch
Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com>
Signed-off-by: Ting Liu <ting.liu@freescale.com>
Diffstat (limited to 'recipes-kernel/cryptodev/files/0020-fix-uninitialized-variable-compiler-warning.patch')
-rw-r--r-- | recipes-kernel/cryptodev/files/0020-fix-uninitialized-variable-compiler-warning.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/recipes-kernel/cryptodev/files/0020-fix-uninitialized-variable-compiler-warning.patch b/recipes-kernel/cryptodev/files/0020-fix-uninitialized-variable-compiler-warning.patch new file mode 100644 index 0000000..a97a2d4 --- /dev/null +++ b/recipes-kernel/cryptodev/files/0020-fix-uninitialized-variable-compiler-warning.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From be9f6a0dc90847dbb00307d23f47b8b3fc3ff130 Mon Sep 17 00:00:00 2001 | ||
2 | From: Tudor Ambarus <tudor.ambarus@freescale.com> | ||
3 | Date: Fri, 29 May 2015 15:49:22 +0300 | ||
4 | Subject: [PATCH 20/20] fix uninitialized variable compiler warning | ||
5 | |||
6 | crypto/../../cryptodev-linux/ioctl.c: In function 'cryptodev_compat_ioctl': | ||
7 | crypto/../../cryptodev-linux/ioctl.c:1445:2: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] | ||
8 | return ret; | ||
9 | ^ | ||
10 | |||
11 | Signed-off-by: Tudor Ambarus <tudor.ambarus@freescale.com> | ||
12 | Change-Id: Id5226fc97a3bb880ca6db86df58957122bbaa428 | ||
13 | Reviewed-on: http://git.am.freescale.net:8181/37441 | ||
14 | Reviewed-by: Cristian Stoica <cristian.stoica@freescale.com> | ||
15 | Tested-by: Cristian Stoica <cristian.stoica@freescale.com> | ||
16 | --- | ||
17 | ioctl.c | 3 ++- | ||
18 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/ioctl.c b/ioctl.c | ||
21 | index f3ce2f6..7cd3c56 100644 | ||
22 | --- a/ioctl.c | ||
23 | +++ b/ioctl.c | ||
24 | @@ -1387,9 +1387,10 @@ cryptodev_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg_) | ||
25 | case COMPAT_CIOCASYMFETCHCOOKIE: | ||
26 | { | ||
27 | struct cryptodev_pkc *pkc; | ||
28 | - int i = 0; | ||
29 | + int i; | ||
30 | struct compat_pkc_cookie_list_s cookie_list; | ||
31 | |||
32 | + ret = 0; | ||
33 | cookie_list.cookie_available = 0; | ||
34 | |||
35 | for (i = 0; i < MAX_COOKIES; i++) { | ||
36 | -- | ||
37 | 2.3.5 | ||
38 | |||