diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2018-06-20 10:40:26 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-06-28 07:06:46 -0700 |
commit | dcfbe0be69d3445edfd45fb036bfae2581b6fdd5 (patch) | |
tree | de448bc3d41945e0bc0cf2f098e10ca14fc49419 /common/mkbp_event.c | |
parent | 6f38ed23f3d467937f15cf0474b8f323564bcc0d (diff) | |
download | chrome-ec-dcfbe0be69d3445edfd45fb036bfae2581b6fdd5.tar.gz |
ec: Make it possible to build tests using clang
We might want to try out address sanitizer/fuzzer on some host
tests: make it possible to build host tests using clang.
Board builds are broken, and there is no intention to fix them,
at least for now.
BRANCH=none
BUG=chromium:854924
TEST=make buildall -j
TEST=make CC=clang runtests -j
Change-Id: Id49a1b8537bc403d53437a2245f4fab6ceae89ac
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1107522
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common/mkbp_event.c')
-rw-r--r-- | common/mkbp_event.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/mkbp_event.c b/common/mkbp_event.c index 160ae250c8..40a6e21066 100644 --- a/common/mkbp_event.c +++ b/common/mkbp_event.c @@ -57,6 +57,7 @@ static void set_host_interrupt(int active) interrupt_enable(); } +#ifdef CONFIG_MKBP_WAKEUP_MASK /** * Check if the host is sleeping. Check our power state in addition to the * self-reported sleep state of host (CONFIG_POWER_TRACK_HOST_SLEEP_STATE). @@ -73,6 +74,7 @@ static inline int host_is_sleeping(void) #endif return is_sleeping; } +#endif /* CONFIG_MKBP_WAKEUP_MASK */ int mkbp_send_event(uint8_t event_type) { |