summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/bluetooth_le.c1
-rw-r--r--common/charge_manager.c1
-rw-r--r--common/charge_state_v2.c1
-rw-r--r--common/fan.c2
-rw-r--r--common/flash.c1
-rw-r--r--common/gpio.c1
-rw-r--r--common/host_command.c1
-rw-r--r--common/i2c_controller.c1
-rw-r--r--common/ioexpander.c1
-rw-r--r--common/ioexpander_commands.c2
-rw-r--r--common/keyboard_8042.c1
-rw-r--r--common/keyboard_8042_sharedlib.c1
-rw-r--r--common/keyboard_vivaldi.c1
-rw-r--r--common/main.c1
-rw-r--r--common/motion_sense.c1
-rw-r--r--common/panic_output.c1
-rw-r--r--common/printf.c1
-rw-r--r--common/pstore_commands.c1
-rw-r--r--common/queue.c2
-rw-r--r--common/rollback.c1
-rw-r--r--common/sha256.c1
-rw-r--r--common/spi_flash.c1
-rw-r--r--common/throttle_ap.c1
-rw-r--r--common/timer.c1
-rw-r--r--common/usb_charger.c1
-rw-r--r--common/usb_pd_alt_mode_dfp.c1
-rw-r--r--common/usb_pd_policy.c1
-rw-r--r--common/usb_pd_protocol.c1
-rw-r--r--common/usb_port_power_smart.c1
-rw-r--r--common/usbc/dp_alt_mode.c2
-rw-r--r--common/usbc/usb_pd_dpm.c1
-rw-r--r--common/usbc/usb_pe_drp_sm.c1
-rw-r--r--common/usbc/usb_prl_sm.c1
-rw-r--r--common/usbc/usb_retimer_fw_update.c2
-rw-r--r--common/usbc/usb_tc_ctvpd_sm.c1
-rw-r--r--common/usbc/usb_tc_drp_acc_trysrc_sm.c1
-rw-r--r--common/usbc/usb_tc_vpd_sm.c1
-rw-r--r--common/usbc/usbc_task.c1
-rw-r--r--common/usbc_intr_task.c2
-rw-r--r--common/util.c1
-rw-r--r--common/vboot_hash.c1
41 files changed, 44 insertions, 3 deletions
diff --git a/common/bluetooth_le.c b/common/bluetooth_le.c
index 631ab5d0e0..d9a43a74da 100644
--- a/common/bluetooth_le.c
+++ b/common/bluetooth_le.c
@@ -3,6 +3,7 @@
* found in the LICENSE file.
*/
+#include "builtin/assert.h"
#include "bluetooth_le.h"
#include "util.h"
#include "console.h"
diff --git a/common/charge_manager.c b/common/charge_manager.c
index 676c4d283e..3958e64147 100644
--- a/common/charge_manager.c
+++ b/common/charge_manager.c
@@ -6,6 +6,7 @@
#include "adc.h"
#include "atomic.h"
#include "battery.h"
+#include "builtin/assert.h"
#include "charge_manager.h"
#include "charge_ramp.h"
#include "charge_state_v2.h"
diff --git a/common/charge_state_v2.c b/common/charge_state_v2.c
index 957ecd3455..597ab6afa1 100644
--- a/common/charge_state_v2.c
+++ b/common/charge_state_v2.c
@@ -7,6 +7,7 @@
#include "battery.h"
#include "battery_smart.h"
+#include "builtin/assert.h"
#include "charge_manager.h"
#include "charger_profile_override.h"
#include "charge_state.h"
diff --git a/common/fan.c b/common/fan.c
index 1dfc9e1af5..98dda066f8 100644
--- a/common/fan.c
+++ b/common/fan.c
@@ -5,7 +5,7 @@
/* Basic Chrome OS fan control */
-#include "assert.h"
+#include "builtin/assert.h"
#include "chipset.h"
#include "common.h"
#include "console.h"
diff --git a/common/flash.c b/common/flash.c
index 9dd4a1c0d2..6e3ee8f2b5 100644
--- a/common/flash.c
+++ b/common/flash.c
@@ -5,6 +5,7 @@
/* Flash memory module for Chrome EC - common functions */
+#include "builtin/assert.h"
#include "common.h"
#include "console.h"
#include "cros_board_info.h"
diff --git a/common/gpio.c b/common/gpio.c
index 0a7b758f21..90fb7d9445 100644
--- a/common/gpio.c
+++ b/common/gpio.c
@@ -5,6 +5,7 @@
/* GPIO common functionality for Chrome EC */
+#include "builtin/assert.h"
#include "common.h"
#include "gpio.h"
#include "ioexpander.h"
diff --git a/common/host_command.c b/common/host_command.c
index a2d8defbef..5184d6e439 100644
--- a/common/host_command.c
+++ b/common/host_command.c
@@ -6,6 +6,7 @@
/* Host command module for Chrome EC */
#include "ap_hang_detect.h"
+#include "builtin/assert.h"
#include "common.h"
#include "console.h"
#include "ec_commands.h"
diff --git a/common/i2c_controller.c b/common/i2c_controller.c
index 0e126a490a..e04eec6a6c 100644
--- a/common/i2c_controller.c
+++ b/common/i2c_controller.c
@@ -6,6 +6,7 @@
/* I2C cross-platform code for Chrome EC */
#include "battery.h"
+#include "builtin/assert.h"
#include "clock.h"
#include "charge_state.h"
#include "console.h"
diff --git a/common/ioexpander.c b/common/ioexpander.c
index f81f996c6b..7b753b2f05 100644
--- a/common/ioexpander.c
+++ b/common/ioexpander.c
@@ -5,6 +5,7 @@
/* IO Expander Controller Common Code */
+#include "builtin/assert.h"
#include "gpio.h"
#include "hooks.h"
#include "ioexpander.h"
diff --git a/common/ioexpander_commands.c b/common/ioexpander_commands.c
index 13d7ba0690..8b12a6fa9f 100644
--- a/common/ioexpander_commands.c
+++ b/common/ioexpander_commands.c
@@ -2,6 +2,8 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+
+#include "builtin/assert.h"
#include "console.h"
#include "gpio.h"
#include "ioexpander.h"
diff --git a/common/keyboard_8042.c b/common/keyboard_8042.c
index aebbf38e87..b1282ced91 100644
--- a/common/keyboard_8042.c
+++ b/common/keyboard_8042.c
@@ -6,6 +6,7 @@
*/
#include "button.h"
+#include "builtin/assert.h"
#include "chipset.h"
#include "common.h"
#include "console.h"
diff --git a/common/keyboard_8042_sharedlib.c b/common/keyboard_8042_sharedlib.c
index 5a3c0e12d8..2eab9ae528 100644
--- a/common/keyboard_8042_sharedlib.c
+++ b/common/keyboard_8042_sharedlib.c
@@ -7,6 +7,7 @@
#include <stddef.h>
+#include "builtin/assert.h"
#include "button.h"
#include "keyboard_8042_sharedlib.h"
#include "keyboard_config.h"
diff --git a/common/keyboard_vivaldi.c b/common/keyboard_vivaldi.c
index 2cee4f0b9f..9d0e4f9eee 100644
--- a/common/keyboard_vivaldi.c
+++ b/common/keyboard_vivaldi.c
@@ -5,6 +5,7 @@
/* Vivali Keyboard code for Chrome EC */
+#include "builtin/assert.h"
#include "keyboard_8042_sharedlib.h"
#include "keyboard_scan.h"
#include "ec_commands.h"
diff --git a/common/main.c b/common/main.c
index 2604637ad5..52fb0823ee 100644
--- a/common/main.c
+++ b/common/main.c
@@ -29,6 +29,7 @@
#ifdef CONFIG_MPU
#include "mpu.h"
#endif
+#include "panic.h"
#include "rwsig.h"
#include "system.h"
#include "task.h"
diff --git a/common/motion_sense.c b/common/motion_sense.c
index 2cd1f2fe5f..80e9c24473 100644
--- a/common/motion_sense.c
+++ b/common/motion_sense.c
@@ -8,6 +8,7 @@
#include "accelgyro.h"
#include "atomic.h"
#include "body_detection.h"
+#include "builtin/assert.h"
#include "chipset.h"
#include "common.h"
#include "console.h"
diff --git a/common/panic_output.c b/common/panic_output.c
index bba4a82f46..4bbf9bc230 100644
--- a/common/panic_output.c
+++ b/common/panic_output.c
@@ -3,6 +3,7 @@
* found in the LICENSE file.
*/
+#include "builtin/assert.h"
#include "common.h"
#include "console.h"
#include "cpu.h"
diff --git a/common/printf.c b/common/printf.c
index 91e4e722b0..6bfb58dbc3 100644
--- a/common/printf.c
+++ b/common/printf.c
@@ -5,6 +5,7 @@
/* Printf-like functionality for Chrome EC */
+#include "builtin/assert.h"
#include "console.h"
#include "printf.h"
#include "timer.h"
diff --git a/common/pstore_commands.c b/common/pstore_commands.c
index ed4c8221a8..1d0ff596cb 100644
--- a/common/pstore_commands.c
+++ b/common/pstore_commands.c
@@ -5,6 +5,7 @@
/* Persistent storage commands for Chrome EC */
+#include "builtin/assert.h"
#include "common.h"
#include "eeprom.h"
#include "host_command.h"
diff --git a/common/queue.c b/common/queue.c
index 8ad08c8438..af83a72ae5 100644
--- a/common/queue.c
+++ b/common/queue.c
@@ -4,6 +4,8 @@
*
* Queue data structure implementation.
*/
+
+#include "builtin/assert.h"
#include "console.h"
#include "queue.h"
#include "util.h"
diff --git a/common/rollback.c b/common/rollback.c
index 21a0273f12..8f4e8f86e7 100644
--- a/common/rollback.c
+++ b/common/rollback.c
@@ -5,6 +5,7 @@
/* Rollback protection logic. */
+#include "builtin/assert.h"
#include "common.h"
#include "console.h"
#ifdef CONFIG_LIBCRYPTOC
diff --git a/common/sha256.c b/common/sha256.c
index 33ed38c5ec..2826f6c68d 100644
--- a/common/sha256.c
+++ b/common/sha256.c
@@ -35,6 +35,7 @@
* SUCH DAMAGE.
*/
+#include "builtin/assert.h"
#include "sha256.h"
#include "util.h"
diff --git a/common/spi_flash.c b/common/spi_flash.c
index d7cf9fc49a..a77e8a8337 100644
--- a/common/spi_flash.c
+++ b/common/spi_flash.c
@@ -6,6 +6,7 @@
* SPI flash driver for Chrome EC.
*/
+#include "builtin/assert.h"
#include "common.h"
#include "console.h"
#include "host_command.h"
diff --git a/common/throttle_ap.c b/common/throttle_ap.c
index 1f50cdb597..a3b1745972 100644
--- a/common/throttle_ap.c
+++ b/common/throttle_ap.c
@@ -5,6 +5,7 @@
/* Common chipset throttling code for Chrome EC */
+#include "builtin/assert.h"
#include "chipset.h"
#include "common.h"
#include "console.h"
diff --git a/common/timer.c b/common/timer.c
index a33eb84be4..ccf77eb9be 100644
--- a/common/timer.c
+++ b/common/timer.c
@@ -6,6 +6,7 @@
/* Timer module for Chrome EC operating system */
#include "atomic.h"
+#include "builtin/assert.h"
#include "common.h"
#include "console.h"
#include "hooks.h"
diff --git a/common/usb_charger.c b/common/usb_charger.c
index 3933634cbf..70861e6c62 100644
--- a/common/usb_charger.c
+++ b/common/usb_charger.c
@@ -12,6 +12,7 @@
* is necessary to update charge_manager with detected charger attributes.
*/
+#include "builtin/assert.h"
#include "charge_manager.h"
#include "charger.h"
#include "common.h"
diff --git a/common/usb_pd_alt_mode_dfp.c b/common/usb_pd_alt_mode_dfp.c
index 40535bf025..33fde9b14d 100644
--- a/common/usb_pd_alt_mode_dfp.c
+++ b/common/usb_pd_alt_mode_dfp.c
@@ -5,6 +5,7 @@
* Alternate Mode Downstream Facing Port (DFP) USB-PD module.
*/
+#include "builtin/assert.h"
#include "chipset.h"
#include "console.h"
#include "gpio.h"
diff --git a/common/usb_pd_policy.c b/common/usb_pd_policy.c
index 29460d083c..3b2d6b4b8f 100644
--- a/common/usb_pd_policy.c
+++ b/common/usb_pd_policy.c
@@ -4,6 +4,7 @@
*/
#include "atomic.h"
+#include "builtin/assert.h"
#include "charge_manager.h"
#include "common.h"
#include "console.h"
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c
index 946abf6395..8b52d44668 100644
--- a/common/usb_pd_protocol.c
+++ b/common/usb_pd_protocol.c
@@ -7,6 +7,7 @@
#include "battery.h"
#include "battery_smart.h"
#include "board.h"
+#include "builtin/assert.h"
#include "charge_manager.h"
#include "charge_state.h"
#include "chipset.h"
diff --git a/common/usb_port_power_smart.c b/common/usb_port_power_smart.c
index 74912de773..9313993842 100644
--- a/common/usb_port_power_smart.c
+++ b/common/usb_port_power_smart.c
@@ -5,6 +5,7 @@
/* USB charging control module for Chrome EC */
+#include "builtin/assert.h"
#include "chipset.h"
#include "common.h"
#include "console.h"
diff --git a/common/usbc/dp_alt_mode.c b/common/usbc/dp_alt_mode.c
index a5b4908112..1a2ae5f2a5 100644
--- a/common/usbc/dp_alt_mode.c
+++ b/common/usbc/dp_alt_mode.c
@@ -11,8 +11,8 @@
#include <stdbool.h>
#include <stdint.h>
-#include "assert.h"
#include "atomic.h"
+#include "builtin/assert.h"
#include "console.h"
#include "usb_common.h"
#include "usb_dp_alt_mode.h"
diff --git a/common/usbc/usb_pd_dpm.c b/common/usbc/usb_pd_dpm.c
index 4034140492..845bd89031 100644
--- a/common/usbc/usb_pd_dpm.c
+++ b/common/usbc/usb_pd_dpm.c
@@ -8,6 +8,7 @@
* Refer to USB PD 3.0 spec, version 2.0, sections 8.2 and 8.3
*/
+#include "builtin/assert.h"
#include "charge_state.h"
#include "chipset.h"
#include "compile_time_macros.h"
diff --git a/common/usbc/usb_pe_drp_sm.c b/common/usbc/usb_pe_drp_sm.c
index 7d9318b3e3..e5ed34b989 100644
--- a/common/usbc/usb_pe_drp_sm.c
+++ b/common/usbc/usb_pe_drp_sm.c
@@ -6,6 +6,7 @@
#include "atomic.h"
#include "battery.h"
#include "battery_smart.h"
+#include "builtin/assert.h"
#include "charge_manager.h"
#include "charge_state.h"
#include "common.h"
diff --git a/common/usbc/usb_prl_sm.c b/common/usbc/usb_prl_sm.c
index a0bf6b375e..925e61c430 100644
--- a/common/usbc/usb_prl_sm.c
+++ b/common/usbc/usb_prl_sm.c
@@ -6,6 +6,7 @@
#include "battery.h"
#include "battery_smart.h"
#include "board.h"
+#include "builtin/assert.h"
#include "charge_manager.h"
#include "charge_state.h"
#include "chipset.h"
diff --git a/common/usbc/usb_retimer_fw_update.c b/common/usbc/usb_retimer_fw_update.c
index a70ba18a11..157191d0a3 100644
--- a/common/usbc/usb_retimer_fw_update.c
+++ b/common/usbc/usb_retimer_fw_update.c
@@ -5,6 +5,8 @@
#include <stdbool.h>
#include <stdint.h>
+
+#include "builtin/assert.h"
#include "compile_time_macros.h"
#include "console.h"
#include "hooks.h"
diff --git a/common/usbc/usb_tc_ctvpd_sm.c b/common/usbc/usb_tc_ctvpd_sm.c
index cfe5a22c3a..f674e75488 100644
--- a/common/usbc/usb_tc_ctvpd_sm.c
+++ b/common/usbc/usb_tc_ctvpd_sm.c
@@ -3,6 +3,7 @@
* found in the LICENSE file.
*/
+#include "builtin/assert.h"
#include "common.h"
#include "console.h"
#include "system.h"
diff --git a/common/usbc/usb_tc_drp_acc_trysrc_sm.c b/common/usbc/usb_tc_drp_acc_trysrc_sm.c
index ebb2f6f3df..50114e76b1 100644
--- a/common/usbc/usb_tc_drp_acc_trysrc_sm.c
+++ b/common/usbc/usb_tc_drp_acc_trysrc_sm.c
@@ -3,6 +3,7 @@
* found in the LICENSE file.
*/
+#include "builtin/assert.h"
#include "charge_manager.h"
#include "charge_state.h"
#include "common.h"
diff --git a/common/usbc/usb_tc_vpd_sm.c b/common/usbc/usb_tc_vpd_sm.c
index 11cc947cb1..e68e46e9dd 100644
--- a/common/usbc/usb_tc_vpd_sm.c
+++ b/common/usbc/usb_tc_vpd_sm.c
@@ -3,6 +3,7 @@
* found in the LICENSE file.
*/
+#include "builtin/assert.h"
#include "common.h"
#include "console.h"
#include "system.h"
diff --git a/common/usbc/usbc_task.c b/common/usbc/usbc_task.c
index 4faf36cff4..f6a2b5447d 100644
--- a/common/usbc/usbc_task.c
+++ b/common/usbc/usbc_task.c
@@ -6,6 +6,7 @@
#include "battery.h"
#include "battery_smart.h"
#include "board.h"
+#include "builtin/assert.h"
#include "charge_manager.h"
#include "charge_state.h"
#include "chipset.h"
diff --git a/common/usbc_intr_task.c b/common/usbc_intr_task.c
index 258c068b78..e283314151 100644
--- a/common/usbc_intr_task.c
+++ b/common/usbc_intr_task.c
@@ -7,7 +7,7 @@
#include <stdint.h>
-#include "assert.h"
+#include "builtin/assert.h"
#include "common.h"
#include "compile_time_macros.h"
#include "console.h"
diff --git a/common/util.c b/common/util.c
index c89770f161..a090bd1575 100644
--- a/common/util.c
+++ b/common/util.c
@@ -5,6 +5,7 @@
/* Utility functions for Chrome EC */
+#include "builtin/assert.h"
#include "common.h"
#include "console.h"
#include "util.h"
diff --git a/common/vboot_hash.c b/common/vboot_hash.c
index bb51858374..aa878fedd0 100644
--- a/common/vboot_hash.c
+++ b/common/vboot_hash.c
@@ -5,6 +5,7 @@
/* Verified boot hash computing module for Chrome EC */
+#include "builtin/assert.h"
#include "clock.h"
#include "common.h"
#include "console.h"