From aa5578e64cc117ced4ad6107210aac3e11360a93 Mon Sep 17 00:00:00 2001 From: Carl Hamilton Date: Thu, 20 Apr 2017 11:38:40 -0700 Subject: [PATCH] Include stdint.h from ec_commands.h. The ec_commands.h header uses types defined in stdint.h. To make the ec_commands.h header more portable, ensure that includes what it uses. Running "make -j buildall" worked for all boards except "gru" and "hammer", which were broken before this change. BRANCH=none BUG=none TEST=make -j buildall Change-Id: I1ffe41a69b7296736616b9250c45f2749a66f22c Reviewed-on: https://chromium-review.googlesource.com/483283 Commit-Ready: Carl Hamilton Tested-by: Carl Hamilton Reviewed-by: Jeff Andersen Reviewed-by: Vadim Bendebury --- include/ec_commands.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/ec_commands.h b/include/ec_commands.h index 9f26a29124..4db42609c3 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -8,10 +8,12 @@ #ifndef __CROS_EC_EC_COMMANDS_H #define __CROS_EC_EC_COMMANDS_H +#include + /* - * Include common.h first for CONFIG_HOSTCMD_ALIGNED, if it's defined. This - * generates more efficient code for accessing request/response structures - * on ARM Cortex-M if the structures are guaranteed 32-bit aligned. + * Include common.h for CONFIG_HOSTCMD_ALIGNED, if it's defined. This + * generates more efficient code for accessing request/response structures on + * ARM Cortex-M if the structures are guaranteed 32-bit aligned. */ #ifdef CHROMIUM_EC #include "common.h"