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>
This commit is contained in:
Carl Hamilton
2017-04-20 11:38:40 -07:00
committed by chrome-bot
parent b07cdf6bdd
commit aa5578e64c

View File

@@ -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"