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 <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-10-04 14:43:49 +02:00 committed by Carles Cufí
parent f7a5b47dff
commit e63b0bb3fe
30 changed files with 61 additions and 1 deletions

View file

@ -7,7 +7,9 @@
#define DT_DRV_COMPAT zephyr_dummy_dc
#include <errno.h>
#include <string.h>
#include <zephyr/drivers/display.h>
#include <zephyr/device.h>

View file

@ -9,6 +9,8 @@
#define DT_DRV_COMPAT intel_multiboot_framebuffer
#include <errno.h>
#include <zephyr/arch/x86/multiboot.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/display.h>

View file

@ -6,6 +6,8 @@
#define DT_DRV_COMPAT zephyr_sim_ec_host_cmd_periph
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/drivers/ec_host_cmd_periph.h>
#include <string.h>

View file

@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <errno.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/eeprom.h>
#include <zephyr/drivers/sensor/tmp116.h>

View file

@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <errno.h>
#include <zephyr/drivers/flash.h>
static int flash_get_page_info(const struct device *dev, off_t offs,

View file

@ -6,6 +6,8 @@
#define DT_DRV_COMPAT gd_gd32_exti
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/drivers/interrupt_controller/gd32_exti.h>
#include <zephyr/sys/__assert.h>

View file

@ -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 <errno.h>
#include <zephyr/types.h>
#include <soc.h>

View file

@ -20,6 +20,8 @@
* of pins information.
*/
#include <errno.h>
#include <zephyr/drivers/pinmux.h>
struct pinmux_lpc11u6x_config {

View file

@ -6,6 +6,8 @@
#define DT_DRV_COMPAT syscon
#include <errno.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/sys/util.h>
#include <zephyr/device.h>

View file

@ -7,6 +7,8 @@
#ifndef ZEPHYR_INCLUDE_DRIVERS_BBRAM_H
#define ZEPHYR_INCLUDE_DRIVERS_BBRAM_H
#include <errno.h>
#include <zephyr/device.h>
#ifdef __cplusplus

View file

@ -8,6 +8,8 @@
#ifndef ZEPHYR_INCLUDE_DRIVERS_CAN_H_
#define ZEPHYR_INCLUDE_DRIVERS_CAN_H_
#include <errno.h>
#include <zephyr/types.h>
#include <zephyr/device.h>
#include <string.h>

View file

@ -21,8 +21,10 @@
* @{
*/
#include <zephyr/types.h>
#include <errno.h>
#include <stddef.h>
#include <zephyr/types.h>
#include <zephyr/device.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/slist.h>

View file

@ -20,6 +20,8 @@
* @{
*/
#include <errno.h>
#include <zephyr/types.h>
#include <stddef.h>
#include <zephyr/device.h>

View file

@ -24,6 +24,8 @@
* @{
*/
#include <errno.h>
#include <zephyr/types.h>
#include <zephyr/device.h>

View file

@ -12,6 +12,8 @@
#ifndef ZEPHYR_INCLUDE_DRIVERS_EDAC_H_
#define ZEPHYR_INCLUDE_DRIVERS_EDAC_H_
#include <errno.h>
#include <sys/types.h>
typedef void (*edac_notify_callback_f)(const struct device *dev, void *data);

View file

@ -20,6 +20,8 @@
* @{
*/
#include <errno.h>
#include <zephyr/types.h>
#include <zephyr/device.h>

View file

@ -12,6 +12,8 @@
#ifndef ZEPHYR_INCLUDE_ESPI_H_
#define ZEPHYR_INCLUDE_ESPI_H_
#include <errno.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/types.h>
#include <zephyr/device.h>

View file

@ -20,6 +20,8 @@
* @{
*/
#include <errno.h>
#include <zephyr/types.h>
#include <stddef.h>
#include <sys/types.h>

View file

@ -7,6 +7,8 @@
#ifndef ZEPHYR_INCLUDE_DRIVERS_FPGA_H_
#define ZEPHYR_INCLUDE_DRIVERS_FPGA_H_
#include <errno.h>
#include <zephyr/types.h>
#include <zephyr/sys/util.h>
#include <zephyr/device.h>

View file

@ -15,6 +15,8 @@
#ifndef ZEPHYR_INCLUDE_DRIVERS_GPIO_H_
#define ZEPHYR_INCLUDE_DRIVERS_GPIO_H_
#include <errno.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/slist.h>

View file

@ -19,6 +19,8 @@
* @{
*/
#include <errno.h>
#include <zephyr/types.h>
#include <zephyr/device.h>

View file

@ -19,6 +19,8 @@
* @{
*/
#include <errno.h>
#include <zephyr/types.h>
#include <zephyr/device.h>

View file

@ -18,6 +18,8 @@
* @{
*/
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/devicetree/pinctrl.h>

View file

@ -19,6 +19,8 @@
* @{
*/
#include <errno.h>
#include <zephyr/types.h>
#include <zephyr/device.h>

View file

@ -11,6 +11,8 @@
#ifndef ZEPHYR_INCLUDE_DRIVERS_SDHC_H_
#define ZEPHYR_INCLUDE_DRIVERS_SDHC_H_
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/sd/sd_spec.h>

View file

@ -19,6 +19,8 @@
* @{
*/
#include <errno.h>
#include <zephyr/types.h>
#include <zephyr/device.h>

View file

@ -3,6 +3,9 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <errno.h>
#include <zephyr/device.h>
#include <adsp-clk.h>

View file

@ -7,6 +7,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <errno.h>
#include <zephyr/types.h>
#include <stddef.h>
#include <sys/types.h>

View file

@ -7,6 +7,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <errno.h>
#include <zephyr/types.h>
#include <stddef.h>
#include <sys/types.h>

View file

@ -7,6 +7,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <errno.h>
#include <zephyr/types.h>
#include <stddef.h>
#include <sys/types.h>