diff options
author | Simon Glass <sjg@chromium.org> | 2021-02-04 10:38:27 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-04 19:59:31 +0000 |
commit | 91e1159aa12b394016728936d3d3f53dc47fdbd5 (patch) | |
tree | 1c75560cb5117a0f597f1f33babceeed02ac1c54 /power/host_sleep.c | |
parent | dee015c25b658673c7929adbcd43f96b92cb072a (diff) | |
download | chrome-ec-91e1159aa12b394016728936d3d3f53dc47fdbd5.tar.gz |
host_sleep: Add config.h before ec_commands.h
Unfortunately ec_commands.h define BUILD_ASSERT() which then conflicts
with Zephyr's definition. Add the config.h header to work around this.
BUG=none
BRANCH=none
TEST=builds host_sleep.c without warnings
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: Ia1c4a555717c6422d3c43d47e8bbaa1ddf83bba3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2676262
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'power/host_sleep.c')
-rw-r--r-- | power/host_sleep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/power/host_sleep.c b/power/host_sleep.c index 4bf10e2749..8bd66d035f 100644 --- a/power/host_sleep.c +++ b/power/host_sleep.c @@ -3,6 +3,7 @@ * found in the LICENSE file. */ +#include "config.h" #include "ec_commands.h" #include "hooks.h" #include "host_command.h" |