From e63b0bb3fe9a021b9cdbc2791958772e4de73f45 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Tue, 4 Oct 2022 14:43:49 +0200 Subject: [PATCH] include: add missing errno.h include With the incoming removal of kernel.h/types.h from init.h, lots of files start to show compile errors because they relied on indirect definitions, including errno.h. Signed-off-by: Gerard Marull-Paretas --- drivers/display/display_dummy.c | 2 ++ drivers/display/display_intel_multibootfb.c | 2 ++ drivers/ec_host_cmd_periph/ec_host_cmd_simulator.c | 2 ++ drivers/eeprom/eeprom_tmp116.c | 2 ++ drivers/flash/flash_page_layout.c | 2 ++ drivers/interrupt_controller/intc_gd32_exti.c | 2 ++ drivers/interrupt_controller/intc_sam0_eic_priv.h | 1 + drivers/pinmux/pinmux_lpc11u6x.c | 2 ++ drivers/syscon/syscon.c | 2 ++ include/zephyr/drivers/bbram.h | 2 ++ include/zephyr/drivers/can.h | 2 ++ include/zephyr/drivers/clock_control.h | 4 +++- include/zephyr/drivers/counter.h | 2 ++ include/zephyr/drivers/dai.h | 2 ++ include/zephyr/drivers/edac.h | 2 ++ include/zephyr/drivers/entropy.h | 2 ++ include/zephyr/drivers/espi.h | 2 ++ include/zephyr/drivers/flash.h | 2 ++ include/zephyr/drivers/fpga.h | 2 ++ include/zephyr/drivers/gpio.h | 2 ++ include/zephyr/drivers/i2c.h | 2 ++ include/zephyr/drivers/led.h | 2 ++ include/zephyr/drivers/pinctrl.h | 2 ++ include/zephyr/drivers/reset.h | 2 ++ include/zephyr/drivers/sdhc.h | 2 ++ include/zephyr/drivers/syscon.h | 2 ++ soc/xtensa/intel_adsp/common/clk.c | 3 +++ subsys/storage/flash_map/flash_map.c | 2 ++ subsys/storage/flash_map/flash_map_integrity.c | 2 ++ subsys/storage/flash_map/flash_map_layout.c | 2 ++ 30 files changed, 61 insertions(+), 1 deletion(-) diff --git a/drivers/display/display_dummy.c b/drivers/display/display_dummy.c index af2320b0e2f..dd49573f790 100644 --- a/drivers/display/display_dummy.c +++ b/drivers/display/display_dummy.c @@ -7,7 +7,9 @@ #define DT_DRV_COMPAT zephyr_dummy_dc +#include #include + #include #include diff --git a/drivers/display/display_intel_multibootfb.c b/drivers/display/display_intel_multibootfb.c index 4841b4c10ec..fc2ef3f32f5 100644 --- a/drivers/display/display_intel_multibootfb.c +++ b/drivers/display/display_intel_multibootfb.c @@ -9,6 +9,8 @@ #define DT_DRV_COMPAT intel_multiboot_framebuffer +#include + #include #include #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 5605d3b05af..740fdd17c55 100644 --- a/drivers/ec_host_cmd_periph/ec_host_cmd_simulator.c +++ b/drivers/ec_host_cmd_periph/ec_host_cmd_simulator.c @@ -6,6 +6,8 @@ #define DT_DRV_COMPAT zephyr_sim_ec_host_cmd_periph +#include + #include #include #include diff --git a/drivers/eeprom/eeprom_tmp116.c b/drivers/eeprom/eeprom_tmp116.c index 3823e362532..e363c3e8184 100644 --- a/drivers/eeprom/eeprom_tmp116.c +++ b/drivers/eeprom/eeprom_tmp116.c @@ -4,6 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include + #include #include #include diff --git a/drivers/flash/flash_page_layout.c b/drivers/flash/flash_page_layout.c index 266957ec912..652ddf46ab9 100644 --- a/drivers/flash/flash_page_layout.c +++ b/drivers/flash/flash_page_layout.c @@ -4,6 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include + #include static int flash_get_page_info(const struct device *dev, off_t offs, diff --git a/drivers/interrupt_controller/intc_gd32_exti.c b/drivers/interrupt_controller/intc_gd32_exti.c index d2e7a58c4d5..ac72be6d142 100644 --- a/drivers/interrupt_controller/intc_gd32_exti.c +++ b/drivers/interrupt_controller/intc_gd32_exti.c @@ -6,6 +6,8 @@ #define DT_DRV_COMPAT gd_gd32_exti +#include + #include #include #include diff --git a/drivers/interrupt_controller/intc_sam0_eic_priv.h b/drivers/interrupt_controller/intc_sam0_eic_priv.h index ef4af144429..41ffd788cca 100644 --- a/drivers/interrupt_controller/intc_sam0_eic_priv.h +++ b/drivers/interrupt_controller/intc_sam0_eic_priv.h @@ -7,6 +7,7 @@ #ifndef ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_SAM0_EIC_PRIV_H_ #define ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_SAM0_EIC_PRIV_H_ +#include #include #include diff --git a/drivers/pinmux/pinmux_lpc11u6x.c b/drivers/pinmux/pinmux_lpc11u6x.c index 10f92bc5ace..bcb28fa3342 100644 --- a/drivers/pinmux/pinmux_lpc11u6x.c +++ b/drivers/pinmux/pinmux_lpc11u6x.c @@ -20,6 +20,8 @@ * of pins information. */ +#include + #include struct pinmux_lpc11u6x_config { diff --git a/drivers/syscon/syscon.c b/drivers/syscon/syscon.c index 59ca1176cc9..2b880f9f574 100644 --- a/drivers/syscon/syscon.c +++ b/drivers/syscon/syscon.c @@ -6,6 +6,8 @@ #define DT_DRV_COMPAT syscon +#include + #include #include #include diff --git a/include/zephyr/drivers/bbram.h b/include/zephyr/drivers/bbram.h index 3cc74fd8a3d..15fdad4bf4e 100644 --- a/include/zephyr/drivers/bbram.h +++ b/include/zephyr/drivers/bbram.h @@ -7,6 +7,8 @@ #ifndef ZEPHYR_INCLUDE_DRIVERS_BBRAM_H #define ZEPHYR_INCLUDE_DRIVERS_BBRAM_H +#include + #include #ifdef __cplusplus diff --git a/include/zephyr/drivers/can.h b/include/zephyr/drivers/can.h index 2893f38eb9f..4ada3ccf36a 100644 --- a/include/zephyr/drivers/can.h +++ b/include/zephyr/drivers/can.h @@ -8,6 +8,8 @@ #ifndef ZEPHYR_INCLUDE_DRIVERS_CAN_H_ #define ZEPHYR_INCLUDE_DRIVERS_CAN_H_ +#include + #include #include #include diff --git a/include/zephyr/drivers/clock_control.h b/include/zephyr/drivers/clock_control.h index 998412609a5..43947eb3735 100644 --- a/include/zephyr/drivers/clock_control.h +++ b/include/zephyr/drivers/clock_control.h @@ -21,8 +21,10 @@ * @{ */ -#include +#include #include + +#include #include #include #include diff --git a/include/zephyr/drivers/counter.h b/include/zephyr/drivers/counter.h index 8b5ddac3ce4..17a50f244bf 100644 --- a/include/zephyr/drivers/counter.h +++ b/include/zephyr/drivers/counter.h @@ -20,6 +20,8 @@ * @{ */ +#include + #include #include #include diff --git a/include/zephyr/drivers/dai.h b/include/zephyr/drivers/dai.h index 25a42a9c0dd..b736151ff1f 100644 --- a/include/zephyr/drivers/dai.h +++ b/include/zephyr/drivers/dai.h @@ -24,6 +24,8 @@ * @{ */ +#include + #include #include diff --git a/include/zephyr/drivers/edac.h b/include/zephyr/drivers/edac.h index 35859681f8d..34dcb730dc3 100644 --- a/include/zephyr/drivers/edac.h +++ b/include/zephyr/drivers/edac.h @@ -12,6 +12,8 @@ #ifndef ZEPHYR_INCLUDE_DRIVERS_EDAC_H_ #define ZEPHYR_INCLUDE_DRIVERS_EDAC_H_ +#include + #include typedef void (*edac_notify_callback_f)(const struct device *dev, void *data); diff --git a/include/zephyr/drivers/entropy.h b/include/zephyr/drivers/entropy.h index 9e1765bd412..2c9ce51f307 100644 --- a/include/zephyr/drivers/entropy.h +++ b/include/zephyr/drivers/entropy.h @@ -20,6 +20,8 @@ * @{ */ +#include + #include #include diff --git a/include/zephyr/drivers/espi.h b/include/zephyr/drivers/espi.h index 0e214b45ed4..5bd5af678f4 100644 --- a/include/zephyr/drivers/espi.h +++ b/include/zephyr/drivers/espi.h @@ -12,6 +12,8 @@ #ifndef ZEPHYR_INCLUDE_ESPI_H_ #define ZEPHYR_INCLUDE_ESPI_H_ +#include + #include #include #include diff --git a/include/zephyr/drivers/flash.h b/include/zephyr/drivers/flash.h index 73923eddb67..d1d56bdd456 100644 --- a/include/zephyr/drivers/flash.h +++ b/include/zephyr/drivers/flash.h @@ -20,6 +20,8 @@ * @{ */ +#include + #include #include #include diff --git a/include/zephyr/drivers/fpga.h b/include/zephyr/drivers/fpga.h index d916e9d42b5..27dcb69f600 100644 --- a/include/zephyr/drivers/fpga.h +++ b/include/zephyr/drivers/fpga.h @@ -7,6 +7,8 @@ #ifndef ZEPHYR_INCLUDE_DRIVERS_FPGA_H_ #define ZEPHYR_INCLUDE_DRIVERS_FPGA_H_ +#include + #include #include #include diff --git a/include/zephyr/drivers/gpio.h b/include/zephyr/drivers/gpio.h index da450dfb928..e826a0a7073 100644 --- a/include/zephyr/drivers/gpio.h +++ b/include/zephyr/drivers/gpio.h @@ -15,6 +15,8 @@ #ifndef ZEPHYR_INCLUDE_DRIVERS_GPIO_H_ #define ZEPHYR_INCLUDE_DRIVERS_GPIO_H_ +#include + #include #include diff --git a/include/zephyr/drivers/i2c.h b/include/zephyr/drivers/i2c.h index 31a85b7b672..905bee562be 100644 --- a/include/zephyr/drivers/i2c.h +++ b/include/zephyr/drivers/i2c.h @@ -19,6 +19,8 @@ * @{ */ +#include + #include #include diff --git a/include/zephyr/drivers/led.h b/include/zephyr/drivers/led.h index e56d0b79904..b9dd8cc2775 100644 --- a/include/zephyr/drivers/led.h +++ b/include/zephyr/drivers/led.h @@ -19,6 +19,8 @@ * @{ */ +#include + #include #include diff --git a/include/zephyr/drivers/pinctrl.h b/include/zephyr/drivers/pinctrl.h index 0cb09df7c66..b0fd60e891b 100644 --- a/include/zephyr/drivers/pinctrl.h +++ b/include/zephyr/drivers/pinctrl.h @@ -18,6 +18,8 @@ * @{ */ +#include + #include #include #include diff --git a/include/zephyr/drivers/reset.h b/include/zephyr/drivers/reset.h index bcd2e787436..fc49133e403 100644 --- a/include/zephyr/drivers/reset.h +++ b/include/zephyr/drivers/reset.h @@ -19,6 +19,8 @@ * @{ */ +#include + #include #include diff --git a/include/zephyr/drivers/sdhc.h b/include/zephyr/drivers/sdhc.h index 8fb086145fe..dfd53f2af06 100644 --- a/include/zephyr/drivers/sdhc.h +++ b/include/zephyr/drivers/sdhc.h @@ -11,6 +11,8 @@ #ifndef ZEPHYR_INCLUDE_DRIVERS_SDHC_H_ #define ZEPHYR_INCLUDE_DRIVERS_SDHC_H_ + +#include #include #include diff --git a/include/zephyr/drivers/syscon.h b/include/zephyr/drivers/syscon.h index 8d79c56e157..a8c5750cc4e 100644 --- a/include/zephyr/drivers/syscon.h +++ b/include/zephyr/drivers/syscon.h @@ -19,6 +19,8 @@ * @{ */ +#include + #include #include diff --git a/soc/xtensa/intel_adsp/common/clk.c b/soc/xtensa/intel_adsp/common/clk.c index 503618e6000..43ebf07a603 100644 --- a/soc/xtensa/intel_adsp/common/clk.c +++ b/soc/xtensa/intel_adsp/common/clk.c @@ -3,6 +3,9 @@ * * SPDX-License-Identifier: Apache-2.0 */ + +#include + #include #include diff --git a/subsys/storage/flash_map/flash_map.c b/subsys/storage/flash_map/flash_map.c index b75af590428..209c705ea73 100644 --- a/subsys/storage/flash_map/flash_map.c +++ b/subsys/storage/flash_map/flash_map.c @@ -7,6 +7,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include + #include #include #include diff --git a/subsys/storage/flash_map/flash_map_integrity.c b/subsys/storage/flash_map/flash_map_integrity.c index 9797d9a67c6..6af62b931aa 100644 --- a/subsys/storage/flash_map/flash_map_integrity.c +++ b/subsys/storage/flash_map/flash_map_integrity.c @@ -7,6 +7,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include + #include #include #include diff --git a/subsys/storage/flash_map/flash_map_layout.c b/subsys/storage/flash_map/flash_map_layout.c index d549c85ad59..1ae84268e26 100644 --- a/subsys/storage/flash_map/flash_map_layout.c +++ b/subsys/storage/flash_map/flash_map_layout.c @@ -7,6 +7,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include + #include #include #include