From 0d071906c5807082978aaeb3069485a22731e388 Mon Sep 17 00:00:00 2001 From: Yuval Peress Date: Mon, 17 Oct 2022 12:04:22 -0600 Subject: test: cleanup Add missing extern "C" in the test_state header and missing include dependency in vboot_hash.c BRANCH=none BUG=none TEST=twister Signed-off-by: Yuval Peress Change-Id: I8bf87e5974bdbcfc6645fc12dcbd778651f23718 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3960557 Commit-Queue: Tomasz Michalec Reviewed-by: Tomasz Michalec Code-Coverage: Zoss --- zephyr/test/drivers/common/include/test/drivers/test_state.h | 8 ++++++++ zephyr/test/drivers/default/src/console_cmd/vboot_hash.c | 1 + 2 files changed, 9 insertions(+) diff --git a/zephyr/test/drivers/common/include/test/drivers/test_state.h b/zephyr/test/drivers/common/include/test/drivers/test_state.h index bea56224fc..98cf4a283e 100644 --- a/zephyr/test/drivers/common/include/test/drivers/test_state.h +++ b/zephyr/test/drivers/common/include/test/drivers/test_state.h @@ -6,6 +6,10 @@ #ifndef ZEPHYR_TEST_DRIVERS_INCLUDE_TEST_STATE_H_ #define ZEPHYR_TEST_DRIVERS_INCLUDE_TEST_STATE_H_ +#ifdef __cplusplus +extern "C" { +#endif + struct test_state { bool ec_app_main_run; }; @@ -14,4 +18,8 @@ bool drivers_predicate_pre_main(const void *state); bool drivers_predicate_post_main(const void *state); +#ifdef __cplusplus +} +#endif + #endif /* ZEPHYR_TEST_DRIVERS_INCLUDE_TEST_STATE_H_ */ diff --git a/zephyr/test/drivers/default/src/console_cmd/vboot_hash.c b/zephyr/test/drivers/default/src/console_cmd/vboot_hash.c index c723a4a232..b475f344c8 100644 --- a/zephyr/test/drivers/default/src/console_cmd/vboot_hash.c +++ b/zephyr/test/drivers/default/src/console_cmd/vboot_hash.c @@ -9,6 +9,7 @@ #include #include "console.h" +#include "flash.h" #include "printf.h" #include "sha256.h" #include "system.h" -- cgit v1.2.1