diff options
Diffstat (limited to 'recipes-kernel/cryptodev/sdk_patches/0091-Fix-test-compile-time-warnings.patch')
| -rw-r--r-- | recipes-kernel/cryptodev/sdk_patches/0091-Fix-test-compile-time-warnings.patch | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/recipes-kernel/cryptodev/sdk_patches/0091-Fix-test-compile-time-warnings.patch b/recipes-kernel/cryptodev/sdk_patches/0091-Fix-test-compile-time-warnings.patch new file mode 100644 index 000000000..639fe0fda --- /dev/null +++ b/recipes-kernel/cryptodev/sdk_patches/0091-Fix-test-compile-time-warnings.patch | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | From a715480416b33b0bacd2b58ec42b9c64bdb21c0c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Michael Weiser <michael.weiser@gmx.de> | ||
| 3 | Date: Fri, 19 Aug 2016 10:24:40 +0100 | ||
| 4 | Subject: [PATCH 091/104] Fix test compile time warnings | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | A number of tests cause compiler warnings like this: | ||
| 10 | |||
| 11 | hashcrypt_speed.c: In function ‘hash_data’: | ||
| 12 | hashcrypt_speed.c:101:2: warning: implicit declaration of function ‘alarm’ [-Wimplicit-function-declaration] | ||
| 13 | alarm(5); | ||
| 14 | ^~~~~ | ||
| 15 | hashcrypt_speed.c: In function ‘main’: | ||
| 16 | hashcrypt_speed.c:203:2: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration] | ||
| 17 | close(fdc); | ||
| 18 | ^~~~~ | ||
| 19 | |||
| 20 | Fix by including unistd.h. | ||
| 21 | --- | ||
| 22 | tests/hashcrypt_speed.c | 1 + | ||
| 23 | tests/sha_speed.c | 1 + | ||
| 24 | tests/speed.c | 1 + | ||
| 25 | 3 files changed, 3 insertions(+) | ||
| 26 | |||
| 27 | diff --git a/tests/hashcrypt_speed.c b/tests/hashcrypt_speed.c | ||
| 28 | index 045bf8e..10c9f00 100644 | ||
| 29 | --- a/tests/hashcrypt_speed.c | ||
| 30 | +++ b/tests/hashcrypt_speed.c | ||
| 31 | @@ -21,6 +21,7 @@ | ||
| 32 | #include <stdint.h> | ||
| 33 | #include <stdlib.h> | ||
| 34 | #include <string.h> | ||
| 35 | +#include <unistd.h> | ||
| 36 | #include <sys/ioctl.h> | ||
| 37 | #include <sys/time.h> | ||
| 38 | #include <sys/types.h> | ||
| 39 | diff --git a/tests/sha_speed.c b/tests/sha_speed.c | ||
| 40 | index 9f2c8cc..30b40f5 100644 | ||
| 41 | --- a/tests/sha_speed.c | ||
| 42 | +++ b/tests/sha_speed.c | ||
| 43 | @@ -21,6 +21,7 @@ | ||
| 44 | #include <stdint.h> | ||
| 45 | #include <stdlib.h> | ||
| 46 | #include <string.h> | ||
| 47 | +#include <unistd.h> | ||
| 48 | #include <sys/ioctl.h> | ||
| 49 | #include <sys/time.h> | ||
| 50 | #include <sys/types.h> | ||
| 51 | diff --git a/tests/speed.c b/tests/speed.c | ||
| 52 | index 3b36db1..fc38a63 100644 | ||
| 53 | --- a/tests/speed.c | ||
| 54 | +++ b/tests/speed.c | ||
| 55 | @@ -22,6 +22,7 @@ | ||
| 56 | #include <stdio.h> | ||
| 57 | #include <stdlib.h> | ||
| 58 | #include <string.h> | ||
| 59 | +#include <unistd.h> | ||
| 60 | #include <sys/ioctl.h> | ||
| 61 | #include <sys/time.h> | ||
| 62 | #include <sys/types.h> | ||
| 63 | -- | ||
| 64 | 2.10.2 | ||
| 65 | |||
