From 097c2bb04c92b90c6765f2ea2589b083b8912edf Mon Sep 17 00:00:00 2001 From: Carl Hamilton Date: Wed, 7 Dec 2016 08:25:25 -0800 Subject: [PATCH] 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 Tested-by: Carl Hamilton Reviewed-by: Vadim Bendebury --- chip/g/trng.c | 1 + include/trng.h | 1 + 2 files changed, 2 insertions(+) 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 +#include /** * Initialize the true random number generator.