diff options
author | Carl Hamilton <carlh@chromium.org> | 2016-12-07 08:25:25 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-12-08 19:49:53 -0800 |
commit | 097c2bb04c92b90c6765f2ea2589b083b8912edf (patch) | |
tree | 34bfa230b05a13d64cf647040c64a382cced6bbb | |
parent | 80121352b0d37fe939bbb74ab05c23debb0525fb (diff) | |
download | chrome-ec-097c2bb04c92b90c6765f2ea2589b083b8912edf.tar.gz |
Cr50: Ensure that trng.h is self-contained.
* Include trng.h from trng.c before any other header to verify that the
header is self-contained.
* Add inclusion of stdint.h to trng.h to provide definition for uint32_t.
BUG=none
BRANCH=none
TEST=make -j buildall
Change-Id: I78fb6d915c357236ca0fed2a57f093f0eec07fe9
Reviewed-on: https://chromium-review.googlesource.com/417424
Commit-Ready: Carl Hamilton <carlh@chromium.org>
Tested-by: Carl Hamilton <carlh@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r-- | chip/g/trng.c | 1 | ||||
-rw-r--r-- | include/trng.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/chip/g/trng.c b/chip/g/trng.c index 49631e5b06..f715a1f833 100644 --- a/chip/g/trng.c +++ b/chip/g/trng.c @@ -5,6 +5,7 @@ #include "init_chip.h" #include "registers.h" +#include "trng.h" void init_trng(void) { diff --git a/include/trng.h b/include/trng.h index e6dcba644c..fed113c196 100644 --- a/include/trng.h +++ b/include/trng.h @@ -6,6 +6,7 @@ #define __EC_INCLUDE_TRNG_H #include <stddef.h> +#include <stdint.h> /** * Initialize the true random number generator. |