summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Peress <peress@google.com>2022-08-29 22:43:21 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-31 19:45:58 +0000
commit9fb6ce5499675d11b0b3ddaae57efc80e981640c (patch)
tree310d63d483e1529207264dc11da5ade79fb96d18
parent974751b4fb6022ba172ea3097982254cc4d9e3e1 (diff)
downloadchrome-ec-9fb6ce5499675d11b0b3ddaae57efc80e981640c.tar.gz
test: add missing includes to various test files
A few headers were missing and causing warnings BRANCH=none BUG=none TEST=twister -T zephyr/test/drivers Signed-off-by: Yuval Peress <peress@google.com> Change-Id: I98f6a13be6a8e70cfb30c69b70a9c7839eb9b0b0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3863927 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
-rw-r--r--zephyr/test/drivers/default/src/console_cmd/usb_pd_console.c1
-rw-r--r--zephyr/test/drivers/default/src/power_common.c1
-rw-r--r--zephyr/test/kingler/src/db_detect_none.c3
3 files changed, 4 insertions, 1 deletions
diff --git a/zephyr/test/drivers/default/src/console_cmd/usb_pd_console.c b/zephyr/test/drivers/default/src/console_cmd/usb_pd_console.c
index 96b2b701ef..f205da1357 100644
--- a/zephyr/test/drivers/default/src/console_cmd/usb_pd_console.c
+++ b/zephyr/test/drivers/default/src/console_cmd/usb_pd_console.c
@@ -10,6 +10,7 @@
#include "ec_commands.h"
#include "test/drivers/test_state.h"
#include "test/drivers/utils.h"
+#include "usb_prl_sm.h"
static void console_cmd_usb_pd_after(void *fixture)
{
diff --git a/zephyr/test/drivers/default/src/power_common.c b/zephyr/test/drivers/default/src/power_common.c
index 09d9834ed8..537ad9b1d7 100644
--- a/zephyr/test/drivers/default/src/power_common.c
+++ b/zephyr/test/drivers/default/src/power_common.c
@@ -3,6 +3,7 @@
* found in the LICENSE file.
*/
+#include <strings.h>
#include <zephyr/ztest.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/gpio/gpio_emul.h>
diff --git a/zephyr/test/kingler/src/db_detect_none.c b/zephyr/test/kingler/src/db_detect_none.c
index 7b28d0e933..dbcefaab5a 100644
--- a/zephyr/test/kingler/src/db_detect_none.c
+++ b/zephyr/test/kingler/src/db_detect_none.c
@@ -3,7 +3,8 @@
* found in the LICENSE file.
*/
-#include "zephyr/kernel.h"
+#include <stdlib.h>
+#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio/gpio_emul.h>
#include <zephyr/ztest.h>