summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/cryptodev/sdk_patches/0062-fix-build-warnings-on-implicit-function-declarations.patch
diff options
context:
space:
mode:
authorChunrong Guo <chunrong.guo@nxp.com>2017-04-18 15:11:50 +0800
committerOtavio Salvador <otavio@ossystems.com.br>2017-05-02 17:54:58 -0300
commite756964ac2595d880304f227dec7bdb424d7d974 (patch)
tree28c067a5652216278a92e39144d48ac95f0e8f12 /recipes-kernel/cryptodev/sdk_patches/0062-fix-build-warnings-on-implicit-function-declarations.patch
parentcfb3ddaaaa78204ef5281c8627eed08f4f7e3f09 (diff)
downloadmeta-freescale-e756964ac2595d880304f227dec7bdb424d7d974.tar.gz
cryptodev: update to 6c2b61c
**include the following changes 6c2b61c - update copyright notes f79d523 - fix: reset finish condition before test start e8f7a91 - Merge remote-tracking branch 'upstream/master' 6818263 - Fix ablkcipher algorithms usage in v4.8+ kernels 26e167f - zc: Use the power of #elif e49fe25 - adjust to API changes in kernel >=4.10 2b29be8 - adjust to API changes in kernel >=4.10 c3afb40 - add support for rsa speed tests c9b7a80 - close the session after every test ba49470 - add support for authenc(hmac(sha1), cbc(aes)) speed tests 690cd62 - Merge branch 'master' into hpe2016 5adf04e - Merge remote-tracking branch 'upstream/master' 840c7ba - remove not used variable 2dbbb23 - do more strict code checking to avoid maintenance issues 88223e4 - avoid implicit conversion between signed and unsigned char 8db6905 - use buf_align macro to reduce code duplication b6d0e0f - rename header file to clarify purpose 1fd6062 - fix warnings of "implicit declaration of function" in async_speed ff3c8ab - remove not used local variables 25a1276 - fix incorrect return code in case of error from openssl_cioccrypt e7ef4ea - Merge pull request #17 from michaelweiser/gup_flags 99c6d21 - fix ignored SIGALRM signals on some platforms 71975fa - setting KERNEL_DIR is not necessary to build tests a96ff97 - fix issues with install target 07748d3 - Merge branch 'master' into hpe2016 cc89148 - Fix ablkcipher algorithms usage in v4.8+ kernels 4d6e4fb - Merge remote-tracking branch 'upstream/master' f126e48 - Adjust to another change in the user page API 4257fce - add -async option to run_crypto_tests.sh f953164 - merge sync and async benchmarks into a single program e7af57b - add % to cpu idle for convenience 1883c95 - add a wrapper script for running all tests 998b66b - add notes about configured limits in SEC driver b1a35f3 - fix ignored SIGALRM signals on some platforms b754517 - use the same algorithm names in sync_speed as in async_speed 8baefa4 - force LC_TIME value to avoid mpstat not using ISO8601 format d0978b5 - add sync speed tests with the same format as async ones 15d890b - graceful exit if cryptodev is not built with ASYNC flags 9a595bf - fix typo, use consistent spacing 9461878 - remove output line because it does not add clarity to the results b09c17f - the C standard used by cryptodev is C90 with GNU extensions 447808d - exit early if cryptodev tests are not installed 493afd3 - fix incorrect handling of error cases... e0d2c88 - make default output tabular abc007a - really fix (again...) the mpstat issue 2696cd5 - use $(...) instead of `...` for consistency e8fb004 - fix the scale of the runtime value 119151b - remove old results to avoid incorrect reports 71ac3d5 - fix the reported unit 8c47a0c - setting KERNEL_DIR is not necessary to build tests 182b307 - fix issues with install target 5021828 - do more strict code checking to avoid maintenance issues ab239d7 - return error code of the test if there is one b5228f2 - remove not used local variables 90d67ce - avoid implicit conversion between signed and unsigned char 4b442ca - fix build warnings on implicit function declarations 2821b92 - add a little space in the output for clarity 9d0ef05 - more precision in running mpstat 0180e2b - fix some issues with parsing mpstat output 4257fce - add -async option to run_crypto_tests.sh f953164 - merge sync and async benchmarks into a single program e7af57b - add % to cpu idle for convenience 7d7a733 - sanity check on /dev/crypto availability 137c0c4 - gracefull stop for async speed tests 600eb70 - fix: set min value when allocating alligned memory buffers 18408c9 - add multithreaded wrapper for async speed test 854cc84 - rename algorithm names for clarity 216f235 - honor the -m flag in async_speed 1023ede - add flag to report in a machine friendly format 219a8b4 - enable async code by default 9def784 - Merge remote-tracking branch 'radualexe/new_tests` 149dc1c - add basic optargs support for async_speed test 9595499 - add support for crc32c hash sync speed test 83e3840 - add support for aes-256-xts sync speed test fff72ae - add support for sha2-256 hash async speed test b961800 - add support for sha1 hash async speed test fea5006 - add support for crc32c hash async speed test 8768fad - add aes-256-xts support for async speed test Signed-off-by: Chunrong Guo <B40290@freescale.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-kernel/cryptodev/sdk_patches/0062-fix-build-warnings-on-implicit-function-declarations.patch')
-rw-r--r--recipes-kernel/cryptodev/sdk_patches/0062-fix-build-warnings-on-implicit-function-declarations.patch129
1 files changed, 129 insertions, 0 deletions
diff --git a/recipes-kernel/cryptodev/sdk_patches/0062-fix-build-warnings-on-implicit-function-declarations.patch b/recipes-kernel/cryptodev/sdk_patches/0062-fix-build-warnings-on-implicit-function-declarations.patch
new file mode 100644
index 00000000..dba2575f
--- /dev/null
+++ b/recipes-kernel/cryptodev/sdk_patches/0062-fix-build-warnings-on-implicit-function-declarations.patch
@@ -0,0 +1,129 @@
1From 0fd37b5225bd26182b20588b200a4fc0a3f415e5 Mon Sep 17 00:00:00 2001
2From: Cristian Stoica <cristian.stoica@nxp.com>
3Date: Wed, 26 Oct 2016 10:10:47 +0300
4Subject: [PATCH 062/104] fix build warnings on implicit function declarations
5
6Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
7---
8 tests/Makefile | 2 +-
9 tests/async_speed.c | 47 +++++++++++++++++++++++------------------------
10 tests/hashcrypt_speed.c | 1 +
11 tests/sha_speed.c | 1 +
12 tests/speed.c | 1 +
13 5 files changed, 27 insertions(+), 25 deletions(-)
14
15diff --git a/tests/Makefile b/tests/Makefile
16index 6424c11..14ae2c7 100644
17--- a/tests/Makefile
18+++ b/tests/Makefile
19@@ -1,5 +1,5 @@
20 KERNEL_DIR ?= /lib/modules/$(shell uname -r)/build
21-CRYPTODEV_CFLAGS += -DENABLE_ASYNC
22+CRYPTODEV_CFLAGS += -DENABLE_ASYNC -Wimplicit-function-declaration
23 KBUILD_CFLAGS += -I.. $(CRYPTODEV_CFLAGS)
24 CFLAGS += -I.. $(CRYPTODEV_CFLAGS)
25
26diff --git a/tests/async_speed.c b/tests/async_speed.c
27index e6bbeed..a1a1b7e 100644
28--- a/tests/async_speed.c
29+++ b/tests/async_speed.c
30@@ -112,6 +112,29 @@ static void value2machine(uint64_t bytes, double time, double* speed)
31 *speed = bytes / time;
32 }
33
34+int get_alignmask(int fdc, struct session_op *sess)
35+{
36+ int alignmask;
37+ int min_alignmask = sizeof(void*) - 1;
38+
39+#ifdef CIOCGSESSINFO
40+ struct session_info_op siop;
41+
42+ siop.ses = sess->ses;
43+ if (ioctl(fdc, CIOCGSESSINFO, &siop)) {
44+ perror("ioctl(CIOCGSESSINFO)");
45+ return -EINVAL;
46+ }
47+ alignmask = siop.alignmask;
48+ if (alignmask < min_alignmask) {
49+ alignmask = min_alignmask;
50+ }
51+#else
52+ alignmask = 0;
53+#endif
54+
55+ return alignmask;
56+}
57
58 int encrypt_data(int fdc, struct test_params tp, struct session_op *sess)
59 {
60@@ -236,30 +259,6 @@ int run_test(int id, struct test_params tp)
61 close(fd);
62 }
63
64-int get_alignmask(int fdc, struct session_op *sess)
65-{
66- int alignmask;
67- int min_alignmask = sizeof(void*) - 1;
68-
69-#ifdef CIOCGSESSINFO
70- struct session_info_op siop;
71-
72- siop.ses = sess->ses;
73- if (ioctl(fdc, CIOCGSESSINFO, &siop)) {
74- perror("ioctl(CIOCGSESSINFO)");
75- return -EINVAL;
76- }
77- alignmask = siop.alignmask;
78- if (alignmask < min_alignmask) {
79- alignmask = min_alignmask;
80- }
81-#else
82- alignmask = 0;
83-#endif
84-
85- return alignmask;
86-}
87-
88 void do_test_vectors(int fdc, struct test_params tp, struct session_op *sess)
89 {
90 int i;
91diff --git a/tests/hashcrypt_speed.c b/tests/hashcrypt_speed.c
92index e60b73d..045bf8e 100644
93--- a/tests/hashcrypt_speed.c
94+++ b/tests/hashcrypt_speed.c
95@@ -25,6 +25,7 @@
96 #include <sys/time.h>
97 #include <sys/types.h>
98 #include <signal.h>
99+#include <unistd.h>
100 #include <crypto/cryptodev.h>
101
102 #define MAX(x,y) ((x)>(y)?(x):(y))
103diff --git a/tests/sha_speed.c b/tests/sha_speed.c
104index 75d0f42..e5c6efe 100644
105--- a/tests/sha_speed.c
106+++ b/tests/sha_speed.c
107@@ -25,6 +25,7 @@
108 #include <sys/time.h>
109 #include <sys/types.h>
110 #include <signal.h>
111+#include <unistd.h>
112
113 #include <crypto/cryptodev.h>
114
115diff --git a/tests/speed.c b/tests/speed.c
116index 0b14c88..d2e1aed 100644
117--- a/tests/speed.c
118+++ b/tests/speed.c
119@@ -24,6 +24,7 @@
120 #include <sys/time.h>
121 #include <sys/types.h>
122 #include <signal.h>
123+#include <unistd.h>
124
125 #include <crypto/cryptodev.h>
126
127--
1282.10.2
129