From 6a0f554ffa608315b1cc2c58b7cc66d3d42017d8 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Tue, 4 Oct 2022 16:34:24 +0200 Subject: [PATCH] include: add missing kernel.h include Some files make use of Kernel APIs without including kernel.h, fix this problem. Signed-off-by: Gerard Marull-Paretas --- boards/arm/thingy52_nrf52832/board.c | 1 + boards/arm/thingy53_nrf5340/board.c | 2 +- drivers/clock_control/clock_control_lpc11u6x.c | 1 + drivers/clock_control/clock_control_renesas_cpg_mssr.c | 1 + drivers/counter/counter_mcux_rtc.c | 1 + drivers/display/display_mcux_elcdif.c | 1 + drivers/display/ssd1306.c | 1 + drivers/ec_host_cmd_periph/ec_host_cmd_simulator.c | 1 + drivers/entropy/entropy_nrf5.c | 1 + drivers/entropy/entropy_sam.c | 1 + drivers/ethernet/phy/phy_mii.c | 1 + drivers/flash/soc_flash_b91.c | 2 +- drivers/gpio/gpio_emul_sdl.c | 1 + drivers/gpio/gpio_fxl6408.c | 1 + drivers/gpio/gpio_pcal6408a.c | 1 + drivers/gpio/gpio_pcf8574.c | 1 + drivers/i2c/i2c_gecko.c | 1 + drivers/i2c/i2c_ite_enhance.c | 1 + drivers/i2c/i2c_ite_it8xxx2.c | 1 + drivers/i2c/i2c_mcux.c | 1 + drivers/i2c/i2c_mcux_lpi2c.c | 1 + drivers/i2c/i2c_nios2.c | 1 + drivers/i2c/i2c_npcx_controller.c | 1 + drivers/mdio/mdio_esp32.c | 1 + drivers/mdio/mdio_sam.c | 1 + drivers/pwm/pwm_imx.c | 1 + drivers/sdhc/mcux_sdif.c | 1 + drivers/sensor/adxl372/adxl372.h | 1 + drivers/sensor/bma280/bma280.h | 1 + drivers/sensor/bmi160/bmi160.h | 1 + drivers/sensor/bmi270/bmi270.c | 1 + drivers/sensor/bmi270/bmi270_spi.c | 1 + drivers/sensor/fxas21002/fxas21002.h | 1 + drivers/sensor/fxos8700/fxos8700.h | 1 + drivers/sensor/hmc5883l/hmc5883l.h | 1 + drivers/sensor/icm42605/icm42605.h | 1 + drivers/sensor/icm42670/icm42670.h | 1 + drivers/sensor/icm42670/icm42670_spi.c | 1 + drivers/sensor/iis2dh/iis2dh.h | 1 + drivers/sensor/iis2mdc/iis2mdc.h | 1 + drivers/sensor/iis3dhhc/iis3dhhc.h | 1 + drivers/sensor/ina23x/ina230.h | 1 + drivers/sensor/ina23x/ina23x_trigger.h | 1 + drivers/sensor/ism330dhcx/ism330dhcx.h | 1 + drivers/sensor/lis3mdl/lis3mdl.h | 1 + drivers/sensor/lsm6dsl/lsm6dsl.h | 1 + drivers/sensor/max17055/max17055.c | 1 + drivers/sensor/max17262/max17262.c | 1 + drivers/sensor/mcux_acmp/mcux_acmp.c | 1 + drivers/sensor/mpu6050/mpu6050.h | 1 + drivers/sensor/ms5607/ms5607_spi.c | 1 + drivers/sensor/nuvoton_adc_cmp_npcx/adc_cmp_npcx.c | 2 +- drivers/sensor/sm351lt/sm351lt.h | 1 + drivers/sensor/stts751/stts751.h | 1 + drivers/sensor/vcnl4040/vcnl4040.h | 1 + drivers/serial/uart_mcux_lpuart.c | 1 + drivers/serial/uart_native_posix.c | 2 ++ drivers/serial/uart_rtt.c | 1 + drivers/serial/uart_xlnx_uartlite.c | 1 + drivers/spi/spi_context.h | 1 + drivers/timer/mcux_lptmr_timer.c | 1 + drivers/timer/npcx_itim_timer.c | 1 + drivers/usb/device/usb_dc_mcux.c | 1 + drivers/usb/device/usb_dc_native_posix.c | 1 + drivers/usb/device/usb_dc_sam_usbhs.c | 1 + drivers/watchdog/wdt_iwdg_stm32.c | 1 + include/zephyr/drivers/adc.h | 1 + include/zephyr/drivers/can.h | 1 + include/zephyr/drivers/i2c.h | 1 + include/zephyr/drivers/spi.h | 1 + include/zephyr/drivers/virtualization/ivshmem.h | 1 + include/zephyr/drivers/w1.h | 1 + include/zephyr/ipc/ipc_service.h | 1 + include/zephyr/ipc/ipc_service_backend.h | 1 + include/zephyr/sd/sd.h | 1 + .../boards/nrf/mesh/onoff_level_lighting_vnd_app/src/app_gpio.c | 1 + .../nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/publisher.h | 2 ++ samples/drivers/ht16k33/src/main.c | 1 + soc/xtensa/intel_adsp/cavs/power.c | 1 + soc/xtensa/intel_adsp/common/clk.c | 1 + subsys/fs/fs.c | 1 + subsys/mgmt/ec_host_cmd/ec_host_cmd_handler.c | 1 + subsys/pm/pm_stats.c | 2 +- .../clock_control/nrf_clock_calibration/src/mock_temp_nrf5.c | 1 + 84 files changed, 86 insertions(+), 4 deletions(-) diff --git a/boards/arm/thingy52_nrf52832/board.c b/boards/arm/thingy52_nrf52832/board.c index 369781ffd1..18f097b657 100644 --- a/boards/arm/thingy52_nrf52832/board.c +++ b/boards/arm/thingy52_nrf52832/board.c @@ -6,6 +6,7 @@ #include #include +#include static const struct gpio_dt_spec ccs_gpio = GPIO_DT_SPEC_GET(DT_NODELABEL(ccs_pwr), enable_gpios); diff --git a/boards/arm/thingy53_nrf5340/board.c b/boards/arm/thingy53_nrf5340/board.c index a0eba96a98..39a194e93d 100644 --- a/boards/arm/thingy53_nrf5340/board.c +++ b/boards/arm/thingy53_nrf5340/board.c @@ -5,8 +5,8 @@ */ #include +#include #include - #include LOG_MODULE_REGISTER(thingy53_board_init); diff --git a/drivers/clock_control/clock_control_lpc11u6x.c b/drivers/clock_control/clock_control_lpc11u6x.c index 41aa5d9457..c9bbf3c6a8 100644 --- a/drivers/clock_control/clock_control_lpc11u6x.c +++ b/drivers/clock_control/clock_control_lpc11u6x.c @@ -8,6 +8,7 @@ #include #include +#include #include diff --git a/drivers/clock_control/clock_control_renesas_cpg_mssr.c b/drivers/clock_control/clock_control_renesas_cpg_mssr.c index c7233b69a7..aa45465268 100644 --- a/drivers/clock_control/clock_control_renesas_cpg_mssr.c +++ b/drivers/clock_control/clock_control_renesas_cpg_mssr.c @@ -8,6 +8,7 @@ #include #include #include +#include #include "clock_control_renesas_cpg_mssr.h" static void rcar_cpg_reset(uint32_t base_address, uint32_t reg, uint32_t bit) diff --git a/drivers/counter/counter_mcux_rtc.c b/drivers/counter/counter_mcux_rtc.c index 58ec79ee52..275e1d86f0 100644 --- a/drivers/counter/counter_mcux_rtc.c +++ b/drivers/counter/counter_mcux_rtc.c @@ -9,6 +9,7 @@ #include #include +#include #include #include diff --git a/drivers/display/display_mcux_elcdif.c b/drivers/display/display_mcux_elcdif.c index 38a19d9e1e..41ab7122c6 100644 --- a/drivers/display/display_mcux_elcdif.c +++ b/drivers/display/display_mcux_elcdif.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #ifdef CONFIG_HAS_MCUX_CACHE diff --git a/drivers/display/ssd1306.c b/drivers/display/ssd1306.c index a7c0929bb9..c413b46db8 100644 --- a/drivers/display/ssd1306.c +++ b/drivers/display/ssd1306.c @@ -15,6 +15,7 @@ LOG_MODULE_REGISTER(ssd1306, CONFIG_DISPLAY_LOG_LEVEL); #include #include #include +#include #include "ssd1306_regs.h" #include diff --git a/drivers/ec_host_cmd_periph/ec_host_cmd_simulator.c b/drivers/ec_host_cmd_periph/ec_host_cmd_simulator.c index 740fdd17c5..5c6194f6a2 100644 --- a/drivers/ec_host_cmd_periph/ec_host_cmd_simulator.c +++ b/drivers/ec_host_cmd_periph/ec_host_cmd_simulator.c @@ -10,6 +10,7 @@ #include #include +#include #include #ifndef CONFIG_ARCH_POSIX diff --git a/drivers/entropy/entropy_nrf5.c b/drivers/entropy/entropy_nrf5.c index 57298c169e..a3ca31b5cc 100644 --- a/drivers/entropy/entropy_nrf5.c +++ b/drivers/entropy/entropy_nrf5.c @@ -6,6 +6,7 @@ */ #include +#include #include #include #include diff --git a/drivers/entropy/entropy_sam.c b/drivers/entropy/entropy_sam.c index 5688f26957..1f2c1e2c50 100644 --- a/drivers/entropy/entropy_sam.c +++ b/drivers/entropy/entropy_sam.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include diff --git a/drivers/ethernet/phy/phy_mii.c b/drivers/ethernet/phy/phy_mii.c index 1a3ff6bc1d..528673998e 100644 --- a/drivers/ethernet/phy/phy_mii.c +++ b/drivers/ethernet/phy/phy_mii.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/flash/soc_flash_b91.c b/drivers/flash/soc_flash_b91.c index 99d99b9674..a7ce405748 100644 --- a/drivers/flash/soc_flash_b91.c +++ b/drivers/flash/soc_flash_b91.c @@ -12,7 +12,7 @@ #include #include #include - +#include /* driver definitions */ #define BLOCK_64K_SIZE (0x10000u) diff --git a/drivers/gpio/gpio_emul_sdl.c b/drivers/gpio/gpio_emul_sdl.c index 015d0f352c..aa121322b9 100644 --- a/drivers/gpio/gpio_emul_sdl.c +++ b/drivers/gpio/gpio_emul_sdl.c @@ -7,6 +7,7 @@ #define DT_DRV_COMPAT zephyr_gpio_emul_sdl #include +#include #include #include diff --git a/drivers/gpio/gpio_fxl6408.c b/drivers/gpio/gpio_fxl6408.c index f833bd6fdc..20cf7be4a5 100644 --- a/drivers/gpio/gpio_fxl6408.c +++ b/drivers/gpio/gpio_fxl6408.c @@ -6,6 +6,7 @@ #include #include +#include #include "gpio_utils.h" #include diff --git a/drivers/gpio/gpio_pcal6408a.c b/drivers/gpio/gpio_pcal6408a.c index 0c349e6380..49c6fdc0e6 100644 --- a/drivers/gpio/gpio_pcal6408a.c +++ b/drivers/gpio/gpio_pcal6408a.c @@ -6,6 +6,7 @@ #define DT_DRV_COMPAT nxp_pcal6408a +#include #include #include #include "gpio_utils.h" diff --git a/drivers/gpio/gpio_pcf8574.c b/drivers/gpio/gpio_pcf8574.c index 01a1af59c8..5344b79524 100644 --- a/drivers/gpio/gpio_pcf8574.c +++ b/drivers/gpio/gpio_pcf8574.c @@ -10,6 +10,7 @@ #include #include +#include #include LOG_MODULE_REGISTER(pcf8574, CONFIG_GPIO_LOG_LEVEL); diff --git a/drivers/i2c/i2c_gecko.c b/drivers/i2c/i2c_gecko.c index 952082c4e4..80eb2b147e 100644 --- a/drivers/i2c/i2c_gecko.c +++ b/drivers/i2c/i2c_gecko.c @@ -8,6 +8,7 @@ #include #include +#include #include #include #include diff --git a/drivers/i2c/i2c_ite_enhance.c b/drivers/i2c/i2c_ite_enhance.c index 6bd780066c..d925822469 100644 --- a/drivers/i2c/i2c_ite_enhance.c +++ b/drivers/i2c/i2c_ite_enhance.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/i2c/i2c_ite_it8xxx2.c b/drivers/i2c/i2c_ite_it8xxx2.c index dc63c1999f..8941517f69 100644 --- a/drivers/i2c/i2c_ite_it8xxx2.c +++ b/drivers/i2c/i2c_ite_it8xxx2.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/i2c/i2c_mcux.c b/drivers/i2c/i2c_mcux.c index 3fbd084ad5..44e0779a74 100644 --- a/drivers/i2c/i2c_mcux.c +++ b/drivers/i2c/i2c_mcux.c @@ -8,6 +8,7 @@ #include #include +#include #include #include #include diff --git a/drivers/i2c/i2c_mcux_lpi2c.c b/drivers/i2c/i2c_mcux_lpi2c.c index 429e42df9b..66f5b956f2 100644 --- a/drivers/i2c/i2c_mcux_lpi2c.c +++ b/drivers/i2c/i2c_mcux_lpi2c.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #ifdef CONFIG_PINCTRL diff --git a/drivers/i2c/i2c_nios2.c b/drivers/i2c/i2c_nios2.c index 8ed1414d82..2540a0a87a 100644 --- a/drivers/i2c/i2c_nios2.c +++ b/drivers/i2c/i2c_nios2.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/i2c/i2c_npcx_controller.c b/drivers/i2c/i2c_npcx_controller.c index 748bb7a92f..4832dd7527 100644 --- a/drivers/i2c/i2c_npcx_controller.c +++ b/drivers/i2c/i2c_npcx_controller.c @@ -70,6 +70,7 @@ #include #include #include +#include #include #include diff --git a/drivers/mdio/mdio_esp32.c b/drivers/mdio/mdio_esp32.c index 49186d3243..fb24334666 100644 --- a/drivers/mdio/mdio_esp32.c +++ b/drivers/mdio/mdio_esp32.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include diff --git a/drivers/mdio/mdio_sam.c b/drivers/mdio/mdio_sam.c index a723f89a1b..3fda9c79ef 100644 --- a/drivers/mdio/mdio_sam.c +++ b/drivers/mdio/mdio_sam.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/pwm/pwm_imx.c b/drivers/pwm/pwm_imx.c index fbece341fd..28886a0b05 100644 --- a/drivers/pwm/pwm_imx.c +++ b/drivers/pwm/pwm_imx.c @@ -6,6 +6,7 @@ #include #include +#include #include #include #include diff --git a/drivers/sdhc/mcux_sdif.c b/drivers/sdhc/mcux_sdif.c index 77904538ad..0649c1261e 100644 --- a/drivers/sdhc/mcux_sdif.c +++ b/drivers/sdhc/mcux_sdif.c @@ -12,6 +12,7 @@ #include #include #include +#include #include LOG_MODULE_REGISTER(sdif, CONFIG_SDHC_LOG_LEVEL); diff --git a/drivers/sensor/adxl372/adxl372.h b/drivers/sensor/adxl372/adxl372.h index 8e86977ca6..1a5c6862e5 100644 --- a/drivers/sensor/adxl372/adxl372.h +++ b/drivers/sensor/adxl372/adxl372.h @@ -11,6 +11,7 @@ #include #include #include +#include #include #if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi) diff --git a/drivers/sensor/bma280/bma280.h b/drivers/sensor/bma280/bma280.h index 9ca76df25b..05d3573a6c 100644 --- a/drivers/sensor/bma280/bma280.h +++ b/drivers/sensor/bma280/bma280.h @@ -12,6 +12,7 @@ #include #include #include +#include #define BMA280_REG_CHIP_ID 0x00 #if DT_INST_PROP(0, is_bmc150) diff --git a/drivers/sensor/bmi160/bmi160.h b/drivers/sensor/bmi160/bmi160.h index 49339ad896..a9fed0dba6 100644 --- a/drivers/sensor/bmi160/bmi160.h +++ b/drivers/sensor/bmi160/bmi160.h @@ -14,6 +14,7 @@ #include #include #include +#include #include /* registers */ diff --git a/drivers/sensor/bmi270/bmi270.c b/drivers/sensor/bmi270/bmi270.c index ace3d81b90..53bdc2be2a 100644 --- a/drivers/sensor/bmi270/bmi270.c +++ b/drivers/sensor/bmi270/bmi270.c @@ -9,6 +9,7 @@ #include #include +#include #include #include #include diff --git a/drivers/sensor/bmi270/bmi270_spi.c b/drivers/sensor/bmi270/bmi270_spi.c index 4f0a01ec4c..dc5ac5f3b1 100644 --- a/drivers/sensor/bmi270/bmi270_spi.c +++ b/drivers/sensor/bmi270/bmi270_spi.c @@ -8,6 +8,7 @@ * Bus-specific functionality for BMI270s accessed via SPI. */ +#include #include #include "bmi270.h" diff --git a/drivers/sensor/fxas21002/fxas21002.h b/drivers/sensor/fxas21002/fxas21002.h index c3ae63f7b4..4bcf9c376a 100644 --- a/drivers/sensor/fxas21002/fxas21002.h +++ b/drivers/sensor/fxas21002/fxas21002.h @@ -7,6 +7,7 @@ #include #include #include +#include #define FXAS21002_REG_STATUS 0x00 #define FXAS21002_REG_OUTXMSB 0x01 diff --git a/drivers/sensor/fxos8700/fxos8700.h b/drivers/sensor/fxos8700/fxos8700.h index 2681a4ec27..21869cf878 100644 --- a/drivers/sensor/fxos8700/fxos8700.h +++ b/drivers/sensor/fxos8700/fxos8700.h @@ -7,6 +7,7 @@ #include #include #include +#include #define FXOS8700_REG_STATUS 0x00 #define FXOS8700_REG_OUTXMSB 0x01 diff --git a/drivers/sensor/hmc5883l/hmc5883l.h b/drivers/sensor/hmc5883l/hmc5883l.h index 4958c2ee26..f9ab0d2631 100644 --- a/drivers/sensor/hmc5883l/hmc5883l.h +++ b/drivers/sensor/hmc5883l/hmc5883l.h @@ -12,6 +12,7 @@ #include #include #include +#include #define HMC5883L_REG_CONFIG_A 0x00 #define HMC5883L_ODR_SHIFT 2 diff --git a/drivers/sensor/icm42605/icm42605.h b/drivers/sensor/icm42605/icm42605.h index 2025e3b8e4..29e16208cf 100644 --- a/drivers/sensor/icm42605/icm42605.h +++ b/drivers/sensor/icm42605/icm42605.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include diff --git a/drivers/sensor/icm42670/icm42670.h b/drivers/sensor/icm42670/icm42670.h index 51055d8a4e..e3ca851b30 100644 --- a/drivers/sensor/icm42670/icm42670.h +++ b/drivers/sensor/icm42670/icm42670.h @@ -11,6 +11,7 @@ #include #include #include +#include struct icm42670_data { int16_t accel_x; diff --git a/drivers/sensor/icm42670/icm42670_spi.c b/drivers/sensor/icm42670/icm42670_spi.c index a0c830208e..2edccb25b4 100644 --- a/drivers/sensor/icm42670/icm42670_spi.c +++ b/drivers/sensor/icm42670/icm42670_spi.c @@ -5,6 +5,7 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include #include #include "icm42670_spi.h" #include "icm42670_reg.h" diff --git a/drivers/sensor/iis2dh/iis2dh.h b/drivers/sensor/iis2dh/iis2dh.h index 00ad02879f..0959c7fa50 100644 --- a/drivers/sensor/iis2dh/iis2dh.h +++ b/drivers/sensor/iis2dh/iis2dh.h @@ -16,6 +16,7 @@ #include #include #include +#include #include "iis2dh_reg.h" /* diff --git a/drivers/sensor/iis2mdc/iis2mdc.h b/drivers/sensor/iis2mdc/iis2mdc.h index 13271414c9..fe70d05391 100644 --- a/drivers/sensor/iis2mdc/iis2mdc.h +++ b/drivers/sensor/iis2mdc/iis2mdc.h @@ -13,6 +13,7 @@ #include #include +#include #include #include "iis2mdc_reg.h" diff --git a/drivers/sensor/iis3dhhc/iis3dhhc.h b/drivers/sensor/iis3dhhc/iis3dhhc.h index 1d5093f05c..116a6d76a5 100644 --- a/drivers/sensor/iis3dhhc/iis3dhhc.h +++ b/drivers/sensor/iis3dhhc/iis3dhhc.h @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include "iis3dhhc_reg.h" diff --git a/drivers/sensor/ina23x/ina230.h b/drivers/sensor/ina23x/ina230.h index 3ad9fd36f6..7e7b8c23f3 100644 --- a/drivers/sensor/ina23x/ina230.h +++ b/drivers/sensor/ina23x/ina230.h @@ -10,6 +10,7 @@ #include #include +#include #define INA230_REG_CONFIG 0x00 #define INA230_REG_SHUNT_VOLT 0x01 diff --git a/drivers/sensor/ina23x/ina23x_trigger.h b/drivers/sensor/ina23x/ina23x_trigger.h index 4c858bf72d..91c6314723 100644 --- a/drivers/sensor/ina23x/ina23x_trigger.h +++ b/drivers/sensor/ina23x/ina23x_trigger.h @@ -9,6 +9,7 @@ #include #include +#include struct ina23x_trigger { struct gpio_callback gpio_cb; diff --git a/drivers/sensor/ism330dhcx/ism330dhcx.h b/drivers/sensor/ism330dhcx/ism330dhcx.h index 9c33f9b53e..063140c620 100644 --- a/drivers/sensor/ism330dhcx/ism330dhcx.h +++ b/drivers/sensor/ism330dhcx/ism330dhcx.h @@ -16,6 +16,7 @@ #include #include #include +#include #include #include "ism330dhcx_reg.h" diff --git a/drivers/sensor/lis3mdl/lis3mdl.h b/drivers/sensor/lis3mdl/lis3mdl.h index f913953e41..ca9f81706c 100644 --- a/drivers/sensor/lis3mdl/lis3mdl.h +++ b/drivers/sensor/lis3mdl/lis3mdl.h @@ -12,6 +12,7 @@ #include #include #include +#include #define LIS3MDL_REG_WHO_AM_I 0x0F #define LIS3MDL_CHIP_ID 0x3D diff --git a/drivers/sensor/lsm6dsl/lsm6dsl.h b/drivers/sensor/lsm6dsl/lsm6dsl.h index fdd81471cf..1f6dc47485 100644 --- a/drivers/sensor/lsm6dsl/lsm6dsl.h +++ b/drivers/sensor/lsm6dsl/lsm6dsl.h @@ -14,6 +14,7 @@ #include #include #include +#include #include #if DT_ANY_INST_ON_BUS_STATUS_OKAY(spi) diff --git a/drivers/sensor/max17055/max17055.c b/drivers/sensor/max17055/max17055.c index e6e98a88ff..1abf26dd6b 100644 --- a/drivers/sensor/max17055/max17055.c +++ b/drivers/sensor/max17055/max17055.c @@ -6,6 +6,7 @@ #include #include +#include #include #include diff --git a/drivers/sensor/max17262/max17262.c b/drivers/sensor/max17262/max17262.c index 6df242f732..70919f6b33 100644 --- a/drivers/sensor/max17262/max17262.c +++ b/drivers/sensor/max17262/max17262.c @@ -6,6 +6,7 @@ #include #include +#include #include LOG_MODULE_REGISTER(max17262, CONFIG_SENSOR_LOG_LEVEL); diff --git a/drivers/sensor/mcux_acmp/mcux_acmp.c b/drivers/sensor/mcux_acmp/mcux_acmp.c index f3ac7db0c4..0c07befe48 100644 --- a/drivers/sensor/mcux_acmp/mcux_acmp.c +++ b/drivers/sensor/mcux_acmp/mcux_acmp.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include diff --git a/drivers/sensor/mpu6050/mpu6050.h b/drivers/sensor/mpu6050/mpu6050.h index 8299817b80..bcd2cc9e5d 100644 --- a/drivers/sensor/mpu6050/mpu6050.h +++ b/drivers/sensor/mpu6050/mpu6050.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include diff --git a/drivers/sensor/ms5607/ms5607_spi.c b/drivers/sensor/ms5607/ms5607_spi.c index 0d18ca60ff..0e962ba1ad 100644 --- a/drivers/sensor/ms5607/ms5607_spi.c +++ b/drivers/sensor/ms5607/ms5607_spi.c @@ -8,6 +8,7 @@ #include #include +#include #include #include "ms5607.h" diff --git a/drivers/sensor/nuvoton_adc_cmp_npcx/adc_cmp_npcx.c b/drivers/sensor/nuvoton_adc_cmp_npcx/adc_cmp_npcx.c index 900e91fe11..755c567d66 100644 --- a/drivers/sensor/nuvoton_adc_cmp_npcx/adc_cmp_npcx.c +++ b/drivers/sensor/nuvoton_adc_cmp_npcx/adc_cmp_npcx.c @@ -7,7 +7,7 @@ #include #include #include - +#include #include LOG_MODULE_REGISTER(adc_cmp_npcx, CONFIG_SENSOR_LOG_LEVEL); diff --git a/drivers/sensor/sm351lt/sm351lt.h b/drivers/sensor/sm351lt/sm351lt.h index 05d7a043ac..3d0f65e3c7 100644 --- a/drivers/sensor/sm351lt/sm351lt.h +++ b/drivers/sensor/sm351lt/sm351lt.h @@ -10,6 +10,7 @@ #include #include #include +#include #define SENSOR_ATTR_SM351LT_TRIGGER_TYPE SENSOR_ATTR_PRIV_START diff --git a/drivers/sensor/stts751/stts751.h b/drivers/sensor/stts751/stts751.h index e311b09874..2676e562d0 100644 --- a/drivers/sensor/stts751/stts751.h +++ b/drivers/sensor/stts751/stts751.h @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include "stts751_reg.h" diff --git a/drivers/sensor/vcnl4040/vcnl4040.h b/drivers/sensor/vcnl4040/vcnl4040.h index b3f06678d4..9df6c2aaba 100644 --- a/drivers/sensor/vcnl4040/vcnl4040.h +++ b/drivers/sensor/vcnl4040/vcnl4040.h @@ -10,6 +10,7 @@ #include #include #include +#include /* Registers all 16 bits */ #define VCNL4040_REG_ALS_CONF 0x00 diff --git a/drivers/serial/uart_mcux_lpuart.c b/drivers/serial/uart_mcux_lpuart.c index 046b41843b..3822a84340 100644 --- a/drivers/serial/uart_mcux_lpuart.c +++ b/drivers/serial/uart_mcux_lpuart.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #ifdef CONFIG_PINCTRL #include diff --git a/drivers/serial/uart_native_posix.c b/drivers/serial/uart_native_posix.c index e6b1c1d2c8..d737563203 100644 --- a/drivers/serial/uart_native_posix.c +++ b/drivers/serial/uart_native_posix.c @@ -18,6 +18,8 @@ #include #include +#include + #include "cmdline.h" /* native_posix command line options header */ #include "soc.h" diff --git a/drivers/serial/uart_rtt.c b/drivers/serial/uart_rtt.c index f2a63ec531..b852fe3a65 100644 --- a/drivers/serial/uart_rtt.c +++ b/drivers/serial/uart_rtt.c @@ -5,6 +5,7 @@ */ #include +#include #include #define DT_DRV_COMPAT segger_rtt_uart diff --git a/drivers/serial/uart_xlnx_uartlite.c b/drivers/serial/uart_xlnx_uartlite.c index 2c0332b61a..fa8aaf8a62 100644 --- a/drivers/serial/uart_xlnx_uartlite.c +++ b/drivers/serial/uart_xlnx_uartlite.c @@ -12,6 +12,7 @@ #include #include #include +#include #include /* AXI UART Lite v2 registers offsets (See Xilinx PG142 for details) */ diff --git a/drivers/spi/spi_context.h b/drivers/spi/spi_context.h index 0e2df0d53d..49ba6259ee 100644 --- a/drivers/spi/spi_context.h +++ b/drivers/spi/spi_context.h @@ -14,6 +14,7 @@ #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/drivers/timer/mcux_lptmr_timer.c b/drivers/timer/mcux_lptmr_timer.c index 9166ca5677..79a50d4207 100644 --- a/drivers/timer/mcux_lptmr_timer.c +++ b/drivers/timer/mcux_lptmr_timer.c @@ -8,6 +8,7 @@ #include #include +#include #include BUILD_ASSERT(DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) == 1, diff --git a/drivers/timer/npcx_itim_timer.c b/drivers/timer/npcx_itim_timer.c index a6eb113c6f..e08299c1e7 100644 --- a/drivers/timer/npcx_itim_timer.c +++ b/drivers/timer/npcx_itim_timer.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/usb/device/usb_dc_mcux.c b/drivers/usb/device/usb_dc_mcux.c index 2154ddece6..0dfa132c26 100644 --- a/drivers/usb/device/usb_dc_mcux.c +++ b/drivers/usb/device/usb_dc_mcux.c @@ -13,6 +13,7 @@ #include #include #include +#include #include "usb.h" #include "usb_device.h" #include "usb_device_config.h" diff --git a/drivers/usb/device/usb_dc_native_posix.c b/drivers/usb/device/usb_dc_native_posix.c index 107cbfabf7..bbc8aebdd0 100644 --- a/drivers/usb/device/usb_dc_native_posix.c +++ b/drivers/usb/device/usb_dc_native_posix.c @@ -11,6 +11,7 @@ #include #include +#include #include #include #include diff --git a/drivers/usb/device/usb_dc_sam_usbhs.c b/drivers/usb/device/usb_dc_sam_usbhs.c index 4c202112b4..3111836a43 100644 --- a/drivers/usb/device/usb_dc_sam_usbhs.c +++ b/drivers/usb/device/usb_dc_sam_usbhs.c @@ -8,6 +8,7 @@ #include #include +#include #include #include diff --git a/drivers/watchdog/wdt_iwdg_stm32.c b/drivers/watchdog/wdt_iwdg_stm32.c index 7f4554b112..ecec904517 100644 --- a/drivers/watchdog/wdt_iwdg_stm32.c +++ b/drivers/watchdog/wdt_iwdg_stm32.c @@ -10,6 +10,7 @@ #define DT_DRV_COMPAT st_stm32_watchdog #include +#include #include #include #include diff --git a/include/zephyr/drivers/adc.h b/include/zephyr/drivers/adc.h index b6e5bab8d4..dc2e7a4d36 100644 --- a/include/zephyr/drivers/adc.h +++ b/include/zephyr/drivers/adc.h @@ -15,6 +15,7 @@ #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/include/zephyr/drivers/can.h b/include/zephyr/drivers/can.h index 4ada3ccf36..fb18f89cce 100644 --- a/include/zephyr/drivers/can.h +++ b/include/zephyr/drivers/can.h @@ -12,6 +12,7 @@ #include #include +#include #include #include diff --git a/include/zephyr/drivers/i2c.h b/include/zephyr/drivers/i2c.h index 905bee562b..a3faa7e941 100644 --- a/include/zephyr/drivers/i2c.h +++ b/include/zephyr/drivers/i2c.h @@ -23,6 +23,7 @@ #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/include/zephyr/drivers/spi.h b/include/zephyr/drivers/spi.h index 6ed40052aa..fcd9cbce7f 100644 --- a/include/zephyr/drivers/spi.h +++ b/include/zephyr/drivers/spi.h @@ -24,6 +24,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/include/zephyr/drivers/virtualization/ivshmem.h b/include/zephyr/drivers/virtualization/ivshmem.h index 65ff0dabf0..ec87f5e23b 100644 --- a/include/zephyr/drivers/virtualization/ivshmem.h +++ b/include/zephyr/drivers/virtualization/ivshmem.h @@ -16,6 +16,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/include/zephyr/drivers/w1.h b/include/zephyr/drivers/w1.h index 49eb7f23da..63611613bc 100644 --- a/include/zephyr/drivers/w1.h +++ b/include/zephyr/drivers/w1.h @@ -15,6 +15,7 @@ #include #include +#include #include #include diff --git a/include/zephyr/ipc/ipc_service.h b/include/zephyr/ipc/ipc_service.h index e9ffa8a193..8abee0f7c9 100644 --- a/include/zephyr/ipc/ipc_service.h +++ b/include/zephyr/ipc/ipc_service.h @@ -9,6 +9,7 @@ #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/include/zephyr/ipc/ipc_service_backend.h b/include/zephyr/ipc/ipc_service_backend.h index f4c84abe40..2b33930a36 100644 --- a/include/zephyr/ipc/ipc_service_backend.h +++ b/include/zephyr/ipc/ipc_service_backend.h @@ -8,6 +8,7 @@ #define ZEPHYR_INCLUDE_IPC_SERVICE_IPC_SERVICE_BACKEND_H_ #include +#include #include #ifdef __cplusplus diff --git a/include/zephyr/sd/sd.h b/include/zephyr/sd/sd.h index ec2c40e8c4..8e4dd62eda 100644 --- a/include/zephyr/sd/sd.h +++ b/include/zephyr/sd/sd.h @@ -14,6 +14,7 @@ #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/app_gpio.c b/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/app_gpio.c index cc544a7c6a..120a75ae23 100644 --- a/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/app_gpio.c +++ b/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/app_gpio.c @@ -6,6 +6,7 @@ */ #include +#include #include "app_gpio.h" #include "publisher.h" diff --git a/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/publisher.h b/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/publisher.h index 78ce47405c..ad473bdd59 100644 --- a/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/publisher.h +++ b/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/publisher.h @@ -8,6 +8,8 @@ #ifndef _PUBLISHER_H #define _PUBLISHER_H +#include + /* Others */ #define LEVEL_S0 -32768 #define LEVEL_S25 -16384 diff --git a/samples/drivers/ht16k33/src/main.c b/samples/drivers/ht16k33/src/main.c index 59acf15220..89d79f544b 100644 --- a/samples/drivers/ht16k33/src/main.c +++ b/samples/drivers/ht16k33/src/main.c @@ -7,6 +7,7 @@ #include #include #include +#include #include LOG_MODULE_REGISTER(main, CONFIG_LOG_DEFAULT_LEVEL); diff --git a/soc/xtensa/intel_adsp/cavs/power.c b/soc/xtensa/intel_adsp/cavs/power.c index 5a4578fea1..101007e592 100644 --- a/soc/xtensa/intel_adsp/cavs/power.c +++ b/soc/xtensa/intel_adsp/cavs/power.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include diff --git a/soc/xtensa/intel_adsp/common/clk.c b/soc/xtensa/intel_adsp/common/clk.c index 43ebf07a60..e96eddb23a 100644 --- a/soc/xtensa/intel_adsp/common/clk.c +++ b/soc/xtensa/intel_adsp/common/clk.c @@ -7,6 +7,7 @@ #include #include +#include #include #include diff --git a/subsys/fs/fs.c b/subsys/fs/fs.c index 91aedc1af2..edd3922c79 100644 --- a/subsys/fs/fs.c +++ b/subsys/fs/fs.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include diff --git a/subsys/mgmt/ec_host_cmd/ec_host_cmd_handler.c b/subsys/mgmt/ec_host_cmd/ec_host_cmd_handler.c index 83958667f1..524723a830 100644 --- a/subsys/mgmt/ec_host_cmd/ec_host_cmd_handler.c +++ b/subsys/mgmt/ec_host_cmd/ec_host_cmd_handler.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #if !DT_HAS_CHOSEN(zephyr_ec_host_interface) diff --git a/subsys/pm/pm_stats.c b/subsys/pm/pm_stats.c index d2883be691..608f3946cd 100644 --- a/subsys/pm/pm_stats.c +++ b/subsys/pm/pm_stats.c @@ -8,7 +8,7 @@ #include "pm_stats.h" #include -#include +#include #include #include diff --git a/tests/drivers/clock_control/nrf_clock_calibration/src/mock_temp_nrf5.c b/tests/drivers/clock_control/nrf_clock_calibration/src/mock_temp_nrf5.c index 9e164b8a94..8a382369b4 100644 --- a/tests/drivers/clock_control/nrf_clock_calibration/src/mock_temp_nrf5.c +++ b/tests/drivers/clock_control/nrf_clock_calibration/src/mock_temp_nrf5.c @@ -5,6 +5,7 @@ */ #include #include +#include /* Mock of internal temperature sensor. */ #ifdef CONFIG_TEMP_NRF5