summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2022-11-14 12:37:54 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-14 21:17:43 +0000
commite0c1fdf11777e198a4f08461eadcb3c8b09c50a6 (patch)
tree5bcad0d21ed6b5da23abe4b46a0672d7ae43c664
parentad9884a51b42b5ac3013132fced17b9e1835edd9 (diff)
downloadchrome-ec-e0c1fdf11777e198a4f08461eadcb3c8b09c50a6.tar.gz
ec: IWYU Add some missing includes
There are a few headers here that don't include the stdint or stdbool headers, but use the int or bool types defined there. BRANCH=None BUG=b:247100970 TEST=CQ Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: Idbf7e4d0c5182821fbc9fe9fb60690b12701bf75 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4022252 Commit-Queue: Simon Glass <sjg@chromium.org> Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
-rw-r--r--include/crc8.h2
-rw-r--r--include/driver/temp_sensor/thermistor.h2
-rw-r--r--include/event_log.h2
-rw-r--r--zephyr/program/herobrine/include/board_chipset.h2
-rw-r--r--zephyr/test/ap_power/include/test_mocks.h2
-rw-r--r--zephyr/test/ap_power/include/test_state.h2
-rw-r--r--zephyr/test/drivers/common/include/test/drivers/test_mocks.h2
-rw-r--r--zephyr/test/drivers/common/include/test/drivers/test_state.h2
8 files changed, 16 insertions, 0 deletions
diff --git a/include/crc8.h b/include/crc8.h
index c20314311e..ca1a98eb43 100644
--- a/include/crc8.h
+++ b/include/crc8.h
@@ -7,6 +7,8 @@
#ifndef __CROS_EC_CRC8_H
#define __CROS_EC_CRC8_H
+#include <stdint.h>
+
/**
* crc8
* Return CRC-8 of the data, using x^8 + x^2 + x + 1 polynomial. A table-based
diff --git a/include/driver/temp_sensor/thermistor.h b/include/driver/temp_sensor/thermistor.h
index 46b7763747..3e220b2505 100644
--- a/include/driver/temp_sensor/thermistor.h
+++ b/include/driver/temp_sensor/thermistor.h
@@ -8,6 +8,8 @@
#ifndef __CROS_EC_TEMP_SENSOR_THERMISTOR_H
#define __CROS_EC_TEMP_SENSOR_THERMISTOR_H
+#include <stdint.h>
+
struct thermistor_data_pair {
uint8_t mv; /* Scaled voltage level at ADC (in mV) */
uint8_t temp; /* Temperature in Celsius */
diff --git a/include/event_log.h b/include/event_log.h
index bd3b88510b..5438a34414 100644
--- a/include/event_log.h
+++ b/include/event_log.h
@@ -6,6 +6,8 @@
#ifndef __CROS_EC_EVENT_LOG_H
#define __CROS_EC_EVENT_LOG_H
+#include <stdint.h>
+
struct event_log_entry {
uint32_t timestamp; /* relative timestamp in milliseconds */
uint8_t type; /* event type, caller-defined */
diff --git a/zephyr/program/herobrine/include/board_chipset.h b/zephyr/program/herobrine/include/board_chipset.h
index 81c0dd1a40..000bc06654 100644
--- a/zephyr/program/herobrine/include/board_chipset.h
+++ b/zephyr/program/herobrine/include/board_chipset.h
@@ -6,6 +6,8 @@
#ifndef __CROS_EC_HEROBRINE_BOARD_CHIPSET_H
#define __CROS_EC_HEROBRINE_BOARD_CHIPSET_H
+#include "common.h"
+
__test_only void reset_pp5000_inited(void);
#endif /* __CROS_EC_HEROBRINE_BOARD_CHIPSET_H */
diff --git a/zephyr/test/ap_power/include/test_mocks.h b/zephyr/test/ap_power/include/test_mocks.h
index 8e9c80ad43..05e1d823e0 100644
--- a/zephyr/test/ap_power/include/test_mocks.h
+++ b/zephyr/test/ap_power/include/test_mocks.h
@@ -6,6 +6,8 @@
#ifndef __TEST_AP_POWER_TEST_MOCKS_H
#define __TEST_AP_POWER_TEST_MOCKS_H
+#include <stdint.h>
+
#include <zephyr/fff.h>
/*
diff --git a/zephyr/test/ap_power/include/test_state.h b/zephyr/test/ap_power/include/test_state.h
index cb91f2b7c7..2a7fbe822d 100644
--- a/zephyr/test/ap_power/include/test_state.h
+++ b/zephyr/test/ap_power/include/test_state.h
@@ -6,6 +6,8 @@
#ifndef ZEPHYR_TEST_AP_POWER_INCLUDE_TEST_STATE_H_
#define ZEPHYR_TEST_AP_POWER_INCLUDE_TEST_STATE_H_
+#include <stdbool.h>
+
struct test_state {
bool ec_app_main_run;
};
diff --git a/zephyr/test/drivers/common/include/test/drivers/test_mocks.h b/zephyr/test/drivers/common/include/test/drivers/test_mocks.h
index 25217dfffe..da5ac02697 100644
--- a/zephyr/test/drivers/common/include/test/drivers/test_mocks.h
+++ b/zephyr/test/drivers/common/include/test/drivers/test_mocks.h
@@ -6,6 +6,8 @@
#ifndef __TEST_DRIVERS_TEST_MOCKS_H
#define __TEST_DRIVERS_TEST_MOCKS_H
+#include <stdint.h>
+
#include <zephyr/fff.h>
/*
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 98cf4a283e..b4496c6af9 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,8 @@
#ifndef ZEPHYR_TEST_DRIVERS_INCLUDE_TEST_STATE_H_
#define ZEPHYR_TEST_DRIVERS_INCLUDE_TEST_STATE_H_
+#include <stdbool.h>
+
#ifdef __cplusplus
extern "C" {
#endif