diff options
author | Raul E Rangel <rrangel@chromium.org> | 2019-05-03 13:49:04 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-05-14 23:57:32 -0700 |
commit | d823206bd2f5f6899ffe65d6086e3278552be903 (patch) | |
tree | 54ffeca2ad394966b44ef322c2b16a939e1de19c /chip/host/dcrypto/aes.c | |
parent | e2171125246314a685f1c95d08c5db820b521c81 (diff) | |
download | chrome-ec-d823206bd2f5f6899ffe65d6086e3278552be903.tar.gz |
host: Fix test breakage
There seems to be a breakage on ToT:
BUILD host-cr50_fuzz
VERSION ec_version.h
make obj=/mnt/host/source/src/platform/ec/build/host/cr50_fuzz/cryptoc SUPPORT_UNALIGNED=1 \
CONFIG_UPTO_SHA512=y -C /mnt/host/source/src/third_party/cryptoc
make[2]: '/mnt/host/source/src/platform/ec/build/host/cr50_fuzz/cryptoc/libcryptoc.a' is up to date.
CC RO/chip/host/dcrypto/aes.o
In file included from chip/host/dcrypto/aes.c:8:
In file included from board/host/dcrypto.h:24:
In file included from ./chip/g/dcrypto/dcrypto.h:22:
In file included from ./chip/g/dcrypto/internal.h:13:
include/util.h:82:16: error: attribute declaration must precede definition [-Werror,-Wignored-attributes]
__attribute__((visibility("hidden"))) int atoi(const char *nptr);
^
/usr/include/stdlib.h:361:32: note: previous definition is here
__attribute__ ((__nothrow__ )) atoi (const char *__nptr)
^
1 error generated.
make[1]: *** [Makefile.rules:480: build/host/cr50_fuzz/RO/chip/host/dcrypto/aes.o] Error 1
make: *** [Makefile.rules:281: host-cr50_fuzz] Error 2
BUG=none
BRANCH=none
TEST=make runtests -j
Change-Id: Idf2c901a0c12fa4ebfabdf7d1205430153b8de9f
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1605511
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'chip/host/dcrypto/aes.c')
-rw-r--r-- | chip/host/dcrypto/aes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chip/host/dcrypto/aes.c b/chip/host/dcrypto/aes.c index 5c944a0c95..cc57168cbb 100644 --- a/chip/host/dcrypto/aes.c +++ b/chip/host/dcrypto/aes.c @@ -5,6 +5,8 @@ #include <openssl/evp.h> +#define HIDE_EC_STDLIB + #include "dcrypto.h" #include "registers.h" |