summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hamilton <carlh@chromium.org>2017-04-20 11:38:40 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-04-25 16:32:52 -0700
commitaa5578e64cc117ced4ad6107210aac3e11360a93 (patch)
treef821f78a32ee89e0b7baf4184d28b87b1e6cd41f
parentb07cdf6bdda452f8d8a2a2231eb78f97fbf7e1dd (diff)
downloadchrome-ec-aa5578e64cc117ced4ad6107210aac3e11360a93.tar.gz
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 <carlh@chromium.org> Tested-by: Carl Hamilton <carlh@chromium.org> Reviewed-by: Jeff Andersen <jeffandersen@google.com> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r--include/ec_commands.h8
1 files 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 <stdint.h>
+
/*
- * 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"