diff mbox series

[11/16] common: Drop errno.h from common header

Message ID 20200802225940.51457-12-sjg@chromium.org
State Changes Requested
Delegated to: Tom Rini
Headers show
Series common: Drop remaining includes in common.h | expand

Commit Message

Simon Glass Aug. 2, 2020, 10:59 p.m. UTC
Move this out of the common header and include it only where needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/arm/cpu/arm926ejs/mx25/generic.c               |  1 +
 arch/arm/cpu/armv7/s5p-common/pwm.c                 |  1 +
 arch/arm/cpu/armv7/vf610/generic.c                  |  1 +
 arch/arm/cpu/armv7/virt-dt.c                        |  1 +
 arch/arm/cpu/armv7m/cache.c                         |  1 +
 arch/arm/cpu/armv8/fsl-layerscape/ppa.c             |  1 +
 arch/arm/cpu/armv8/fsl-layerscape/soc.c             |  1 +
 arch/arm/cpu/armv8/s32v234/generic.c                |  1 +
 arch/arm/cpu/armv8/sec_firmware.c                   |  1 +
 arch/arm/cpu/armv8/spin_table.c                     |  1 +
 arch/arm/cpu/pxa/cpuinfo.c                          |  1 +
 arch/arm/include/asm/arch-tegra/cboot.h             |  1 +
 arch/arm/lib/gic-v3-its.c                           |  1 +
 arch/arm/mach-aspeed/ast2500/sdram_ast2500.c        |  1 +
 arch/arm/mach-bcm283x/msg.c                         |  1 +
 arch/arm/mach-imx/cmd_nandbcb.c                     |  1 +
 arch/arm/mach-imx/imx8/ahab.c                       |  1 +
 arch/arm/mach-imx/imx8/cpu.c                        |  1 +
 arch/arm/mach-imx/imx8/fdt.c                        |  1 +
 arch/arm/mach-imx/imx8/image.c                      |  1 +
 arch/arm/mach-imx/imx8/parse-container.c            |  1 +
 arch/arm/mach-imx/imx8/snvs_security_sc.c           |  1 +
 arch/arm/mach-imx/imx8m/clock_imx8mm.c              |  1 +
 arch/arm/mach-imx/imx8m/clock_imx8mq.c              |  1 +
 arch/arm/mach-imx/imx8m/clock_slice.c               |  1 +
 arch/arm/mach-imx/imx8m/soc.c                       |  1 +
 arch/arm/mach-imx/imx_bootaux.c                     |  1 +
 arch/arm/mach-imx/mx7ulp/clock.c                    |  1 +
 arch/arm/mach-imx/mx7ulp/pcc.c                      |  1 +
 arch/arm/mach-imx/mx7ulp/scg.c                      |  1 +
 arch/arm/mach-ipq40xx/clock-ipq4019.c               |  1 +
 arch/arm/mach-ipq40xx/pinctrl-snapdragon.c          |  1 +
 arch/arm/mach-k3/sysfw-loader.c                     |  1 +
 arch/arm/mach-keystone/cmd_mon.c                    |  1 +
 arch/arm/mach-meson/board-common.c                  |  1 +
 arch/arm/mach-meson/board-g12a.c                    |  1 +
 arch/arm/mach-meson/board-gx.c                      |  1 +
 arch/arm/mach-meson/sm.c                            |  1 +
 arch/arm/mach-mvebu/arm64-common.c                  |  1 +
 arch/arm/mach-mvebu/armada3700/cpu.c                |  1 +
 arch/arm/mach-mvebu/efuse.c                         |  1 +
 arch/arm/mach-nexell/clock.c                        |  1 +
 arch/arm/mach-omap2/sec-common.c                    |  1 +
 arch/arm/mach-rockchip/board.c                      |  1 +
 arch/arm/mach-rockchip/boot_mode.c                  |  1 +
 arch/arm/mach-rockchip/spl-boot-order.c             |  1 +
 arch/arm/mach-snapdragon/clock-snapdragon.c         |  1 +
 arch/arm/mach-snapdragon/dram.c                     |  1 +
 arch/arm/mach-snapdragon/pinctrl-snapdragon.c       |  1 +
 arch/arm/mach-socfpga/board.c                       |  1 +
 arch/arm/mach-socfpga/clock_manager_agilex.c        |  1 +
 arch/arm/mach-socfpga/clock_manager_arria10.c       |  1 +
 arch/arm/mach-socfpga/mailbox_s10.c                 |  1 +
 arch/arm/mach-socfpga/misc.c                        |  1 +
 arch/arm/mach-socfpga/misc_gen5.c                   |  1 +
 arch/arm/mach-socfpga/misc_s10.c                    |  1 +
 arch/arm/mach-socfpga/pinmux_arria10.c              |  1 +
 arch/arm/mach-socfpga/scan_manager.c                |  1 +
 arch/arm/mach-socfpga/wrap_iocsr_config.c           |  1 +
 arch/arm/mach-stm32mp/bsec.c                        |  1 +
 arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c     |  1 +
 .../mach-stm32mp/cmd_stm32prog/stm32prog_serial.c   |  1 +
 arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c |  1 +
 arch/arm/mach-stm32mp/cpu.c                         |  1 +
 arch/arm/mach-stm32mp/include/mach/stm32mp1_smc.h   |  1 +
 arch/arm/mach-stm32mp/pwr_regulator.c               |  1 +
 arch/arm/mach-stm32mp/spl.c                         |  1 +
 arch/arm/mach-sunxi/cpu_info.c                      |  1 +
 arch/arm/mach-sunxi/dram_sun8i_a33.c                |  1 +
 arch/arm/mach-sunxi/dram_sun8i_a83t.c               |  1 +
 arch/arm/mach-sunxi/p2wi.c                          |  1 +
 arch/arm/mach-sunxi/rsb.c                           |  1 +
 arch/arm/mach-tegra/cboot.c                         |  1 +
 arch/arm/mach-tegra/clock.c                         |  1 +
 arch/arm/mach-tegra/ivc.c                           |  1 +
 arch/arm/mach-tegra/powergate.c                     |  1 +
 arch/arm/mach-tegra/tegra124/xusb-padctl.c          |  1 +
 arch/arm/mach-tegra/tegra20/clock.c                 |  1 +
 arch/arm/mach-tegra/tegra210/clock.c                |  1 +
 arch/arm/mach-tegra/tegra210/xusb-padctl.c          |  1 +
 arch/arm/mach-tegra/tegra30/clock.c                 |  1 +
 arch/arm/mach-tegra/xusb-padctl-common.c            |  1 +
 arch/arm/mach-tegra/xusb-padctl-dummy.c             |  1 +
 arch/arm/mach-zynq/clk.c                            |  1 +
 arch/arm/mach-zynq/cpu.c                            |  1 +
 arch/arm/mach-zynqmp/cpu.c                          |  1 +
 arch/m68k/lib/fec.c                                 |  1 +
 arch/nios2/cpu/cpu.c                                |  1 +
 arch/powerpc/cpu/mpc85xx/ether_fcc.c                |  1 +
 arch/riscv/lib/andes_plic.c                         |  1 +
 arch/riscv/lib/image.c                              |  1 +
 arch/riscv/lib/sbi.c                                |  1 +
 arch/riscv/lib/smp.c                                |  1 +
 arch/sandbox/cpu/cpu.c                              |  1 +
 arch/sandbox/cpu/eth-raw-os.c                       |  1 +
 arch/sandbox/cpu/os.c                               |  1 +
 arch/sandbox/cpu/sdl.c                              |  1 +
 arch/sandbox/cpu/spl.c                              |  1 +
 arch/sandbox/cpu/start.c                            |  1 +
 arch/sandbox/cpu/state.c                            |  1 +
 arch/sandbox/include/asm/sdl.h                      |  1 +
 arch/sandbox/lib/pci_io.c                           |  1 +
 arch/x86/cpu/acpi_gpe.c                             |  1 +
 arch/x86/cpu/apollolake/fsp_bindings.c              |  1 +
 arch/x86/cpu/apollolake/fsp_m.c                     |  1 +
 arch/x86/cpu/apollolake/fsp_s.c                     |  1 +
 arch/x86/cpu/apollolake/lpc.c                       |  1 +
 arch/x86/cpu/apollolake/punit.c                     |  1 +
 arch/x86/cpu/apollolake/spl.c                       |  1 +
 arch/x86/cpu/apollolake/uart.c                      |  1 +
 arch/x86/cpu/broadwell/adsp.c                       |  1 +
 arch/x86/cpu/broadwell/cpu.c                        |  1 +
 arch/x86/cpu/broadwell/cpu_from_spl.c               |  1 +
 arch/x86/cpu/broadwell/cpu_full.c                   |  1 +
 arch/x86/cpu/broadwell/iobp.c                       |  1 +
 arch/x86/cpu/broadwell/me.c                         |  1 +
 arch/x86/cpu/broadwell/pch.c                        |  1 +
 arch/x86/cpu/broadwell/pinctrl_broadwell.c          |  1 +
 arch/x86/cpu/broadwell/refcode.c                    |  1 +
 arch/x86/cpu/broadwell/sdram.c                      |  1 +
 arch/x86/cpu/coreboot/tables.c                      |  1 +
 arch/x86/cpu/cpu.c                                  |  1 +
 arch/x86/cpu/cpu_x86.c                              |  1 +
 arch/x86/cpu/efi/payload.c                          |  1 +
 arch/x86/cpu/i386/cpu.c                             |  1 +
 arch/x86/cpu/i386/interrupt.c                       |  1 +
 arch/x86/cpu/intel_common/cpu.c                     |  1 +
 arch/x86/cpu/intel_common/itss.c                    |  1 +
 arch/x86/cpu/intel_common/lpc.c                     |  1 +
 arch/x86/cpu/intel_common/microcode.c               |  1 +
 arch/x86/cpu/intel_common/mrc.c                     |  1 +
 arch/x86/cpu/intel_common/p2sb.c                    |  1 +
 arch/x86/cpu/irq.c                                  |  1 +
 arch/x86/cpu/ivybridge/bd82x6x.c                    |  1 +
 arch/x86/cpu/ivybridge/cpu.c                        |  1 +
 arch/x86/cpu/ivybridge/early_me.c                   |  1 +
 arch/x86/cpu/ivybridge/lpc.c                        |  1 +
 arch/x86/cpu/ivybridge/model_206ax.c                |  1 +
 arch/x86/cpu/ivybridge/sdram.c                      |  1 +
 arch/x86/cpu/mp_init.c                              |  1 +
 arch/x86/cpu/mtrr.c                                 |  1 +
 arch/x86/cpu/qemu/cpu.c                             |  1 +
 arch/x86/cpu/qfw_cpu.c                              |  1 +
 arch/x86/cpu/quark/dram.c                           |  1 +
 arch/x86/cpu/slimbootloader/serial.c                |  1 +
 arch/x86/cpu/tangier/pinmux.c                       |  1 +
 arch/x86/cpu/tangier/sdram.c                        |  1 +
 arch/x86/cpu/tangier/sysreset.c                     |  1 +
 arch/x86/include/asm/mp.h                           |  1 +
 arch/x86/lib/acpi_nhlt.c                            |  1 +
 arch/x86/lib/acpi_table.c                           |  1 +
 arch/x86/lib/bootm.c                                |  1 +
 arch/x86/lib/fsp/fsp_common.c                       |  1 +
 arch/x86/lib/fsp/fsp_graphics.c                     |  1 +
 arch/x86/lib/fsp2/fsp_dram.c                        |  1 +
 arch/x86/lib/fsp2/fsp_init.c                        |  1 +
 arch/x86/lib/fsp2/fsp_meminit.c                     |  1 +
 arch/x86/lib/fsp2/fsp_silicon_init.c                |  1 +
 arch/x86/lib/fsp2/fsp_support.c                     |  1 +
 arch/x86/lib/i8254.c                                |  1 +
 arch/x86/lib/mpspec.c                               |  1 +
 arch/x86/lib/mrccache.c                             |  1 +
 arch/x86/lib/pinctrl_ich6.c                         |  1 +
 arch/x86/lib/sfi.c                                  |  1 +
 arch/x86/lib/spl.c                                  |  1 +
 arch/x86/lib/tpl.c                                  |  1 +
 arch/x86/lib/zimage.c                               |  1 +
 board/AndesTech/ax25-ae350/ax25-ae350.c             |  1 +
 board/CZ.NIC/turris_mox/mox_sp.c                    |  1 +
 board/CZ.NIC/turris_mox/turris_mox.c                |  1 +
 board/CZ.NIC/turris_omnia/turris_omnia.c            |  1 +
 board/Marvell/mvebu_armada-37xx/board.c             |  1 +
 board/Marvell/mvebu_armada-8k/board.c               |  1 +
 board/alliedtelesis/common/gpio_hog.c               |  1 +
 board/alliedtelesis/x530/x530.c                     |  1 +
 board/armltd/vexpress/vexpress_common.c             |  1 +
 board/atmel/common/mac-spi-nor.c                    |  1 +
 board/bachmann/ot1200/ot1200.c                      |  1 +
 board/beacon/beacon-rzg2m/beacon-rzg2m.c            |  1 +
 board/beacon/imx8mm/spl.c                           |  1 +
 board/bluegiga/apx4devkit/apx4devkit.c              |  1 +
 board/bosch/guardian/board.c                        |  1 +
 board/bosch/shc/board.c                             |  1 +
 board/broadcom/bcmns3/ns3.c                         |  1 +
 board/broadcom/bcmstb/bcmstb.c                      |  1 +
 board/ccv/xpress/xpress.c                           |  1 +
 board/compulab/cl-som-imx7/cl-som-imx7.c            |  1 +
 board/compulab/cm_fx6/cm_fx6.c                      |  1 +
 board/compulab/common/eeprom.c                      |  1 +
 board/compulab/common/eeprom.h                      |  1 +
 board/congatec/cgtqmx6eval/cgtqmx6eval.c            |  1 +
 board/creative/xfi3/xfi3.c                          |  1 +
 board/dhelectronics/dh_imx6/dh_imx6.c               |  1 +
 board/dhelectronics/dh_stm32mp1/board.c             |  1 +
 board/emulation/qemu-arm/qemu-arm.c                 |  1 +
 board/engicam/common/board.c                        |  1 +
 board/esd/vme8349/vme8349.c                         |  1 +
 board/freescale/common/fsl_validate.c               |  1 +
 board/freescale/common/mc34vr500.c                  |  1 +
 board/freescale/common/pfuze.c                      |  1 +
 board/freescale/imx8mm_evk/spl.c                    |  1 +
 board/freescale/imx8mq_evk/spl.c                    |  1 +
 board/freescale/ls1012ardb/ls1012ardb.c             |  1 +
 board/freescale/mpc8308rdb/sdram.c                  |  1 +
 board/freescale/mpc8313erdb/sdram.c                 |  1 +
 board/freescale/mpc8315erdb/sdram.c                 |  1 +
 board/freescale/mpc8323erdb/mpc8323erdb.c           |  1 +
 board/freescale/mpc832xemds/mpc832xemds.c           |  1 +
 board/freescale/mpc8349emds/mpc8349emds.c           |  1 +
 board/freescale/mpc8349itx/mpc8349itx.c             |  1 +
 board/freescale/mpc837xemds/mpc837xemds.c           |  1 +
 board/freescale/mpc837xerdb/mpc837xerdb.c           |  1 +
 board/freescale/mx25pdk/mx25pdk.c                   |  1 +
 board/freescale/mx28evk/mx28evk.c                   |  1 +
 board/freescale/mx6slevk/mx6slevk.c                 |  1 +
 board/freescale/mx6sllevk/mx6sllevk.c               |  1 +
 board/freescale/mx6sxsabreauto/mx6sxsabreauto.c     |  1 +
 board/freescale/mx6sxsabresd/mx6sxsabresd.c         |  1 +
 board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c   |  1 +
 board/freescale/mx7dsabresd/mx7dsabresd.c           |  1 +
 board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c         |  1 +
 board/freescale/p2041rdb/ddr.c                      |  1 +
 board/freescale/qemu-ppce500/qemu-ppce500.c         |  1 +
 board/friendlyarm/nanopi2/onewire.c                 |  1 +
 board/gateworks/gw_ventana/gw_ventana.c             |  1 +
 board/gdsys/a38x/ihs_phys.c                         |  1 +
 board/gdsys/mpc8308/hrcon.c                         |  1 +
 board/gdsys/mpc8308/sdram.c                         |  1 +
 board/gdsys/mpc8308/strider.c                       |  1 +
 board/ge/common/ge_common.c                         |  1 +
 board/ge/common/vpd_reader.c                        | 13 +++++++------
 board/ge/common/vpd_reader.h                        |  2 --
 board/google/imx8mq_phanbell/spl.c                  |  1 +
 board/ids/ids8313/ids8313.c                         |  1 +
 board/intel/cougarcanyon2/cougarcanyon2.c           |  1 +
 board/intel/edison/edison.c                         |  1 +
 board/keymile/km83xx/km83xx.c                       |  1 +
 board/liebherr/display5/spl.c                       |  1 +
 board/liebherr/mccmon6/spl.c                        |  1 +
 board/nvidia/jetson-tk1/jetson-tk1.c                |  1 +
 board/ppcag/bg0900/bg0900.c                         |  1 +
 board/renesas/grpeach/grpeach.c                     |  1 +
 board/renesas/ulcb/cpld.c                           |  1 +
 board/samsung/common/board.c                        |  1 +
 board/samsung/common/exynos5-dt.c                   |  1 +
 board/samsung/goni/goni.c                           |  1 +
 board/samsung/trats/trats.c                         |  1 +
 board/samsung/trats2/trats2.c                       |  1 +
 board/samsung/universal_c210/universal.c            |  1 +
 board/sandbox/sandbox.c                             |  1 +
 board/sandisk/sansa_fuze_plus/sfp.c                 |  1 +
 board/siemens/draco/board.c                         |  1 +
 board/siemens/taurus/taurus.c                       |  1 +
 board/sipeed/maix/maix.c                            |  1 +
 board/softing/vining_2000/vining_2000.c             |  1 +
 board/st/common/stm32mp_dfu.c                       |  1 +
 board/st/stm32f429-discovery/stm32f429-discovery.c  |  1 +
 .../st/stm32f429-evaluation/stm32f429-evaluation.c  |  1 +
 board/st/stm32f469-discovery/stm32f469-discovery.c  |  1 +
 board/st/stm32h743-disco/stm32h743-disco.c          |  1 +
 board/st/stm32h743-eval/stm32h743-eval.c            |  1 +
 board/st/stm32mp1/stm32mp1.c                        |  1 +
 board/sunxi/board.c                                 |  1 +
 board/synopsys/hsdk/clk-lib.c                       |  1 +
 board/synopsys/hsdk/env-lib.c                       |  1 +
 board/synopsys/hsdk/hsdk.c                          |  1 +
 board/synopsys/iot_devkit/iot_devkit.c              |  1 +
 board/technexion/pico-imx6ul/pico-imx6ul.c          |  1 +
 board/technexion/pico-imx7d/pico-imx7d.c            |  1 +
 board/theadorable/fpga.c                            |  1 +
 board/ti/am335x/board.c                             |  1 +
 board/ti/am57xx/board.c                             |  1 +
 board/ti/am65x/evm.c                                |  1 +
 board/ti/common/board_detect.c                      |  1 +
 board/ti/j721e/evm.c                                |  1 +
 board/ti/omap5_uevm/evm.c                           |  1 +
 board/toradex/apalis-tk1/apalis-tk1.c               |  1 +
 board/toradex/colibri_imx7/colibri_imx7.c           |  1 +
 board/toradex/common/tdx-cfg-block.c                |  1 +
 board/toradex/verdin-imx8mm/spl.c                   |  1 +
 board/udoo/neo/neo.c                                |  1 +
 board/vscom/baltos/board.c                          |  1 +
 board/wandboard/wandboard.c                         |  1 +
 board/warp/warp.c                                   |  1 +
 board/warp7/warp7.c                                 |  1 +
 board/xilinx/common/board.c                         |  1 +
 .../xilinx/microblaze-generic/microblaze-generic.c  |  1 +
 board/xilinx/versal/board.c                         |  1 +
 board/xilinx/zynq/board.c                           |  1 +
 board/xilinx/zynqmp/cmds.c                          |  1 +
 board/xilinx/zynqmp/zynqmp.c                        |  1 +
 board/xilinx/zynqmp_r5/board.c                      |  1 +
 cmd/acpi.c                                          |  1 +
 cmd/axi.c                                           |  1 +
 cmd/bcb.c                                           |  1 +
 cmd/bind.c                                          |  1 +
 cmd/booti.c                                         |  1 +
 cmd/bootm.c                                         |  1 +
 cmd/button.c                                        |  1 +
 cmd/cpu.c                                           |  1 +
 cmd/efi.c                                           |  1 +
 cmd/elf.c                                           |  1 +
 cmd/ethsw.c                                         |  1 +
 cmd/gpio.c                                          |  1 +
 cmd/gpt.c                                           |  1 +
 cmd/i2c.c                                           |  1 +
 cmd/led.c                                           |  1 +
 cmd/mtd.c                                           |  1 +
 cmd/mvebu/bubt.c                                    |  1 +
 cmd/nand.c                                          |  1 +
 cmd/nvedit.c                                        |  1 +
 cmd/osd.c                                           |  1 +
 cmd/pci.c                                           |  1 +
 cmd/pinmux.c                                        |  1 +
 cmd/pmic.c                                          |  1 +
 cmd/pxe.c                                           |  1 +
 cmd/pxe_utils.c                                     |  1 +
 cmd/regulator.c                                     |  1 +
 cmd/spi.c                                           |  1 +
 cmd/sysboot.c                                       |  1 +
 cmd/tlv_eeprom.c                                    |  1 +
 cmd/tpm-v2.c                                        |  1 +
 cmd/usb_mass_storage.c                              |  1 +
 cmd/wdt.c                                           |  1 +
 common/android_ab.c                                 |  1 +
 common/avb_verify.c                                 |  1 +
 common/bloblist.c                                   |  1 +
 common/board_r.c                                    |  1 +
 common/boot_fit.c                                   |  1 +
 common/bootm.c                                      |  1 +
 common/bootretry.c                                  |  1 +
 common/bootstage.c                                  |  1 +
 common/bouncebuf.c                                  |  1 +
 common/cli_hush.c                                   |  1 +
 common/common_fit.c                                 |  1 +
 common/edid.c                                       |  1 +
 common/image-android.c                              |  1 +
 common/image-fdt.c                                  |  1 +
 common/image-fit-sig.c                              |  1 +
 common/image-fit.c                                  |  1 +
 common/lcd_simplefb.c                               |  1 +
 common/log.c                                        |  1 +
 common/menu.c                                       |  1 +
 common/spl/spl.c                                    |  1 +
 common/spl/spl_dfu.c                                |  1 +
 common/spl/spl_ext.c                                |  1 +
 common/spl/spl_fat.c                                |  1 +
 common/spl/spl_fit.c                                |  1 +
 common/spl/spl_legacy.c                             |  1 +
 common/spl/spl_mmc.c                                |  1 +
 common/spl/spl_net.c                                |  1 +
 common/spl/spl_opensbi.c                            |  1 +
 common/spl/spl_sata.c                               |  1 +
 common/spl/spl_sdp.c                                |  1 +
 common/spl/spl_spi.c                                |  1 +
 common/spl/spl_usb.c                                |  1 +
 common/spl/spl_ymodem.c                             |  1 +
 common/splash.c                                     |  1 +
 common/splash_source.c                              |  1 +
 common/stdio.c                                      |  1 +
 common/update.c                                     |  1 +
 common/usb.c                                        |  1 +
 common/usb_hub.c                                    |  1 +
 common/usb_kbd.c                                    |  1 +
 common/usb_storage.c                                |  1 +
 disk/part.c                                         |  1 +
 disk/part_efi.c                                     |  1 +
 drivers/adc/adc-uclass.c                            |  1 +
 drivers/adc/exynos-adc.c                            |  1 +
 drivers/adc/meson-saradc.c                          |  1 +
 drivers/adc/rockchip-saradc.c                       |  1 +
 drivers/adc/sandbox.c                               |  1 +
 drivers/adc/stm32-adc-core.c                        |  1 +
 drivers/adc/stm32-adc.c                             |  1 +
 drivers/ata/ahci_sunxi.c                            |  1 +
 drivers/ata/fsl_sata.c                              |  1 +
 drivers/ata/sata.c                                  |  1 +
 drivers/ata/sata_ceva.c                             |  1 +
 drivers/ata/sata_sil.c                              |  1 +
 drivers/axi/axi-emul-uclass.c                       |  1 +
 drivers/axi/axi-uclass.c                            |  1 +
 drivers/axi/axi_sandbox.c                           |  1 +
 drivers/axi/ihs_axi.c                               |  1 +
 drivers/axi/sandbox_store.c                         |  1 +
 drivers/bios_emulator/atibios.c                     |  1 +
 drivers/block/blk-uclass.c                          |  1 +
 drivers/block/blk_legacy.c                          |  1 +
 drivers/board/board-uclass.c                        |  1 +
 drivers/board/gazerbeam.c                           |  1 +
 drivers/board/sandbox.c                             |  1 +
 drivers/bootcount/bootcount-uclass.c                |  1 +
 drivers/bootcount/bootcount.c                       |  1 +
 drivers/bootcount/i2c-eeprom.c                      |  1 +
 drivers/bootcount/rtc.c                             |  1 +
 drivers/button/button-gpio.c                        |  1 +
 drivers/button/button-uclass.c                      |  1 +
 drivers/cache/cache-ncore.c                         |  1 +
 drivers/cache/cache-uclass.c                        |  1 +
 drivers/cache/cache-v5l2.c                          |  1 +
 drivers/clk/altera/clk-agilex.c                     |  1 +
 drivers/clk/altera/clk-arria10.c                    |  1 +
 drivers/clk/analogbits/wrpll-cln28hpc.c             |  1 +
 drivers/clk/aspeed/clk_ast2500.c                    |  1 +
 drivers/clk/at91/clk-main.c                         |  1 +
 drivers/clk/at91/clk-plla.c                         |  1 +
 drivers/clk/at91/clk-plladiv.c                      |  1 +
 drivers/clk/at91/clk-system.c                       |  1 +
 drivers/clk/at91/clk-utmi.c                         |  1 +
 drivers/clk/at91/pmc.c                              |  1 +
 drivers/clk/clk-cdce9xx.c                           |  1 +
 drivers/clk/clk-composite.c                         |  1 +
 drivers/clk/clk-divider.c                           |  1 +
 drivers/clk/clk-fixed-factor.c                      |  1 +
 drivers/clk/clk-gate.c                              |  1 +
 drivers/clk/clk-hsdk-cgu.c                          |  1 +
 drivers/clk/clk-mux.c                               |  1 +
 drivers/clk/clk-ti-sci.c                            |  1 +
 drivers/clk/clk-uclass.c                            |  1 +
 drivers/clk/clk.c                                   |  1 +
 drivers/clk/clk_bcm6345.c                           |  1 +
 drivers/clk/clk_boston.c                            |  1 +
 drivers/clk/clk_pic32.c                             |  1 +
 drivers/clk/clk_sandbox.c                           |  1 +
 drivers/clk/clk_sandbox_ccf.c                       |  1 +
 drivers/clk/clk_sandbox_test.c                      |  1 +
 drivers/clk/clk_stm32f.c                            |  1 +
 drivers/clk/clk_stm32h7.c                           |  1 +
 drivers/clk/clk_stm32mp1.c                          |  1 +
 drivers/clk/clk_versal.c                            |  1 +
 drivers/clk/clk_vexpress_osc.c                      |  1 +
 drivers/clk/clk_zynq.c                              |  1 +
 drivers/clk/clk_zynqmp.c                            |  1 +
 drivers/clk/exynos/clk-exynos7420.c                 |  1 +
 drivers/clk/ics8n3qv01.c                            |  1 +
 drivers/clk/imx/clk-composite-8m.c                  |  1 +
 drivers/clk/imx/clk-gate2.c                         |  1 +
 drivers/clk/imx/clk-imx6q.c                         |  1 +
 drivers/clk/imx/clk-imx8.c                          |  1 +
 drivers/clk/imx/clk-imx8mm.c                        |  1 +
 drivers/clk/imx/clk-imx8mn.c                        |  1 +
 drivers/clk/imx/clk-imx8mp.c                        |  1 +
 drivers/clk/imx/clk-imx8qm.c                        |  1 +
 drivers/clk/imx/clk-imx8qxp.c                       |  1 +
 drivers/clk/imx/clk-imxrt1020.c                     |  1 +
 drivers/clk/imx/clk-imxrt1050.c                     |  1 +
 drivers/clk/imx/clk-pfd.c                           |  1 +
 drivers/clk/imx/clk-pll14xx.c                       |  1 +
 drivers/clk/imx/clk-pllv3.c                         |  1 +
 drivers/clk/intel/clk_intel.c                       |  1 +
 drivers/clk/kendryte/bypass.c                       |  1 +
 drivers/clk/kendryte/clk.c                          |  1 +
 drivers/clk/kendryte/pll.c                          |  1 +
 drivers/clk/mediatek/clk-mt7622.c                   |  1 +
 drivers/clk/mediatek/clk-mt7623.c                   |  1 +
 drivers/clk/mediatek/clk-mt7629.c                   |  1 +
 drivers/clk/mediatek/clk-mtk.c                      |  1 +
 drivers/clk/meson/axg.c                             |  1 +
 drivers/clk/meson/g12a.c                            |  1 +
 drivers/clk/meson/gxbb.c                            |  1 +
 drivers/clk/mpc83xx_clk.c                           |  1 +
 drivers/clk/mpc83xx_clk.h                           |  1 +
 drivers/clk/mtmips/clk-mt7628.c                     |  1 +
 drivers/clk/mvebu/armada-37xx-periph.c              |  1 +
 drivers/clk/mvebu/armada-37xx-tbg.c                 |  1 +
 drivers/clk/owl/clk_owl.c                           |  1 +
 drivers/clk/renesas/clk-rcar-gen2.c                 |  1 +
 drivers/clk/renesas/clk-rcar-gen3.c                 |  1 +
 drivers/clk/renesas/renesas-cpg-mssr.c              |  1 +
 drivers/clk/rockchip/clk_pll.c                      |  1 +
 drivers/clk/rockchip/clk_px30.c                     |  1 +
 drivers/clk/rockchip/clk_rk3036.c                   |  1 +
 drivers/clk/rockchip/clk_rk3128.c                   |  1 +
 drivers/clk/rockchip/clk_rk3188.c                   |  1 +
 drivers/clk/rockchip/clk_rk322x.c                   |  1 +
 drivers/clk/rockchip/clk_rk3288.c                   |  1 +
 drivers/clk/rockchip/clk_rk3308.c                   |  1 +
 drivers/clk/rockchip/clk_rk3328.c                   |  1 +
 drivers/clk/rockchip/clk_rk3368.c                   |  1 +
 drivers/clk/rockchip/clk_rk3399.c                   |  1 +
 drivers/clk/rockchip/clk_rv1108.c                   |  1 +
 drivers/clk/sifive/fu540-prci.c                     |  1 +
 drivers/clk/sunxi/clk_sunxi.c                       |  1 +
 drivers/clk/tegra/tegra-car-clk.c                   |  1 +
 drivers/clk/uniphier/clk-uniphier-core.c            |  1 +
 drivers/core/acpi.c                                 |  1 +
 drivers/core/device-remove.c                        |  1 +
 drivers/core/device.c                               |  1 +
 drivers/core/devres.c                               |  1 +
 drivers/core/lists.c                                |  1 +
 drivers/core/of_access.c                            |  1 +
 drivers/core/of_addr.c                              |  1 +
 drivers/core/of_extra.c                             |  1 +
 drivers/core/ofnode.c                               |  1 +
 drivers/core/read.c                                 |  1 +
 drivers/core/regmap.c                               |  1 +
 drivers/core/root.c                                 |  1 +
 drivers/core/simple-pm-bus.c                        |  1 +
 drivers/core/syscon-uclass.c                        |  1 +
 drivers/core/uclass.c                               |  1 +
 drivers/core/util.c                                 |  1 +
 drivers/cpu/bmips_cpu.c                             |  1 +
 drivers/cpu/cpu-uclass.c                            |  1 +
 drivers/cpu/imx8_cpu.c                              |  1 +
 drivers/cpu/mpc83xx_cpu.c                           |  1 +
 drivers/cpu/riscv_cpu.c                             |  1 +
 drivers/crypto/fsl/fsl_rsa.c                        |  1 +
 drivers/crypto/fsl/jr.c                             |  1 +
 drivers/crypto/fsl/rng.c                            |  1 +
 drivers/crypto/rsa_mod_exp/mod_exp_uclass.c         |  1 +
 drivers/ddr/altera/sdram_agilex.c                   |  1 +
 drivers/ddr/altera/sdram_arria10.c                  |  1 +
 drivers/ddr/altera/sdram_gen5.c                     |  1 +
 drivers/ddr/altera/sdram_soc64.c                    |  1 +
 drivers/ddr/altera/sequencer.c                      |  1 +
 drivers/demo/demo-shape.c                           |  1 +
 drivers/demo/demo-uclass.c                          |  1 +
 drivers/dfu/dfu.c                                   |  1 +
 drivers/dfu/dfu_mmc.c                               |  1 +
 drivers/dfu/dfu_mtd.c                               |  1 +
 drivers/dfu/dfu_ram.c                               |  1 +
 drivers/dfu/dfu_sf.c                                |  1 +
 drivers/dfu/dfu_tftp.c                              |  1 +
 drivers/dma/bcm6348-iudma.c                         |  1 +
 drivers/dma/dma-uclass.c                            |  1 +
 drivers/dma/lpc32xx_dma.c                           |  1 +
 drivers/dma/sandbox-dma-test.c                      |  1 +
 drivers/dma/ti/k3-psil.c                            |  1 +
 drivers/dma/ti/k3-udma.c                            |  1 +
 drivers/fastboot/fb_common.c                        |  1 +
 drivers/fastboot/fb_getvar.c                        |  1 +
 drivers/fastboot/fb_mmc.c                           |  1 +
 drivers/fastboot/fb_nand.c                          |  1 +
 drivers/firmware/firmware-zynqmp.c                  |  1 +
 drivers/firmware/ti_sci.c                           |  1 +
 drivers/fpga/altera.c                               |  1 +
 drivers/fpga/socfpga_arria10.c                      |  1 +
 drivers/fpga/stratix10.c                            |  1 +
 drivers/gpio/74x164_gpio.c                          |  1 +
 drivers/gpio/atmel_pio4.c                           |  1 +
 drivers/gpio/axp_gpio.c                             |  1 +
 drivers/gpio/bcm2835_gpio.c                         |  1 +
 drivers/gpio/bcm6345_gpio.c                         |  1 +
 drivers/gpio/cortina_gpio.c                         |  1 +
 drivers/gpio/da8xx_gpio.c                           |  1 +
 drivers/gpio/dwapb_gpio.c                           |  1 +
 drivers/gpio/gpio-rza1.c                            |  1 +
 drivers/gpio/gpio-uclass.c                          |  1 +
 drivers/gpio/hi6220_gpio.c                          |  1 +
 drivers/gpio/hsdk-creg-gpio.c                       |  1 +
 drivers/gpio/imx_rgpio2p.c                          |  1 +
 drivers/gpio/intel_broadwell_gpio.c                 |  1 +
 drivers/gpio/intel_gpio.c                           |  1 +
 drivers/gpio/intel_ich6_gpio.c                      |  1 +
 drivers/gpio/iproc_gpio.c                           |  1 +
 drivers/gpio/mpc83xx_spisel_boot.c                  |  1 +
 drivers/gpio/mpc8xxx_gpio.c                         |  1 +
 drivers/gpio/mscc_sgpio.c                           |  1 +
 drivers/gpio/msm_gpio.c                             |  1 +
 drivers/gpio/mt7621_gpio.c                          |  1 +
 drivers/gpio/mxc_gpio.c                             |  1 +
 drivers/gpio/pca953x_gpio.c                         |  1 +
 drivers/gpio/pic32_gpio.c                           |  1 +
 drivers/gpio/pm8916_gpio.c                          |  1 +
 drivers/gpio/s5p_gpio.c                             |  1 +
 drivers/gpio/sandbox.c                              |  1 +
 drivers/gpio/sifive-gpio.c                          |  1 +
 drivers/gpio/spear_gpio.c                           |  1 +
 drivers/gpio/sunxi_gpio.c                           |  1 +
 drivers/gpio/tegra186_gpio.c                        |  1 +
 drivers/gpio/tegra_gpio.c                           |  1 +
 drivers/gpio/vybrid_gpio.c                          |  1 +
 drivers/gpio/xilinx_gpio.c                          |  1 +
 drivers/hwspinlock/hwspinlock-uclass.c              |  1 +
 drivers/hwspinlock/stm32_hwspinlock.c               |  1 +
 drivers/i2c/ast_i2c.c                               |  1 +
 drivers/i2c/at91_i2c.c                              |  1 +
 drivers/i2c/cros_ec_ldo.c                           |  1 +
 drivers/i2c/davinci_i2c.c                           |  1 +
 drivers/i2c/designware_i2c.c                        |  1 +
 drivers/i2c/designware_i2c_pci.c                    |  1 +
 drivers/i2c/exynos_hs_i2c.c                         |  1 +
 drivers/i2c/fsl_i2c.c                               |  1 +
 drivers/i2c/i2c-cortina.c                           |  1 +
 drivers/i2c/i2c-gpio.c                              |  1 +
 drivers/i2c/i2c-uclass.c                            |  1 +
 drivers/i2c/i2c-versatile.c                         |  1 +
 drivers/i2c/ihs_i2c.c                               |  1 +
 drivers/i2c/imx_lpi2c.c                             |  1 +
 drivers/i2c/intel_i2c.c                             |  1 +
 drivers/i2c/iproc_i2c.c                             |  1 +
 drivers/i2c/meson_i2c.c                             |  1 +
 drivers/i2c/muxes/i2c-arb-gpio-challenge.c          |  1 +
 drivers/i2c/muxes/i2c-mux-uclass.c                  |  1 +
 drivers/i2c/muxes/pca954x.c                         |  1 +
 drivers/i2c/mv_i2c.c                                |  1 +
 drivers/i2c/nx_i2c.c                                |  1 +
 drivers/i2c/octeon_i2c.c                            |  1 +
 drivers/i2c/omap24xx_i2c.c                          |  1 +
 drivers/i2c/rcar_i2c.c                              |  1 +
 drivers/i2c/rcar_iic.c                              |  1 +
 drivers/i2c/rk_i2c.c                                |  1 +
 drivers/i2c/s3c24x0_i2c.c                           |  1 +
 drivers/i2c/sandbox_i2c.c                           |  1 +
 drivers/i2c/stm32f7_i2c.c                           |  1 +
 drivers/i2c/tegra186_bpmp_i2c.c                     |  1 +
 drivers/i2c/tegra_i2c.c                             |  1 +
 drivers/i2c/xilinx_xiic.c                           |  1 +
 drivers/input/cros_ec_keyb.c                        |  1 +
 drivers/input/i8042.c                               |  1 +
 drivers/input/keyboard-uclass.c                     |  1 +
 drivers/input/tegra-kbc.c                           |  1 +
 drivers/led/led-uclass.c                            |  1 +
 drivers/led/led_bcm6328.c                           |  1 +
 drivers/led/led_bcm6358.c                           |  1 +
 drivers/led/led_bcm6858.c                           |  1 +
 drivers/led/led_gpio.c                              |  1 +
 drivers/mailbox/k3-sec-proxy.c                      |  1 +
 drivers/mailbox/mailbox-uclass.c                    |  1 +
 drivers/mailbox/sandbox-mbox.c                      |  1 +
 drivers/mailbox/stm32-ipcc.c                        |  1 +
 drivers/mailbox/tegra-hsp.c                         |  1 +
 drivers/mailbox/zynqmp-ipi.c                        |  1 +
 drivers/misc/atsha204a-i2c.c                        |  1 +
 drivers/misc/cros_ec_i2c.c                          |  1 +
 drivers/misc/cros_ec_lpc.c                          |  1 +
 drivers/misc/cros_ec_sandbox.c                      |  1 +
 drivers/misc/cros_ec_spi.c                          |  1 +
 drivers/misc/fs_loader.c                            |  1 +
 drivers/misc/gdsys_ioep.c                           |  1 +
 drivers/misc/gdsys_soc.c                            |  1 +
 drivers/misc/i2c_eeprom.c                           |  1 +
 drivers/misc/i2c_eeprom_emul.c                      |  1 +
 drivers/misc/ihs_fpga.c                             |  1 +
 drivers/misc/imx8/fuse.c                            |  1 +
 drivers/misc/imx8/scu.c                             |  1 +
 drivers/misc/irq-uclass.c                           |  1 +
 drivers/misc/irq_sandbox.c                          |  1 +
 drivers/misc/k3_avs.c                               |  1 +
 drivers/misc/k3_esm.c                               |  1 +
 drivers/misc/microchip_flexcom.c                    |  1 +
 drivers/misc/misc-uclass.c                          |  1 +
 drivers/misc/misc_sandbox.c                         |  1 +
 drivers/misc/mpc83xx_serdes.c                       |  1 +
 drivers/misc/p2sb-uclass.c                          |  1 +
 drivers/misc/p2sb_emul.c                            |  1 +
 drivers/misc/pca9551_led.c                          |  1 +
 drivers/misc/pwrseq-uclass.c                        |  1 +
 drivers/misc/qfw.c                                  |  1 +
 drivers/misc/rockchip-otp.c                         |  1 +
 drivers/misc/sifive-otp.c                           |  1 +
 drivers/misc/smsc_sio1007.c                         |  1 +
 drivers/misc/stm32_rcc.c                            |  1 +
 drivers/misc/stm32mp_fuse.c                         |  1 +
 drivers/misc/swap_case.c                            |  1 +
 drivers/misc/tegra186_bpmp.c                        |  1 +
 drivers/misc/vexpress_config.c                      |  1 +
 drivers/mmc/am654_sdhci.c                           |  1 +
 drivers/mmc/atmel_sdhci.c                           |  1 +
 drivers/mmc/bcm2835_sdhci.c                         |  1 +
 drivers/mmc/bcm2835_sdhost.c                        |  1 +
 drivers/mmc/bcmstb_sdhci.c                          |  1 +
 drivers/mmc/ca_dw_mmc.c                             |  1 +
 drivers/mmc/davinci_mmc.c                           |  1 +
 drivers/mmc/dw_mmc.c                                |  1 +
 drivers/mmc/exynos_dw_mmc.c                         |  1 +
 drivers/mmc/fsl_esdhc.c                             |  1 +
 drivers/mmc/fsl_esdhc_imx.c                         |  1 +
 drivers/mmc/iproc_sdhci.c                           |  1 +
 drivers/mmc/jz_mmc.c                                |  1 +
 drivers/mmc/meson_gx_mmc.c                          |  1 +
 drivers/mmc/mmc-uclass.c                            |  1 +
 drivers/mmc/mmc.c                                   |  1 +
 drivers/mmc/mmc_legacy.c                            |  1 +
 drivers/mmc/mmc_spi.c                               |  1 +
 drivers/mmc/msm_sdhci.c                             |  1 +
 drivers/mmc/mtk-sd.c                                |  1 +
 drivers/mmc/mv_sdhci.c                              |  1 +
 drivers/mmc/mvebu_mmc.c                             |  1 +
 drivers/mmc/nexell_dw_mmc.c                         |  1 +
 drivers/mmc/omap_hsmmc.c                            |  1 +
 drivers/mmc/pci_mmc.c                               |  1 +
 drivers/mmc/renesas-sdhi.c                          |  1 +
 drivers/mmc/rockchip_dw_mmc.c                       |  1 +
 drivers/mmc/rpmb.c                                  |  1 +
 drivers/mmc/s5p_sdhci.c                             |  1 +
 drivers/mmc/sdhci-cadence.c                         |  1 +
 drivers/mmc/sdhci.c                                 |  1 +
 drivers/mmc/snps_dw_mmc.c                           |  1 +
 drivers/mmc/socfpga_dw_mmc.c                        |  1 +
 drivers/mmc/sti_sdhci.c                             |  1 +
 drivers/mmc/stm32_sdmmc2.c                          |  1 +
 drivers/mmc/sunxi_mmc.c                             |  1 +
 drivers/mmc/tangier_sdhci.c                         |  1 +
 drivers/mmc/tegra_mmc.c                             |  1 +
 drivers/mmc/tmio-common.c                           |  1 +
 drivers/mmc/xenon_sdhci.c                           |  1 +
 drivers/mmc/zynq_sdhci.c                            |  1 +
 drivers/mtd/altera_qspi.c                           |  1 +
 drivers/mtd/cfi_flash.c                             |  1 +
 drivers/mtd/hbmc-am654.c                            |  1 +
 drivers/mtd/mtd_uboot.c                             |  1 +
 drivers/mtd/mtdconcat.c                             |  1 +
 drivers/mtd/mtdcore.c                               |  1 +
 drivers/mtd/nand/bbt.c                              |  1 +
 drivers/mtd/nand/core.c                             |  1 +
 drivers/mtd/nand/raw/atmel_nand.c                   |  1 +
 drivers/mtd/nand/raw/davinci_nand.c                 |  1 +
 drivers/mtd/nand/raw/denali_dt.c                    |  1 +
 drivers/mtd/nand/raw/denali_spl.c                   |  1 +
 drivers/mtd/nand/raw/fsmc_nand.c                    |  1 +
 drivers/mtd/nand/raw/mxc_nand.c                     |  1 +
 drivers/mtd/nand/raw/mxc_nand_spl.c                 |  1 +
 drivers/mtd/nand/raw/mxs_nand_dt.c                  |  1 +
 drivers/mtd/nand/raw/mxs_nand_spl.c                 |  1 +
 drivers/mtd/nand/raw/nand.c                         |  1 +
 drivers/mtd/nand/raw/nand_bbt.c                     |  1 +
 drivers/mtd/nand/raw/nand_bch.c                     |  1 +
 drivers/mtd/nand/raw/nand_timings.c                 |  1 +
 drivers/mtd/nand/raw/stm32_fmc2_nand.c              |  1 +
 drivers/mtd/nand/raw/sunxi_nand.c                   |  1 +
 drivers/mtd/nand/raw/sunxi_nand_spl.c               |  1 +
 drivers/mtd/nand/raw/vf610_nfc.c                    |  1 +
 drivers/mtd/nand/spi/core.c                         |  1 +
 drivers/mtd/nand/spi/gigadevice.c                   |  1 +
 drivers/mtd/nand/spi/macronix.c                     |  1 +
 drivers/mtd/nand/spi/micron.c                       |  1 +
 drivers/mtd/nand/spi/toshiba.c                      |  1 +
 drivers/mtd/nand/spi/winbond.c                      |  1 +
 drivers/mtd/pic32_flash.c                           |  1 +
 drivers/mtd/renesas_rpc_hf.c                        |  1 +
 drivers/mtd/spi/sandbox.c                           |  1 +
 drivers/mtd/spi/sf_dataflash.c                      |  1 +
 drivers/mtd/spi/sf_probe.c                          |  1 +
 drivers/mtd/st_smi.c                                |  1 +
 drivers/mtd/ubi/attach.c                            |  1 +
 drivers/mtd/ubi/build.c                             |  1 +
 drivers/mtd/ubi/debug.c                             |  1 +
 drivers/mtd/ubi/eba.c                               |  1 +
 drivers/mtd/ubi/fastmap-wl.c                        |  2 ++
 drivers/mtd/ubi/fastmap.c                           |  1 +
 drivers/mtd/ubi/io.c                                |  1 +
 drivers/mtd/ubi/kapi.c                              |  1 +
 drivers/mtd/ubi/misc.c                              |  1 +
 drivers/mtd/ubi/ubi.h                               |  1 +
 drivers/mtd/ubi/upd.c                               |  1 +
 drivers/mtd/ubi/vmt.c                               |  1 +
 drivers/mtd/ubi/vtbl.c                              |  1 +
 drivers/mtd/ubi/wl.c                                |  1 +
 drivers/mtd/ubispl/ubispl.c                         |  1 +
 drivers/net/ag7xxx.c                                |  1 +
 drivers/net/altera_tse.c                            |  1 +
 drivers/net/armada100_fec.c                         |  1 +
 drivers/net/at91_emac.c                             |  1 +
 drivers/net/bcm-sf2-eth.c                           |  1 +
 drivers/net/bcm6348-eth.c                           |  1 +
 drivers/net/bcm6368-eth.c                           |  1 +
 drivers/net/bcmgenet.c                              |  1 +
 drivers/net/calxedaxgmac.c                          |  1 +
 drivers/net/dc2114x.c                               |  1 +
 drivers/net/designware.c                            |  1 +
 drivers/net/dwc_eth_qos.c                           |  1 +
 drivers/net/dwmac_socfpga.c                         |  1 +
 drivers/net/e1000.c                                 |  1 +
 drivers/net/eepro100.c                              |  1 +
 drivers/net/ep93xx_eth.c                            |  1 +
 drivers/net/eth-phy-uclass.c                        |  1 +
 drivers/net/ethoc.c                                 |  1 +
 drivers/net/fm/eth.c                                |  1 +
 drivers/net/fm/init.c                               |  1 +
 drivers/net/fm/memac_phy.c                          |  1 +
 drivers/net/fsl-mc/dpio/qbman_portal.c              |  1 +
 drivers/net/fsl-mc/mc.c                             |  1 +
 drivers/net/fsl-mc/mc_sys.c                         |  1 +
 drivers/net/fsl_enetc.c                             |  1 +
 drivers/net/fsl_enetc_mdio.c                        |  1 +
 drivers/net/fsl_mcdmafec.c                          |  1 +
 drivers/net/ftgmac100.c                             |  1 +
 drivers/net/ftmac100.c                              |  1 +
 drivers/net/gmac_rockchip.c                         |  1 +
 drivers/net/higmacv300.c                            |  1 +
 drivers/net/ks8851_mll.c                            |  1 +
 drivers/net/ldpaa_eth/ldpaa_eth.c                   |  1 +
 drivers/net/ldpaa_eth/ldpaa_wriop.c                 |  1 +
 drivers/net/ldpaa_eth/lx2160a.c                     |  1 +
 drivers/net/mcffec.c                                |  1 +
 drivers/net/mdio_mux_sandbox.c                      |  1 +
 drivers/net/mdio_sandbox.c                          |  1 +
 drivers/net/mpc8xx_fec.c                            |  1 +
 drivers/net/mscc_eswitch/jr2_switch.c               |  1 +
 drivers/net/mscc_eswitch/luton_switch.c             |  1 +
 drivers/net/mscc_eswitch/mscc_mac_table.c           |  1 +
 drivers/net/mscc_eswitch/mscc_miim.c                |  1 +
 drivers/net/mscc_eswitch/mscc_xfer.c                |  1 +
 drivers/net/mscc_eswitch/ocelot_switch.c            |  1 +
 drivers/net/mscc_eswitch/serval_switch.c            |  1 +
 drivers/net/mscc_eswitch/servalt_switch.c           |  1 +
 drivers/net/mt7628-eth.c                            |  1 +
 drivers/net/mtk_eth.c                               |  1 +
 drivers/net/mvmdio.c                                |  1 +
 drivers/net/pch_gbe.c                               |  1 +
 drivers/net/pcnet.c                                 |  1 +
 drivers/net/pfe_eth/pfe_driver.c                    |  1 +
 drivers/net/pfe_eth/pfe_eth.c                       |  1 +
 drivers/net/pfe_eth/pfe_firmware.c                  |  1 +
 drivers/net/pfe_eth/pfe_mdio.c                      |  1 +
 drivers/net/phy/aquantia.c                          |  1 +
 drivers/net/phy/atheros.c                           |  1 +
 drivers/net/phy/b53.c                               |  1 +
 drivers/net/phy/cortina.c                           |  1 +
 drivers/net/phy/dp83867.c                           |  1 +
 drivers/net/phy/fixed.c                             |  1 +
 drivers/net/phy/marvell.c                           |  1 +
 drivers/net/phy/meson-gxl.c                         |  1 +
 drivers/net/phy/micrel_ksz90x1.c                    |  1 +
 drivers/net/phy/mscc.c                              |  1 +
 drivers/net/phy/mv88e61xx.c                         |  1 +
 drivers/net/phy/ncsi.c                              |  1 +
 drivers/net/phy/phy.c                               |  1 +
 drivers/net/phy/xilinx_gmii2rgmii.c                 |  1 +
 drivers/net/phy/xilinx_phy.c                        |  1 +
 drivers/net/pic32_eth.c                             |  1 +
 drivers/net/pic32_mdio.c                            |  1 +
 drivers/net/ravb.c                                  |  1 +
 drivers/net/rtl8139.c                               |  1 +
 drivers/net/rtl8169.c                               |  1 +
 drivers/net/sandbox-raw-bus.c                       |  1 +
 drivers/net/sandbox.c                               |  1 +
 drivers/net/smc911x.c                               |  1 +
 drivers/net/sni_ave.c                               |  1 +
 drivers/net/sun8i_emac.c                            |  1 +
 drivers/net/sunxi_emac.c                            |  1 +
 drivers/net/ti/am65-cpsw-nuss.c                     |  1 +
 drivers/net/ti/cpsw-common.c                        |  1 +
 drivers/net/ti/cpsw_mdio.c                          |  1 +
 drivers/net/ti/davinci_emac.c                       |  1 +
 drivers/net/ti/keystone_net.c                       |  1 +
 drivers/net/vsc9953.c                               |  1 +
 drivers/net/xilinx_axi_emac.c                       |  1 +
 drivers/nvme/nvme.c                                 |  1 +
 drivers/nvme/nvme_show.c                            |  1 +
 drivers/pch/pch-uclass.c                            |  1 +
 drivers/pch/pch7.c                                  |  1 +
 drivers/pch/pch9.c                                  |  1 +
 drivers/pch/sandbox_pch.c                           |  1 +
 drivers/pci/pci-aardvark.c                          |  1 +
 drivers/pci/pci-emul-uclass.c                       |  1 +
 drivers/pci/pci-rcar-gen2.c                         |  1 +
 drivers/pci/pci-rcar-gen3.c                         |  1 +
 drivers/pci/pci-uclass.c                            |  1 +
 drivers/pci/pci_common.c                            |  1 +
 drivers/pci/pci_mpc85xx.c                           |  1 +
 drivers/pci/pci_rom.c                               |  1 +
 drivers/pci/pci_sandbox.c                           |  1 +
 drivers/pci/pci_sh7751.c                            |  1 +
 drivers/pci/pci_tegra.c                             |  1 +
 drivers/pci/pcie_brcmstb.c                          |  1 +
 drivers/pci/pcie_dw_mvebu.c                         |  1 +
 drivers/pci/pcie_dw_ti.c                            |  1 +
 drivers/pci/pcie_fsl.c                              |  1 +
 drivers/pci/pcie_imx.c                              |  1 +
 drivers/pci/pcie_intel_fpga.c                       |  1 +
 drivers/pci/pcie_layerscape_ep.c                    |  1 +
 drivers/pci/pcie_layerscape_fixup.c                 |  1 +
 drivers/pci/pcie_layerscape_fixup_common.c          |  1 +
 drivers/pci/pcie_layerscape_gen4.c                  |  1 +
 drivers/pci/pcie_layerscape_gen4_fixup.c            |  1 +
 drivers/pci/pcie_layerscape_rc.c                    |  1 +
 drivers/pci/pcie_mediatek.c                         |  1 +
 drivers/pci/pcie_phytium.c                          |  1 +
 drivers/pci/pcie_rockchip.c                         |  1 +
 drivers/pci/pcie_xilinx.c                           |  1 +
 drivers/pci_endpoint/pci_ep-uclass.c                |  1 +
 drivers/pci_endpoint/pcie-cadence-ep.c              |  1 +
 drivers/pci_endpoint/sandbox-pci_ep.c               |  1 +
 drivers/phy/allwinner/phy-sun4i-usb.c               |  1 +
 drivers/phy/bcm6318-usbh-phy.c                      |  1 +
 drivers/phy/bcm6348-usbh-phy.c                      |  1 +
 drivers/phy/bcm6358-usbh-phy.c                      |  1 +
 drivers/phy/bcm6368-usbh-phy.c                      |  1 +
 drivers/phy/keystone-usb-phy.c                      |  1 +
 drivers/phy/meson-g12a-usb2.c                       |  1 +
 drivers/phy/meson-g12a-usb3-pcie.c                  |  1 +
 drivers/phy/meson-gxbb-usb2.c                       |  1 +
 drivers/phy/meson-gxl-usb2.c                        |  1 +
 drivers/phy/meson-gxl-usb3.c                        |  1 +
 drivers/phy/msm8916-usbh-phy.c                      |  1 +
 drivers/phy/mt76x8-usb-phy.c                        |  1 +
 drivers/phy/omap-usb2-phy.c                         |  1 +
 drivers/phy/phy-da8xx-usb.c                         |  1 +
 drivers/phy/phy-mtk-tphy.c                          |  1 +
 drivers/phy/phy-rcar-gen2.c                         |  1 +
 drivers/phy/phy-rcar-gen3.c                         |  1 +
 drivers/phy/phy-stm32-usbphyc.c                     |  1 +
 drivers/phy/phy-ti-am654.c                          |  1 +
 drivers/phy/phy-uclass.c                            |  1 +
 drivers/phy/rockchip/phy-rockchip-inno-usb2.c       |  1 +
 drivers/phy/rockchip/phy-rockchip-pcie.c            |  1 +
 drivers/phy/rockchip/phy-rockchip-typec.c           |  1 +
 drivers/phy/sandbox-phy.c                           |  1 +
 drivers/phy/sti_usb_phy.c                           |  1 +
 drivers/phy/ti-pipe3-phy.c                          |  1 +
 drivers/pinctrl/aspeed/pinctrl_ast2500.c            |  1 +
 drivers/pinctrl/ath79/pinctrl_ar933x.c              |  1 +
 drivers/pinctrl/ath79/pinctrl_qca953x.c             |  1 +
 drivers/pinctrl/broadcom/pinctrl-bcm283x.c          |  1 +
 drivers/pinctrl/broadcom/pinctrl-bcm6838.c          |  1 +
 drivers/pinctrl/exynos/pinctrl-exynos.c             |  1 +
 drivers/pinctrl/exynos/pinctrl-exynos7420.c         |  1 +
 drivers/pinctrl/intel/pinctrl.c                     |  1 +
 drivers/pinctrl/mediatek/pinctrl-mtk-common.c       |  1 +
 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c       |  1 +
 drivers/pinctrl/meson/pinctrl-meson.c               |  1 +
 drivers/pinctrl/mscc/mscc-common.c                  |  1 +
 drivers/pinctrl/mtmips/pinctrl-mt7628.c             |  1 +
 drivers/pinctrl/mtmips/pinctrl-mtmips-common.c      |  1 +
 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c         |  1 +
 drivers/pinctrl/mvebu/pinctrl-mvebu.c               |  1 +
 drivers/pinctrl/nexell/pinctrl-nexell.c             |  1 +
 drivers/pinctrl/nexell/pinctrl-s5pxx18.c            |  1 +
 drivers/pinctrl/nxp/pinctrl-imx.c                   |  1 +
 drivers/pinctrl/nxp/pinctrl-mxs.c                   |  1 +
 drivers/pinctrl/nxp/pinctrl-scu.c                   |  1 +
 drivers/pinctrl/pinctrl-at91-pio4.c                 |  1 +
 drivers/pinctrl/pinctrl-at91.c                      |  1 +
 drivers/pinctrl/pinctrl-generic.c                   |  1 +
 drivers/pinctrl/pinctrl-single.c                    |  1 +
 drivers/pinctrl/pinctrl-sti.c                       |  1 +
 drivers/pinctrl/pinctrl-stmfx.c                     |  1 +
 drivers/pinctrl/pinctrl-uclass.c                    |  1 +
 drivers/pinctrl/pinctrl_pic32.c                     |  1 +
 drivers/pinctrl/pinctrl_stm32.c                     |  1 +
 drivers/pinctrl/renesas/pfc-r7s72100.c              |  1 +
 drivers/pinctrl/renesas/pfc-r8a7790.c               |  1 +
 drivers/pinctrl/renesas/pfc-r8a7791.c               |  1 +
 drivers/pinctrl/renesas/pfc-r8a7794.c               |  1 +
 drivers/pinctrl/renesas/pfc-r8a77970.c              |  1 +
 drivers/pinctrl/renesas/pfc-r8a77980.c              |  1 +
 drivers/pinctrl/renesas/pfc-r8a77990.c              |  1 +
 drivers/pinctrl/renesas/pfc.c                       |  1 +
 drivers/pinctrl/rockchip/pinctrl-px30.c             |  1 +
 drivers/pinctrl/rockchip/pinctrl-rk3036.c           |  1 +
 drivers/pinctrl/rockchip/pinctrl-rk3128.c           |  1 +
 drivers/pinctrl/rockchip/pinctrl-rk3188.c           |  1 +
 drivers/pinctrl/rockchip/pinctrl-rk322x.c           |  1 +
 drivers/pinctrl/rockchip/pinctrl-rk3288.c           |  1 +
 drivers/pinctrl/rockchip/pinctrl-rk3308.c           |  1 +
 drivers/pinctrl/rockchip/pinctrl-rk3328.c           |  1 +
 drivers/pinctrl/rockchip/pinctrl-rk3368.c           |  1 +
 drivers/pinctrl/rockchip/pinctrl-rk3399.c           |  1 +
 drivers/pinctrl/rockchip/pinctrl-rockchip-core.c    |  1 +
 drivers/pinctrl/rockchip/pinctrl-rv1108.c           |  1 +
 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c    |  1 +
 drivers/power/acpi_pmc/acpi-pmc-uclass.c            |  1 +
 drivers/power/acpi_pmc/pmc_emul.c                   |  1 +
 drivers/power/acpi_pmc/sandbox.c                    |  1 +
 drivers/power/axp152.c                              |  1 +
 drivers/power/axp209.c                              |  1 +
 drivers/power/axp221.c                              |  1 +
 drivers/power/axp809.c                              |  1 +
 drivers/power/axp818.c                              |  1 +
 drivers/power/battery/bat_trats.c                   |  1 +
 drivers/power/battery/bat_trats2.c                  |  1 +
 drivers/power/domain/bcm6328-power-domain.c         |  1 +
 drivers/power/domain/imx8-power-domain-legacy.c     |  1 +
 drivers/power/domain/imx8m-power-domain.c           |  1 +
 drivers/power/domain/meson-ee-pwrc.c                |  1 +
 drivers/power/domain/meson-gx-pwrc-vpu.c            |  1 +
 drivers/power/domain/mtk-power-domain.c             |  1 +
 drivers/power/domain/power-domain-uclass.c          |  1 +
 drivers/power/domain/sandbox-power-domain.c         |  1 +
 drivers/power/domain/ti-sci-power-domain.c          |  1 +
 drivers/power/exynos-tmu.c                          |  1 +
 drivers/power/fuel_gauge/fg_max17042.c              |  1 +
 drivers/power/mfd/fg_max77693.c                     |  1 +
 drivers/power/mfd/muic_max77693.c                   |  1 +
 drivers/power/mfd/pmic_max77693.c                   |  1 +
 drivers/power/pmic/act8846.c                        |  1 +
 drivers/power/pmic/as3722.c                         |  1 +
 drivers/power/pmic/as3722_gpio.c                    |  1 +
 drivers/power/pmic/bd71837.c                        |  1 +
 drivers/power/pmic/da9063.c                         |  1 +
 drivers/power/pmic/fan53555.c                       |  1 +
 drivers/power/pmic/i2c_pmic_emul.c                  |  1 +
 drivers/power/pmic/lp873x.c                         |  1 +
 drivers/power/pmic/lp87565.c                        |  1 +
 drivers/power/pmic/max77686.c                       |  1 +
 drivers/power/pmic/mc34708.c                        |  1 +
 drivers/power/pmic/muic_max8997.c                   |  1 +
 drivers/power/pmic/palmas.c                         |  1 +
 drivers/power/pmic/pca9450.c                        |  1 +
 drivers/power/pmic/pfuze100.c                       |  1 +
 drivers/power/pmic/pm8916.c                         |  1 +
 drivers/power/pmic/pmic-uclass.c                    |  1 +
 drivers/power/pmic/pmic_hi6553.c                    |  1 +
 drivers/power/pmic/pmic_ltc3676.c                   |  1 +
 drivers/power/pmic/pmic_max77696.c                  |  1 +
 drivers/power/pmic/pmic_max8997.c                   |  1 +
 drivers/power/pmic/pmic_max8998.c                   |  1 +
 drivers/power/pmic/pmic_mc34vr500.c                 |  1 +
 drivers/power/pmic/pmic_pca9450.c                   |  1 +
 drivers/power/pmic/pmic_pfuze100.c                  |  1 +
 drivers/power/pmic/pmic_pfuze3000.c                 |  1 +
 drivers/power/pmic/pmic_tps65910_dm.c               |  1 +
 drivers/power/pmic/rk8xx.c                          |  1 +
 drivers/power/pmic/s2mps11.c                        |  1 +
 drivers/power/pmic/s5m8767.c                        |  1 +
 drivers/power/pmic/sandbox.c                        |  1 +
 drivers/power/pmic/stpmic1.c                        |  1 +
 drivers/power/pmic/tps65090.c                       |  1 +
 drivers/power/pmic/tps65941.c                       |  1 +
 drivers/power/power_core.c                          |  1 +
 drivers/power/power_dialog.c                        |  1 +
 drivers/power/power_fsl.c                           |  1 +
 drivers/power/power_i2c.c                           |  1 +
 drivers/power/power_spi.c                           |  1 +
 drivers/power/regulator/act8846.c                   |  1 +
 drivers/power/regulator/as3722_regulator.c          |  1 +
 drivers/power/regulator/bd71837.c                   |  1 +
 drivers/power/regulator/da9063.c                    |  1 +
 drivers/power/regulator/fan53555.c                  |  1 +
 drivers/power/regulator/fixed.c                     |  1 +
 drivers/power/regulator/gpio-regulator.c            |  1 +
 drivers/power/regulator/lp873x_regulator.c          |  1 +
 drivers/power/regulator/lp87565_regulator.c         |  1 +
 drivers/power/regulator/max77686.c                  |  1 +
 drivers/power/regulator/palmas_regulator.c          |  1 +
 drivers/power/regulator/pbias_regulator.c           |  1 +
 drivers/power/regulator/pfuze100.c                  |  1 +
 drivers/power/regulator/pwm_regulator.c             |  1 +
 drivers/power/regulator/regulator-uclass.c          |  1 +
 drivers/power/regulator/regulator_common.c          |  1 +
 drivers/power/regulator/rk8xx.c                     |  1 +
 drivers/power/regulator/s2mps11_regulator.c         |  1 +
 drivers/power/regulator/s5m8767.c                   |  1 +
 drivers/power/regulator/sandbox.c                   |  1 +
 drivers/power/regulator/stm32-vrefbuf.c             |  1 +
 drivers/power/regulator/stpmic1.c                   |  1 +
 drivers/power/regulator/tps62360_regulator.c        |  1 +
 drivers/power/regulator/tps65090_regulator.c        |  1 +
 drivers/power/regulator/tps65910_regulator.c        |  1 +
 drivers/power/regulator/tps65941_regulator.c        |  1 +
 drivers/power/tps6586x.c                            |  1 +
 drivers/pwm/exynos_pwm.c                            |  1 +
 drivers/pwm/pwm-mtk.c                               |  1 +
 drivers/pwm/pwm-sifive.c                            |  1 +
 drivers/pwm/pwm-uclass.c                            |  1 +
 drivers/pwm/rk_pwm.c                                |  1 +
 drivers/pwm/sandbox_pwm.c                           |  1 +
 drivers/pwm/sunxi_pwm.c                             |  1 +
 drivers/pwm/tegra_pwm.c                             |  1 +
 drivers/ram/bmips_ram.c                             |  1 +
 drivers/ram/imxrt_sdram.c                           |  1 +
 drivers/ram/k3-am654-ddrss.c                        |  1 +
 drivers/ram/k3-j721e/k3-j721e-ddrss.c               |  1 +
 drivers/ram/k3-j721e/lpddr4_sanity.h                |  1 +
 drivers/ram/mediatek/ddr3-mt7629.c                  |  1 +
 drivers/ram/mpc83xx_sdram.c                         |  1 +
 drivers/ram/ram-uclass.c                            |  1 +
 drivers/ram/rockchip/dmc-rk3368.c                   |  1 +
 drivers/ram/rockchip/sdram_rk3188.c                 |  1 +
 drivers/ram/rockchip/sdram_rk322x.c                 |  1 +
 drivers/ram/rockchip/sdram_rk3288.c                 |  1 +
 drivers/ram/rockchip/sdram_rk3399.c                 |  1 +
 drivers/ram/sifive/fu540_ddr.c                      |  1 +
 drivers/ram/stm32_sdram.c                           |  1 +
 drivers/ram/stm32mp1/stm32mp1_ddr.c                 |  1 +
 drivers/ram/stm32mp1/stm32mp1_ram.c                 |  1 +
 drivers/remoteproc/k3_system_controller.c           |  1 +
 drivers/remoteproc/rproc-elf-loader.c               |  1 +
 drivers/remoteproc/rproc-uclass.c                   |  1 +
 drivers/remoteproc/sandbox_testproc.c               |  1 +
 drivers/remoteproc/stm32_copro.c                    |  1 +
 drivers/remoteproc/ti_k3_arm64_rproc.c              |  1 +
 drivers/remoteproc/ti_k3_dsp_rproc.c                |  1 +
 drivers/remoteproc/ti_k3_r5f_rproc.c                |  1 +
 drivers/remoteproc/ti_power_proc.c                  |  1 +
 drivers/reset/reset-bcm6345.c                       |  1 +
 drivers/reset/reset-hisilicon.c                     |  1 +
 drivers/reset/reset-hsdk.c                          |  1 +
 drivers/reset/reset-imx7.c                          |  1 +
 drivers/reset/reset-mediatek.c                      |  1 +
 drivers/reset/reset-meson.c                         |  1 +
 drivers/reset/reset-mtmips.c                        |  1 +
 drivers/reset/reset-raspberrypi.c                   |  1 +
 drivers/reset/reset-rockchip.c                      |  1 +
 drivers/reset/reset-sunxi.c                         |  1 +
 drivers/reset/reset-syscon.c                        |  1 +
 drivers/reset/reset-ti-sci.c                        |  1 +
 drivers/reset/reset-uclass.c                        |  1 +
 drivers/reset/reset-uniphier.c                      |  1 +
 drivers/reset/sandbox-reset.c                       |  1 +
 drivers/reset/sti-reset.c                           |  1 +
 drivers/reset/stm32-reset.c                         |  1 +
 drivers/reset/tegra-car-reset.c                     |  1 +
 drivers/rng/meson-rng.c                             |  1 +
 drivers/rng/rng-uclass.c                            |  1 +
 drivers/rng/rockchip_rng.c                          |  1 +
 drivers/rng/stm32mp1_rng.c                          |  1 +
 drivers/rtc/ds3231.c                                |  1 +
 drivers/rtc/ds3232.c                                |  1 +
 drivers/rtc/pl031.c                                 |  1 +
 drivers/rtc/rtc-uclass.c                            |  1 +
 drivers/rtc/rv3029.c                                |  1 +
 drivers/rtc/rx8010sj.c                              |  1 +
 drivers/rtc/rx8025.c                                |  1 +
 drivers/rtc/s35392a.c                               |  1 +
 drivers/rtc/stm32_rtc.c                             |  1 +
 drivers/scsi/scsi-uclass.c                          |  1 +
 drivers/scsi/scsi.c                                 |  1 +
 drivers/serial/altera_jtag_uart.c                   |  1 +
 drivers/serial/altera_uart.c                        |  1 +
 drivers/serial/arm_dcc.c                            |  1 +
 drivers/serial/atmel_usart.c                        |  1 +
 drivers/serial/lpc32xx_hsuart.c                     |  1 +
 drivers/serial/ns16550.c                            |  1 +
 drivers/serial/sandbox.c                            |  1 +
 drivers/serial/serial-uclass.c                      |  1 +
 drivers/serial/serial.c                             |  1 +
 drivers/serial/serial_ar933x.c                      |  1 +
 drivers/serial/serial_bcm283x_mu.c                  |  1 +
 drivers/serial/serial_bcm283x_pl011.c               |  1 +
 drivers/serial/serial_bcm6345.c                     |  1 +
 drivers/serial/serial_cortina.c                     |  1 +
 drivers/serial/serial_efi.c                         |  1 +
 drivers/serial/serial_linflexuart.c                 |  1 +
 drivers/serial/serial_lpuart.c                      |  1 +
 drivers/serial/serial_mcf.c                         |  1 +
 drivers/serial/serial_meson.c                       |  1 +
 drivers/serial/serial_msm.c                         |  1 +
 drivers/serial/serial_mtk.c                         |  1 +
 drivers/serial/serial_mxc.c                         |  1 +
 drivers/serial/serial_nulldev.c                     |  1 +
 drivers/serial/serial_omap.c                        |  1 +
 drivers/serial/serial_owl.c                         |  1 +
 drivers/serial/serial_pic32.c                       |  1 +
 drivers/serial/serial_pl01x.c                       |  1 +
 drivers/serial/serial_pxa.c                         |  1 +
 drivers/serial/serial_s5p.c                         |  1 +
 drivers/serial/serial_sh.c                          |  1 +
 drivers/serial/serial_sifive.c                      |  1 +
 drivers/serial/serial_sti_asc.c                     |  1 +
 drivers/serial/serial_stm32.c                       |  1 +
 drivers/serial/serial_xuartlite.c                   |  1 +
 drivers/serial/serial_zynq.c                        |  1 +
 drivers/smem/msm_smem.c                             |  1 +
 drivers/smem/smem-uclass.c                          |  1 +
 drivers/soc/soc-uclass.c                            |  1 +
 drivers/soc/soc_ti_k3.c                             |  1 +
 drivers/soc/ti/k3-navss-ringacc.c                   |  1 +
 drivers/soc/ti/keystone_serdes.c                    |  1 +
 drivers/sound/broadwell_i2s.c                       |  1 +
 drivers/sound/broadwell_sound.c                     |  1 +
 drivers/sound/codec-uclass.c                        |  1 +
 drivers/sound/da7219.c                              |  1 +
 drivers/sound/hda_codec.c                           |  1 +
 drivers/sound/i2s-uclass.c                          |  1 +
 drivers/sound/max98088.c                            |  1 +
 drivers/sound/max98090.c                            |  1 +
 drivers/sound/max98095.c                            |  1 +
 drivers/sound/max98357a.c                           |  1 +
 drivers/sound/rockchip_i2s.c                        |  1 +
 drivers/sound/rockchip_sound.c                      |  1 +
 drivers/sound/rt5677.c                              |  1 +
 drivers/sound/samsung-i2s.c                         |  1 +
 drivers/sound/samsung_sound.c                       |  1 +
 drivers/sound/sandbox.c                             |  1 +
 drivers/sound/sound-uclass.c                        |  1 +
 drivers/sound/tegra_ahub.c                          |  1 +
 drivers/sound/tegra_i2s.c                           |  1 +
 drivers/sound/tegra_sound.c                         |  1 +
 drivers/sound/wm8994.c                              |  1 +
 drivers/spi/atcspi200_spi.c                         |  1 +
 drivers/spi/atmel-quadspi.c                         |  1 +
 drivers/spi/atmel_spi.c                             |  1 +
 drivers/spi/bcm63xx_hsspi.c                         |  1 +
 drivers/spi/bcm63xx_spi.c                           |  1 +
 drivers/spi/bcmstb_spi.c                            |  1 +
 drivers/spi/cf_spi.c                                |  1 +
 drivers/spi/davinci_spi.c                           |  1 +
 drivers/spi/designware_spi.c                        |  1 +
 drivers/spi/exynos_spi.c                            |  1 +
 drivers/spi/fsl_dspi.c                              |  1 +
 drivers/spi/fsl_espi.c                              |  1 +
 drivers/spi/fsl_qspi.c                              |  1 +
 drivers/spi/ich.c                                   |  1 +
 drivers/spi/meson_spifc.c                           |  1 +
 drivers/spi/mpc8xx_spi.c                            |  1 +
 drivers/spi/mpc8xxx_spi.c                           |  1 +
 drivers/spi/mt7621_spi.c                            |  1 +
 drivers/spi/mtk_snfi_spi.c                          |  1 +
 drivers/spi/nxp_fspi.c                              |  1 +
 drivers/spi/pic32_spi.c                             |  1 +
 drivers/spi/pl022_spi.c                             |  1 +
 drivers/spi/soft_spi.c                              |  1 +
 drivers/spi/spi-mem-nodm.c                          |  1 +
 drivers/spi/spi-mem.c                               |  1 +
 drivers/spi/spi-sifive.c                            |  1 +
 drivers/spi/spi-sunxi.c                             |  1 +
 drivers/spi/spi-uclass.c                            |  1 +
 drivers/spi/stm32_qspi.c                            |  1 +
 drivers/spi/stm32_spi.c                             |  1 +
 drivers/spi/tegra20_sflash.c                        |  1 +
 drivers/spi/ti_qspi.c                               |  1 +
 drivers/spi/uniphier_spi.c                          |  1 +
 drivers/spi/zynq_qspi.c                             |  1 +
 drivers/spi/zynqmp_gqspi.c                          |  1 +
 drivers/spmi/spmi-msm.c                             |  1 +
 drivers/spmi/spmi-sandbox.c                         |  1 +
 drivers/spmi/spmi-uclass.c                          |  1 +
 drivers/sysreset/sysreset-ti-sci.c                  |  1 +
 drivers/sysreset/sysreset-uclass.c                  |  1 +
 drivers/sysreset/sysreset_ast.c                     |  1 +
 drivers/sysreset/sysreset_microblaze.c              |  1 +
 drivers/sysreset/sysreset_mpc83xx.c                 |  1 +
 drivers/sysreset/sysreset_octeon.c                  |  1 +
 drivers/sysreset/sysreset_rockchip.c                |  1 +
 drivers/sysreset/sysreset_sandbox.c                 |  1 +
 drivers/sysreset/sysreset_socfpga.c                 |  1 +
 drivers/sysreset/sysreset_socfpga_s10.c             |  1 +
 drivers/sysreset/sysreset_sti.c                     |  1 +
 drivers/sysreset/sysreset_syscon.c                  |  1 +
 drivers/sysreset/sysreset_watchdog.c                |  1 +
 drivers/sysreset/sysreset_x86.c                     |  1 +
 drivers/sysreset/sysreset_xtfpga.c                  |  1 +
 drivers/tee/broadcom/chimp_optee.c                  |  1 +
 drivers/tee/optee/core.c                            |  1 +
 drivers/tee/optee/supplicant.c                      |  1 +
 drivers/tee/sandbox.c                               |  1 +
 drivers/tee/tee-uclass.c                            |  1 +
 drivers/thermal/imx_scu_thermal.c                   |  1 +
 drivers/thermal/imx_thermal.c                       |  1 +
 drivers/thermal/imx_tmu.c                           |  1 +
 drivers/thermal/thermal-uclass.c                    |  1 +
 drivers/timer/arc_timer.c                           |  1 +
 drivers/timer/atmel_pit_timer.c                     |  1 +
 drivers/timer/mpc83xx_timer.c                       |  1 +
 drivers/timer/mtk_timer.c                           |  1 +
 drivers/timer/nomadik-mtu-timer.c                   |  1 +
 drivers/timer/rockchip_timer.c                      |  1 +
 drivers/timer/sti-timer.c                           |  1 +
 drivers/timer/stm32_timer.c                         |  1 +
 drivers/timer/timer-uclass.c                        |  1 +
 drivers/tpm/cr50_i2c.c                              |  1 +
 drivers/tpm/tpm-uclass.c                            |  1 +
 drivers/tpm/tpm2_ftpm_tee.c                         |  1 +
 drivers/tpm/tpm2_tis_sandbox.c                      |  1 +
 drivers/tpm/tpm_tis_lpc.c                           |  1 +
 drivers/tpm/tpm_tis_sandbox.c                       |  1 +
 drivers/tpm/tpm_tis_st33zp24_i2c.c                  |  1 +
 drivers/tpm/tpm_tis_st33zp24_spi.c                  |  1 +
 drivers/ufs/ufs.c                                   |  1 +
 drivers/usb/cdns3/cdns3-ti.c                        |  1 +
 drivers/usb/cdns3/core.c                            |  1 +
 drivers/usb/cdns3/drd.c                             |  1 +
 drivers/usb/cdns3/ep0.c                             |  1 +
 drivers/usb/cdns3/gadget-export.h                   |  1 +
 drivers/usb/cdns3/gadget.c                          |  1 +
 drivers/usb/cdns3/host-export.h                     |  1 +
 drivers/usb/cdns3/host.c                            |  1 +
 drivers/usb/common/fsl-dt-fixup.c                   |  1 +
 drivers/usb/dwc3/core.c                             |  1 +
 drivers/usb/dwc3/dwc3-generic.c                     |  1 +
 drivers/usb/dwc3/dwc3-meson-g12a.c                  |  1 +
 drivers/usb/dwc3/dwc3-omap.c                        |  1 +
 drivers/usb/dwc3/ep0.c                              |  1 +
 drivers/usb/dwc3/gadget.c                           |  1 +
 drivers/usb/dwc3/ti_usb_phy.c                       |  1 +
 drivers/usb/emul/sandbox_flash.c                    |  1 +
 drivers/usb/emul/sandbox_hub.c                      |  1 +
 drivers/usb/emul/sandbox_keyb.c                     |  1 +
 drivers/usb/emul/usb-emul-uclass.c                  |  1 +
 drivers/usb/eth/asix.c                              |  1 +
 drivers/usb/eth/asix88179.c                         |  1 +
 drivers/usb/eth/lan78xx.c                           |  1 +
 drivers/usb/eth/lan7x.c                             |  1 +
 drivers/usb/eth/mcs7830.c                           |  1 +
 drivers/usb/eth/r8152.c                             |  1 +
 drivers/usb/eth/r8152_fw.c                          |  1 +
 drivers/usb/eth/smsc95xx.c                          |  1 +
 drivers/usb/eth/usb_ether.c                         |  1 +
 drivers/usb/gadget/composite.c                      |  1 +
 drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c          |  1 +
 drivers/usb/gadget/f_dfu.c                          |  1 +
 drivers/usb/gadget/f_fastboot.c                     |  1 +
 drivers/usb/gadget/f_mass_storage.c                 |  1 +
 drivers/usb/gadget/f_rockusb.c                      |  1 +
 drivers/usb/gadget/f_sdp.c                          |  1 +
 drivers/usb/gadget/f_thor.c                         |  1 +
 drivers/usb/gadget/g_dnl.c                          |  1 +
 drivers/usb/gadget/gadget_chips.h                   |  1 +
 drivers/usb/gadget/pxa25x_udc.c                     |  1 +
 drivers/usb/gadget/udc/udc-core.c                   |  1 +
 drivers/usb/gadget/udc/udc-uclass.c                 |  1 +
 drivers/usb/host/dwc2.c                             |  1 +
 drivers/usb/host/dwc3-of-simple.c                   |  1 +
 drivers/usb/host/dwc3-sti-glue.c                    |  1 +
 drivers/usb/host/ehci-atmel.c                       |  1 +
 drivers/usb/host/ehci-fsl.c                         |  1 +
 drivers/usb/host/ehci-generic.c                     |  1 +
 drivers/usb/host/ehci-hcd.c                         |  1 +
 drivers/usb/host/ehci-marvell.c                     |  1 +
 drivers/usb/host/ehci-msm.c                         |  1 +
 drivers/usb/host/ehci-mx5.c                         |  1 +
 drivers/usb/host/ehci-mx6.c                         |  1 +
 drivers/usb/host/ehci-mxc.c                         |  1 +
 drivers/usb/host/ehci-mxs.c                         |  1 +
 drivers/usb/host/ehci-omap.c                        |  1 +
 drivers/usb/host/ehci-vf.c                          |  1 +
 drivers/usb/host/ehci-zynq.c                        |  1 +
 drivers/usb/host/ohci-da8xx.c                       |  1 +
 drivers/usb/host/ohci-generic.c                     |  1 +
 drivers/usb/host/ohci-hcd.c                         |  1 +
 drivers/usb/host/r8a66597-hcd.c                     |  1 +
 drivers/usb/host/usb-uclass.c                       |  1 +
 drivers/usb/host/xhci-brcm.c                        |  1 +
 drivers/usb/host/xhci-dwc3.c                        |  1 +
 drivers/usb/host/xhci-mvebu.c                       |  1 +
 drivers/usb/host/xhci-rcar.c                        |  1 +
 drivers/usb/musb-new/am35x.c                        |  1 +
 drivers/usb/musb-new/da8xx.c                        |  1 +
 drivers/usb/musb-new/mt85xx.c                       |  1 +
 drivers/usb/musb-new/musb_dsps.c                    |  1 +
 drivers/usb/musb-new/musb_gadget.c                  |  1 +
 drivers/usb/musb-new/musb_gadget_ep0.c              |  1 +
 drivers/usb/musb-new/omap2430.c                     |  1 +
 drivers/usb/musb-new/pic32.c                        |  1 +
 drivers/usb/musb-new/sunxi.c                        |  1 +
 drivers/usb/musb-new/ti-musb.c                      |  1 +
 drivers/video/am335x-fb.c                           |  1 +
 drivers/video/atmel_hlcdfb.c                        |  1 +
 drivers/video/atmel_lcdfb.c                         |  1 +
 drivers/video/backlight-uclass.c                    |  1 +
 drivers/video/bcm2835.c                             |  1 +
 drivers/video/bridge/anx6345.c                      |  1 +
 drivers/video/bridge/ps862x.c                       |  1 +
 drivers/video/bridge/video-bridge-uclass.c          |  1 +
 drivers/video/broadwell_igd.c                       |  1 +
 drivers/video/console_normal.c                      |  1 +
 drivers/video/console_rotate.c                      |  1 +
 drivers/video/console_truetype.c                    |  1 +
 drivers/video/coreboot.c                            |  1 +
 drivers/video/display-uclass.c                      |  1 +
 drivers/video/dsi-host-uclass.c                     |  1 +
 drivers/video/dw_mipi_dsi.c                         |  1 +
 drivers/video/efi.c                                 |  1 +
 drivers/video/exynos/exynos_dp.c                    |  1 +
 drivers/video/exynos/exynos_dp_lowlevel.c           |  1 +
 drivers/video/exynos/exynos_mipi_dsi.c              |  1 +
 drivers/video/exynos/exynos_mipi_dsi_common.c       |  1 +
 drivers/video/fsl_dcu_fb.c                          |  1 +
 drivers/video/hitachi_tx18d42vm_lcd.c               |  1 +
 drivers/video/ihs_video_out.c                       |  1 +
 drivers/video/ivybridge_igd.c                       |  1 +
 drivers/video/lg4573.c                              |  1 +
 drivers/video/logicore_dp_tx.c                      |  1 +
 drivers/video/mali_dp.c                             |  1 +
 drivers/video/meson/meson_dw_hdmi.c                 |  1 +
 drivers/video/meson/meson_vpu.c                     |  1 +
 drivers/video/mipi_dsi.c                            |  1 +
 drivers/video/mvebu_lcd.c                           |  1 +
 drivers/video/nexell/s5pxx18_dp.c                   |  1 +
 drivers/video/nexell/s5pxx18_dp_hdmi.c              |  1 +
 drivers/video/nexell/s5pxx18_dp_lvds.c              |  1 +
 drivers/video/nexell/s5pxx18_dp_mipi.c              |  1 +
 drivers/video/nexell_display.c                      |  1 +
 drivers/video/orisetech_otm8009a.c                  |  1 +
 drivers/video/panel-uclass.c                        |  1 +
 drivers/video/pwm_backlight.c                       |  1 +
 drivers/video/raydium-rm68200.c                     |  1 +
 drivers/video/rockchip/rk3288_mipi.c                |  1 +
 drivers/video/rockchip/rk3399_mipi.c                |  1 +
 drivers/video/rockchip/rk_edp.c                     |  1 +
 drivers/video/rockchip/rk_lvds.c                    |  1 +
 drivers/video/rockchip/rk_mipi.c                    |  1 +
 drivers/video/rockchip/rk_vop.c                     |  1 +
 drivers/video/sandbox_osd.c                         |  1 +
 drivers/video/simple_panel.c                        |  1 +
 drivers/video/simplefb.c                            |  1 +
 drivers/video/stm32/stm32_dsi.c                     |  1 +
 drivers/video/stm32/stm32_ltdc.c                    |  1 +
 drivers/video/sunxi/sunxi_de2.c                     |  1 +
 drivers/video/sunxi/sunxi_display.c                 |  1 +
 drivers/video/sunxi/sunxi_lcd.c                     |  1 +
 drivers/video/tda19988.c                            |  1 +
 drivers/video/tegra.c                               |  1 +
 drivers/video/tegra124/display.c                    |  1 +
 drivers/video/tegra124/dp.c                         |  1 +
 drivers/video/tegra124/sor.c                        |  1 +
 drivers/video/vidconsole-uclass.c                   |  1 +
 drivers/video/video-uclass.c                        |  1 +
 drivers/video/video_bmp.c                           |  1 +
 drivers/video/videomodes.c                          |  1 +
 drivers/virtio/virtio-uclass.c                      |  1 +
 drivers/virtio/virtio_blk.c                         |  1 +
 drivers/virtio/virtio_mmio.c                        |  1 +
 drivers/virtio/virtio_net.c                         |  1 +
 drivers/virtio/virtio_pci_legacy.c                  |  1 +
 drivers/virtio/virtio_pci_modern.c                  |  1 +
 drivers/virtio/virtio_ring.c                        |  1 +
 drivers/virtio/virtio_sandbox.c                     |  1 +
 drivers/w1-eeprom/ds2502.c                          |  1 +
 drivers/w1-eeprom/w1-eeprom-uclass.c                |  1 +
 drivers/w1/mxc_w1.c                                 |  1 +
 drivers/w1/w1-uclass.c                              |  1 +
 drivers/watchdog/armada-37xx-wdt.c                  |  1 +
 drivers/watchdog/at91sam9_wdt.c                     |  1 +
 drivers/watchdog/bcm6345_wdt.c                      |  1 +
 drivers/watchdog/cortina_wdt.c                      |  1 +
 drivers/watchdog/designware_wdt.c                   |  1 +
 drivers/watchdog/imx_watchdog.c                     |  1 +
 drivers/watchdog/mpc8xx_wdt.c                       |  1 +
 drivers/watchdog/mt7621_wdt.c                       |  1 +
 drivers/watchdog/mtk_wdt.c                          |  1 +
 drivers/watchdog/omap_wdt.c                         |  1 +
 drivers/watchdog/orion_wdt.c                        |  1 +
 drivers/watchdog/stm32mp_wdt.c                      |  1 +
 drivers/watchdog/wdt-uclass.c                       |  1 +
 drivers/watchdog/xilinx_tb_wdt.c                    |  1 +
 drivers/watchdog/xilinx_wwdt.c                      |  1 +
 env/common.c                                        |  1 +
 env/env.c                                           |  1 +
 env/ext4.c                                          |  1 +
 env/fat.c                                           |  1 +
 env/mmc.c                                           |  1 +
 env/nand.c                                          |  1 +
 env/remote.c                                        |  1 +
 env/sata.c                                          |  1 +
 env/sf.c                                            |  1 +
 env/ubi.c                                           |  1 +
 fs/btrfs/btrfs.c                                    |  1 +
 fs/cbfs/cbfs.c                                      |  1 +
 fs/ext4/ext4_common.c                               |  1 +
 fs/ext4/ext4_journal.c                              |  1 +
 fs/ext4/ext4_write.c                                |  1 +
 fs/ext4/ext4fs.c                                    |  1 +
 fs/fat/fat.c                                        |  1 +
 fs/fat/fat_write.c                                  |  1 +
 fs/fs.c                                             |  1 +
 fs/ubifs/debug.c                                    |  1 +
 fs/ubifs/io.c                                       |  1 +
 fs/ubifs/log.c                                      |  1 +
 fs/ubifs/lprops.c                                   |  1 +
 fs/ubifs/lpt_commit.c                               |  1 +
 fs/ubifs/orphan.c                                   |  1 +
 fs/ubifs/recovery.c                                 |  1 +
 fs/ubifs/replay.c                                   |  1 +
 fs/ubifs/scan.c                                     |  1 +
 fs/ubifs/super.c                                    |  1 +
 fs/ubifs/tnc.c                                      |  1 +
 fs/ubifs/tnc_misc.c                                 |  1 +
 fs/ubifs/ubifs.c                                    |  1 +
 fs/yaffs2/yaffs_uboot_glue.c                        |  1 +
 fs/yaffs2/yaffsfs.c                                 |  1 +
 fs/yaffs2/yportenv.h                                |  1 +
 include/acpi/acpi_s3.h                              |  1 +
 include/board.h                                     |  1 +
 include/common.h                                    |  1 -
 include/dfu.h                                       |  1 +
 include/dm/pinctrl.h                                |  1 +
 include/dwc3-uboot.h                                |  1 +
 include/eeprom.h                                    |  1 +
 include/hwspinlock.h                                |  1 +
 include/linux/soc/ti/ti_sci_protocol.h              |  1 +
 include/mipi_dsi.h                                  |  1 +
 include/power-domain.h                              |  1 +
 include/power/sandbox_pmic.h                        |  1 +
 include/regmap.h                                    |  1 +
 include/remoteproc.h                                |  1 +
 include/soc.h                                       |  1 +
 include/spi-mem.h                                   |  1 +
 include/spi_flash.h                                 |  1 +
 include/splash.h                                    |  1 +
 include/tlv_eeprom.h                                |  1 +
 include/u-boot/aes.h                                |  1 +
 include/u-boot/rsa.h                                |  1 +
 lib/acpi/acpi_device.c                              |  1 +
 lib/acpi/acpi_dp.c                                  |  1 +
 lib/acpi/acpi_table.c                               |  1 +
 lib/acpi/acpigen.c                                  |  1 +
 lib/aes/aes-decrypt.c                               |  1 +
 lib/bch.c                                           |  1 +
 lib/binman.c                                        |  1 +
 lib/crypto/asymmetric_type.c                        |  1 +
 lib/crypto/pkcs7_parser.c                           |  1 +
 lib/crypto/pkcs7_verify.c                           |  1 +
 lib/crypto/public_key.c                             |  1 +
 lib/crypto/rsa_helper.c                             |  1 +
 lib/crypto/x509_cert_parser.c                       |  1 +
 lib/efi/efi_app.c                                   |  1 +
 lib/efi/efi_info.c                                  |  1 +
 lib/efi/efi_stub.c                                  |  1 +
 lib/efi_driver/efi_block_device.c                   |  1 +
 lib/efi_loader/efi_variable_tee.c                   |  1 +
 lib/errno_str.c                                     |  1 +
 lib/fdtdec.c                                        |  1 +
 lib/hashtable.c                                     |  1 +
 lib/list_sort.c                                     |  1 +
 lib/lz4_wrapper.c                                   |  1 +
 lib/membuff.c                                       |  1 +
 lib/of_live.c                                       |  1 +
 lib/optee/optee.c                                   |  1 +
 lib/rsa/rsa-keyprop.c                               |  1 +
 lib/strto.c                                         |  1 +
 lib/trace.c                                         |  1 +
 lib/uuid.c                                          |  1 +
 lib/vsprintf.c                                      |  1 +
 net/eth-uclass.c                                    |  1 +
 net/mdio-mux-uclass.c                               |  1 +
 net/mdio-uclass.c                                   |  1 +
 net/net.c                                           |  1 +
 net/pcap.c                                          |  1 +
 test/bloblist.c                                     |  1 +
 test/dm/acpi.c                                      |  1 +
 test/dm/acpi_dp.c                                   |  1 +
 test/dm/acpigen.c                                   |  1 +
 test/dm/adc.c                                       |  1 +
 test/dm/blk.c                                       |  1 +
 test/dm/bus.c                                       |  1 +
 test/dm/button.c                                    |  1 +
 test/dm/core.c                                      |  1 +
 test/dm/eth.c                                       |  1 +
 test/dm/gpio.c                                      |  1 +
 test/dm/i2c.c                                       |  1 +
 test/dm/irq.c                                       |  1 +
 test/dm/k210_pll.c                                  |  1 +
 test/dm/led.c                                       |  1 +
 test/dm/mailbox.c                                   |  1 +
 test/dm/nop.c                                       |  1 +
 test/dm/pch.c                                       |  1 +
 test/dm/phy.c                                       |  1 +
 test/dm/pwm.c                                       |  1 +
 test/dm/regmap.c                                    |  1 +
 test/dm/regulator.c                                 |  1 +
 test/dm/remoteproc.c                                |  1 +
 test/dm/rtc.c                                       |  1 +
 test/dm/serial.c                                    |  1 +
 test/dm/sound.c                                     |  1 +
 test/dm/spi.c                                       |  1 +
 test/dm/syscon-reset.c                              |  1 +
 test/dm/syscon.c                                    |  1 +
 test/dm/sysreset.c                                  |  1 +
 test/dm/tee.c                                       |  1 +
 test/dm/test-driver.c                               |  1 +
 test/dm/test-fdt.c                                  |  1 +
 test/dm/test-uclass.c                               |  1 +
 test/dm/usb.c                                       |  1 +
 test/dm/video.c                                     |  1 +
 test/dm/virtio.c                                    |  1 +
 test/env/attr.c                                     |  1 +
 test/lib/test_errno_str.c                           |  1 +
 test/optee/cmd_ut_optee.c                           |  1 +
 test/overlay/cmd_ut_overlay.c                       |  1 +
 test/time_ut.c                                      |  1 +
 1553 files changed, 1558 insertions(+), 9 deletions(-)
diff mbox series

Patch

diff --git a/arch/arm/cpu/arm926ejs/mx25/generic.c b/arch/arm/cpu/arm926ejs/mx25/generic.c
index e9ebda4317c..8b74650b364 100644
--- a/arch/arm/cpu/arm926ejs/mx25/generic.c
+++ b/arch/arm/cpu/arm926ejs/mx25/generic.c
@@ -22,6 +22,7 @@ 
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 #ifdef CONFIG_FSL_ESDHC_IMX
 #include <fsl_esdhc_imx.h>
diff --git a/arch/arm/cpu/armv7/s5p-common/pwm.c b/arch/arm/cpu/armv7/s5p-common/pwm.c
index aef2e5574b4..67c9208084d 100644
--- a/arch/arm/cpu/armv7/s5p-common/pwm.c
+++ b/arch/arm/cpu/armv7/s5p-common/pwm.c
@@ -11,6 +11,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/pwm.h>
 #include <asm/arch/clk.h>
+#include <linux/errno.h>
 
 int pwm_enable(int pwm_id)
 {
diff --git a/arch/arm/cpu/armv7/vf610/generic.c b/arch/arm/cpu/armv7/vf610/generic.c
index 297a3d2378a..93418ce9a8c 100644
--- a/arch/arm/cpu/armv7/vf610/generic.c
+++ b/arch/arm/cpu/armv7/vf610/generic.c
@@ -23,6 +23,7 @@ 
 #include <fsl_esdhc_imx.h>
 #endif
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #ifdef CONFIG_FSL_ESDHC_IMX
diff --git a/arch/arm/cpu/armv7/virt-dt.c b/arch/arm/cpu/armv7/virt-dt.c
index 61c82f64699..d4818bf75fc 100644
--- a/arch/arm/cpu/armv7/virt-dt.c
+++ b/arch/arm/cpu/armv7/virt-dt.c
@@ -20,6 +20,7 @@ 
 #include <log.h>
 #include <stdio_dev.h>
 #include <linux/ctype.h>
+#include <linux/errno.h>
 #include <linux/types.h>
 #include <asm/global_data.h>
 #include <linux/libfdt.h>
diff --git a/arch/arm/cpu/armv7m/cache.c b/arch/arm/cpu/armv7m/cache.c
index f87e1d39367..abed2e36df4 100644
--- a/arch/arm/cpu/armv7m/cache.c
+++ b/arch/arm/cpu/armv7m/cache.c
@@ -13,6 +13,7 @@ 
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 /* Cache maintenance operation registers */
 
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ppa.c b/arch/arm/cpu/armv8/fsl-layerscape/ppa.c
index 0d458d0273e..60f2a4b002d 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/ppa.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/ppa.c
@@ -24,6 +24,7 @@ 
 #ifdef CONFIG_CHAIN_OF_TRUST
 #include <fsl_validate.h>
 #endif
+#include <linux/errno.h>
 
 #ifdef CONFIG_SYS_LS_PPA_FW_IN_NAND
 #include <nand.h>
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/soc.c b/arch/arm/cpu/armv8/fsl-layerscape/soc.c
index fb8560b4b9a..40e748b00a6 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/soc.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/soc.c
@@ -14,6 +14,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <log.h>
 #include <asm/arch/fsl_serdes.h>
diff --git a/arch/arm/cpu/armv8/s32v234/generic.c b/arch/arm/cpu/armv8/s32v234/generic.c
index 59900958cd2..575dbb1f609 100644
--- a/arch/arm/cpu/armv8/s32v234/generic.c
+++ b/arch/arm/cpu/armv8/s32v234/generic.c
@@ -20,6 +20,7 @@ 
 #include <div64.h>
 #include <errno.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 u32 get_cpu_rev(void)
 {
diff --git a/arch/arm/cpu/armv8/sec_firmware.c b/arch/arm/cpu/armv8/sec_firmware.c
index 8f7eef0d4c0..1b273db4f98 100644
--- a/arch/arm/cpu/armv8/sec_firmware.c
+++ b/arch/arm/cpu/armv8/sec_firmware.c
@@ -13,6 +13,7 @@ 
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/ptrace.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <asm/io.h>
 #include <asm/system.h>
diff --git a/arch/arm/cpu/armv8/spin_table.c b/arch/arm/cpu/armv8/spin_table.c
index f687b54d0e1..49e1903a29f 100644
--- a/arch/arm/cpu/armv8/spin_table.c
+++ b/arch/arm/cpu/armv8/spin_table.c
@@ -6,6 +6,7 @@ 
 
 #include <common.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <asm/spin_table.h>
 #include <linux/string.h>
diff --git a/arch/arm/cpu/pxa/cpuinfo.c b/arch/arm/cpu/pxa/cpuinfo.c
index 582c1fcaa7a..ff56c3a82be 100644
--- a/arch/arm/cpu/pxa/cpuinfo.c
+++ b/arch/arm/cpu/pxa/cpuinfo.c
@@ -11,6 +11,7 @@ 
 #include <asm/io.h>
 #include <errno.h>
 #include <linux/compiler.h>
+#include <linux/errno.h>
 
 #ifdef CONFIG_CPU_PXA25X
 #if ((CONFIG_SYS_INIT_SP_ADDR) != 0xfffff800)
diff --git a/arch/arm/include/asm/arch-tegra/cboot.h b/arch/arm/include/asm/arch-tegra/cboot.h
index 4e1da98d1f2..d89e784f2d2 100644
--- a/arch/arm/include/asm/arch-tegra/cboot.h
+++ b/arch/arm/include/asm/arch-tegra/cboot.h
@@ -7,6 +7,7 @@ 
 #define _TEGRA_CBOOT_H_
 
 #include <net.h>
+#include <linux/errno.h>
 
 #ifdef CONFIG_ARM64
 
diff --git a/arch/arm/lib/gic-v3-its.c b/arch/arm/lib/gic-v3-its.c
index 6cdcd1ed60c..45c8ae09350 100644
--- a/arch/arm/lib/gic-v3-its.c
+++ b/arch/arm/lib/gic-v3-its.c
@@ -10,6 +10,7 @@ 
 #include <asm/gic-v3.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/sizes.h>
 
diff --git a/arch/arm/mach-aspeed/ast2500/sdram_ast2500.c b/arch/arm/mach-aspeed/ast2500/sdram_ast2500.c
index cfb0374d60c..9eefeef5fb3 100644
--- a/arch/arm/mach-aspeed/ast2500/sdram_ast2500.c
+++ b/arch/arm/mach-aspeed/ast2500/sdram_ast2500.c
@@ -19,6 +19,7 @@ 
 #include <asm/arch/sdram_ast2500.h>
 #include <asm/arch/wdt.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <dt-bindings/clock/ast2500-scu.h>
 
diff --git a/arch/arm/mach-bcm283x/msg.c b/arch/arm/mach-bcm283x/msg.c
index ac43d51e64d..3c3eac9025b 100644
--- a/arch/arm/mach-bcm283x/msg.c
+++ b/arch/arm/mach-bcm283x/msg.c
@@ -9,6 +9,7 @@ 
 #include <stdio.h>
 #include <asm/arch/mbox.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 struct msg_set_power_state {
 	struct bcm2835_mbox_hdr hdr;
diff --git a/arch/arm/mach-imx/cmd_nandbcb.c b/arch/arm/mach-imx/cmd_nandbcb.c
index 2b7affaaccd..beb538677d9 100644
--- a/arch/arm/mach-imx/cmd_nandbcb.c
+++ b/arch/arm/mach-imx/cmd_nandbcb.c
@@ -20,6 +20,7 @@ 
 #include <vsprintf.h>
 #include <dm/devres.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <asm/io.h>
diff --git a/arch/arm/mach-imx/imx8/ahab.c b/arch/arm/mach-imx/imx8/ahab.c
index 1d92c07be24..fb1d067f9c5 100644
--- a/arch/arm/mach-imx/imx8/ahab.c
+++ b/arch/arm/mach-imx/imx8/ahab.c
@@ -18,6 +18,7 @@ 
 #include <asm/arch/image.h>
 #include <console.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c
index 5869dc85c18..d729c3536e7 100644
--- a/arch/arm/mach-imx/imx8/cpu.c
+++ b/arch/arm/mach-imx/imx8/cpu.c
@@ -28,6 +28,7 @@ 
 #include <asm/setup.h>
 #include <asm/mach-imx/boot_mode.h>
 #include <spl.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/arm/mach-imx/imx8/fdt.c b/arch/arm/mach-imx/imx8/fdt.c
index 0fd0c4bca09..239adfc2e5c 100644
--- a/arch/arm/mach-imx/imx8/fdt.c
+++ b/arch/arm/mach-imx/imx8/fdt.c
@@ -12,6 +12,7 @@ 
 #include <asm/u-boot.h>
 #include <dm/ofnode.h>
 #include <fdt_support.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/printk.h>
 #include <linux/string.h>
diff --git a/arch/arm/mach-imx/imx8/image.c b/arch/arm/mach-imx/imx8/image.c
index 9b4fc6f0905..528a42a5996 100644
--- a/arch/arm/mach-imx/imx8/image.c
+++ b/arch/arm/mach-imx/imx8/image.c
@@ -15,6 +15,7 @@ 
 #include <asm/arch/image.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/mach-imx/boot_mode.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define MMC_DEV		0
diff --git a/arch/arm/mach-imx/imx8/parse-container.c b/arch/arm/mach-imx/imx8/parse-container.c
index 3a1c8c7a5e5..6a3a4eaa7c7 100644
--- a/arch/arm/mach-imx/imx8/parse-container.c
+++ b/arch/arm/mach-imx/imx8/parse-container.c
@@ -10,6 +10,7 @@ 
 #include <stdio.h>
 #include <asm/arch/image.h>
 #include <asm/arch/sci/sci.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define SEC_SECURE_RAM_BASE		0x31800000UL
diff --git a/arch/arm/mach-imx/imx8/snvs_security_sc.c b/arch/arm/mach-imx/imx8/snvs_security_sc.c
index 6bb067e08bd..391d2d0e4b1 100644
--- a/arch/arm/mach-imx/imx8/snvs_security_sc.c
+++ b/arch/arm/mach-imx/imx8/snvs_security_sc.c
@@ -21,6 +21,7 @@ 
 #include <asm/arch-imx8/imx8-pins.h>
 #include <asm/arch-imx8/snvs_security_sc.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 
 /* Access to gd */
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mm.c b/arch/arm/mach-imx/imx8m/clock_imx8mm.c
index ff3943e5106..170e6c20853 100644
--- a/arch/arm/mach-imx/imx8m/clock_imx8mm.c
+++ b/arch/arm/mach-imx/imx8m/clock_imx8mm.c
@@ -16,6 +16,7 @@ 
 #include <errno.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mq.c b/arch/arm/mach-imx/imx8m/clock_imx8mq.c
index 444e9b7feee..0c74f99f440 100644
--- a/arch/arm/mach-imx/imx8m/clock_imx8mq.c
+++ b/arch/arm/mach-imx/imx8m/clock_imx8mq.c
@@ -14,6 +14,7 @@ 
 #include <asm/arch/sys_proto.h>
 #include <errno.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 
 static struct anamix_pll *ana_pll = (struct anamix_pll *)ANATOP_BASE_ADDR;
diff --git a/arch/arm/mach-imx/imx8m/clock_slice.c b/arch/arm/mach-imx/imx8m/clock_slice.c
index b5ed27a923e..ad0d553c1cf 100644
--- a/arch/arm/mach-imx/imx8m/clock_slice.c
+++ b/arch/arm/mach-imx/imx8m/clock_slice.c
@@ -10,6 +10,7 @@ 
 #include <asm/arch/imx-regs.h>
 #include <asm/io.h>
 #include <errno.h>
+#include <linux/errno.h>
 
 static struct ccm_reg *ccm_reg = (struct ccm_reg *)CCM_BASE_ADDR;
 
diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c
index 09830301e7b..8fff7f4f95b 100644
--- a/arch/arm/mach-imx/imx8m/soc.c
+++ b/arch/arm/mach-imx/imx8m/soc.c
@@ -32,6 +32,7 @@ 
 #include <imx_sip.h>
 #include <linux/arm-smccc.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-imx/imx_bootaux.c b/arch/arm/mach-imx/imx_bootaux.c
index c94da85bf76..02fa1d7b62b 100644
--- a/arch/arm/mach-imx/imx_bootaux.c
+++ b/arch/arm/mach-imx/imx_bootaux.c
@@ -15,6 +15,7 @@ 
 #include <linux/arm-smccc.h>
 #include <linux/compiler.h>
 #include <cpu_func.h>
+#include <linux/errno.h>
 
 int arch_auxiliary_core_up(u32 core_id, ulong addr)
 {
diff --git a/arch/arm/mach-imx/mx7ulp/clock.c b/arch/arm/mach-imx/mx7ulp/clock.c
index 10390a74165..c7dfa798b45 100644
--- a/arch/arm/mach-imx/mx7ulp/clock.c
+++ b/arch/arm/mach-imx/mx7ulp/clock.c
@@ -13,6 +13,7 @@ 
 #include <errno.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/arm/mach-imx/mx7ulp/pcc.c b/arch/arm/mach-imx/mx7ulp/pcc.c
index a70131dfa3b..1fd8b0a540f 100644
--- a/arch/arm/mach-imx/mx7ulp/pcc.c
+++ b/arch/arm/mach-imx/mx7ulp/pcc.c
@@ -12,6 +12,7 @@ 
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/pcc.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/errno.h>
 
 #define PCC_CLKSRC_TYPES 2
 #define PCC_CLKSRC_NUM 7
diff --git a/arch/arm/mach-imx/mx7ulp/scg.c b/arch/arm/mach-imx/mx7ulp/scg.c
index 6c24ec2d819..58bc3df1e78 100644
--- a/arch/arm/mach-imx/mx7ulp/scg.c
+++ b/arch/arm/mach-imx/mx7ulp/scg.c
@@ -13,6 +13,7 @@ 
 #include <asm/arch/pcc.h>
 #include <asm/arch/sys_proto.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 scg_p scg1_regs = (scg_p)SCG1_RBASE;
 
diff --git a/arch/arm/mach-ipq40xx/clock-ipq4019.c b/arch/arm/mach-ipq40xx/clock-ipq4019.c
index 7cf98a203c2..dae070f0ed6 100644
--- a/arch/arm/mach-ipq40xx/clock-ipq4019.c
+++ b/arch/arm/mach-ipq40xx/clock-ipq4019.c
@@ -12,6 +12,7 @@ 
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <linux/errno.h>
 
 struct msm_clk_priv {
 	phys_addr_t base;
diff --git a/arch/arm/mach-ipq40xx/pinctrl-snapdragon.c b/arch/arm/mach-ipq40xx/pinctrl-snapdragon.c
index 64b8b049fa1..08001da66f1 100644
--- a/arch/arm/mach-ipq40xx/pinctrl-snapdragon.c
+++ b/arch/arm/mach-ipq40xx/pinctrl-snapdragon.c
@@ -16,6 +16,7 @@ 
 #include <asm/io.h>
 #include <dm/pinctrl.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include "pinctrl-snapdragon.h"
 
 struct msm_pinctrl_priv {
diff --git a/arch/arm/mach-k3/sysfw-loader.c b/arch/arm/mach-k3/sysfw-loader.c
index f3c4bd61e8d..bfaf4952071 100644
--- a/arch/arm/mach-k3/sysfw-loader.c
+++ b/arch/arm/mach-k3/sysfw-loader.c
@@ -15,6 +15,7 @@ 
 #include <vsprintf.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include <g_dnl.h>
 #include <usb.h>
diff --git a/arch/arm/mach-keystone/cmd_mon.c b/arch/arm/mach-keystone/cmd_mon.c
index e98df01e89f..5887a89ff11 100644
--- a/arch/arm/mach-keystone/cmd_mon.c
+++ b/arch/arm/mach-keystone/cmd_mon.c
@@ -11,6 +11,7 @@ 
 #include <image.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <mach/mon.h>
 asm(".arch_extension sec\n\t");
diff --git a/arch/arm/mach-meson/board-common.c b/arch/arm/mach-meson/board-common.c
index a8d0254d576..cdae5f98770 100644
--- a/arch/arm/mach-meson/board-common.c
+++ b/arch/arm/mach-meson/board-common.c
@@ -14,6 +14,7 @@ 
 #include <asm/global_data.h>
 #include <asm/ptrace.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/err.h>
 #include <asm/arch/mem.h>
diff --git a/arch/arm/mach-meson/board-g12a.c b/arch/arm/mach-meson/board-g12a.c
index b698298e13e..cdaed763b42 100644
--- a/arch/arm/mach-meson/board-g12a.c
+++ b/arch/arm/mach-meson/board-g12a.c
@@ -17,6 +17,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/armv8/mmu.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <usb.h>
 #include <linux/usb/otg.h>
diff --git a/arch/arm/mach-meson/board-gx.c b/arch/arm/mach-meson/board-gx.c
index ec2f1c07314..b38811fb951 100644
--- a/arch/arm/mach-meson/board-gx.c
+++ b/arch/arm/mach-meson/board-gx.c
@@ -16,6 +16,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/armv8/mmu.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/sizes.h>
 #include <usb.h>
diff --git a/arch/arm/mach-meson/sm.c b/arch/arm/mach-meson/sm.c
index f4f54fafce9..62feaccfce0 100644
--- a/arch/arm/mach-meson/sm.c
+++ b/arch/arm/mach-meson/sm.c
@@ -17,6 +17,7 @@ 
 #include <asm/ptrace.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <dm.h>
 #include <linux/bitfield.h>
diff --git a/arch/arm/mach-mvebu/arm64-common.c b/arch/arm/mach-mvebu/arm64-common.c
index 68c5849e2c4..513dcbf9878 100644
--- a/arch/arm/mach-mvebu/arm64-common.c
+++ b/arch/arm/mach-mvebu/arm64-common.c
@@ -11,6 +11,7 @@ 
 #include <asm/global_data.h>
 #include <asm/ptrace.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/sizes.h>
 #include <pci.h>
diff --git a/arch/arm/mach-mvebu/armada3700/cpu.c b/arch/arm/mach-mvebu/armada3700/cpu.c
index a02ab17beae..a6b92cf8fb8 100644
--- a/arch/arm/mach-mvebu/armada3700/cpu.c
+++ b/arch/arm/mach-mvebu/armada3700/cpu.c
@@ -13,6 +13,7 @@ 
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <asm/io.h>
 #include <asm/system.h>
diff --git a/arch/arm/mach-mvebu/efuse.c b/arch/arm/mach-mvebu/efuse.c
index c79eee98fe9..8ada3cf93e7 100644
--- a/arch/arm/mach-mvebu/efuse.c
+++ b/arch/arm/mach-mvebu/efuse.c
@@ -12,6 +12,7 @@ 
 #include <asm/arch/soc.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/mbus.h>
 
 #if defined(CONFIG_MVEBU_EFUSE_FAKE)
diff --git a/arch/arm/mach-nexell/clock.c b/arch/arm/mach-nexell/clock.c
index 0fac5efc2a7..38f6b1fc901 100644
--- a/arch/arm/mach-nexell/clock.c
+++ b/arch/arm/mach-nexell/clock.c
@@ -11,6 +11,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/nexell.h>
 #include <asm/arch/clk.h>
+#include <linux/errno.h>
 
 /*
  * clock generator macros
diff --git a/arch/arm/mach-omap2/sec-common.c b/arch/arm/mach-omap2/sec-common.c
index f96d1379bb3..f24e0ad6366 100644
--- a/arch/arm/mach-omap2/sec-common.c
+++ b/arch/arm/mach-omap2/sec-common.c
@@ -21,6 +21,7 @@ 
 #include <stdarg.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <asm/arch/sys_proto.h>
diff --git a/arch/arm/mach-rockchip/board.c b/arch/arm/mach-rockchip/board.c
index 76ad4721261..b7835a14a90 100644
--- a/arch/arm/mach-rockchip/board.c
+++ b/arch/arm/mach-rockchip/board.c
@@ -19,6 +19,7 @@ 
 #include <asm/arch-rockchip/periph.h>
 #include <asm/arch-rockchip/misc.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <power/regulator.h>
 
diff --git a/arch/arm/mach-rockchip/boot_mode.c b/arch/arm/mach-rockchip/boot_mode.c
index fefffc71ffa..20d44d424be 100644
--- a/arch/arm/mach-rockchip/boot_mode.c
+++ b/arch/arm/mach-rockchip/boot_mode.c
@@ -13,6 +13,7 @@ 
 #include <asm/arch-rockchip/boot_mode.h>
 #include <dm/device.h>
 #include <dm/uclass.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/arch/arm/mach-rockchip/spl-boot-order.c b/arch/arm/mach-rockchip/spl-boot-order.c
index ddc4081dbb4..57ea84a9346 100644
--- a/arch/arm/mach-rockchip/spl-boot-order.c
+++ b/arch/arm/mach-rockchip/spl-boot-order.c
@@ -9,6 +9,7 @@ 
 #include <mmc.h>
 #include <spl.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #if CONFIG_IS_ENABLED(OF_LIBFDT)
diff --git a/arch/arm/mach-snapdragon/clock-snapdragon.c b/arch/arm/mach-snapdragon/clock-snapdragon.c
index 69d65c82e3e..78e30ea5bab 100644
--- a/arch/arm/mach-snapdragon/clock-snapdragon.c
+++ b/arch/arm/mach-snapdragon/clock-snapdragon.c
@@ -13,6 +13,7 @@ 
 #include <errno.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include "clock-snapdragon.h"
 
 /* CBCR register fields */
diff --git a/arch/arm/mach-snapdragon/dram.c b/arch/arm/mach-snapdragon/dram.c
index c3e61007417..df7148fee11 100644
--- a/arch/arm/mach-snapdragon/dram.c
+++ b/arch/arm/mach-snapdragon/dram.c
@@ -14,6 +14,7 @@ 
 #include <fdt_support.h>
 #include <stdio.h>
 #include <asm/arch/dram.h>
+#include <linux/errno.h>
 
 #define SMEM_USABLE_RAM_PARTITION_TABLE 402
 #define RAM_PART_NAME_LENGTH            16
diff --git a/arch/arm/mach-snapdragon/pinctrl-snapdragon.c b/arch/arm/mach-snapdragon/pinctrl-snapdragon.c
index 4c2af213082..b1c075a44ac 100644
--- a/arch/arm/mach-snapdragon/pinctrl-snapdragon.c
+++ b/arch/arm/mach-snapdragon/pinctrl-snapdragon.c
@@ -12,6 +12,7 @@ 
 #include <asm/io.h>
 #include <dm/pinctrl.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include "pinctrl-snapdragon.h"
 
 struct msm_pinctrl_priv {
diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach-socfpga/board.c
index 4e9b57ba2ed..101456f1474 100644
--- a/arch/arm/mach-socfpga/board.c
+++ b/arch/arm/mach-socfpga/board.c
@@ -16,6 +16,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 #include <usb.h>
 #include <usb/dwc2_udc.h>
diff --git a/arch/arm/mach-socfpga/clock_manager_agilex.c b/arch/arm/mach-socfpga/clock_manager_agilex.c
index 0582b0b0857..9c229de4b92 100644
--- a/arch/arm/mach-socfpga/clock_manager_agilex.c
+++ b/arch/arm/mach-socfpga/clock_manager_agilex.c
@@ -15,6 +15,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dt-bindings/clock/agilex-clock.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/arm/mach-socfpga/clock_manager_arria10.c b/arch/arm/mach-socfpga/clock_manager_arria10.c
index 9379005444d..82c90fb526c 100644
--- a/arch/arm/mach-socfpga/clock_manager_arria10.c
+++ b/arch/arm/mach-socfpga/clock_manager_arria10.c
@@ -13,6 +13,7 @@ 
 #include <dm/device-internal.h>
 #include <asm/arch/clock_manager.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #ifdef CONFIG_SPL_BUILD
diff --git a/arch/arm/mach-socfpga/mailbox_s10.c b/arch/arm/mach-socfpga/mailbox_s10.c
index 58d94694b7e..85df32968d8 100644
--- a/arch/arm/mach-socfpga/mailbox_s10.c
+++ b/arch/arm/mach-socfpga/mailbox_s10.c
@@ -13,6 +13,7 @@ 
 #include <asm/arch/mailbox_s10.h>
 #include <asm/arch/system_manager.h>
 #include <asm/secure.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/arm/mach-socfpga/misc.c b/arch/arm/mach-socfpga/misc.c
index 406023f1ef9..5a5f1a82779 100644
--- a/arch/arm/mach-socfpga/misc.c
+++ b/arch/arm/mach-socfpga/misc.c
@@ -15,6 +15,7 @@ 
 #include <errno.h>
 #include <fdtdec.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <altera.h>
 #include <miiphy.h>
diff --git a/arch/arm/mach-socfpga/misc_gen5.c b/arch/arm/mach-socfpga/misc_gen5.c
index 9672496ad46..033ed6229f7 100644
--- a/arch/arm/mach-socfpga/misc_gen5.c
+++ b/arch/arm/mach-socfpga/misc_gen5.c
@@ -14,6 +14,7 @@ 
 #include <fdtdec.h>
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <altera.h>
 #include <miiphy.h>
diff --git a/arch/arm/mach-socfpga/misc_s10.c b/arch/arm/mach-socfpga/misc_s10.c
index e2b6a85cfd1..c5c72acfa20 100644
--- a/arch/arm/mach-socfpga/misc_s10.c
+++ b/arch/arm/mach-socfpga/misc_s10.c
@@ -22,6 +22,7 @@ 
 #include <asm/arch/misc.h>
 #include <asm/pl310.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <asm/arch/mailbox_s10.h>
 #include <linux/string.h>
diff --git a/arch/arm/mach-socfpga/pinmux_arria10.c b/arch/arm/mach-socfpga/pinmux_arria10.c
index a38b19c395e..aee51c039c9 100644
--- a/arch/arm/mach-socfpga/pinmux_arria10.c
+++ b/arch/arm/mach-socfpga/pinmux_arria10.c
@@ -8,6 +8,7 @@ 
 #include <asm/io.h>
 #include <common.h>
 #include <fdtdec.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static int do_pinctr_pin(const void *blob, int child, const char *node_name)
diff --git a/arch/arm/mach-socfpga/scan_manager.c b/arch/arm/mach-socfpga/scan_manager.c
index 36d6880141e..d5601739ef6 100644
--- a/arch/arm/mach-socfpga/scan_manager.c
+++ b/arch/arm/mach-socfpga/scan_manager.c
@@ -10,6 +10,7 @@ 
 #include <asm/arch/scan_manager.h>
 #include <asm/arch/system_manager.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 /*
  * Maximum polling loop to wait for IO scan chain engine becomes idle
diff --git a/arch/arm/mach-socfpga/wrap_iocsr_config.c b/arch/arm/mach-socfpga/wrap_iocsr_config.c
index f810fade92a..01864be5edb 100644
--- a/arch/arm/mach-socfpga/wrap_iocsr_config.c
+++ b/arch/arm/mach-socfpga/wrap_iocsr_config.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <errno.h>
 #include <asm/arch/clock_manager.h>
+#include <linux/errno.h>
 
 /* Board-specific header. */
 #include <qts/iocsr_config.h>
diff --git a/arch/arm/mach-stm32mp/bsec.c b/arch/arm/mach-stm32mp/bsec.c
index 7bd9c06de57..d3c1262ee84 100644
--- a/arch/arm/mach-stm32mp/bsec.c
+++ b/arch/arm/mach-stm32mp/bsec.c
@@ -11,6 +11,7 @@ 
 #include <asm/arch/bsec.h>
 #include <asm/arch/stm32mp1_smc.h>
 #include <linux/arm-smccc.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <linux/printk.h>
 
diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
index 3ed7b8d3b38..4b14326d65f 100644
--- a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
+++ b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
@@ -17,6 +17,7 @@ 
 #include <asm/u-boot.h>
 #include <dm/uclass.h>
 #include <jffs2/load_kernel.h>
+#include <linux/errno.h>
 #include <linux/list.h>
 #include <linux/list_sort.h>
 #include <linux/mtd/mtd.h>
diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c
index 1fbb870f581..f16bfff2428 100644
--- a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c
+++ b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c
@@ -15,6 +15,7 @@ 
 #include <dm/lists.h>
 #include <dm/device-internal.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include "stm32prog.h"
diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c
index 616f556ab90..15ca72043a3 100644
--- a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c
+++ b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c
@@ -11,6 +11,7 @@ 
 #include <vsprintf.h>
 #include <asm/arch/stm32prog.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include "stm32prog.h"
diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm32mp/cpu.c
index e31d33d3a30..4eadd20f065 100644
--- a/arch/arm/mach-stm32mp/cpu.c
+++ b/arch/arm/mach-stm32mp/cpu.c
@@ -22,6 +22,7 @@ 
 #include <dm/device.h>
 #include <dm/uclass.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 /* RCC register */
diff --git a/arch/arm/mach-stm32mp/include/mach/stm32mp1_smc.h b/arch/arm/mach-stm32mp/include/mach/stm32mp1_smc.h
index 1b2bba3d34c..fbc082703dc 100644
--- a/arch/arm/mach-stm32mp/include/mach/stm32mp1_smc.h
+++ b/arch/arm/mach-stm32mp/include/mach/stm32mp1_smc.h
@@ -7,6 +7,7 @@ 
 #define __STM32MP1_SMC_H__
 
 #include <linux/arm-smccc.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 /*
diff --git a/arch/arm/mach-stm32mp/pwr_regulator.c b/arch/arm/mach-stm32mp/pwr_regulator.c
index eb024b85116..954603f6745 100644
--- a/arch/arm/mach-stm32mp/pwr_regulator.c
+++ b/arch/arm/mach-stm32mp/pwr_regulator.c
@@ -12,6 +12,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 
diff --git a/arch/arm/mach-stm32mp/spl.c b/arch/arm/mach-stm32mp/spl.c
index c23195510ad..d2aae1a69f1 100644
--- a/arch/arm/mach-stm32mp/spl.c
+++ b/arch/arm/mach-stm32mp/spl.c
@@ -16,6 +16,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 
 u32 spl_boot_device(void)
diff --git a/arch/arm/mach-sunxi/cpu_info.c b/arch/arm/mach-sunxi/cpu_info.c
index 5198fb555a9..5a7d03dce89 100644
--- a/arch/arm/mach-sunxi/cpu_info.c
+++ b/arch/arm/mach-sunxi/cpu_info.c
@@ -13,6 +13,7 @@ 
 #include <asm/arch/clock.h>
 #include <axp_pmic.h>
 #include <errno.h>
+#include <linux/errno.h>
 
 #ifdef CONFIG_MACH_SUN6I
 int sunxi_get_ss_bonding_id(void)
diff --git a/arch/arm/mach-sunxi/dram_sun8i_a33.c b/arch/arm/mach-sunxi/dram_sun8i_a33.c
index d99a38b10aa..d5d324860e3 100644
--- a/arch/arm/mach-sunxi/dram_sun8i_a33.c
+++ b/arch/arm/mach-sunxi/dram_sun8i_a33.c
@@ -15,6 +15,7 @@ 
 #include <asm/arch/dram.h>
 #include <asm/arch/prcm.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 /* PLL runs at 2x dram-clk, controller runs at PLL / 4 (dram-clk / 2) */
 #define DRAM_CLK_MUL 2
diff --git a/arch/arm/mach-sunxi/dram_sun8i_a83t.c b/arch/arm/mach-sunxi/dram_sun8i_a83t.c
index a3f833dd341..8a32ea4f0a1 100644
--- a/arch/arm/mach-sunxi/dram_sun8i_a83t.c
+++ b/arch/arm/mach-sunxi/dram_sun8i_a83t.c
@@ -15,6 +15,7 @@ 
 #include <asm/arch/dram.h>
 #include <asm/arch/prcm.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define DRAM_CLK_MUL 2
 #define DRAM_CLK_DIV 1
diff --git a/arch/arm/mach-sunxi/p2wi.c b/arch/arm/mach-sunxi/p2wi.c
index 7c5c12254ea..550b37b3663 100644
--- a/arch/arm/mach-sunxi/p2wi.c
+++ b/arch/arm/mach-sunxi/p2wi.c
@@ -23,6 +23,7 @@ 
 #include <asm/arch/prcm.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/errno.h>
 
 void p2wi_init(void)
 {
diff --git a/arch/arm/mach-sunxi/rsb.c b/arch/arm/mach-sunxi/rsb.c
index 01bb09b7478..2ec63f5a568 100644
--- a/arch/arm/mach-sunxi/rsb.c
+++ b/arch/arm/mach-sunxi/rsb.c
@@ -15,6 +15,7 @@ 
 #include <asm/arch/gpio.h>
 #include <asm/arch/prcm.h>
 #include <asm/arch/rsb.h>
+#include <linux/errno.h>
 
 static int rsb_set_device_mode(void);
 
diff --git a/arch/arm/mach-tegra/cboot.c b/arch/arm/mach-tegra/cboot.c
index 4fc9a6706a4..14f75625cec 100644
--- a/arch/arm/mach-tegra/cboot.c
+++ b/arch/arm/mach-tegra/cboot.c
@@ -17,6 +17,7 @@ 
 #include <string.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c
index 6b587209c1c..9056fe0dd31 100644
--- a/arch/arm/mach-tegra/clock.c
+++ b/arch/arm/mach-tegra/clock.c
@@ -20,6 +20,7 @@ 
 #include <asm/arch-tegra/pmc.h>
 #include <asm/arch-tegra/timer.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 /*
  * This is our record of the current clock rate of each clock. We don't
diff --git a/arch/arm/mach-tegra/ivc.c b/arch/arm/mach-tegra/ivc.c
index 66c1276f4b8..216673e4367 100644
--- a/arch/arm/mach-tegra/ivc.c
+++ b/arch/arm/mach-tegra/ivc.c
@@ -8,6 +8,7 @@ 
 #include <asm/io.h>
 #include <asm/arch-tegra/ivc.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #define TEGRA_IVC_ALIGN 64
diff --git a/arch/arm/mach-tegra/powergate.c b/arch/arm/mach-tegra/powergate.c
index c5ced7e3f38..5b3e3d8f56e 100644
--- a/arch/arm/mach-tegra/powergate.c
+++ b/arch/arm/mach-tegra/powergate.c
@@ -7,6 +7,7 @@ 
 #include <errno.h>
 #include <time.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #include <asm/io.h>
 #include <asm/types.h>
diff --git a/arch/arm/mach-tegra/tegra124/xusb-padctl.c b/arch/arm/mach-tegra/tegra124/xusb-padctl.c
index a1136f1558b..6985515499f 100644
--- a/arch/arm/mach-tegra/tegra124/xusb-padctl.c
+++ b/arch/arm/mach-tegra/tegra124/xusb-padctl.c
@@ -13,6 +13,7 @@ 
 #include <dm/of_access.h>
 #include <dm/ofnode.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #include "../xusb-padctl-common.h"
diff --git a/arch/arm/mach-tegra/tegra20/clock.c b/arch/arm/mach-tegra/tegra20/clock.c
index fc197a050c5..c8db06cf66c 100644
--- a/arch/arm/mach-tegra/tegra20/clock.c
+++ b/arch/arm/mach-tegra/tegra20/clock.c
@@ -20,6 +20,7 @@ 
 #include <div64.h>
 #include <fdtdec.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 /*
diff --git a/arch/arm/mach-tegra/tegra210/clock.c b/arch/arm/mach-tegra/tegra210/clock.c
index 7f8c3c3a7c7..48f7e354108 100644
--- a/arch/arm/mach-tegra/tegra210/clock.c
+++ b/arch/arm/mach-tegra/tegra210/clock.c
@@ -23,6 +23,7 @@ 
 #include <fdtdec.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 /*
  * Clock types that we can use as a source. The Tegra210 has muxes for the
diff --git a/arch/arm/mach-tegra/tegra210/xusb-padctl.c b/arch/arm/mach-tegra/tegra210/xusb-padctl.c
index 0af6e256ad1..572ba95d5b0 100644
--- a/arch/arm/mach-tegra/tegra210/xusb-padctl.c
+++ b/arch/arm/mach-tegra/tegra210/xusb-padctl.c
@@ -13,6 +13,7 @@ 
 #include <dm/of_access.h>
 #include <dm/ofnode.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #include "../xusb-padctl-common.h"
diff --git a/arch/arm/mach-tegra/tegra30/clock.c b/arch/arm/mach-tegra/tegra30/clock.c
index 38b53cbbe48..b35f02eedd4 100644
--- a/arch/arm/mach-tegra/tegra30/clock.c
+++ b/arch/arm/mach-tegra/tegra30/clock.c
@@ -19,6 +19,7 @@ 
 #include <div64.h>
 #include <fdtdec.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 /*
diff --git a/arch/arm/mach-tegra/xusb-padctl-common.c b/arch/arm/mach-tegra/xusb-padctl-common.c
index 42d64cf2c75..94a271311ce 100644
--- a/arch/arm/mach-tegra/xusb-padctl-common.c
+++ b/arch/arm/mach-tegra/xusb-padctl-common.c
@@ -8,6 +8,7 @@ 
 #include <common.h>
 #include <errno.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/arch/arm/mach-tegra/xusb-padctl-dummy.c b/arch/arm/mach-tegra/xusb-padctl-dummy.c
index f2d90302f6d..b3c5c9453b2 100644
--- a/arch/arm/mach-tegra/xusb-padctl-dummy.c
+++ b/arch/arm/mach-tegra/xusb-padctl-dummy.c
@@ -5,6 +5,7 @@ 
 
 #include <common.h>
 #include <errno.h>
+#include <linux/errno.h>
 
 #include <asm/arch-tegra/xusb-padctl.h>
 
diff --git a/arch/arm/mach-zynq/clk.c b/arch/arm/mach-zynq/clk.c
index c22f13c2402..188f3803cad 100644
--- a/arch/arm/mach-zynq/clk.c
+++ b/arch/arm/mach-zynq/clk.c
@@ -12,6 +12,7 @@ 
 #include <asm/arch/clk.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/arm/mach-zynq/cpu.c b/arch/arm/mach-zynq/cpu.c
index e9082217d55..d7933afee41 100644
--- a/arch/arm/mach-zynq/cpu.c
+++ b/arch/arm/mach-zynq/cpu.c
@@ -15,6 +15,7 @@ 
 #include <asm/arch/ps7_init_gpl.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 #define ZYNQ_SILICON_VER_MASK	0xF0000000
 #define ZYNQ_SILICON_VER_SHIFT	28
diff --git a/arch/arm/mach-zynqmp/cpu.c b/arch/arm/mach-zynqmp/cpu.c
index 341b5f1af46..892cfb239a0 100644
--- a/arch/arm/mach-zynqmp/cpu.c
+++ b/arch/arm/mach-zynqmp/cpu.c
@@ -17,6 +17,7 @@ 
 #include <zynqmp_firmware.h>
 #include <asm/cache.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define ZYNQ_SILICON_VER_MASK	0xF000
diff --git a/arch/m68k/lib/fec.c b/arch/m68k/lib/fec.c
index 3b76d1392bf..4f013238928 100644
--- a/arch/m68k/lib/fec.c
+++ b/arch/m68k/lib/fec.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <stdio.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 
diff --git a/arch/nios2/cpu/cpu.c b/arch/nios2/cpu/cpu.c
index 0203348df01..f13e61b6a98 100644
--- a/arch/nios2/cpu/cpu.c
+++ b/arch/nios2/cpu/cpu.c
@@ -16,6 +16,7 @@ 
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/system.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/powerpc/cpu/mpc85xx/ether_fcc.c b/arch/powerpc/cpu/mpc85xx/ether_fcc.c
index 35bc146a38b..5504ded9e05 100644
--- a/arch/powerpc/cpu/mpc85xx/ether_fcc.c
+++ b/arch/powerpc/cpu/mpc85xx/ether_fcc.c
@@ -33,6 +33,7 @@ 
 #include <config.h>
 #include <net.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
diff --git a/arch/riscv/lib/andes_plic.c b/arch/riscv/lib/andes_plic.c
index eb3463b49a8..f892548a6c5 100644
--- a/arch/riscv/lib/andes_plic.c
+++ b/arch/riscv/lib/andes_plic.c
@@ -19,6 +19,7 @@ 
 #include <asm/syscon.h>
 #include <cpu.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /* pending register */
diff --git a/arch/riscv/lib/image.c b/arch/riscv/lib/image.c
index 636b6597c06..88563331b33 100644
--- a/arch/riscv/lib/image.c
+++ b/arch/riscv/lib/image.c
@@ -12,6 +12,7 @@ 
 #include <errno.h>
 #include <stdio.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <linux/stddef.h>
 
diff --git a/arch/riscv/lib/sbi.c b/arch/riscv/lib/sbi.c
index 8fbc23839dd..984499960a1 100644
--- a/arch/riscv/lib/sbi.c
+++ b/arch/riscv/lib/sbi.c
@@ -10,6 +10,7 @@ 
 #include <common.h>
 #include <asm/encoding.h>
 #include <asm/sbi.h>
+#include <linux/errno.h>
 
 struct sbiret sbi_ecall(int ext, int fid, unsigned long arg0,
 			unsigned long arg1, unsigned long arg2,
diff --git a/arch/riscv/lib/smp.c b/arch/riscv/lib/smp.c
index 879b7ab9a78..09dd439b59a 100644
--- a/arch/riscv/lib/smp.c
+++ b/arch/riscv/lib/smp.c
@@ -10,6 +10,7 @@ 
 #include <asm/barrier.h>
 #include <asm/global_data.h>
 #include <asm/smp.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c
index 12db5249ee1..4b8af862e60 100644
--- a/arch/sandbox/cpu/cpu.c
+++ b/arch/sandbox/cpu/cpu.c
@@ -13,6 +13,7 @@ 
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <os.h>
 #include <asm/io.h>
diff --git a/arch/sandbox/cpu/eth-raw-os.c b/arch/sandbox/cpu/eth-raw-os.c
index 8ef8f65ebaf..00b3785bad9 100644
--- a/arch/sandbox/cpu/eth-raw-os.c
+++ b/arch/sandbox/cpu/eth-raw-os.c
@@ -7,6 +7,7 @@ 
 #include <asm/eth-raw-os.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <net/if.h>
 #include <netinet/in.h>
diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c
index f0721d3f7c5..581a48ea9ed 100644
--- a/arch/sandbox/cpu/os.c
+++ b/arch/sandbox/cpu/os.c
@@ -17,6 +17,7 @@ 
 #include <time.h>
 #include <unistd.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <sys/mman.h>
 #include <sys/stat.h>
diff --git a/arch/sandbox/cpu/sdl.c b/arch/sandbox/cpu/sdl.c
index 8673e601e5e..c1c9bb68e0a 100644
--- a/arch/sandbox/cpu/sdl.c
+++ b/arch/sandbox/cpu/sdl.c
@@ -7,6 +7,7 @@ 
 #include <stdio.h>
 #include <unistd.h>
 #include <stdbool.h>
+#include <linux/errno.h>
 #include <linux/input.h>
 #include <SDL2/SDL.h>
 #include <asm/state.h>
diff --git a/arch/sandbox/cpu/spl.c b/arch/sandbox/cpu/spl.c
index 41591d6528c..52cabd7ff12 100644
--- a/arch/sandbox/cpu/spl.c
+++ b/arch/sandbox/cpu/spl.c
@@ -14,6 +14,7 @@ 
 #include <asm/global_data.h>
 #include <asm/spl.h>
 #include <asm/state.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c
index b05daa01ed7..2c6f90740f3 100644
--- a/arch/sandbox/cpu/start.c
+++ b/arch/sandbox/cpu/start.c
@@ -20,6 +20,7 @@ 
 #include <asm/state.h>
 #include <asm/u-boot.h>
 #include <linux/ctype.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/sandbox/cpu/state.c b/arch/sandbox/cpu/state.c
index bfc4f0b8def..35bc7586fa5 100644
--- a/arch/sandbox/cpu/state.c
+++ b/arch/sandbox/cpu/state.c
@@ -11,6 +11,7 @@ 
 #include <stdio.h>
 #include <asm/malloc.h>
 #include <asm/state.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /* Main state record for the sandbox */
diff --git a/arch/sandbox/include/asm/sdl.h b/arch/sandbox/include/asm/sdl.h
index 47fc4889d20..2a98a7f49b2 100644
--- a/arch/sandbox/include/asm/sdl.h
+++ b/arch/sandbox/include/asm/sdl.h
@@ -7,6 +7,7 @@ 
 #define __SANDBOX_SDL_H
 
 #include <errno.h>
+#include <linux/errno.h>
 
 #ifdef CONFIG_SANDBOX_SDL
 
diff --git a/arch/sandbox/lib/pci_io.c b/arch/sandbox/lib/pci_io.c
index b0d7d42adf5..b7ce34aa1ea 100644
--- a/arch/sandbox/lib/pci_io.c
+++ b/arch/sandbox/lib/pci_io.c
@@ -14,6 +14,7 @@ 
 #include <log.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 int pci_map_physmem(phys_addr_t paddr, unsigned long *lenp,
 		    struct udevice **devp, void **ptrp)
diff --git a/arch/x86/cpu/acpi_gpe.c b/arch/x86/cpu/acpi_gpe.c
index 47ee817eb7a..5610d543723 100644
--- a/arch/x86/cpu/acpi_gpe.c
+++ b/arch/x86/cpu/acpi_gpe.c
@@ -13,6 +13,7 @@ 
 #include <asm/io.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/x86-irq.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /**
diff --git a/arch/x86/cpu/apollolake/fsp_bindings.c b/arch/x86/cpu/apollolake/fsp_bindings.c
index d1190075495..bea3a259345 100644
--- a/arch/x86/cpu/apollolake/fsp_bindings.c
+++ b/arch/x86/cpu/apollolake/fsp_bindings.c
@@ -7,6 +7,7 @@ 
 #include <dm.h>
 #include <log.h>
 #include <asm/arch/fsp_bindings.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /**
diff --git a/arch/x86/cpu/apollolake/fsp_m.c b/arch/x86/cpu/apollolake/fsp_m.c
index cef937573b0..83f94d20f58 100644
--- a/arch/x86/cpu/apollolake/fsp_m.c
+++ b/arch/x86/cpu/apollolake/fsp_m.c
@@ -11,6 +11,7 @@ 
 #include <asm/arch/fsp_bindings.h>
 #include <asm/fsp2/fsp_internal.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 
 int fspm_update_config(struct udevice *dev, struct fspm_upd *upd)
 {
diff --git a/arch/x86/cpu/apollolake/fsp_s.c b/arch/x86/cpu/apollolake/fsp_s.c
index a4e1c511614..c6da4bbfce6 100644
--- a/arch/x86/cpu/apollolake/fsp_s.c
+++ b/arch/x86/cpu/apollolake/fsp_s.c
@@ -28,6 +28,7 @@ 
 #include <asm/arch/fsp/fsp_s_upd.h>
 #include <dm/uclass-internal.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define PCH_P2SB_E0		0xe0
 #define HIDE_BIT		BIT(0)
diff --git a/arch/x86/cpu/apollolake/lpc.c b/arch/x86/cpu/apollolake/lpc.c
index b81a458f2eb..1de8c4a9804 100644
--- a/arch/x86/cpu/apollolake/lpc.c
+++ b/arch/x86/cpu/apollolake/lpc.c
@@ -13,6 +13,7 @@ 
 #include <asm/pci.h>
 #include <asm/arch/iomap.h>
 #include <asm/arch/lpc.h>
+#include <linux/errno.h>
 #include <linux/log2.h>
 
 void lpc_enable_fixed_io_ranges(uint io_enables)
diff --git a/arch/x86/cpu/apollolake/punit.c b/arch/x86/cpu/apollolake/punit.c
index 3514ba21591..632309f6901 100644
--- a/arch/x86/cpu/apollolake/punit.c
+++ b/arch/x86/cpu/apollolake/punit.c
@@ -15,6 +15,7 @@ 
 #include <asm/pci.h>
 #include <asm/arch/systemagent.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 /*
  * Punit Initialisation code. This all isn't documented, but
diff --git a/arch/x86/cpu/apollolake/spl.c b/arch/x86/cpu/apollolake/spl.c
index a318bca5a62..44cbe4590a7 100644
--- a/arch/x86/cpu/apollolake/spl.c
+++ b/arch/x86/cpu/apollolake/spl.c
@@ -19,6 +19,7 @@ 
 #include <asm/arch/iomap.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /* This reads the next phase from mapped SPI flash */
diff --git a/arch/x86/cpu/apollolake/uart.c b/arch/x86/cpu/apollolake/uart.c
index f368f7d2db4..2a201022945 100644
--- a/arch/x86/cpu/apollolake/uart.c
+++ b/arch/x86/cpu/apollolake/uart.c
@@ -16,6 +16,7 @@ 
 #include <asm/io.h>
 #include <asm/pci.h>
 #include <asm/lpss.h>
+#include <linux/errno.h>
 
 /* Low-power Subsystem (LPSS) clock register */
 enum {
diff --git a/arch/x86/cpu/broadwell/adsp.c b/arch/x86/cpu/broadwell/adsp.c
index 41f7d5d4d1a..f5ae97c88ce 100644
--- a/arch/x86/cpu/broadwell/adsp.c
+++ b/arch/x86/cpu/broadwell/adsp.c
@@ -19,6 +19,7 @@ 
 #include <asm/arch/adsp.h>
 #include <asm/arch/pch.h>
 #include <asm/arch/rcb.h>
+#include <linux/errno.h>
 
 enum pci_type_t {
 	LYNX_POINT,
diff --git a/arch/x86/cpu/broadwell/cpu.c b/arch/x86/cpu/broadwell/cpu.c
index 9e35e9f699e..5b54edb848e 100644
--- a/arch/x86/cpu/broadwell/cpu.c
+++ b/arch/x86/cpu/broadwell/cpu.c
@@ -25,6 +25,7 @@ 
 #include <asm/arch/pch.h>
 #include <asm/arch/rcb.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 int arch_cpu_init_dm(void)
 {
diff --git a/arch/x86/cpu/broadwell/cpu_from_spl.c b/arch/x86/cpu/broadwell/cpu_from_spl.c
index 6cede74a829..4ca4fdcabb7 100644
--- a/arch/x86/cpu/broadwell/cpu_from_spl.c
+++ b/arch/x86/cpu/broadwell/cpu_from_spl.c
@@ -13,6 +13,7 @@ 
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/mtrr.h>
+#include <linux/errno.h>
 
 int misc_init_r(void)
 {
diff --git a/arch/x86/cpu/broadwell/cpu_full.c b/arch/x86/cpu/broadwell/cpu_full.c
index 9d9abe39847..883531712ea 100644
--- a/arch/x86/cpu/broadwell/cpu_full.c
+++ b/arch/x86/cpu/broadwell/cpu_full.c
@@ -23,6 +23,7 @@ 
 #include <asm/arch/rcb.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 struct cpu_broadwell_priv {
 	bool ht_disabled;
diff --git a/arch/x86/cpu/broadwell/iobp.c b/arch/x86/cpu/broadwell/iobp.c
index 16c840690bc..9805f8dbed4 100644
--- a/arch/x86/cpu/broadwell/iobp.c
+++ b/arch/x86/cpu/broadwell/iobp.c
@@ -12,6 +12,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/pch.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define IOBP_RETRY 1000
 
diff --git a/arch/x86/cpu/broadwell/me.c b/arch/x86/cpu/broadwell/me.c
index 4ae084bf452..89b7bd15082 100644
--- a/arch/x86/cpu/broadwell/me.c
+++ b/arch/x86/cpu/broadwell/me.c
@@ -10,6 +10,7 @@ 
 #include <log.h>
 #include <asm/arch/me.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static inline void me_read_dword_ptr(struct udevice *dev, void *ptr, int offset)
diff --git a/arch/x86/cpu/broadwell/pch.c b/arch/x86/cpu/broadwell/pch.c
index f012db9debe..6a5d9dc345e 100644
--- a/arch/x86/cpu/broadwell/pch.c
+++ b/arch/x86/cpu/broadwell/pch.c
@@ -26,6 +26,7 @@ 
 #include <asm/arch/spi.h>
 #include <dm/uclass-internal.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define BIOS_CTRL	0xdc
 
diff --git a/arch/x86/cpu/broadwell/pinctrl_broadwell.c b/arch/x86/cpu/broadwell/pinctrl_broadwell.c
index 2bc3ef97214..332d45fd088 100644
--- a/arch/x86/cpu/broadwell/pinctrl_broadwell.c
+++ b/arch/x86/cpu/broadwell/pinctrl_broadwell.c
@@ -19,6 +19,7 @@ 
 #include <dt-bindings/gpio/x86-gpio.h>
 #include <dm/pinctrl.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/cpu/broadwell/refcode.c b/arch/x86/cpu/broadwell/refcode.c
index ec929bfb5f5..f6f6250dfbd 100644
--- a/arch/x86/cpu/broadwell/refcode.c
+++ b/arch/x86/cpu/broadwell/refcode.c
@@ -13,6 +13,7 @@ 
 #include <log.h>
 #include <asm/arch/pei_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define RMODULE_MAGIC		0xf8fe
diff --git a/arch/x86/cpu/broadwell/sdram.c b/arch/x86/cpu/broadwell/sdram.c
index ea456f17eb0..d606d4e1932 100644
--- a/arch/x86/cpu/broadwell/sdram.c
+++ b/arch/x86/cpu/broadwell/sdram.c
@@ -26,6 +26,7 @@ 
 #include <asm/arch/pei_data.h>
 #include <asm/arch/pm.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 ulong board_get_usable_ram_top(ulong total_size)
diff --git a/arch/x86/cpu/coreboot/tables.c b/arch/x86/cpu/coreboot/tables.c
index c52741ac9da..f0c350605e1 100644
--- a/arch/x86/cpu/coreboot/tables.c
+++ b/arch/x86/cpu/coreboot/tables.c
@@ -10,6 +10,7 @@ 
 #include <net.h>
 #include <asm/arch/sysinfo.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index fc96b32240c..5942e6b3972 100644
--- a/arch/x86/cpu/cpu.c
+++ b/arch/x86/cpu/cpu.c
@@ -50,6 +50,7 @@ 
 #include <asm/tables.h>
 #include <asm/u-boot.h>
 #include <linux/compiler.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/cpu_x86.c b/arch/x86/cpu/cpu_x86.c
index 8b3a9e75d1d..fc76839cc7d 100644
--- a/arch/x86/cpu/cpu_x86.c
+++ b/arch/x86/cpu/cpu_x86.c
@@ -9,6 +9,7 @@ 
 #include <errno.h>
 #include <asm/cpu.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/cpu/efi/payload.c b/arch/x86/cpu/efi/payload.c
index eab1664200a..41f51a21ff6 100644
--- a/arch/x86/cpu/efi/payload.c
+++ b/arch/x86/cpu/efi/payload.c
@@ -18,6 +18,7 @@ 
 #include <asm/global_data.h>
 #include <asm/post.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/cpu/i386/cpu.c b/arch/x86/cpu/i386/cpu.c
index e10dcca9768..f7e5b92da25 100644
--- a/arch/x86/cpu/i386/cpu.c
+++ b/arch/x86/cpu/i386/cpu.c
@@ -34,6 +34,7 @@ 
 #include <asm/mtrr.h>
 #include <asm/processor-flags.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/cpu/i386/interrupt.c b/arch/x86/cpu/i386/interrupt.c
index 98daa1f7dd3..fc9853d225e 100644
--- a/arch/x86/cpu/i386/interrupt.c
+++ b/arch/x86/cpu/i386/interrupt.c
@@ -27,6 +27,7 @@ 
 #include <asm/processor-flags.h>
 #include <asm/ptrace.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/intel_common/cpu.c b/arch/x86/cpu/intel_common/cpu.c
index 87da5feaf61..a292dd72a88 100644
--- a/arch/x86/cpu/intel_common/cpu.c
+++ b/arch/x86/cpu/intel_common/cpu.c
@@ -23,6 +23,7 @@ 
 #include <asm/mtrr.h>
 #include <asm/post.h>
 #include <asm/microcode.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/intel_common/itss.c b/arch/x86/cpu/intel_common/itss.c
index d6bc051397b..cc9111d7fc5 100644
--- a/arch/x86/cpu/intel_common/itss.c
+++ b/arch/x86/cpu/intel_common/itss.c
@@ -19,6 +19,7 @@ 
 #include <spl.h>
 #include <asm/global_data.h>
 #include <asm/itss.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 struct itss_platdata {
diff --git a/arch/x86/cpu/intel_common/lpc.c b/arch/x86/cpu/intel_common/lpc.c
index 23befbef15f..eda4e58d608 100644
--- a/arch/x86/cpu/intel_common/lpc.c
+++ b/arch/x86/cpu/intel_common/lpc.c
@@ -14,6 +14,7 @@ 
 #include <asm/io.h>
 #include <asm/lpc_common.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/intel_common/microcode.c b/arch/x86/cpu/intel_common/microcode.c
index 919d146940a..157350a8949 100644
--- a/arch/x86/cpu/intel_common/microcode.c
+++ b/arch/x86/cpu/intel_common/microcode.c
@@ -12,6 +12,7 @@ 
 #include <log.h>
 #include <stdio.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <asm/cpu.h>
 #include <asm/microcode.h>
diff --git a/arch/x86/cpu/intel_common/mrc.c b/arch/x86/cpu/intel_common/mrc.c
index 88fe58eea9a..384e721063f 100644
--- a/arch/x86/cpu/intel_common/mrc.c
+++ b/arch/x86/cpu/intel_common/mrc.c
@@ -21,6 +21,7 @@ 
 #include <asm/arch/me.h>
 #include <asm/report_platform.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 static const char *const ecc_decoder[] = {
 	"inactive",
diff --git a/arch/x86/cpu/intel_common/p2sb.c b/arch/x86/cpu/intel_common/p2sb.c
index 361d4c90cb9..8b62cc5d7be 100644
--- a/arch/x86/cpu/intel_common/p2sb.c
+++ b/arch/x86/cpu/intel_common/p2sb.c
@@ -15,6 +15,7 @@ 
 #include <spl.h>
 #include <asm/pci.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define PCH_P2SB_E0		0xe0
 #define HIDE_BIT		BIT(0)
diff --git a/arch/x86/cpu/irq.c b/arch/x86/cpu/irq.c
index 0775c5cddac..547eedfbb85 100644
--- a/arch/x86/cpu/irq.c
+++ b/arch/x86/cpu/irq.c
@@ -17,6 +17,7 @@ 
 #include <asm/pci.h>
 #include <asm/pirq_routing.h>
 #include <asm/tables.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/ivybridge/bd82x6x.c b/arch/x86/cpu/ivybridge/bd82x6x.c
index 84d719e6c4e..fefea448ade 100644
--- a/arch/x86/cpu/ivybridge/bd82x6x.c
+++ b/arch/x86/cpu/ivybridge/bd82x6x.c
@@ -22,6 +22,7 @@ 
 #include <asm/arch/sandybridge.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/ivybridge/cpu.c b/arch/x86/cpu/ivybridge/cpu.c
index 2b966cc5de0..b819bec8030 100644
--- a/arch/x86/cpu/ivybridge/cpu.c
+++ b/arch/x86/cpu/ivybridge/cpu.c
@@ -36,6 +36,7 @@ 
 #include <asm/arch/pch.h>
 #include <asm/arch/sandybridge.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/ivybridge/early_me.c b/arch/x86/cpu/ivybridge/early_me.c
index 4f43986926a..9758c9a653d 100644
--- a/arch/x86/cpu/ivybridge/early_me.c
+++ b/arch/x86/cpu/ivybridge/early_me.c
@@ -18,6 +18,7 @@ 
 #include <asm/arch/pch.h>
 #include <asm/io.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 static const char *const me_ack_values[] = {
 	[ME_HFS_ACK_NO_DID]	= "No DID Ack received",
diff --git a/arch/x86/cpu/ivybridge/lpc.c b/arch/x86/cpu/ivybridge/lpc.c
index 2d82984dbdf..a579eb3b38e 100644
--- a/arch/x86/cpu/ivybridge/lpc.c
+++ b/arch/x86/cpu/ivybridge/lpc.c
@@ -21,6 +21,7 @@ 
 #include <asm/lpc_common.h>
 #include <asm/pci.h>
 #include <asm/arch/pch.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/ivybridge/model_206ax.c b/arch/x86/cpu/ivybridge/model_206ax.c
index 788e589b26d..e11aa0001c4 100644
--- a/arch/x86/cpu/ivybridge/model_206ax.c
+++ b/arch/x86/cpu/ivybridge/model_206ax.c
@@ -23,6 +23,7 @@ 
 #include <asm/speedstep.h>
 #include <asm/turbo.h>
 #include <asm/arch/model_206ax.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/ivybridge/sdram.c b/arch/x86/cpu/ivybridge/sdram.c
index 2c3ee2f4ab5..78511e908e0 100644
--- a/arch/x86/cpu/ivybridge/sdram.c
+++ b/arch/x86/cpu/ivybridge/sdram.c
@@ -38,6 +38,7 @@ 
 #include <asm/post.h>
 #include <asm/arch/sandybridge.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c
index a32283a7e8a..1a34c2f0375 100644
--- a/arch/x86/cpu/mp_init.c
+++ b/arch/x86/cpu/mp_init.c
@@ -31,6 +31,7 @@ 
 #include <dm/lists.h>
 #include <dm/root.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/linkage.h>
 #include <linux/string.h>
 
diff --git a/arch/x86/cpu/mtrr.c b/arch/x86/cpu/mtrr.c
index 44a6f5c8124..fd86a4e105b 100644
--- a/arch/x86/cpu/mtrr.c
+++ b/arch/x86/cpu/mtrr.c
@@ -25,6 +25,7 @@ 
 #include <asm/mp.h>
 #include <asm/msr.h>
 #include <asm/mtrr.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/qemu/cpu.c b/arch/x86/cpu/qemu/cpu.c
index 9ce86b379c4..a8451fa066f 100644
--- a/arch/x86/cpu/qemu/cpu.c
+++ b/arch/x86/cpu/qemu/cpu.c
@@ -9,6 +9,7 @@ 
 #include <errno.h>
 #include <qfw.h>
 #include <asm/cpu.h>
+#include <linux/errno.h>
 
 int cpu_qemu_get_desc(const struct udevice *dev, char *buf, int size)
 {
diff --git a/arch/x86/cpu/qfw_cpu.c b/arch/x86/cpu/qfw_cpu.c
index 3db95256015..5f13984278b 100644
--- a/arch/x86/cpu/qfw_cpu.c
+++ b/arch/x86/cpu/qfw_cpu.c
@@ -13,6 +13,7 @@ 
 #include <dm/lists.h>
 #include <dm/uclass-internal.h>
 #include <dm/root.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 int qemu_cpu_fixup(void)
diff --git a/arch/x86/cpu/quark/dram.c b/arch/x86/cpu/quark/dram.c
index e7ccecfe271..b91d4603b69 100644
--- a/arch/x86/cpu/quark/dram.c
+++ b/arch/x86/cpu/quark/dram.c
@@ -19,6 +19,7 @@ 
 #include <asm/arch/msg_port.h>
 #include <asm/arch/quark.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/cpu/slimbootloader/serial.c b/arch/x86/cpu/slimbootloader/serial.c
index 10e4e9300ec..cb502966741 100644
--- a/arch/x86/cpu/slimbootloader/serial.c
+++ b/arch/x86/cpu/slimbootloader/serial.c
@@ -11,6 +11,7 @@ 
 #include <vsprintf.h>
 #include <asm/arch/slimbootloader.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 
 /**
  * The serial port info hob is generated by Slim Bootloader, so eligible for
diff --git a/arch/x86/cpu/tangier/pinmux.c b/arch/x86/cpu/tangier/pinmux.c
index 596c2c177ce..aba74a083d7 100644
--- a/arch/x86/cpu/tangier/pinmux.c
+++ b/arch/x86/cpu/tangier/pinmux.c
@@ -12,6 +12,7 @@ 
 #include <syscon.h>
 #include <asm/cpu.h>
 #include <asm/scu.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/printk.h>
 
diff --git a/arch/x86/cpu/tangier/sdram.c b/arch/x86/cpu/tangier/sdram.c
index 920dfaf5e26..9605d776c4d 100644
--- a/arch/x86/cpu/tangier/sdram.c
+++ b/arch/x86/cpu/tangier/sdram.c
@@ -10,6 +10,7 @@ 
 #include <asm/global_data.h>
 #include <asm/sfi.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/arch/x86/cpu/tangier/sysreset.c b/arch/x86/cpu/tangier/sysreset.c
index b03bc28f935..c0246dfdf96 100644
--- a/arch/x86/cpu/tangier/sysreset.c
+++ b/arch/x86/cpu/tangier/sysreset.c
@@ -9,6 +9,7 @@ 
 #include <dm.h>
 #include <sysreset.h>
 #include <asm/scu.h>
+#include <linux/errno.h>
 
 static int tangier_sysreset_request(struct udevice *dev, enum sysreset_t type)
 {
diff --git a/arch/x86/include/asm/mp.h b/arch/x86/include/asm/mp.h
index 25edabbdd39..f93426ed784 100644
--- a/arch/x86/include/asm/mp.h
+++ b/arch/x86/include/asm/mp.h
@@ -10,6 +10,7 @@ 
 
 #include <asm/atomic.h>
 #include <asm/cache.h>
+#include <linux/errno.h>
 
 struct udevice;
 
diff --git a/arch/x86/lib/acpi_nhlt.c b/arch/x86/lib/acpi_nhlt.c
index 8df5ddd4a7a..83f110ebba8 100644
--- a/arch/x86/lib/acpi_nhlt.c
+++ b/arch/x86/lib/acpi_nhlt.c
@@ -17,6 +17,7 @@ 
 #include <asm/acpi_nhlt.h>
 #include <asm/unaligned.h>
 #include <dm/acpi.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define NHLT_RID		1
diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c
index 0d0b8edfcaf..2de8ad0d6f4 100644
--- a/arch/x86/lib/acpi_table.c
+++ b/arch/x86/lib/acpi_table.c
@@ -26,6 +26,7 @@ 
 #include <asm/arch/global_nvs.h>
 #include <dm/acpi.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /*
diff --git a/arch/x86/lib/bootm.c b/arch/x86/lib/bootm.c
index a4bd65d3b7b..66fc8a69aaa 100644
--- a/arch/x86/lib/bootm.c
+++ b/arch/x86/lib/bootm.c
@@ -20,6 +20,7 @@ 
 #include <errno.h>
 #include <fdt_support.h>
 #include <image.h>
+#include <linux/errno.h>
 #include <u-boot/zlib.h>
 #include <asm/bootparam.h>
 #include <asm/cpu.h>
diff --git a/arch/x86/lib/fsp/fsp_common.c b/arch/x86/lib/fsp/fsp_common.c
index 821d9200d8b..c7775cc33c0 100644
--- a/arch/x86/lib/fsp/fsp_common.c
+++ b/arch/x86/lib/fsp/fsp_common.c
@@ -20,6 +20,7 @@ 
 #include <asm/processor.h>
 #include <asm/fsp/fsp_support.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/lib/fsp/fsp_graphics.c b/arch/x86/lib/fsp/fsp_graphics.c
index c5129ff1f30..6e4368d4184 100644
--- a/arch/x86/lib/fsp/fsp_graphics.c
+++ b/arch/x86/lib/fsp/fsp_graphics.c
@@ -13,6 +13,7 @@ 
 #include <asm/fsp/fsp_support.h>
 #include <asm/global_data.h>
 #include <asm/mtrr.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/lib/fsp2/fsp_dram.c b/arch/x86/lib/fsp2/fsp_dram.c
index b882f9466a8..81805ae8299 100644
--- a/arch/x86/lib/fsp2/fsp_dram.c
+++ b/arch/x86/lib/fsp2/fsp_dram.c
@@ -16,6 +16,7 @@ 
 #include <asm/fsp2/fsp_internal.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 
 int dram_init(void)
diff --git a/arch/x86/lib/fsp2/fsp_init.c b/arch/x86/lib/fsp2/fsp_init.c
index 85cae54a0ca..31702b90fd7 100644
--- a/arch/x86/lib/fsp2/fsp_init.c
+++ b/arch/x86/lib/fsp2/fsp_init.c
@@ -17,6 +17,7 @@ 
 #include <asm/intel_pinctrl.h>
 #include <dm/uclass-internal.h>
 #include <asm/fsp2/fsp_internal.h>
+#include <linux/errno.h>
 
 int arch_cpu_init_dm(void)
 {
diff --git a/arch/x86/lib/fsp2/fsp_meminit.c b/arch/x86/lib/fsp2/fsp_meminit.c
index 451e08223ba..84826bb683e 100644
--- a/arch/x86/lib/fsp2/fsp_meminit.c
+++ b/arch/x86/lib/fsp2/fsp_meminit.c
@@ -20,6 +20,7 @@ 
 #include <asm/arch/fsp/fsp_configs.h>
 #include <asm/arch/fsp/fsp_m_upd.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static int prepare_mrc_cache_type(enum mrc_type_t type,
diff --git a/arch/x86/lib/fsp2/fsp_silicon_init.c b/arch/x86/lib/fsp2/fsp_silicon_init.c
index ca064eaf716..7d83ae2a1cb 100644
--- a/arch/x86/lib/fsp2/fsp_silicon_init.c
+++ b/arch/x86/lib/fsp2/fsp_silicon_init.c
@@ -18,6 +18,7 @@ 
 #include <asm/fsp/fsp_infoheader.h>
 #include <asm/fsp2/fsp_internal.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 int fsp_silicon_init(bool s3wake, bool use_spi_flash)
diff --git a/arch/x86/lib/fsp2/fsp_support.c b/arch/x86/lib/fsp2/fsp_support.c
index 1f68479ec58..b962487418b 100644
--- a/arch/x86/lib/fsp2/fsp_support.c
+++ b/arch/x86/lib/fsp2/fsp_support.c
@@ -11,6 +11,7 @@ 
 #include <asm/fsp/fsp_support.h>
 #include <asm/fsp2/fsp_internal.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /* The amount of the FSP header to probe to obtain what we need */
diff --git a/arch/x86/lib/i8254.c b/arch/x86/lib/i8254.c
index 33db3dab2e9..33c63233ad0 100644
--- a/arch/x86/lib/i8254.c
+++ b/arch/x86/lib/i8254.c
@@ -8,6 +8,7 @@ 
 #include <asm/io.h>
 #include <asm/i8254.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 #define TIMER1_VALUE		18	/* 15.6us */
 #define BEEP_FREQUENCY_HZ	440
diff --git a/arch/x86/lib/mpspec.c b/arch/x86/lib/mpspec.c
index 78724564605..bda9b7f1a11 100644
--- a/arch/x86/lib/mpspec.c
+++ b/arch/x86/lib/mpspec.c
@@ -19,6 +19,7 @@ 
 #include <asm/mpspec.h>
 #include <asm/tables.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/lib/mrccache.c b/arch/x86/lib/mrccache.c
index 3582f42733f..0488a261c65 100644
--- a/arch/x86/lib/mrccache.c
+++ b/arch/x86/lib/mrccache.c
@@ -20,6 +20,7 @@ 
 #include <asm/mrccache.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/lib/pinctrl_ich6.c b/arch/x86/lib/pinctrl_ich6.c
index fd5e311b291..82de4cbdc43 100644
--- a/arch/x86/lib/pinctrl_ich6.c
+++ b/arch/x86/lib/pinctrl_ich6.c
@@ -16,6 +16,7 @@ 
 #include <asm/io.h>
 #include <asm/pci.h>
 #include <dm/pinctrl.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/lib/sfi.c b/arch/x86/lib/sfi.c
index 2e68504d886..13029fc08cb 100644
--- a/arch/x86/lib/sfi.c
+++ b/arch/x86/lib/sfi.c
@@ -20,6 +20,7 @@ 
 #include <asm/sfi.h>
 #include <asm/tables.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 struct table_info {
diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c
index 5e259792af0..4efd96a6ba0 100644
--- a/arch/x86/lib/spl.c
+++ b/arch/x86/lib/spl.c
@@ -26,6 +26,7 @@ 
 #include <asm/spl.h>
 #include <asm-generic/sections.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/lib/tpl.c b/arch/x86/lib/tpl.c
index dee51f4a753..3213b2749ec 100644
--- a/arch/x86/lib/tpl.c
+++ b/arch/x86/lib/tpl.c
@@ -19,6 +19,7 @@ 
 #include <asm/processor.h>
 #include <asm-generic/sections.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/lib/zimage.c b/arch/x86/lib/zimage.c
index 219e70607bf..a13eb78e222 100644
--- a/arch/x86/lib/zimage.c
+++ b/arch/x86/lib/zimage.c
@@ -30,6 +30,7 @@ 
 #include <asm/arch/timestamp.h>
 #endif
 #include <linux/compiler.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
 
diff --git a/board/AndesTech/ax25-ae350/ax25-ae350.c b/board/AndesTech/ax25-ae350/ax25-ae350.c
index bb0dfb5e95d..4e546adfc68 100644
--- a/board/AndesTech/ax25-ae350/ax25-ae350.c
+++ b/board/AndesTech/ax25-ae350/ax25-ae350.c
@@ -14,6 +14,7 @@ 
 #endif
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <faraday/ftsmc020.h>
 #include <fdtdec.h>
diff --git a/board/CZ.NIC/turris_mox/mox_sp.c b/board/CZ.NIC/turris_mox/mox_sp.c
index 2c0c4956cd4..c15f8ee5b51 100644
--- a/board/CZ.NIC/turris_mox/mox_sp.c
+++ b/board/CZ.NIC/turris_mox/mox_sp.c
@@ -9,6 +9,7 @@ 
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define RWTM_BASE		(MVEBU_REGISTER(0xb0000))
 #define RWTM_CMD_PARAM(i)	(size_t)(RWTM_BASE + (i) * 4)
diff --git a/board/CZ.NIC/turris_mox/turris_mox.c b/board/CZ.NIC/turris_mox/turris_mox.c
index 32dabe99598..9429806b673 100644
--- a/board/CZ.NIC/turris_mox/turris_mox.c
+++ b/board/CZ.NIC/turris_mox/turris_mox.c
@@ -20,6 +20,7 @@ 
 #include <init.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
 #include <miiphy.h>
diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c
index 783266c29b8..b1f6cf67d43 100644
--- a/board/CZ.NIC/turris_omnia/turris_omnia.c
+++ b/board/CZ.NIC/turris_omnia/turris_omnia.c
@@ -25,6 +25,7 @@ 
 #include <fdt_support.h>
 #include <time.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
 # include <atsha204a-i2c.h>
diff --git a/board/Marvell/mvebu_armada-37xx/board.c b/board/Marvell/mvebu_armada-37xx/board.c
index 0dbb4c2f370..eb0fe5b3727 100644
--- a/board/Marvell/mvebu_armada-37xx/board.c
+++ b/board/Marvell/mvebu_armada-37xx/board.c
@@ -15,6 +15,7 @@ 
 #include <asm/arch/soc.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/board/Marvell/mvebu_armada-8k/board.c b/board/Marvell/mvebu_armada-8k/board.c
index 1a7f17ed17c..e407238562f 100644
--- a/board/Marvell/mvebu_armada-8k/board.c
+++ b/board/Marvell/mvebu_armada-8k/board.c
@@ -14,6 +14,7 @@ 
 #include <asm/arch/soc.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/board/alliedtelesis/common/gpio_hog.c b/board/alliedtelesis/common/gpio_hog.c
index 4aecf7e2cef..7d26ccbd462 100644
--- a/board/alliedtelesis/common/gpio_hog.c
+++ b/board/alliedtelesis/common/gpio_hog.c
@@ -7,6 +7,7 @@ 
 #include <dm.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/board/alliedtelesis/x530/x530.c b/board/alliedtelesis/x530/x530.c
index 6f0e82e9558..25d2aede99f 100644
--- a/board/alliedtelesis/x530/x530.c
+++ b/board/alliedtelesis/x530/x530.c
@@ -15,6 +15,7 @@ 
 #include <asm/gpio.h>
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/mbus.h>
 #include <linux/io.h>
 #include <asm/arch/cpu.h>
diff --git a/board/armltd/vexpress/vexpress_common.c b/board/armltd/vexpress/vexpress_common.c
index 5e0d7464dd8..ee9f61f2b7a 100644
--- a/board/armltd/vexpress/vexpress_common.c
+++ b/board/armltd/vexpress/vexpress_common.c
@@ -31,6 +31,7 @@ 
 #include <asm/arch/sysctrl.h>
 #include <asm/arch/wdt.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "../drivers/mmc/arm_pl180_mmci.h"
 
diff --git a/board/atmel/common/mac-spi-nor.c b/board/atmel/common/mac-spi-nor.c
index 3b150dac7d8..67bfd3785b7 100644
--- a/board/atmel/common/mac-spi-nor.c
+++ b/board/atmel/common/mac-spi-nor.c
@@ -9,6 +9,7 @@ 
 #include <dm.h>
 #include <env.h>
 #include <net.h>
+#include <linux/errno.h>
 #include <linux/mtd/spi-nor.h>
 #include <netdev.h>
 #include <linux/string.h>
diff --git a/board/bachmann/ot1200/ot1200.c b/board/bachmann/ot1200/ot1200.c
index 6872af6dcd2..ac9eba85180 100644
--- a/board/bachmann/ot1200/ot1200.c
+++ b/board/bachmann/ot1200/ot1200.c
@@ -30,6 +30,7 @@ 
 #include <asm/gpio.h>
 #include <phy.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/board/beacon/beacon-rzg2m/beacon-rzg2m.c b/board/beacon/beacon-rzg2m/beacon-rzg2m.c
index 17b99df5e81..cd362db58a9 100644
--- a/board/beacon/beacon-rzg2m/beacon-rzg2m.c
+++ b/board/beacon/beacon-rzg2m/beacon-rzg2m.c
@@ -8,6 +8,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/rcar-mstp.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/board/beacon/imx8mm/spl.c b/board/beacon/imx8mm/spl.c
index a9a049b66d9..e3e26769323 100644
--- a/board/beacon/imx8mm/spl.c
+++ b/board/beacon/imx8mm/spl.c
@@ -16,6 +16,7 @@ 
 #include <asm/mach-imx/boot_mode.h>
 #include <asm/arch/ddr.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <dm/uclass.h>
diff --git a/board/bluegiga/apx4devkit/apx4devkit.c b/board/bluegiga/apx4devkit/apx4devkit.c
index ca44e5aba96..2d4437fbfe0 100644
--- a/board/bluegiga/apx4devkit/apx4devkit.c
+++ b/board/bluegiga/apx4devkit/apx4devkit.c
@@ -28,6 +28,7 @@ 
 #include <asm/arch/sys_proto.h>
 #include <env.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/mii.h>
 #include <miiphy.h>
 #include <netdev.h>
diff --git a/board/bosch/guardian/board.c b/board/bosch/guardian/board.c
index d9ba7fe653d..6cf3649f070 100644
--- a/board/bosch/guardian/board.c
+++ b/board/bosch/guardian/board.c
@@ -22,6 +22,7 @@ 
 #include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <power/tps65217.h>
 #include <power/tps65910.h>
 #include <spl.h>
diff --git a/board/bosch/shc/board.c b/board/bosch/shc/board.c
index 243a810c420..ac8665fc77b 100644
--- a/board/bosch/shc/board.c
+++ b/board/bosch/shc/board.c
@@ -39,6 +39,7 @@ 
 #include <cpsw.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <power/tps65217.h>
 #include <env_internal.h>
 #include <watchdog.h>
diff --git a/board/broadcom/bcmns3/ns3.c b/board/broadcom/bcmns3/ns3.c
index 40eda6d465d..ac9ca20f8ad 100644
--- a/board/broadcom/bcmns3/ns3.c
+++ b/board/broadcom/bcmns3/ns3.c
@@ -13,6 +13,7 @@ 
 #include <asm/armv8/mmu.h>
 #include <asm/arch-bcmns3/bl33_info.h>
 #include <dt-bindings/memory/bcm-ns3-mc.h>
+#include <linux/errno.h>
 
 /* Default reset-level = 3 and strap-val = 0 */
 #define L3_RESET	30
diff --git a/board/broadcom/bcmstb/bcmstb.c b/board/broadcom/bcmstb/bcmstb.c
index 4e942f5f71c..4f180b734d0 100644
--- a/board/broadcom/bcmstb/bcmstb.c
+++ b/board/broadcom/bcmstb/bcmstb.c
@@ -12,6 +12,7 @@ 
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/types.h>
 #include <common.h>
 #include <env.h>
diff --git a/board/ccv/xpress/xpress.c b/board/ccv/xpress/xpress.c
index 1edec6158ef..c7476ba197c 100644
--- a/board/ccv/xpress/xpress.c
+++ b/board/ccv/xpress/xpress.c
@@ -29,6 +29,7 @@ 
 #include <usb.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <usb/ehci-ci.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/compulab/cl-som-imx7/cl-som-imx7.c b/board/compulab/cl-som-imx7/cl-som-imx7.c
index edb37225e74..28f4859f649 100644
--- a/board/compulab/cl-som-imx7/cl-som-imx7.c
+++ b/board/compulab/cl-som-imx7/cl-som-imx7.c
@@ -19,6 +19,7 @@ 
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/pfuze3000_pmic.h>
 #include <asm/mach-imx/mxc_i2c.h>
diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c
index aeab97d7d20..e39768378f9 100644
--- a/board/compulab/cm_fx6/cm_fx6.c
+++ b/board/compulab/cm_fx6/cm_fx6.c
@@ -39,6 +39,7 @@ 
 #include <dm/device-internal.h>
 #include <jffs2/load_kernel.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "common.h"
 #include "../common/eeprom.h"
diff --git a/board/compulab/common/eeprom.c b/board/compulab/common/eeprom.c
index 0ffa82dd6d3..cc190103c4c 100644
--- a/board/compulab/common/eeprom.c
+++ b/board/compulab/common/eeprom.c
@@ -14,6 +14,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <asm/setup.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include "eeprom.h"
diff --git a/board/compulab/common/eeprom.h b/board/compulab/common/eeprom.h
index a9c0203b81a..5e5aa41074d 100644
--- a/board/compulab/common/eeprom.h
+++ b/board/compulab/common/eeprom.h
@@ -9,6 +9,7 @@ 
 #ifndef _EEPROM_
 #define _EEPROM_
 #include <errno.h>
+#include <linux/errno.h>
 
 #ifdef CONFIG_SYS_I2C
 int cl_eeprom_read_mac_addr(uchar *buf, uint eeprom_bus);
diff --git a/board/congatec/cgtqmx6eval/cgtqmx6eval.c b/board/congatec/cgtqmx6eval/cgtqmx6eval.c
index c4b3772e835..c857a73df74 100644
--- a/board/congatec/cgtqmx6eval/cgtqmx6eval.c
+++ b/board/congatec/cgtqmx6eval/cgtqmx6eval.c
@@ -31,6 +31,7 @@ 
 #include <input.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <power/pmic.h>
 #include <power/pfuze100_pmic.h>
diff --git a/board/creative/xfi3/xfi3.c b/board/creative/xfi3/xfi3.c
index cbaa5e59eac..3e7f7e6e173 100644
--- a/board/creative/xfi3/xfi3.c
+++ b/board/creative/xfi3/xfi3.c
@@ -22,6 +22,7 @@ 
 #include <asm/arch/sys_proto.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/board/dhelectronics/dh_imx6/dh_imx6.c b/board/dhelectronics/dh_imx6/dh_imx6.c
index 04798f5bfde..8e05de356a2 100644
--- a/board/dhelectronics/dh_imx6/dh_imx6.c
+++ b/board/dhelectronics/dh_imx6/dh_imx6.c
@@ -37,6 +37,7 @@ 
 #include <mmc.h>
 #include <usb.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <usb/ehci-ci.h>
 
diff --git a/board/dhelectronics/dh_stm32mp1/board.c b/board/dhelectronics/dh_stm32mp1/board.c
index 6b63252a3fa..40a91da0df2 100644
--- a/board/dhelectronics/dh_stm32mp1/board.c
+++ b/board/dhelectronics/dh_stm32mp1/board.c
@@ -38,6 +38,7 @@ 
 #include <phy.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <power/regulator.h>
diff --git a/board/emulation/qemu-arm/qemu-arm.c b/board/emulation/qemu-arm/qemu-arm.c
index 2d9cb0a9a42..820194fc887 100644
--- a/board/emulation/qemu-arm/qemu-arm.c
+++ b/board/emulation/qemu-arm/qemu-arm.c
@@ -12,6 +12,7 @@ 
 #include <virtio_types.h>
 #include <virtio.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 #ifdef CONFIG_ARM64
 #include <asm/armv8/mmu.h>
diff --git a/board/engicam/common/board.c b/board/engicam/common/board.c
index 9f94b91fe97..eab67c0aa95 100644
--- a/board/engicam/common/board.c
+++ b/board/engicam/common/board.c
@@ -19,6 +19,7 @@ 
 #include <watchdog.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "board.h"
diff --git a/board/esd/vme8349/vme8349.c b/board/esd/vme8349/vme8349.c
index 0243e17bbb0..f7934b0f016 100644
--- a/board/esd/vme8349/vme8349.c
+++ b/board/esd/vme8349/vme8349.c
@@ -30,6 +30,7 @@ 
 #include <i2c.h>
 #include <netdev.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/freescale/common/fsl_validate.c b/board/freescale/common/fsl_validate.c
index f12dcb3cf14..a228c82bc8e 100644
--- a/board/freescale/common/fsl_validate.c
+++ b/board/freescale/common/fsl_validate.c
@@ -15,6 +15,7 @@ 
 #include <malloc.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <u-boot/rsa-mod-exp.h>
 #include <hash.h>
diff --git a/board/freescale/common/mc34vr500.c b/board/freescale/common/mc34vr500.c
index 6f485ea233e..d96d1e2293f 100644
--- a/board/freescale/common/mc34vr500.c
+++ b/board/freescale/common/mc34vr500.c
@@ -9,6 +9,7 @@ 
 #include <i2c.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/mc34vr500_pmic.h>
 
diff --git a/board/freescale/common/pfuze.c b/board/freescale/common/pfuze.c
index af1ee044bb3..2011738fe21 100644
--- a/board/freescale/common/pfuze.c
+++ b/board/freescale/common/pfuze.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <errno.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/pfuze100_pmic.h>
 
diff --git a/board/freescale/imx8mm_evk/spl.c b/board/freescale/imx8mm_evk/spl.c
index 9296b032b25..2f5f4ab7bba 100644
--- a/board/freescale/imx8mm_evk/spl.c
+++ b/board/freescale/imx8mm_evk/spl.c
@@ -21,6 +21,7 @@ 
 #include <asm/mach-imx/boot_mode.h>
 #include <asm/arch/ddr.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <dm/uclass.h>
diff --git a/board/freescale/imx8mq_evk/spl.c b/board/freescale/imx8mq_evk/spl.c
index 7316c762a2b..6a37467314c 100644
--- a/board/freescale/imx8mq_evk/spl.c
+++ b/board/freescale/imx8mq_evk/spl.c
@@ -26,6 +26,7 @@ 
 #include <mmc.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <power/pmic.h>
 #include <power/pfuze100_pmic.h>
diff --git a/board/freescale/ls1012ardb/ls1012ardb.c b/board/freescale/ls1012ardb/ls1012ardb.c
index 278dc2221e4..1ca23aef0eb 100644
--- a/board/freescale/ls1012ardb/ls1012ardb.c
+++ b/board/freescale/ls1012ardb/ls1012ardb.c
@@ -30,6 +30,7 @@ 
 #include <netdev.h>
 #include <fsl_sec.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/freescale/mpc8308rdb/sdram.c b/board/freescale/mpc8308rdb/sdram.c
index 6340fd16ea9..10605ae79a7 100644
--- a/board/freescale/mpc8308rdb/sdram.c
+++ b/board/freescale/mpc8308rdb/sdram.c
@@ -15,6 +15,7 @@ 
 #include <init.h>
 #include <mpc83xx.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 
 #include <asm/bitops.h>
 #include <asm/io.h>
diff --git a/board/freescale/mpc8313erdb/sdram.c b/board/freescale/mpc8313erdb/sdram.c
index 22de0f6f3bd..5c69e201afd 100644
--- a/board/freescale/mpc8313erdb/sdram.c
+++ b/board/freescale/mpc8313erdb/sdram.c
@@ -14,6 +14,7 @@ 
 #include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #include <asm/bitops.h>
 #include <asm/io.h>
diff --git a/board/freescale/mpc8315erdb/sdram.c b/board/freescale/mpc8315erdb/sdram.c
index 3fc26fefde3..84abf2c3501 100644
--- a/board/freescale/mpc8315erdb/sdram.c
+++ b/board/freescale/mpc8315erdb/sdram.c
@@ -14,6 +14,7 @@ 
 #include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #include <asm/bitops.h>
 #include <asm/io.h>
diff --git a/board/freescale/mpc8323erdb/mpc8323erdb.c b/board/freescale/mpc8323erdb/mpc8323erdb.c
index 007d9d2283e..e2f56ae31d6 100644
--- a/board/freescale/mpc8323erdb/mpc8323erdb.c
+++ b/board/freescale/mpc8323erdb/mpc8323erdb.c
@@ -24,6 +24,7 @@ 
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
diff --git a/board/freescale/mpc832xemds/mpc832xemds.c b/board/freescale/mpc832xemds/mpc832xemds.c
index 7686dc5f66e..92fd0336a76 100644
--- a/board/freescale/mpc832xemds/mpc832xemds.c
+++ b/board/freescale/mpc832xemds/mpc832xemds.c
@@ -27,6 +27,7 @@ 
 #endif
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/board/freescale/mpc8349emds/mpc8349emds.c b/board/freescale/mpc8349emds/mpc8349emds.c
index 43a6e59bd35..b864a1cd4f6 100644
--- a/board/freescale/mpc8349emds/mpc8349emds.c
+++ b/board/freescale/mpc8349emds/mpc8349emds.c
@@ -23,6 +23,7 @@ 
 #endif
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #if defined(CONFIG_OF_LIBFDT)
 #include <linux/libfdt.h>
diff --git a/board/freescale/mpc8349itx/mpc8349itx.c b/board/freescale/mpc8349itx/mpc8349itx.c
index fae6a7c9648..aa97625c0f5 100644
--- a/board/freescale/mpc8349itx/mpc8349itx.c
+++ b/board/freescale/mpc8349itx/mpc8349itx.c
@@ -26,6 +26,7 @@ 
 #endif
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "../../../arch/powerpc/cpu/mpc83xx/hrcw/hrcw.h"
diff --git a/board/freescale/mpc837xemds/mpc837xemds.c b/board/freescale/mpc837xemds/mpc837xemds.c
index 58eeb2910bf..49eb2874d86 100644
--- a/board/freescale/mpc837xemds/mpc837xemds.c
+++ b/board/freescale/mpc837xemds/mpc837xemds.c
@@ -18,6 +18,7 @@ 
 #include <tsec.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <fsl_esdhc.h>
diff --git a/board/freescale/mpc837xerdb/mpc837xerdb.c b/board/freescale/mpc837xerdb/mpc837xerdb.c
index 8b70109f5d0..5f3f747ee9a 100644
--- a/board/freescale/mpc837xerdb/mpc837xerdb.c
+++ b/board/freescale/mpc837xerdb/mpc837xerdb.c
@@ -21,6 +21,7 @@ 
 #include <fsl_esdhc.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/board/freescale/mx25pdk/mx25pdk.c b/board/freescale/mx25pdk/mx25pdk.c
index 8e0edb45c3e..f20087328b3 100644
--- a/board/freescale/mx25pdk/mx25pdk.c
+++ b/board/freescale/mx25pdk/mx25pdk.c
@@ -19,6 +19,7 @@ 
 #include <i2c.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <fsl_pmic.h>
 #include <mc34704.h>
diff --git a/board/freescale/mx28evk/mx28evk.c b/board/freescale/mx28evk/mx28evk.c
index 8ff35fbd02b..d6cbdaf406f 100644
--- a/board/freescale/mx28evk/mx28evk.c
+++ b/board/freescale/mx28evk/mx28evk.c
@@ -24,6 +24,7 @@ 
 #include <asm/arch/sys_proto.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/mii.h>
 #include <miiphy.h>
 #include <netdev.h>
diff --git a/board/freescale/mx6slevk/mx6slevk.c b/board/freescale/mx6slevk/mx6slevk.c
index 5e6072dd424..9e7a81d4bb5 100644
--- a/board/freescale/mx6slevk/mx6slevk.c
+++ b/board/freescale/mx6slevk/mx6slevk.c
@@ -21,6 +21,7 @@ 
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <common.h>
 #include <fsl_esdhc_imx.h>
diff --git a/board/freescale/mx6sllevk/mx6sllevk.c b/board/freescale/mx6sllevk/mx6sllevk.c
index cfb1fe2103e..9dc0bdcbe7a 100644
--- a/board/freescale/mx6sllevk/mx6sllevk.c
+++ b/board/freescale/mx6sllevk/mx6sllevk.c
@@ -18,6 +18,7 @@ 
 #include <asm/io.h>
 #include <common.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <mmc.h>
 #include <power/pmic.h>
diff --git a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
index d5621c5e042..aefc1ab2bd8 100644
--- a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
+++ b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
@@ -21,6 +21,7 @@ 
 #include <asm/io.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <common.h>
 #include <fsl_esdhc_imx.h>
diff --git a/board/freescale/mx6sxsabresd/mx6sxsabresd.c b/board/freescale/mx6sxsabresd/mx6sxsabresd.c
index 361c3c2c517..ad3461c6661 100644
--- a/board/freescale/mx6sxsabresd/mx6sxsabresd.c
+++ b/board/freescale/mx6sxsabresd/mx6sxsabresd.c
@@ -22,6 +22,7 @@ 
 #include <env.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <common.h>
 #include <fsl_esdhc_imx.h>
diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
index bb6c2474abd..cb903798df5 100644
--- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
+++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
@@ -26,6 +26,7 @@ 
 #include <miiphy.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <mmc.h>
 #include <netdev.h>
diff --git a/board/freescale/mx7dsabresd/mx7dsabresd.c b/board/freescale/mx7dsabresd/mx7dsabresd.c
index bcd30668b5d..5ebb142e0c7 100644
--- a/board/freescale/mx7dsabresd/mx7dsabresd.c
+++ b/board/freescale/mx7dsabresd/mx7dsabresd.c
@@ -16,6 +16,7 @@ 
 #include <asm/io.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <common.h>
 #include <fsl_esdhc_imx.h>
diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
index f4bf325e0d3..7fec510c8ca 100644
--- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
+++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
@@ -29,6 +29,7 @@ 
 #include <miiphy.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <fsl_mdio.h>
diff --git a/board/freescale/p2041rdb/ddr.c b/board/freescale/p2041rdb/ddr.c
index 1dfb7b062fc..83dccf90370 100644
--- a/board/freescale/p2041rdb/ddr.c
+++ b/board/freescale/p2041rdb/ddr.c
@@ -16,6 +16,7 @@ 
 #include <fsl_ddr_dimm_params.h>
 #include <asm/fsl_law.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/board/freescale/qemu-ppce500/qemu-ppce500.c b/board/freescale/qemu-ppce500/qemu-ppce500.c
index 00c83d66438..5c84b404e0e 100644
--- a/board/freescale/qemu-ppce500/qemu-ppce500.c
+++ b/board/freescale/qemu-ppce500/qemu-ppce500.c
@@ -20,6 +20,7 @@ 
 #include <asm/fsl_pci.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <netdev.h>
diff --git a/board/friendlyarm/nanopi2/onewire.c b/board/friendlyarm/nanopi2/onewire.c
index 994befb1ec9..be0f0c79efe 100644
--- a/board/friendlyarm/nanopi2/onewire.c
+++ b/board/friendlyarm/nanopi2/onewire.c
@@ -11,6 +11,7 @@ 
 #include <asm/arch/clk.h>
 #include <i2c.h>
 #include <pwm.h>
+#include <linux/errno.h>
 
 #include <irq_func.h>
 
diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c
index 4932fc2d117..800d9e76d38 100644
--- a/board/gateworks/gw_ventana/gw_ventana.c
+++ b/board/gateworks/gw_ventana/gw_ventana.c
@@ -40,6 +40,7 @@ 
 #include <netdev.h>
 #include <pci.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
 #include <power/pmic.h>
diff --git a/board/gdsys/a38x/ihs_phys.c b/board/gdsys/a38x/ihs_phys.c
index feeae37cd70..c4017a25af3 100644
--- a/board/gdsys/a38x/ihs_phys.c
+++ b/board/gdsys/a38x/ihs_phys.c
@@ -6,6 +6,7 @@ 
 #include <asm-generic/gpio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "ihs_phys.h"
diff --git a/board/gdsys/mpc8308/hrcon.c b/board/gdsys/mpc8308/hrcon.c
index 5cf8f283dff..415eb6e6938 100644
--- a/board/gdsys/mpc8308/hrcon.c
+++ b/board/gdsys/mpc8308/hrcon.c
@@ -15,6 +15,7 @@ 
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <pci.h>
diff --git a/board/gdsys/mpc8308/sdram.c b/board/gdsys/mpc8308/sdram.c
index bfd55f54e4e..365555d3baf 100644
--- a/board/gdsys/mpc8308/sdram.c
+++ b/board/gdsys/mpc8308/sdram.c
@@ -23,6 +23,7 @@ 
 #include <asm/io.h>
 
 #include <asm/processor.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/board/gdsys/mpc8308/strider.c b/board/gdsys/mpc8308/strider.c
index 33a16ba5513..d60a4573c5d 100644
--- a/board/gdsys/mpc8308/strider.c
+++ b/board/gdsys/mpc8308/strider.c
@@ -15,6 +15,7 @@ 
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <pci.h>
diff --git a/board/ge/common/ge_common.c b/board/ge/common/ge_common.c
index 48c3778046f..4885c997929 100644
--- a/board/ge/common/ge_common.c
+++ b/board/ge/common/ge_common.c
@@ -7,6 +7,7 @@ 
 #include <env.h>
 #include <dm/uclass.h>
 #include <rtc.h>
+#include <linux/errno.h>
 
 void check_time(void)
 {
diff --git a/board/ge/common/vpd_reader.c b/board/ge/common/vpd_reader.c
index d42b00da2fe..cdf96802d9e 100644
--- a/board/ge/common/vpd_reader.c
+++ b/board/ge/common/vpd_reader.c
@@ -3,15 +3,16 @@ 
  * Copyright 2016 General Electric Company
  */
 
-#include "vpd_reader.h"
-#include <malloc.h>
-
+#include <common.h>
+#include <hexdump.h>
 #include <i2c.h>
-#include <linux/bch.h>
+#include <i2c_eeprom.h>
+#include <malloc.h>
 #include <stdlib.h>
 #include <dm/uclass.h>
-#include <i2c_eeprom.h>
-#include <hexdump.h>
+#include <linux/bch.h>
+#include <linux/errno.h>
+#include "vpd_reader.h"
 
 /* BCH configuration */
 
diff --git a/board/ge/common/vpd_reader.h b/board/ge/common/vpd_reader.h
index 3045b7e21e2..2c1028bfbe2 100644
--- a/board/ge/common/vpd_reader.h
+++ b/board/ge/common/vpd_reader.h
@@ -3,8 +3,6 @@ 
  * Copyright 2016 General Electric Company
  */
 
-#include "common.h"
-
 struct vpd_cache;
 
 /*
diff --git a/board/google/imx8mq_phanbell/spl.c b/board/google/imx8mq_phanbell/spl.c
index 0e822d01c4c..38045791f13 100644
--- a/board/google/imx8mq_phanbell/spl.c
+++ b/board/google/imx8mq_phanbell/spl.c
@@ -26,6 +26,7 @@ 
 #include <fsl_esdhc_imx.h>
 #include <mmc.h>
 #include <spl.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/ids/ids8313/ids8313.c b/board/ids/ids8313/ids8313.c
index 568a1877fc9..7ceb6d3d04b 100644
--- a/board/ids/ids8313/ids8313.c
+++ b/board/ids/ids8313/ids8313.c
@@ -21,6 +21,7 @@ 
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/intel/cougarcanyon2/cougarcanyon2.c b/board/intel/cougarcanyon2/cougarcanyon2.c
index ce11eae59d5..412660bd414 100644
--- a/board/intel/cougarcanyon2/cougarcanyon2.c
+++ b/board/intel/cougarcanyon2/cougarcanyon2.c
@@ -13,6 +13,7 @@ 
 #include <asm/lpc_common.h>
 #include <asm/pci.h>
 #include <asm/arch/pch.h>
+#include <linux/errno.h>
 
 #define SIO1007_RUNTIME_IOPORT	0x180
 
diff --git a/board/intel/edison/edison.c b/board/intel/edison/edison.c
index 42ebb831f57..755162070cd 100644
--- a/board/intel/edison/edison.c
+++ b/board/intel/edison/edison.c
@@ -9,6 +9,7 @@ 
 #include <mmc.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <u-boot/md5.h>
 #include <usb.h>
 #include <watchdog.h>
diff --git a/board/keymile/km83xx/km83xx.c b/board/keymile/km83xx/km83xx.c
index 21f4dcd1a38..afa53808a06 100644
--- a/board/keymile/km83xx/km83xx.c
+++ b/board/keymile/km83xx/km83xx.c
@@ -30,6 +30,7 @@ 
 #include <pci.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <post.h>
 
diff --git a/board/liebherr/display5/spl.c b/board/liebherr/display5/spl.c
index 3225ca0197b..1580b8d3cf9 100644
--- a/board/liebherr/display5/spl.c
+++ b/board/liebherr/display5/spl.c
@@ -16,6 +16,7 @@ 
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/board/liebherr/mccmon6/spl.c b/board/liebherr/mccmon6/spl.c
index 6eacd60ddca..1da59eb0668 100644
--- a/board/liebherr/mccmon6/spl.c
+++ b/board/liebherr/mccmon6/spl.c
@@ -25,6 +25,7 @@ 
 #include <spl.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <asm/arch/mx6-ddr.h>
diff --git a/board/nvidia/jetson-tk1/jetson-tk1.c b/board/nvidia/jetson-tk1/jetson-tk1.c
index ae1c76b133d..06a8b390a0b 100644
--- a/board/nvidia/jetson-tk1/jetson-tk1.c
+++ b/board/nvidia/jetson-tk1/jetson-tk1.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/as3722.h>
 #include <power/pmic.h>
diff --git a/board/ppcag/bg0900/bg0900.c b/board/ppcag/bg0900/bg0900.c
index 9d2ad0b2014..4f2ab859f30 100644
--- a/board/ppcag/bg0900/bg0900.c
+++ b/board/ppcag/bg0900/bg0900.c
@@ -18,6 +18,7 @@ 
 #include <asm/arch/sys_proto.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/mii.h>
 #include <miiphy.h>
 #include <netdev.h>
diff --git a/board/renesas/grpeach/grpeach.c b/board/renesas/grpeach/grpeach.c
index 22b53743315..ef9a12bdc8b 100644
--- a/board/renesas/grpeach/grpeach.c
+++ b/board/renesas/grpeach/grpeach.c
@@ -11,6 +11,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 #define RZA1_WDT_BASE	0xfcfe0000
 #define WTCSR		0x00
diff --git a/board/renesas/ulcb/cpld.c b/board/renesas/ulcb/cpld.c
index 7a52eaa9d39..30f96966b57 100644
--- a/board/renesas/ulcb/cpld.c
+++ b/board/renesas/ulcb/cpld.c
@@ -16,6 +16,7 @@ 
 #include <errno.h>
 #include <linux/err.h>
 #include <sysreset.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define CPLD_ADDR_MODE		0x00 /* RW */
diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c
index 4fcc0bf6f77..e79f5ddd2c9 100644
--- a/board/samsung/common/board.c
+++ b/board/samsung/common/board.c
@@ -37,6 +37,7 @@ 
 #include <dwc3-uboot.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <samsung/misc.h>
 #include <dm/pinctrl.h>
 #include <dm.h>
diff --git a/board/samsung/common/exynos5-dt.c b/board/samsung/common/exynos5-dt.c
index 4463f64dbc2..1783983ab11 100644
--- a/board/samsung/common/exynos5-dt.c
+++ b/board/samsung/common/exynos5-dt.c
@@ -27,6 +27,7 @@ 
 #include <asm/arch/pinmux.h>
 #include <asm/arch/power.h>
 #include <asm/arch/sromc.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/max77686_pmic.h>
diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c
index 9476a437113..183579c4e3e 100644
--- a/board/samsung/goni/goni.c
+++ b/board/samsung/goni/goni.c
@@ -15,6 +15,7 @@ 
 #include <dm.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <usb/dwc2_udc.h>
diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c
index f21cfe40d53..18f311da979 100644
--- a/board/samsung/trats/trats.c
+++ b/board/samsung/trats/trats.c
@@ -21,6 +21,7 @@ 
 #include <asm/arch/watchdog.h>
 #include <asm/arch/power.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <usb/dwc2_udc.h>
 #include <power/max8997_pmic.h>
diff --git a/board/samsung/trats2/trats2.c b/board/samsung/trats2/trats2.c
index fcbead5c127..6b008943da1 100644
--- a/board/samsung/trats2/trats2.c
+++ b/board/samsung/trats2/trats2.c
@@ -15,6 +15,7 @@ 
 #include <asm/arch/power.h>
 #include <asm/arch/mipi_dsim.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/max77686_pmic.h>
 #include <power/battery.h>
diff --git a/board/samsung/universal_c210/universal.c b/board/samsung/universal_c210/universal.c
index 65ab6e49986..15d866abcc7 100644
--- a/board/samsung/universal_c210/universal.c
+++ b/board/samsung/universal_c210/universal.c
@@ -20,6 +20,7 @@ 
 #include <ld9040.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <usb.h>
 #include <usb/dwc2_udc.h>
diff --git a/board/sandbox/sandbox.c b/board/sandbox/sandbox.c
index 2e4c72f9781..deee7b147df 100644
--- a/board/sandbox/sandbox.c
+++ b/board/sandbox/sandbox.c
@@ -18,6 +18,7 @@ 
 #include <asm/test.h>
 #include <asm/u-boot-sandbox.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 /*
  * Pointer to initial global data area
diff --git a/board/sandisk/sansa_fuze_plus/sfp.c b/board/sandisk/sansa_fuze_plus/sfp.c
index c6cce3b3fa6..b5052deb7ac 100644
--- a/board/sandisk/sansa_fuze_plus/sfp.c
+++ b/board/sandisk/sansa_fuze_plus/sfp.c
@@ -22,6 +22,7 @@ 
 #include <asm/arch/sys_proto.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/board/siemens/draco/board.c b/board/siemens/draco/board.c
index 83cc14421dc..7fa7d632ae2 100644
--- a/board/siemens/draco/board.c
+++ b/board/siemens/draco/board.c
@@ -38,6 +38,7 @@ 
 #include <watchdog.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include "board.h"
 #include "../common/factoryset.h"
 #include <nand.h>
diff --git a/board/siemens/taurus/taurus.c b/board/siemens/taurus/taurus.c
index 102e7e82cd9..dd37a64792a 100644
--- a/board/siemens/taurus/taurus.c
+++ b/board/siemens/taurus/taurus.c
@@ -31,6 +31,7 @@ 
 #include <asm/arch/clk.h>
 #include <asm/gpio.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/mtd/rawnand.h>
 #include <atmel_mci.h>
 #include <asm/arch/at91_spi.h>
diff --git a/board/sipeed/maix/maix.c b/board/sipeed/maix/maix.c
index 7b7face393d..34c87802403 100644
--- a/board/sipeed/maix/maix.c
+++ b/board/sipeed/maix/maix.c
@@ -9,6 +9,7 @@ 
 #include <fdt_support.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 phys_size_t get_effective_memsize(void)
 {
diff --git a/board/softing/vining_2000/vining_2000.c b/board/softing/vining_2000/vining_2000.c
index 7c9c8d78b33..1c84539c120 100644
--- a/board/softing/vining_2000/vining_2000.c
+++ b/board/softing/vining_2000/vining_2000.c
@@ -24,6 +24,7 @@ 
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <common.h>
 #include <fsl_esdhc_imx.h>
diff --git a/board/st/common/stm32mp_dfu.c b/board/st/common/stm32mp_dfu.c
index 79799e2a5ea..b44af077112 100644
--- a/board/st/common/stm32mp_dfu.c
+++ b/board/st/common/stm32mp_dfu.c
@@ -14,6 +14,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <asm/arch/stm32prog.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/board/st/stm32f429-discovery/stm32f429-discovery.c b/board/st/stm32f429-discovery/stm32f429-discovery.c
index 7443b089a31..205979d96f1 100644
--- a/board/st/stm32f429-discovery/stm32f429-discovery.c
+++ b/board/st/stm32f429-discovery/stm32f429-discovery.c
@@ -18,6 +18,7 @@ 
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 #include <asm/io.h>
 #include <asm/arch/stm32.h>
diff --git a/board/st/stm32f429-evaluation/stm32f429-evaluation.c b/board/st/stm32f429-evaluation/stm32f429-evaluation.c
index ff9505d2cad..396cc61a458 100644
--- a/board/st/stm32f429-evaluation/stm32f429-evaluation.c
+++ b/board/st/stm32f429-evaluation/stm32f429-evaluation.c
@@ -12,6 +12,7 @@ 
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 #include <asm/io.h>
 #include <asm/arch/stm32.h>
diff --git a/board/st/stm32f469-discovery/stm32f469-discovery.c b/board/st/stm32f469-discovery/stm32f469-discovery.c
index cdc5a0f8ded..b70fd39ff30 100644
--- a/board/st/stm32f469-discovery/stm32f469-discovery.c
+++ b/board/st/stm32f469-discovery/stm32f469-discovery.c
@@ -12,6 +12,7 @@ 
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 #include <asm/io.h>
 #include <asm/arch/stm32.h>
diff --git a/board/st/stm32h743-disco/stm32h743-disco.c b/board/st/stm32h743-disco/stm32h743-disco.c
index 8e43be5fa86..ec87fc3e5ef 100644
--- a/board/st/stm32h743-disco/stm32h743-disco.c
+++ b/board/st/stm32h743-disco/stm32h743-disco.c
@@ -10,6 +10,7 @@ 
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/board/st/stm32h743-eval/stm32h743-eval.c b/board/st/stm32h743-eval/stm32h743-eval.c
index 8e43be5fa86..ec87fc3e5ef 100644
--- a/board/st/stm32h743-eval/stm32h743-eval.c
+++ b/board/st/stm32h743-eval/stm32h743-eval.c
@@ -10,6 +10,7 @@ 
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index 1ae544ff3d6..d1593e5e4ee 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -41,6 +41,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <linux/printk.h>
 #include <linux/string.h>
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index b2ee68d9c21..f49984238f1 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -33,6 +33,7 @@ 
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
diff --git a/board/synopsys/hsdk/clk-lib.c b/board/synopsys/hsdk/clk-lib.c
index 93f3dca9afd..295e80afe72 100644
--- a/board/synopsys/hsdk/clk-lib.c
+++ b/board/synopsys/hsdk/clk-lib.c
@@ -9,6 +9,7 @@ 
 #include <malloc.h>
 #include <stdio.h>
 #include <dm/device.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #include "clk-lib.h"
diff --git a/board/synopsys/hsdk/env-lib.c b/board/synopsys/hsdk/env-lib.c
index 6b1fff98a45..ae55c0ab138 100644
--- a/board/synopsys/hsdk/env-lib.c
+++ b/board/synopsys/hsdk/env-lib.c
@@ -8,6 +8,7 @@ 
 #include <env.h>
 #include <log.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #define MAX_CMD_LEN	25
diff --git a/board/synopsys/hsdk/hsdk.c b/board/synopsys/hsdk/hsdk.c
index 4fe6219514d..0812126a98d 100644
--- a/board/synopsys/hsdk/hsdk.c
+++ b/board/synopsys/hsdk/hsdk.c
@@ -19,6 +19,7 @@ 
 #include <asm/global_data.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/kernel.h>
 #include <linux/io.h>
diff --git a/board/synopsys/iot_devkit/iot_devkit.c b/board/synopsys/iot_devkit/iot_devkit.c
index 151ade5fb7c..50af75fb7e2 100644
--- a/board/synopsys/iot_devkit/iot_devkit.c
+++ b/board/synopsys/iot_devkit/iot_devkit.c
@@ -11,6 +11,7 @@ 
 #include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <fdtdec.h>
 
diff --git a/board/technexion/pico-imx6ul/pico-imx6ul.c b/board/technexion/pico-imx6ul/pico-imx6ul.c
index 11ae82b6bf2..fb3d9ee726a 100644
--- a/board/technexion/pico-imx6ul/pico-imx6ul.c
+++ b/board/technexion/pico-imx6ul/pico-imx6ul.c
@@ -23,6 +23,7 @@ 
 #include <netdev.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <usb.h>
 #include <power/pmic.h>
diff --git a/board/technexion/pico-imx7d/pico-imx7d.c b/board/technexion/pico-imx7d/pico-imx7d.c
index 18b2a0082ed..70f61c50253 100644
--- a/board/technexion/pico-imx7d/pico-imx7d.c
+++ b/board/technexion/pico-imx7d/pico-imx7d.c
@@ -20,6 +20,7 @@ 
 #include <i2c.h>
 #include <miiphy.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/pfuze3000_pmic.h>
 #include "../../freescale/common/pfuze.h"
diff --git a/board/theadorable/fpga.c b/board/theadorable/fpga.c
index 4cfc4bbf0ac..904af3ed2e9 100644
--- a/board/theadorable/fpga.c
+++ b/board/theadorable/fpga.c
@@ -13,6 +13,7 @@ 
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
 #include <asm/arch-mvebu/spi.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "theadorable.h"
 
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index 67695ca61f5..17096159442 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -42,6 +42,7 @@ 
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <power/tps65217.h>
 #include <power/tps65910.h>
diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c
index 869131a08f9..808b9993703 100644
--- a/board/ti/am57xx/board.c
+++ b/board/ti/am57xx/board.c
@@ -36,6 +36,7 @@ 
 #include <asm/arch/omap.h>
 #include <usb.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <linux/usb/gadget.h>
 #include <dwc3-uboot.h>
diff --git a/board/ti/am65x/evm.c b/board/ti/am65x/evm.c
index d3e5be34c02..b8bb6b47581 100644
--- a/board/ti/am65x/evm.c
+++ b/board/ti/am65x/evm.c
@@ -24,6 +24,7 @@ 
 #include <spl.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/board/ti/common/board_detect.c b/board/ti/common/board_detect.c
index 862398e53a2..5519d2d7e61 100644
--- a/board/ti/common/board_detect.c
+++ b/board/ti/common/board_detect.c
@@ -21,6 +21,7 @@ 
 #include <mmc.h>
 #include <errno.h>
 #include <malloc.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c
index c5e313b14de..27971506074 100644
--- a/board/ti/j721e/evm.c
+++ b/board/ti/j721e/evm.c
@@ -26,6 +26,7 @@ 
 #include <dm.h>
 #include <asm/u-boot.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/board/ti/omap5_uevm/evm.c b/board/ti/omap5_uevm/evm.c
index e47da78fb77..dd9217f0fba 100644
--- a/board/ti/omap5_uevm/evm.c
+++ b/board/ti/omap5_uevm/evm.c
@@ -19,6 +19,7 @@ 
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/usb/gadget.h>
 #include <dwc3-uboot.h>
 #include <dwc3-omap-uboot.h>
diff --git a/board/toradex/apalis-tk1/apalis-tk1.c b/board/toradex/apalis-tk1/apalis-tk1.c
index 052a16bb7b3..adc9bef31e7 100644
--- a/board/toradex/apalis-tk1/apalis-tk1.c
+++ b/board/toradex/apalis-tk1/apalis-tk1.c
@@ -18,6 +18,7 @@ 
 #include <pci_tegra.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <power/as3722.h>
diff --git a/board/toradex/colibri_imx7/colibri_imx7.c b/board/toradex/colibri_imx7/colibri_imx7.c
index a69ff55a6a7..38fdaf648b8 100644
--- a/board/toradex/colibri_imx7/colibri_imx7.c
+++ b/board/toradex/colibri_imx7/colibri_imx7.c
@@ -25,6 +25,7 @@ 
 #include <fsl_esdhc_imx.h>
 #include <jffs2/load_kernel.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <mmc.h>
 #include <miiphy.h>
diff --git a/board/toradex/common/tdx-cfg-block.c b/board/toradex/common/tdx-cfg-block.c
index 1f894ce1e48..84b20bf1daa 100644
--- a/board/toradex/common/tdx-cfg-block.c
+++ b/board/toradex/common/tdx-cfg-block.c
@@ -7,6 +7,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "tdx-cfg-block.h"
 #include <command.h>
diff --git a/board/toradex/verdin-imx8mm/spl.c b/board/toradex/verdin-imx8mm/spl.c
index 2b59d90fa4f..0d422b65093 100644
--- a/board/toradex/verdin-imx8mm/spl.c
+++ b/board/toradex/verdin-imx8mm/spl.c
@@ -24,6 +24,7 @@ 
 #include <dm/uclass.h>
 #include <dm/uclass-internal.h>
 #include <hang.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <power/bd71837.h>
 #include <power/pmic.h>
diff --git a/board/udoo/neo/neo.c b/board/udoo/neo/neo.c
index 0a8f0fec9ce..1853330e2ce 100644
--- a/board/udoo/neo/neo.c
+++ b/board/udoo/neo/neo.c
@@ -29,6 +29,7 @@ 
 #include <spl.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <common.h>
 #include <i2c.h>
diff --git a/board/vscom/baltos/board.c b/board/vscom/baltos/board.c
index 434aadd8763..a7ba5393183 100644
--- a/board/vscom/baltos/board.c
+++ b/board/vscom/baltos/board.c
@@ -17,6 +17,7 @@ 
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c
index d0a42c16a54..cd773d8f1d8 100644
--- a/board/wandboard/wandboard.c
+++ b/board/wandboard/wandboard.c
@@ -29,6 +29,7 @@ 
 #include <env.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <common.h>
 #include <miiphy.h>
diff --git a/board/warp/warp.c b/board/warp/warp.c
index 73d7aca7aad..a99e74b0c95 100644
--- a/board/warp/warp.c
+++ b/board/warp/warp.c
@@ -20,6 +20,7 @@ 
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <common.h>
 #include <watchdog.h>
diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c
index 7272dc2bb2e..db255f36788 100644
--- a/board/warp7/warp7.c
+++ b/board/warp7/warp7.c
@@ -22,6 +22,7 @@ 
 #include <asm/arch/crm_regs.h>
 #include <netdev.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/pfuze3000_pmic.h>
 #include "../freescale/common/pfuze.h"
diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
index 458eef45adf..83ff23dacdc 100644
--- a/board/xilinx/common/board.c
+++ b/board/xilinx/common/board.c
@@ -11,6 +11,7 @@ 
 #include <asm/sections.h>
 #include <dm/uclass.h>
 #include <i2c.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include "board.h"
 
diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c
index 49478b05bea..385f5c752a5 100644
--- a/board/xilinx/microblaze-generic/microblaze-generic.c
+++ b/board/xilinx/microblaze-generic/microblaze-generic.c
@@ -19,6 +19,7 @@ 
 #include <asm/global_data.h>
 #include <dm/lists.h>
 #include <fdtdec.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c
index e731070b5e6..d58e5fc53c0 100644
--- a/board/xilinx/versal/board.c
+++ b/board/xilinx/versal/board.c
@@ -23,6 +23,7 @@ 
 #include <dm/device.h>
 #include <dm/uclass.h>
 #include <versalpl.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "../common/board.h"
 
diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
index 0be26931f22..215baf504b9 100644
--- a/board/xilinx/zynq/board.c
+++ b/board/xilinx/zynq/board.c
@@ -20,6 +20,7 @@ 
 #include <zynqpl.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "../common/board.h"
 
diff --git a/board/xilinx/zynqmp/cmds.c b/board/xilinx/zynqmp/cmds.c
index 15a05989613..fe4ffba7fb6 100644
--- a/board/xilinx/zynqmp/cmds.c
+++ b/board/xilinx/zynqmp/cmds.c
@@ -15,6 +15,7 @@ 
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 
 static int do_zynqmp_verify_secure(struct cmd_tbl *cmdtp, int flag, int argc,
 				   char *const argv[])
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index 5bb8e877f3c..7c7266caa6f 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -37,6 +37,7 @@ 
 #include <g_dnl.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <linux/string.h>
 #include "../common/board.h"
diff --git a/board/xilinx/zynqmp_r5/board.c b/board/xilinx/zynqmp_r5/board.c
index 817db3d5c88..11f29df5415 100644
--- a/board/xilinx/zynqmp_r5/board.c
+++ b/board/xilinx/zynqmp_r5/board.c
@@ -7,6 +7,7 @@ 
 #include <fdtdec.h>
 #include <init.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 int board_init(void)
 {
diff --git a/cmd/acpi.c b/cmd/acpi.c
index a6df5785f5f..a11cf5c29ac 100644
--- a/cmd/acpi.c
+++ b/cmd/acpi.c
@@ -13,6 +13,7 @@ 
 #include <asm/acpi_table.h>
 #include <asm/global_data.h>
 #include <dm/acpi.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/cmd/axi.c b/cmd/axi.c
index 858fddee131..68e8a06ae9e 100644
--- a/cmd/axi.c
+++ b/cmd/axi.c
@@ -18,6 +18,7 @@ 
 #include <log.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 
 /* Currently selected AXI bus device */
 static struct udevice *axi_cur_bus;
diff --git a/cmd/bcb.c b/cmd/bcb.c
index 46737101f65..d145856d14f 100644
--- a/cmd/bcb.c
+++ b/cmd/bcb.c
@@ -13,6 +13,7 @@ 
 #include <part.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 enum bcb_cmd {
diff --git a/cmd/bind.c b/cmd/bind.c
index b008d4a6e8c..91202fbd4a9 100644
--- a/cmd/bind.c
+++ b/cmd/bind.c
@@ -11,6 +11,7 @@ 
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 
 static int bind_by_class_index(const char *uclass, int index,
 			       const char *drv_name)
diff --git a/cmd/booti.c b/cmd/booti.c
index 52ce6bbc031..405152c80eb 100644
--- a/cmd/booti.c
+++ b/cmd/booti.c
@@ -15,6 +15,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/sizes.h>
 #include <linux/string.h>
diff --git a/cmd/bootm.c b/cmd/bootm.c
index 8a976de6d3d..35c862768a1 100644
--- a/cmd/bootm.c
+++ b/cmd/bootm.c
@@ -22,6 +22,7 @@ 
 #include <asm/u-boot.h>
 #include <linux/ctype.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <u-boot/zlib.h>
 #include <mapmem.h>
diff --git a/cmd/button.c b/cmd/button.c
index 84ad1653c7b..0371ae8774d 100644
--- a/cmd/button.c
+++ b/cmd/button.c
@@ -10,6 +10,7 @@ 
 #include <dm.h>
 #include <button.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 
 static const char *const state_label[] = {
 	[BUTTON_OFF]	= "off",
diff --git a/cmd/cpu.c b/cmd/cpu.c
index 27b0919709a..4066f764292 100644
--- a/cmd/cpu.c
+++ b/cmd/cpu.c
@@ -12,6 +12,7 @@ 
 #include <dm.h>
 #include <errno.h>
 #include <stdio.h>
+#include <linux/errno.h>
 
 static const char *cpu_feature_name[CPU_FEAT_COUNT] = {
 	"L1 cache",
diff --git a/cmd/efi.c b/cmd/efi.c
index 7b7a019e1af..762d4c1c380 100644
--- a/cmd/efi.c
+++ b/cmd/efi.c
@@ -13,6 +13,7 @@ 
 #include <sort.h>
 #include <stdio.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static const char *const type_name[] = {
diff --git a/cmd/elf.c b/cmd/elf.c
index 37267ccacae..3eaf1fe137d 100644
--- a/cmd/elf.c
+++ b/cmd/elf.c
@@ -21,6 +21,7 @@ 
 #include <asm/e820.h>
 #include <linux/linkage.h>
 #endif
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /* Allow ports to override the default behavior */
diff --git a/cmd/ethsw.c b/cmd/ethsw.c
index fe93d2a8b17..83a229720de 100644
--- a/cmd/ethsw.c
+++ b/cmd/ethsw.c
@@ -14,6 +14,7 @@ 
 #include <net.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static const char *ethsw_name;
diff --git a/cmd/gpio.c b/cmd/gpio.c
index 3171556bb28..570c17d5bac 100644
--- a/cmd/gpio.c
+++ b/cmd/gpio.c
@@ -16,6 +16,7 @@ 
 #include <vsprintf.h>
 #include <asm/gpio.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 __weak int name_to_gpio(const char *name)
diff --git a/cmd/gpt.c b/cmd/gpt.c
index 086a91ab577..11ad5f7de46 100644
--- a/cmd/gpt.c
+++ b/cmd/gpt.c
@@ -27,6 +27,7 @@ 
 #include <memalign.h>
 #include <linux/compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <stdlib.h>
 #include <linux/string.h>
diff --git a/cmd/i2c.c b/cmd/i2c.c
index 2f442f0e811..b8f587a26fa 100644
--- a/cmd/i2c.c
+++ b/cmd/i2c.c
@@ -80,6 +80,7 @@ 
 #include <asm/byteorder.h>
 #include <linux/compiler.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
 
diff --git a/cmd/led.c b/cmd/led.c
index 5ba86806852..8d0abd048ec 100644
--- a/cmd/led.c
+++ b/cmd/led.c
@@ -11,6 +11,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define LED_TOGGLE LEDST_COUNT
diff --git a/cmd/mtd.c b/cmd/mtd.c
index 5c749354995..70ba0d01c71 100644
--- a/cmd/mtd.c
+++ b/cmd/mtd.c
@@ -18,6 +18,7 @@ 
 #include <vsprintf.h>
 #include <dm/devres.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <linux/ctype.h>
diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c
index 2f4d2d607ad..45b1bd9c009 100644
--- a/cmd/mvebu/bubt.c
+++ b/cmd/mvebu/bubt.c
@@ -15,6 +15,7 @@ 
 #include <vsprintf.h>
 #include <errno.h>
 #include <dm.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <spi_flash.h>
diff --git a/cmd/nand.c b/cmd/nand.c
index 286d5ee1df5..f52343c42cd 100644
--- a/cmd/nand.c
+++ b/cmd/nand.c
@@ -25,6 +25,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <asm/cache.h>
+#include <linux/errno.h>
 #include <linux/mtd/mtd.h>
 #include <command.h>
 #include <console.h>
diff --git a/cmd/nvedit.c b/cmd/nvedit.c
index 84af5f05e97..e450bb14a54 100644
--- a/cmd/nvedit.c
+++ b/cmd/nvedit.c
@@ -39,6 +39,7 @@ 
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
diff --git a/cmd/osd.c b/cmd/osd.c
index 9ad0407521a..6cccd8968c1 100644
--- a/cmd/osd.c
+++ b/cmd/osd.c
@@ -17,6 +17,7 @@ 
 #include <video_osd.h>
 #include <malloc.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /* Container for selected OSD device */
diff --git a/cmd/pci.c b/cmd/pci.c
index 48a945e30f0..ead55d46c21 100644
--- a/cmd/pci.c
+++ b/cmd/pci.c
@@ -24,6 +24,7 @@ 
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <pci.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 struct pci_reg_info {
diff --git a/cmd/pinmux.c b/cmd/pinmux.c
index 60856cdc3c4..84cbf564e8a 100644
--- a/cmd/pinmux.c
+++ b/cmd/pinmux.c
@@ -10,6 +10,7 @@ 
 #include <stdio.h>
 #include <dm/pinctrl.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define LIMIT_DEVNAME	30
diff --git a/cmd/pmic.c b/cmd/pmic.c
index 3ac12938c8a..8e7956724f6 100644
--- a/cmd/pmic.c
+++ b/cmd/pmic.c
@@ -10,6 +10,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 
 #define LIMIT_DEV	32
diff --git a/cmd/pxe.c b/cmd/pxe.c
index 7673469d39f..8804faa170a 100644
--- a/cmd/pxe.c
+++ b/cmd/pxe.c
@@ -10,6 +10,7 @@ 
 #include <net.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 
 #include "pxe_utils.h"
 
diff --git a/cmd/pxe_utils.c b/cmd/pxe_utils.c
index 748c314fa07..af6071ed68a 100644
--- a/cmd/pxe_utils.c
+++ b/cmd/pxe_utils.c
@@ -15,6 +15,7 @@ 
 #include <net.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <linux/ctype.h>
 #include <errno.h>
diff --git a/cmd/regulator.c b/cmd/regulator.c
index cdf8940fa9e..e492da4f03c 100644
--- a/cmd/regulator.c
+++ b/cmd/regulator.c
@@ -10,6 +10,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <power/regulator.h>
diff --git a/cmd/spi.c b/cmd/spi.c
index 72662f0e0b1..2079ed0e1be 100644
--- a/cmd/spi.c
+++ b/cmd/spi.c
@@ -15,6 +15,7 @@ 
 #include <spi.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /*-----------------------------------------------------------------------
diff --git a/cmd/sysboot.c b/cmd/sysboot.c
index 9090b8ee441..8a965eaf12d 100644
--- a/cmd/sysboot.c
+++ b/cmd/sysboot.c
@@ -6,6 +6,7 @@ 
 #include <fs.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "pxe_utils.h"
 
diff --git a/cmd/tlv_eeprom.c b/cmd/tlv_eeprom.c
index 98104fb7f2d..ca315dad0cc 100644
--- a/cmd/tlv_eeprom.c
+++ b/cmd/tlv_eeprom.c
@@ -21,6 +21,7 @@ 
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <linux/ctype.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
 
diff --git a/cmd/tpm-v2.c b/cmd/tpm-v2.c
index 1a6e80a3866..56c5aca12c8 100644
--- a/cmd/tpm-v2.c
+++ b/cmd/tpm-v2.c
@@ -13,6 +13,7 @@ 
 #include <tpm-common.h>
 #include <tpm-v2.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "tpm-user-utils.h"
 
diff --git a/cmd/usb_mass_storage.c b/cmd/usb_mass_storage.c
index 84d919d4467..36a905cd771 100644
--- a/cmd/usb_mass_storage.c
+++ b/cmd/usb_mass_storage.c
@@ -20,6 +20,7 @@ 
 #include <vsprintf.h>
 #include <watchdog.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/cmd/wdt.c b/cmd/wdt.c
index 422be75a0db..c9c7a610efd 100644
--- a/cmd/wdt.c
+++ b/cmd/wdt.c
@@ -11,6 +11,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <wdt.h>
+#include <linux/errno.h>
 
 static struct udevice *currdev;
 
diff --git a/common/android_ab.c b/common/android_ab.c
index 794df3fde7a..4c58f7a75c8 100644
--- a/common/android_ab.c
+++ b/common/android_ab.c
@@ -11,6 +11,7 @@ 
 #include <part.h>
 #include <memalign.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
 #include <u-boot/crc.h>
diff --git a/common/avb_verify.c b/common/avb_verify.c
index 7a7a5096852..230d576835d 100644
--- a/common/avb_verify.c
+++ b/common/avb_verify.c
@@ -13,6 +13,7 @@ 
 #include <part.h>
 #include <stdio.h>
 #include <tee.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <tee/optee_ta_avb.h>
 
diff --git a/common/bloblist.c b/common/bloblist.c
index 9abd360db8d..20a29c82bb5 100644
--- a/common/bloblist.c
+++ b/common/bloblist.c
@@ -10,6 +10,7 @@ 
 #include <mapmem.h>
 #include <spl.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
 
diff --git a/common/board_r.c b/common/board_r.c
index 735fa4128d5..0c8be80d76e 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -26,6 +26,7 @@ 
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <u-boot/crc.h>
 /* TODO: can we just include all these headers whether needed or not? */
 #if defined(CONFIG_CMD_BEDBUG)
diff --git a/common/boot_fit.c b/common/boot_fit.c
index dfc2a3117d1..d1e298baf5b 100644
--- a/common/boot_fit.c
+++ b/common/boot_fit.c
@@ -11,6 +11,7 @@ 
 #include <errno.h>
 #include <image.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 
 static int fdt_offset(const void *fit)
diff --git a/common/bootm.c b/common/bootm.c
index ae71ee0e30a..d1687238f2a 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -26,6 +26,7 @@ 
 #include <usb.h>
 #endif
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #else
 #include "mkimage.h"
diff --git a/common/bootretry.c b/common/bootretry.c
index 5417389a9a3..41d52a7b9c1 100644
--- a/common/bootretry.c
+++ b/common/bootretry.c
@@ -13,6 +13,7 @@ 
 #include <time.h>
 #include <vsprintf.h>
 #include <watchdog.h>
+#include <linux/errno.h>
 
 #ifndef CONFIG_BOOT_RETRY_MIN
 #define CONFIG_BOOT_RETRY_MIN CONFIG_BOOT_RETRY_TIME
diff --git a/common/bootstage.c b/common/bootstage.c
index 190379f8ac0..9eaa65b009f 100644
--- a/common/bootstage.c
+++ b/common/bootstage.c
@@ -20,6 +20,7 @@ 
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <linux/compiler.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
 
diff --git a/common/bouncebuf.c b/common/bouncebuf.c
index bcca7838bcc..519ca264992 100644
--- a/common/bouncebuf.c
+++ b/common/bouncebuf.c
@@ -12,6 +12,7 @@ 
 #include <errno.h>
 #include <bouncebuf.h>
 #include <asm/cache.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static int addr_aligned(struct bounce_buffer *state)
diff --git a/common/cli_hush.c b/common/cli_hush.c
index 7a66d337148..34facc8397e 100644
--- a/common/cli_hush.c
+++ b/common/cli_hush.c
@@ -89,6 +89,7 @@ 
 #endif
 #include <vsprintf.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #endif
 #ifndef __U_BOOT__
diff --git a/common/common_fit.c b/common/common_fit.c
index 50b165016d2..8872b83646a 100644
--- a/common/common_fit.c
+++ b/common/common_fit.c
@@ -9,6 +9,7 @@ 
 #include <image.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
 
diff --git a/common/edid.c b/common/edid.c
index d539c521507..b047c724630 100644
--- a/common/edid.c
+++ b/common/edid.c
@@ -16,6 +16,7 @@ 
 #include <log.h>
 #include <stdio.h>
 #include <linux/ctype.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 int edid_check_info(struct edid1_info *edid_info)
diff --git a/common/image-android.c b/common/image-android.c
index 1e79f6b144c..1615f2c415d 100644
--- a/common/image-android.c
+++ b/common/image-android.c
@@ -13,6 +13,7 @@ 
 #include <stdio.h>
 #include <asm/unaligned.h>
 #include <mapmem.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
 
diff --git a/common/image-fdt.c b/common/image-fdt.c
index e01e88b989a..c05495ee36c 100644
--- a/common/image-fdt.c
+++ b/common/image-fdt.c
@@ -20,6 +20,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <mapmem.h>
 #include <asm/io.h>
diff --git a/common/image-fit-sig.c b/common/image-fit-sig.c
index 1247d0280e2..e65e27f5109 100644
--- a/common/image-fit-sig.c
+++ b/common/image-fit-sig.c
@@ -12,6 +12,7 @@ 
 #include <malloc.h>
 #include <stdio.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 DECLARE_GLOBAL_DATA_PTR;
 #endif /* !USE_HOSTCC*/
diff --git a/common/image-fit.c b/common/image-fit.c
index 01353f0157d..bc12b3fe0e6 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -17,6 +17,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <linux/compiler.h>
+#include <linux/errno.h>
 #include <linux/kconfig.h>
 #include <common.h>
 #include <errno.h>
diff --git a/common/lcd_simplefb.c b/common/lcd_simplefb.c
index 6dd7972f709..7a2f0056fd4 100644
--- a/common/lcd_simplefb.c
+++ b/common/lcd_simplefb.c
@@ -11,6 +11,7 @@ 
 #include <lcd.h>
 #include <fdt_support.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <video.h>
 
diff --git a/common/log.c b/common/log.c
index c4eaed2c91e..79e23aacece 100644
--- a/common/log.c
+++ b/common/log.c
@@ -13,6 +13,7 @@ 
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <dm/uclass.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/common/menu.c b/common/menu.c
index d61c274eedf..b7ee3cb8e49 100644
--- a/common/menu.c
+++ b/common/menu.c
@@ -9,6 +9,7 @@ 
 #include <malloc.h>
 #include <errno.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/list.h>
 #include <linux/string.h>
 
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 5fd0119cb59..671bda67ed7 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -24,6 +24,7 @@ 
 #include <asm/u-boot.h>
 #include <nand.h>
 #include <fat.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
 #include <version.h>
diff --git a/common/spl/spl_dfu.c b/common/spl/spl_dfu.c
index 8a779da8fa1..4709ffaff94 100644
--- a/common/spl/spl_dfu.c
+++ b/common/spl/spl_dfu.c
@@ -15,6 +15,7 @@ 
 #include <g_dnl.h>
 #include <usb.h>
 #include <dfu.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 static int run_dfu(int usb_index, char *interface, char *devstring)
diff --git a/common/spl/spl_ext.c b/common/spl/spl_ext.c
index 50f0f5f4ca7..4f152270da7 100644
--- a/common/spl/spl_ext.c
+++ b/common/spl/spl_ext.c
@@ -9,6 +9,7 @@ 
 #include <ext4fs.h>
 #include <errno.h>
 #include <image.h>
+#include <linux/errno.h>
 
 int spl_load_image_ext(struct spl_image_info *spl_image,
 		       struct blk_desc *block_dev, int partition,
diff --git a/common/spl/spl_fat.c b/common/spl/spl_fat.c
index 20b44090650..f31fdee02ba 100644
--- a/common/spl/spl_fat.c
+++ b/common/spl/spl_fat.c
@@ -17,6 +17,7 @@ 
 #include <fat.h>
 #include <errno.h>
 #include <image.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 
 static int fat_registered;
diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c
index 87d48269558..4d588a85c8f 100644
--- a/common/spl/spl_fit.c
+++ b/common/spl/spl_fit.c
@@ -16,6 +16,7 @@ 
 #include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/printk.h>
 #include <linux/string.h>
diff --git a/common/spl/spl_legacy.c b/common/spl/spl_legacy.c
index 6813759aa4e..d8ca3e9873b 100644
--- a/common/spl/spl_legacy.c
+++ b/common/spl/spl_legacy.c
@@ -9,6 +9,7 @@ 
 #include <malloc.h>
 #include <spl.h>
 #include <stdio.h>
+#include <linux/errno.h>
 
 #include <lzma/LzmaTypes.h>
 #include <lzma/LzmaDec.h>
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index 1cfe4b2b442..897ea3fbfa6 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -17,6 +17,7 @@ 
 #include <errno.h>
 #include <mmc.h>
 #include <image.h>
+#include <linux/errno.h>
 
 static int mmc_load_legacy(struct spl_image_info *spl_image, struct mmc *mmc,
 			   ulong sector, struct image_header *header)
diff --git a/common/spl/spl_net.c b/common/spl/spl_net.c
index ac7be6360bb..b4a0a56b701 100644
--- a/common/spl/spl_net.c
+++ b/common/spl/spl_net.c
@@ -14,6 +14,7 @@ 
 #include <spl.h>
 #include <net.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
 
diff --git a/common/spl/spl_opensbi.c b/common/spl/spl_opensbi.c
index 4bde3bb4687..086759d63f2 100644
--- a/common/spl/spl_opensbi.c
+++ b/common/spl/spl_opensbi.c
@@ -14,6 +14,7 @@ 
 #include <asm/global_data.h>
 #include <asm/smp.h>
 #include <opensbi.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/printk.h>
 
diff --git a/common/spl/spl_sata.c b/common/spl/spl_sata.c
index 3ac3b743d99..599243f1823 100644
--- a/common/spl/spl_sata.c
+++ b/common/spl/spl_sata.c
@@ -17,6 +17,7 @@ 
 #include <errno.h>
 #include <fat.h>
 #include <image.h>
+#include <linux/errno.h>
 
 #ifndef CONFIG_SYS_SATA_FAT_BOOT_PARTITION
 #define CONFIG_SYS_SATA_FAT_BOOT_PARTITION	1
diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c
index 78ecc962551..c406d2ce038 100644
--- a/common/spl/spl_sdp.c
+++ b/common/spl/spl_sdp.c
@@ -10,6 +10,7 @@ 
 #include <usb.h>
 #include <g_dnl.h>
 #include <sdp.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 static int spl_sdp_load_image(struct spl_image_info *spl_image,
diff --git a/common/spl/spl_spi.c b/common/spl/spl_spi.c
index caa5ed10e1a..1121813abf0 100644
--- a/common/spl/spl_spi.c
+++ b/common/spl/spl_spi.c
@@ -17,6 +17,7 @@ 
 #include <spl.h>
 #include <stdio.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/common/spl/spl_usb.c b/common/spl/spl_usb.c
index 607e5ba2d1f..35880883808 100644
--- a/common/spl/spl_usb.c
+++ b/common/spl/spl_usb.c
@@ -16,6 +16,7 @@ 
 #include <errno.h>
 #include <usb.h>
 #include <fat.h>
+#include <linux/errno.h>
 
 static int usb_stor_curr_dev = -1; /* current device */
 
diff --git a/common/spl/spl_ymodem.c b/common/spl/spl_ymodem.c
index 7124f604b0a..f9c7c2b04fc 100644
--- a/common/spl/spl_ymodem.c
+++ b/common/spl/spl_ymodem.c
@@ -16,6 +16,7 @@ 
 #include <stdio.h>
 #include <xyzModem.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
 
diff --git a/common/splash.c b/common/splash.c
index 1f92d791df8..174f82486eb 100644
--- a/common/splash.c
+++ b/common/splash.c
@@ -27,6 +27,7 @@ 
 #include <lcd.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static struct splash_location default_splash_locations[] = {
diff --git a/common/splash_source.c b/common/splash_source.c
index 99dce118a8f..9c5c285b76e 100644
--- a/common/splash_source.c
+++ b/common/splash_source.c
@@ -23,6 +23,7 @@ 
 #include <usb.h>
 #include <vsprintf.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/common/stdio.c b/common/stdio.c
index eea1507754d..634ab9203af 100644
--- a/common/stdio.c
+++ b/common/stdio.c
@@ -21,6 +21,7 @@ 
 #include <splash.h>
 #include <vsprintf.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #if defined(CONFIG_SYS_I2C)
diff --git a/common/update.c b/common/update.c
index 5cf02ddec2d..ab92824c70f 100644
--- a/common/update.c
+++ b/common/update.c
@@ -11,6 +11,7 @@ 
 #include <image.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/common/usb.c b/common/usb.c
index 5a319393025..16b51e8f4c7 100644
--- a/common/usb.c
+++ b/common/usb.c
@@ -40,6 +40,7 @@ 
 #include <errno.h>
 #include <usb.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define USB_BUFSIZ	512
diff --git a/common/usb_hub.c b/common/usb_hub.c
index a846fc5dff9..46d074f0b55 100644
--- a/common/usb_hub.c
+++ b/common/usb_hub.c
@@ -36,6 +36,7 @@ 
 #include <asm/unaligned.h>
 #include <linux/ctype.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/list.h>
 #include <asm/byteorder.h>
 #ifdef CONFIG_SANDBOX
diff --git a/common/usb_kbd.c b/common/usb_kbd.c
index 0d3a34ea5c1..3fafbda40fd 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -19,6 +19,7 @@ 
 #include <time.h>
 #include <watchdog.h>
 #include <asm/byteorder.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <usb.h>
diff --git a/common/usb_storage.c b/common/usb_storage.c
index 9fc002bcf67..d46e9288c05 100644
--- a/common/usb_storage.c
+++ b/common/usb_storage.c
@@ -48,6 +48,7 @@ 
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <part.h>
diff --git a/disk/part.c b/disk/part.c
index f2aadc47f49..58fd9b89e64 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -16,6 +16,7 @@ 
 #include <stdio.h>
 #include <ubifs_uboot.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #undef	PART_DEBUG
diff --git a/disk/part_efi.c b/disk/part_efi.c
index 65937379199..f062bc383ea 100644
--- a/disk/part_efi.c
+++ b/disk/part_efi.c
@@ -27,6 +27,7 @@ 
 #include <part_efi.h>
 #include <linux/compiler.h>
 #include <linux/ctype.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
diff --git a/drivers/adc/adc-uclass.c b/drivers/adc/adc-uclass.c
index c1dd1f0599d..fa88040126f 100644
--- a/drivers/adc/adc-uclass.c
+++ b/drivers/adc/adc-uclass.c
@@ -14,6 +14,7 @@ 
 #include <dm/uclass-internal.h>
 #include <adc.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/regulator.h>
 
diff --git a/drivers/adc/exynos-adc.c b/drivers/adc/exynos-adc.c
index 973533d261a..7e9ad41ec26 100644
--- a/drivers/adc/exynos-adc.c
+++ b/drivers/adc/exynos-adc.c
@@ -8,6 +8,7 @@ 
 #include <dm.h>
 #include <adc.h>
 #include <asm/arch/adc.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 struct exynos_adc_priv {
diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c
index d7c02f1aa3f..785d37c238f 100644
--- a/drivers/adc/meson-saradc.c
+++ b/drivers/adc/meson-saradc.c
@@ -17,6 +17,7 @@ 
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/math64.h>
 #include <linux/bitfield.h>
 #include <linux/printk.h>
diff --git a/drivers/adc/rockchip-saradc.c b/drivers/adc/rockchip-saradc.c
index 61e3f2cef90..26e037509cd 100644
--- a/drivers/adc/rockchip-saradc.c
+++ b/drivers/adc/rockchip-saradc.c
@@ -13,6 +13,7 @@ 
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #define SARADC_CTRL_CHN_MASK		GENMASK(2, 0)
diff --git a/drivers/adc/sandbox.c b/drivers/adc/sandbox.c
index fa1174bbaa3..0bbb8efccbd 100644
--- a/drivers/adc/sandbox.c
+++ b/drivers/adc/sandbox.c
@@ -8,6 +8,7 @@ 
 #include <dm.h>
 #include <adc.h>
 #include <sandbox-adc.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 /**
diff --git a/drivers/adc/stm32-adc-core.c b/drivers/adc/stm32-adc-core.c
index 31bbb6f9d68..a40de83fd5b 100644
--- a/drivers/adc/stm32-adc-core.c
+++ b/drivers/adc/stm32-adc-core.c
@@ -10,6 +10,7 @@ 
 #include <asm/io.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 #include "stm32-adc-core.h"
 
diff --git a/drivers/adc/stm32-adc.c b/drivers/adc/stm32-adc.c
index b12f894a9bf..431dfa4c435 100644
--- a/drivers/adc/stm32-adc.c
+++ b/drivers/adc/stm32-adc.c
@@ -12,6 +12,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include "stm32-adc-core.h"
 
diff --git a/drivers/ata/ahci_sunxi.c b/drivers/ata/ahci_sunxi.c
index 162e7de5194..f584317ab23 100644
--- a/drivers/ata/ahci_sunxi.c
+++ b/drivers/ata/ahci_sunxi.c
@@ -8,6 +8,7 @@ 
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define AHCI_PHYCS0R 0x00c0
 #define AHCI_PHYCS1R 0x00c4
diff --git a/drivers/ata/fsl_sata.c b/drivers/ata/fsl_sata.c
index d44df799e97..cdc4c678d7a 100644
--- a/drivers/ata/fsl_sata.c
+++ b/drivers/ata/fsl_sata.c
@@ -22,6 +22,7 @@ 
 #include <fis.h>
 #include <sata.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "fsl_sata.h"
 
diff --git a/drivers/ata/sata.c b/drivers/ata/sata.c
index b70de83df2c..453338e944b 100644
--- a/drivers/ata/sata.c
+++ b/drivers/ata/sata.c
@@ -16,6 +16,7 @@ 
 #include <part.h>
 #include <sata.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #ifndef CONFIG_AHCI
diff --git a/drivers/ata/sata_ceva.c b/drivers/ata/sata_ceva.c
index 77508aa5bc7..cd10d228964 100644
--- a/drivers/ata/sata_ceva.c
+++ b/drivers/ata/sata_ceva.c
@@ -9,6 +9,7 @@ 
 #include <log.h>
 #include <scsi.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/ioport.h>
 
 /* Vendor Specific Register Offsets */
diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c
index b55b9daab74..54a9141808b 100644
--- a/drivers/ata/sata_sil.c
+++ b/drivers/ata/sata_sil.c
@@ -20,6 +20,7 @@ 
 #include <libata.h>
 #include <sata.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #if CONFIG_IS_ENABLED(BLK)
diff --git a/drivers/axi/axi-emul-uclass.c b/drivers/axi/axi-emul-uclass.c
index b28351f1adb..fb56b824513 100644
--- a/drivers/axi/axi-emul-uclass.c
+++ b/drivers/axi/axi-emul-uclass.c
@@ -10,6 +10,7 @@ 
 #include <log.h>
 #include <dm/device-internal.h>
 #include <asm/axi.h>
+#include <linux/errno.h>
 
 int axi_sandbox_get_emul(struct udevice *bus, ulong address,
 			 enum axi_size_t size, struct udevice **emulp)
diff --git a/drivers/axi/axi-uclass.c b/drivers/axi/axi-uclass.c
index af8acd9f88b..3d642e71078 100644
--- a/drivers/axi/axi-uclass.c
+++ b/drivers/axi/axi-uclass.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <axi.h>
+#include <linux/errno.h>
 
 int axi_read(struct udevice *dev, ulong address, void *data,
 	     enum axi_size_t size)
diff --git a/drivers/axi/axi_sandbox.c b/drivers/axi/axi_sandbox.c
index b91c91f6b3b..41f62065e8e 100644
--- a/drivers/axi/axi_sandbox.c
+++ b/drivers/axi/axi_sandbox.c
@@ -8,6 +8,7 @@ 
 #include <axi.h>
 #include <dm.h>
 #include <asm/axi.h>
+#include <linux/errno.h>
 
 /*
  * This driver implements a AXI bus for the sandbox architecture for testing
diff --git a/drivers/axi/ihs_axi.c b/drivers/axi/ihs_axi.c
index 39455110907..0e4cbab9762 100644
--- a/drivers/axi/ihs_axi.c
+++ b/drivers/axi/ihs_axi.c
@@ -14,6 +14,7 @@ 
 #include <regmap.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 /**
  * struct ihs_axi_regs - Structure for the register map of a IHS AXI device
diff --git a/drivers/axi/sandbox_store.c b/drivers/axi/sandbox_store.c
index 42bcae6af26..72a4191946e 100644
--- a/drivers/axi/sandbox_store.c
+++ b/drivers/axi/sandbox_store.c
@@ -9,6 +9,7 @@ 
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
+#include <linux/errno.h>
 
 /**
  * struct sandbox_store_priv - Private data structure of a AXI store device
diff --git a/drivers/bios_emulator/atibios.c b/drivers/bios_emulator/atibios.c
index dbf74a45eed..d49839542a5 100644
--- a/drivers/bios_emulator/atibios.c
+++ b/drivers/bios_emulator/atibios.c
@@ -54,6 +54,7 @@ 
 #include <stdio.h>
 #include <vbe.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "biosemui.h"
 
diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c
index b31586ab811..5d7d3d616ee 100644
--- a/drivers/block/blk-uclass.c
+++ b/drivers/block/blk-uclass.c
@@ -16,6 +16,7 @@ 
 #include <dm/lists.h>
 #include <dm/uclass-internal.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static const char *if_typename_str[IF_TYPE_COUNT] = {
diff --git a/drivers/block/blk_legacy.c b/drivers/block/blk_legacy.c
index 2b02e4d3b1c..c1a78f72a36 100644
--- a/drivers/block/blk_legacy.c
+++ b/drivers/block/blk_legacy.c
@@ -9,6 +9,7 @@ 
 #include <part.h>
 #include <stdio.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 struct blk_driver *blk_driver_lookup_type(int if_type)
diff --git a/drivers/board/board-uclass.c b/drivers/board/board-uclass.c
index b5485e9895b..57a28f065bf 100644
--- a/drivers/board/board-uclass.c
+++ b/drivers/board/board-uclass.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <board.h>
+#include <linux/errno.h>
 
 int board_get(struct udevice **devp)
 {
diff --git a/drivers/board/gazerbeam.c b/drivers/board/gazerbeam.c
index ed50fc530cb..7be676fff58 100644
--- a/drivers/board/gazerbeam.c
+++ b/drivers/board/gazerbeam.c
@@ -10,6 +10,7 @@ 
 #include <i2c.h>
 #include <log.h>
 #include <asm/gpio.h>
+#include <linux/errno.h>
 
 #include "gazerbeam.h"
 
diff --git a/drivers/board/sandbox.c b/drivers/board/sandbox.c
index 22aaad10283..5de82750418 100644
--- a/drivers/board/sandbox.c
+++ b/drivers/board/sandbox.c
@@ -8,6 +8,7 @@ 
 #include <dm.h>
 #include <board.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 
 #include "sandbox.h"
 
diff --git a/drivers/bootcount/bootcount-uclass.c b/drivers/bootcount/bootcount-uclass.c
index 2a492c87ebd..81ca0027ebd 100644
--- a/drivers/bootcount/bootcount-uclass.c
+++ b/drivers/bootcount/bootcount-uclass.c
@@ -8,6 +8,7 @@ 
 #include <errno.h>
 #include <bootcount.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 int dm_bootcount_get(struct udevice *dev, u32 *bootcount)
diff --git a/drivers/bootcount/bootcount.c b/drivers/bootcount/bootcount.c
index e8db8542f93..0a2fb50efea 100644
--- a/drivers/bootcount/bootcount.c
+++ b/drivers/bootcount/bootcount.c
@@ -8,6 +8,7 @@ 
 #include <cpu_func.h>
 #include <asm/cache.h>
 #include <linux/compiler.h>
+#include <linux/errno.h>
 
 #if !defined(CONFIG_DM_BOOTCOUNT)
 /* Now implement the generic default functions */
diff --git a/drivers/bootcount/i2c-eeprom.c b/drivers/bootcount/i2c-eeprom.c
index a3aa0cf5595..141713c3d52 100644
--- a/drivers/bootcount/i2c-eeprom.c
+++ b/drivers/bootcount/i2c-eeprom.c
@@ -9,6 +9,7 @@ 
 #include <dm.h>
 #include <i2c_eeprom.h>
 #include <log.h>
+#include <linux/errno.h>
 
 static const u8 bootcount_magic = 0xbc;
 
diff --git a/drivers/bootcount/rtc.c b/drivers/bootcount/rtc.c
index 076a8bb2be8..c6b30cd1483 100644
--- a/drivers/bootcount/rtc.c
+++ b/drivers/bootcount/rtc.c
@@ -8,6 +8,7 @@ 
 #include <dm.h>
 #include <log.h>
 #include <rtc.h>
+#include <linux/errno.h>
 
 static const u8 bootcount_magic = 0xbc;
 
diff --git a/drivers/button/button-gpio.c b/drivers/button/button-gpio.c
index 985ae7f5a76..3e6f11f74d0 100644
--- a/drivers/button/button-gpio.c
+++ b/drivers/button/button-gpio.c
@@ -10,6 +10,7 @@ 
 #include <dm/uclass-internal.h>
 #include <log.h>
 #include <asm/gpio.h>
+#include <linux/errno.h>
 
 struct button_gpio_priv {
 	struct gpio_desc gpio;
diff --git a/drivers/button/button-uclass.c b/drivers/button/button-uclass.c
index 1c742c265cf..c2c3960d7b1 100644
--- a/drivers/button/button-uclass.c
+++ b/drivers/button/button-uclass.c
@@ -9,6 +9,7 @@ 
 #include <button.h>
 #include <dm.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 
 int button_get_by_label(const char *label, struct udevice **devp)
 {
diff --git a/drivers/cache/cache-ncore.c b/drivers/cache/cache-ncore.c
index efef0561378..279e3c2801b 100644
--- a/drivers/cache/cache-ncore.c
+++ b/drivers/cache/cache-ncore.c
@@ -7,6 +7,7 @@ 
 #include <hang.h>
 #include <stdio.h>
 #include <wait_bit.h>
+#include <linux/errno.h>
 
 #include <asm/io.h>
 #include <linux/bitops.h>
diff --git a/drivers/cache/cache-uclass.c b/drivers/cache/cache-uclass.c
index 3b20a10f087..10497b37eda 100644
--- a/drivers/cache/cache-uclass.c
+++ b/drivers/cache/cache-uclass.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <cache.h>
 #include <dm.h>
+#include <linux/errno.h>
 
 int cache_get_info(struct udevice *dev, struct cache_info *info)
 {
diff --git a/drivers/cache/cache-v5l2.c b/drivers/cache/cache-v5l2.c
index 7adc69d514c..298eadb4af1 100644
--- a/drivers/cache/cache-v5l2.c
+++ b/drivers/cache/cache-v5l2.c
@@ -14,6 +14,7 @@ 
 #include <asm/io.h>
 #include <dm/ofnode.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 struct l2cache {
 	volatile u64	configure;
diff --git a/drivers/clk/altera/clk-agilex.c b/drivers/clk/altera/clk-agilex.c
index 8254ce68e4d..e6c01dd7b32 100644
--- a/drivers/clk/altera/clk-agilex.c
+++ b/drivers/clk/altera/clk-agilex.c
@@ -13,6 +13,7 @@ 
 #include <dm/util.h>
 #include <dt-bindings/clock/agilex-clock.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include <asm/arch/clock_manager.h>
 
diff --git a/drivers/clk/altera/clk-arria10.c b/drivers/clk/altera/clk-arria10.c
index b05648e8a54..85300e61178 100644
--- a/drivers/clk/altera/clk-arria10.c
+++ b/drivers/clk/altera/clk-arria10.c
@@ -14,6 +14,7 @@ 
 #include <dm/lists.h>
 #include <dm/util.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <asm/arch/clock_manager.h>
diff --git a/drivers/clk/analogbits/wrpll-cln28hpc.c b/drivers/clk/analogbits/wrpll-cln28hpc.c
index a3cb109d357..291a23d93f7 100644
--- a/drivers/clk/analogbits/wrpll-cln28hpc.c
+++ b/drivers/clk/analogbits/wrpll-cln28hpc.c
@@ -23,6 +23,7 @@ 
 
 #include <linux/bug.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/log2.h>
 #include <linux/math64.h>
 #include <linux/clk/analogbits-wrpll-cln28hpc.h>
diff --git a/drivers/clk/aspeed/clk_ast2500.c b/drivers/clk/aspeed/clk_ast2500.c
index d83e6590d6c..e837e0cd19a 100644
--- a/drivers/clk/aspeed/clk_ast2500.c
+++ b/drivers/clk/aspeed/clk_ast2500.c
@@ -14,6 +14,7 @@ 
 #include <dt-bindings/clock/ast2500-scu.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 /*
  * MAC Clock Delay settings, taken from Aspeed SDK
diff --git a/drivers/clk/at91/clk-main.c b/drivers/clk/at91/clk-main.c
index c1ca09c2109..85ec506de12 100644
--- a/drivers/clk/at91/clk-main.c
+++ b/drivers/clk/at91/clk-main.c
@@ -8,6 +8,7 @@ 
 #include <clk-uclass.h>
 #include <dm.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <mach/at91_pmc.h>
 #include "pmc.h"
diff --git a/drivers/clk/at91/clk-plla.c b/drivers/clk/at91/clk-plla.c
index 4f246afa18a..ae7df40f20d 100644
--- a/drivers/clk/at91/clk-plla.c
+++ b/drivers/clk/at91/clk-plla.c
@@ -8,6 +8,7 @@ 
 #include <clk-uclass.h>
 #include <dm.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <mach/at91_pmc.h>
 #include "pmc.h"
diff --git a/drivers/clk/at91/clk-plladiv.c b/drivers/clk/at91/clk-plladiv.c
index ca6158ef6ab..7c074327e27 100644
--- a/drivers/clk/at91/clk-plladiv.c
+++ b/drivers/clk/at91/clk-plladiv.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm/device.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <mach/at91_pmc.h>
 #include "pmc.h"
diff --git a/drivers/clk/at91/clk-system.c b/drivers/clk/at91/clk-system.c
index 76b1958670d..8e1a5f75774 100644
--- a/drivers/clk/at91/clk-system.c
+++ b/drivers/clk/at91/clk-system.c
@@ -8,6 +8,7 @@ 
 #include <clk-uclass.h>
 #include <dm.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <mach/at91_pmc.h>
 #include "pmc.h"
diff --git a/drivers/clk/at91/clk-utmi.c b/drivers/clk/at91/clk-utmi.c
index 72b97af1bcb..99a1ae86535 100644
--- a/drivers/clk/at91/clk-utmi.c
+++ b/drivers/clk/at91/clk-utmi.c
@@ -9,6 +9,7 @@ 
 #include <dm.h>
 #include <stdio.h>
 #include <syscon.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <mach/at91_pmc.h>
 #include <mach/at91_sfr.h>
diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c
index 11859db3265..91e57b38777 100644
--- a/drivers/clk/at91/pmc.c
+++ b/drivers/clk/at91/pmc.c
@@ -11,6 +11,7 @@ 
 #include <asm/global_data.h>
 #include <dm/lists.h>
 #include <dm/util.h>
+#include <linux/errno.h>
 #include "pmc.h"
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/clk/clk-cdce9xx.c b/drivers/clk/clk-cdce9xx.c
index fd47872ab99..a6e49a7765e 100644
--- a/drivers/clk/clk-cdce9xx.c
+++ b/drivers/clk/clk-cdce9xx.c
@@ -15,6 +15,7 @@ 
 #include <i2c.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define MAX_NUMBER_OF_PLLS		4
 #define MAX_NUMER_OF_OUTPUTS		9
diff --git a/drivers/clk/clk-composite.c b/drivers/clk/clk-composite.c
index 819bfca2fcf..62d404d791d 100644
--- a/drivers/clk/clk-composite.c
+++ b/drivers/clk/clk-composite.c
@@ -13,6 +13,7 @@ 
 #include <linux/clk-provider.h>
 #include <clk.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 #include "clk.h"
 
diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c
index 0e0c2d48b74..d2039512b21 100644
--- a/drivers/clk/clk-divider.c
+++ b/drivers/clk/clk-divider.c
@@ -21,6 +21,7 @@ 
 #include <linux/bug.h>
 #include <linux/clk-provider.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/log2.h>
 #include <div64.h>
 #include <clk.h>
diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c
index 0eb24b87fc3..c181c0b6ea5 100644
--- a/drivers/clk/clk-fixed-factor.c
+++ b/drivers/clk/clk-fixed-factor.c
@@ -13,6 +13,7 @@ 
 #include <linux/clk-provider.h>
 #include <div64.h>
 #include <clk.h>
+#include <linux/errno.h>
 #include "clk.h"
 #include <linux/err.h>
 
diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c
index cdca3e38d0d..221db043abc 100644
--- a/drivers/clk/clk-gate.c
+++ b/drivers/clk/clk-gate.c
@@ -16,6 +16,7 @@ 
 #include <linux/bitops.h>
 #include <linux/clk-provider.h>
 #include <clk.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include "clk.h"
 #include <linux/err.h>
diff --git a/drivers/clk/clk-hsdk-cgu.c b/drivers/clk/clk-hsdk-cgu.c
index 2067316e672..6f4cd1ecf2a 100644
--- a/drivers/clk/clk-hsdk-cgu.c
+++ b/drivers/clk/clk-hsdk-cgu.c
@@ -17,6 +17,7 @@ 
 #include <linux/bitops.h>
 #include <linux/bug.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <asm/arcregs.h>
 #include <linux/printk.h>
diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c
index 446c0c7b52d..cba7113f3b6 100644
--- a/drivers/clk/clk-mux.c
+++ b/drivers/clk/clk-mux.c
@@ -31,6 +31,7 @@ 
 #include <linux/bitops.h>
 #include <linux/clk-provider.h>
 #include <clk.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include "clk.h"
diff --git a/drivers/clk/clk-ti-sci.c b/drivers/clk/clk-ti-sci.c
index 7a9a6451374..0f31ee73d9e 100644
--- a/drivers/clk/clk-ti-sci.c
+++ b/drivers/clk/clk-ti-sci.c
@@ -16,6 +16,7 @@ 
 #include <malloc.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include <k3-avs.h>
 
diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c
index 97cd7b1f315..090d0f21693 100644
--- a/drivers/clk/clk-uclass.c
+++ b/drivers/clk/clk-uclass.c
@@ -21,6 +21,7 @@ 
 #include <linux/bug.h>
 #include <linux/clk-provider.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 static inline const struct clk_ops *clk_dev_ops(struct udevice *dev)
 {
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index f55d57a95e6..5dac14c185e 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -13,6 +13,7 @@ 
 #include <dm/lists.h>
 #include <dm/device-internal.h>
 #include <clk.h>
+#include <linux/errno.h>
 
 int clk_register(struct clk *clk, const char *drv_name,
 		 const char *name, const char *parent_name)
diff --git a/drivers/clk/clk_bcm6345.c b/drivers/clk/clk_bcm6345.c
index b850b9fc069..a03cee546c7 100644
--- a/drivers/clk/clk_bcm6345.c
+++ b/drivers/clk/clk_bcm6345.c
@@ -12,6 +12,7 @@ 
 #include <errno.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define MAX_CLKS	32
 
diff --git a/drivers/clk/clk_boston.c b/drivers/clk/clk_boston.c
index 47424d8f533..c97d457062c 100644
--- a/drivers/clk/clk_boston.c
+++ b/drivers/clk/clk_boston.c
@@ -10,6 +10,7 @@ 
 #include <regmap.h>
 #include <syscon.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 struct clk_boston {
diff --git a/drivers/clk/clk_pic32.c b/drivers/clk/clk_pic32.c
index 664d8f98615..c9b047914a4 100644
--- a/drivers/clk/clk_pic32.c
+++ b/drivers/clk/clk_pic32.c
@@ -17,6 +17,7 @@ 
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <mach/pic32.h>
 #include <dt-bindings/clock/microchip,clock.h>
 
diff --git a/drivers/clk/clk_sandbox.c b/drivers/clk/clk_sandbox.c
index 768fbb7c520..d1e2c0dab31 100644
--- a/drivers/clk/clk_sandbox.c
+++ b/drivers/clk/clk_sandbox.c
@@ -9,6 +9,7 @@ 
 #include <errno.h>
 #include <malloc.h>
 #include <asm/clk.h>
+#include <linux/errno.h>
 
 struct sandbox_clk_priv {
 	bool probed;
diff --git a/drivers/clk/clk_sandbox_ccf.c b/drivers/clk/clk_sandbox_ccf.c
index 0619d04f0ec..b282735c1d6 100644
--- a/drivers/clk/clk_sandbox_ccf.c
+++ b/drivers/clk/clk_sandbox_ccf.c
@@ -17,6 +17,7 @@ 
 #include <linux/clk-provider.h>
 #include <sandbox-clk.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 /*
  * Sandbox implementation of CCF primitives necessary for clk-uclass testing
diff --git a/drivers/clk/clk_sandbox_test.c b/drivers/clk/clk_sandbox_test.c
index 873383856f9..6eef29f9dc3 100644
--- a/drivers/clk/clk_sandbox_test.c
+++ b/drivers/clk/clk_sandbox_test.c
@@ -10,6 +10,7 @@ 
 #include <asm/clk.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 struct sandbox_clk_test {
 	struct clk clks[SANDBOX_CLK_TEST_NON_DEVM_COUNT];
diff --git a/drivers/clk/clk_stm32f.c b/drivers/clk/clk_stm32f.c
index 45f5f567f8d..4d0eadf7e4f 100644
--- a/drivers/clk/clk_stm32f.c
+++ b/drivers/clk/clk_stm32f.c
@@ -10,6 +10,7 @@ 
 #include <log.h>
 #include <stm32_rcc.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/clk/clk_stm32h7.c b/drivers/clk/clk_stm32h7.c
index c1856d8678b..d97a211423c 100644
--- a/drivers/clk/clk_stm32h7.c
+++ b/drivers/clk/clk_stm32h7.c
@@ -13,6 +13,7 @@ 
 #include <asm/io.h>
 #include <dm/root.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #include <dt-bindings/clock/stm32h7-clks.h>
diff --git a/drivers/clk/clk_stm32mp1.c b/drivers/clk/clk_stm32mp1.c
index b2e0c8ca00d..e7e57ad73a9 100644
--- a/drivers/clk/clk_stm32mp1.c
+++ b/drivers/clk/clk_stm32mp1.c
@@ -17,6 +17,7 @@ 
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
 #include <asm/arch/sys_proto.h>
diff --git a/drivers/clk/clk_versal.c b/drivers/clk/clk_versal.c
index 19db23159f0..b73dcc2980d 100644
--- a/drivers/clk/clk_versal.c
+++ b/drivers/clk/clk_versal.c
@@ -19,6 +19,7 @@ 
 #include <asm/arch/sys_proto.h>
 #include <zynqmp_firmware.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define MAX_PARENT			100
diff --git a/drivers/clk/clk_vexpress_osc.c b/drivers/clk/clk_vexpress_osc.c
index b48319bba67..950c72d573a 100644
--- a/drivers/clk/clk_vexpress_osc.c
+++ b/drivers/clk/clk_vexpress_osc.c
@@ -14,6 +14,7 @@ 
 #include <errno.h>
 #include <misc.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define CLK_FUNCTION		BIT(20)
 
diff --git a/drivers/clk/clk_zynq.c b/drivers/clk/clk_zynq.c
index f590ad8dfa9..2c8b851295c 100644
--- a/drivers/clk/clk_zynq.c
+++ b/drivers/clk/clk_zynq.c
@@ -20,6 +20,7 @@ 
 #include <asm/arch/clk.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/errno.h>
 
 /* Register bitfield defines */
 #define PLLCTRL_FBDIV_MASK	0x7f000
diff --git a/drivers/clk/clk_zynqmp.c b/drivers/clk/clk_zynqmp.c
index 8c62b63ea2b..3ebf6223c06 100644
--- a/drivers/clk/clk_zynqmp.c
+++ b/drivers/clk/clk_zynqmp.c
@@ -16,6 +16,7 @@ 
 #include <asm/arch/sys_proto.h>
 #include <dm.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 static const resource_size_t zynqmp_crf_apb_clkc_base = 0xfd1a0020;
 static const resource_size_t zynqmp_crl_apb_clkc_base = 0xff5e0020;
diff --git a/drivers/clk/exynos/clk-exynos7420.c b/drivers/clk/exynos/clk-exynos7420.c
index 4a023ea736b..d86f84acef1 100644
--- a/drivers/clk/exynos/clk-exynos7420.c
+++ b/drivers/clk/exynos/clk-exynos7420.c
@@ -11,6 +11,7 @@ 
 #include <clk-uclass.h>
 #include <asm/io.h>
 #include <dt-bindings/clock/exynos7420-clk.h>
+#include <linux/errno.h>
 #include "clk-pll.h"
 
 #define DIVIDER(reg, shift, mask)	\
diff --git a/drivers/clk/ics8n3qv01.c b/drivers/clk/ics8n3qv01.c
index 95f1c7641f2..7d551b7c8d8 100644
--- a/drivers/clk/ics8n3qv01.c
+++ b/drivers/clk/ics8n3qv01.c
@@ -15,6 +15,7 @@ 
 #include <i2c.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 
 const long long ICS8N3QV01_FREF = 114285000;
 const long long ICS8N3QV01_FREF_LL = 114285000LL;
diff --git a/drivers/clk/imx/clk-composite-8m.c b/drivers/clk/imx/clk-composite-8m.c
index 494156751da..64756ed9e64 100644
--- a/drivers/clk/imx/clk-composite-8m.c
+++ b/drivers/clk/imx/clk-composite-8m.c
@@ -12,6 +12,7 @@ 
 #include <dm/devres.h>
 #include <linux/clk-provider.h>
 #include <clk.h>
+#include <linux/errno.h>
 #include "clk.h"
 #include <linux/err.h>
 
diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c
index 40b2d4caab4..0e3678acc63 100644
--- a/drivers/clk/imx/clk-gate2.c
+++ b/drivers/clk/imx/clk-gate2.c
@@ -22,6 +22,7 @@ 
 #include <dm/devres.h>
 #include <linux/clk-provider.h>
 #include <clk.h>
+#include <linux/errno.h>
 #include "clk.h"
 #include <linux/err.h>
 
diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c
index c8d826b0141..709c2883da5 100644
--- a/drivers/clk/imx/clk-imx6q.c
+++ b/drivers/clk/imx/clk-imx6q.c
@@ -12,6 +12,7 @@ 
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <dt-bindings/clock/imx6qdl-clock.h>
+#include <linux/errno.h>
 
 #include "clk.h"
 
diff --git a/drivers/clk/imx/clk-imx8.c b/drivers/clk/imx/clk-imx8.c
index 523ead82e97..63fd42a2946 100644
--- a/drivers/clk/imx/clk-imx8.c
+++ b/drivers/clk/imx/clk-imx8.c
@@ -15,6 +15,7 @@ 
 #include <dt-bindings/clock/imx8qxp-clock.h>
 #include <dt-bindings/soc/imx_rsrc.h>
 #include <misc.h>
+#include <linux/errno.h>
 
 #include "clk-imx8.h"
 
diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c
index d32ff8409aa..081d8aee01b 100644
--- a/drivers/clk/imx/clk-imx8mm.c
+++ b/drivers/clk/imx/clk-imx8mm.c
@@ -12,6 +12,7 @@ 
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <dt-bindings/clock/imx8mm-clock.h>
+#include <linux/errno.h>
 
 #include "clk.h"
 
diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c
index e29d902544c..c35689bdea4 100644
--- a/drivers/clk/imx/clk-imx8mn.c
+++ b/drivers/clk/imx/clk-imx8mn.c
@@ -12,6 +12,7 @@ 
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <dt-bindings/clock/imx8mn-clock.h>
+#include <linux/errno.h>
 
 #include "clk.h"
 
diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c
index c77500bcce0..883a29a4f31 100644
--- a/drivers/clk/imx/clk-imx8mp.c
+++ b/drivers/clk/imx/clk-imx8mp.c
@@ -12,6 +12,7 @@ 
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <dt-bindings/clock/imx8mp-clock.h>
+#include <linux/errno.h>
 
 #include "clk.h"
 
diff --git a/drivers/clk/imx/clk-imx8qm.c b/drivers/clk/imx/clk-imx8qm.c
index d781bcd8a93..1a818694d25 100644
--- a/drivers/clk/imx/clk-imx8qm.c
+++ b/drivers/clk/imx/clk-imx8qm.c
@@ -14,6 +14,7 @@ 
 #include <dt-bindings/clock/imx8qm-clock.h>
 #include <dt-bindings/soc/imx_rsrc.h>
 #include <misc.h>
+#include <linux/errno.h>
 
 #include "clk-imx8.h"
 
diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c
index 40761340739..755d8518f64 100644
--- a/drivers/clk/imx/clk-imx8qxp.c
+++ b/drivers/clk/imx/clk-imx8qxp.c
@@ -14,6 +14,7 @@ 
 #include <dt-bindings/clock/imx8qxp-clock.h>
 #include <dt-bindings/soc/imx_rsrc.h>
 #include <misc.h>
+#include <linux/errno.h>
 
 #include "clk-imx8.h"
 
diff --git a/drivers/clk/imx/clk-imxrt1020.c b/drivers/clk/imx/clk-imxrt1020.c
index 840f783940f..6bf82fee4eb 100644
--- a/drivers/clk/imx/clk-imxrt1020.c
+++ b/drivers/clk/imx/clk-imxrt1020.c
@@ -11,6 +11,7 @@ 
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <dt-bindings/clock/imxrt1020-clock.h>
+#include <linux/errno.h>
 
 #include "clk.h"
 
diff --git a/drivers/clk/imx/clk-imxrt1050.c b/drivers/clk/imx/clk-imxrt1050.c
index 594093ee5fb..4127fa75236 100644
--- a/drivers/clk/imx/clk-imxrt1050.c
+++ b/drivers/clk/imx/clk-imxrt1050.c
@@ -12,6 +12,7 @@ 
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <dt-bindings/clock/imxrt1050-clock.h>
+#include <linux/errno.h>
 
 #include "clk.h"
 
diff --git a/drivers/clk/imx/clk-pfd.c b/drivers/clk/imx/clk-pfd.c
index b8be3167c4c..08f1234aab2 100644
--- a/drivers/clk/imx/clk-pfd.c
+++ b/drivers/clk/imx/clk-pfd.c
@@ -23,6 +23,7 @@ 
 #include <linux/clk-provider.h>
 #include <div64.h>
 #include <clk.h>
+#include <linux/errno.h>
 #include "clk.h"
 #include <linux/err.h>
 
diff --git a/drivers/clk/imx/clk-pll14xx.c b/drivers/clk/imx/clk-pll14xx.c
index ac2461948d2..a9b56b79027 100644
--- a/drivers/clk/imx/clk-pll14xx.c
+++ b/drivers/clk/imx/clk-pll14xx.c
@@ -15,6 +15,7 @@ 
 #include <linux/clk-provider.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <clk.h>
 #include <div64.h>
diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c
index b4a9d587e1b..a0193e18519 100644
--- a/drivers/clk/imx/clk-pllv3.c
+++ b/drivers/clk/imx/clk-pllv3.c
@@ -13,6 +13,7 @@ 
 #include <dm/devres.h>
 #include <dm/uclass.h>
 #include <clk.h>
+#include <linux/errno.h>
 #include "clk.h"
 #include <linux/err.h>
 
diff --git a/drivers/clk/intel/clk_intel.c b/drivers/clk/intel/clk_intel.c
index b633934d90a..371898f2744 100644
--- a/drivers/clk/intel/clk_intel.c
+++ b/drivers/clk/intel/clk_intel.c
@@ -8,6 +8,7 @@ 
 #include <dm.h>
 #include <clk-uclass.h>
 #include <dt-bindings/clock/intel-clock.h>
+#include <linux/errno.h>
 
 static ulong intel_clk_get_rate(struct clk *clk)
 {
diff --git a/drivers/clk/kendryte/bypass.c b/drivers/clk/kendryte/bypass.c
index d1fd28175ba..0d8eb1ce331 100644
--- a/drivers/clk/kendryte/bypass.c
+++ b/drivers/clk/kendryte/bypass.c
@@ -5,6 +5,7 @@ 
 
 #define LOG_CATEGORY UCLASS_CLK
 #include <kendryte/bypass.h>
+#include <linux/errno.h>
 
 #include <clk-uclass.h>
 #include <linux/clk-provider.h>
diff --git a/drivers/clk/kendryte/clk.c b/drivers/clk/kendryte/clk.c
index 981b3b7699b..5128cca1060 100644
--- a/drivers/clk/kendryte/clk.c
+++ b/drivers/clk/kendryte/clk.c
@@ -3,6 +3,7 @@ 
  * Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com>
  */
 #include <kendryte/clk.h>
+#include <linux/errno.h>
 
 #include <asm/io.h>
 #include <dt-bindings/clock/k210-sysctl.h>
diff --git a/drivers/clk/kendryte/pll.c b/drivers/clk/kendryte/pll.c
index 19e358856a8..d439134ed24 100644
--- a/drivers/clk/kendryte/pll.c
+++ b/drivers/clk/kendryte/pll.c
@@ -4,6 +4,7 @@ 
  */
 #define LOG_CATEGORY UCLASS_CLK
 #include <kendryte/pll.h>
+#include <linux/errno.h>
 
 #include <asm/io.h>
 /* For DIV_ROUND_DOWN_ULL, defined in linux/kernel.h */
diff --git a/drivers/clk/mediatek/clk-mt7622.c b/drivers/clk/mediatek/clk-mt7622.c
index dc0ba71f109..3462b49c69d 100644
--- a/drivers/clk/mediatek/clk-mt7622.c
+++ b/drivers/clk/mediatek/clk-mt7622.c
@@ -13,6 +13,7 @@ 
 #include <asm/io.h>
 #include <dt-bindings/clock/mt7622-clk.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include "clk-mtk.h"
 
diff --git a/drivers/clk/mediatek/clk-mt7623.c b/drivers/clk/mediatek/clk-mt7623.c
index a15fb45e8e7..042031dd70f 100644
--- a/drivers/clk/mediatek/clk-mt7623.c
+++ b/drivers/clk/mediatek/clk-mt7623.c
@@ -13,6 +13,7 @@ 
 #include <asm/io.h>
 #include <dt-bindings/clock/mt7623-clk.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include "clk-mtk.h"
 
diff --git a/drivers/clk/mediatek/clk-mt7629.c b/drivers/clk/mediatek/clk-mt7629.c
index 5b2aa5f200a..94b83a53281 100644
--- a/drivers/clk/mediatek/clk-mt7629.c
+++ b/drivers/clk/mediatek/clk-mt7629.c
@@ -13,6 +13,7 @@ 
 #include <asm/io.h>
 #include <dt-bindings/clock/mt7629-clk.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include "clk-mtk.h"
 
diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c
index 388471b03a9..e4217bd9627 100644
--- a/drivers/clk/mediatek/clk-mtk.c
+++ b/drivers/clk/mediatek/clk-mtk.c
@@ -13,6 +13,7 @@ 
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #include "clk-mtk.h"
 
diff --git a/drivers/clk/meson/axg.c b/drivers/clk/meson/axg.c
index 6ef8b418d78..99b4da09417 100644
--- a/drivers/clk/meson/axg.c
+++ b/drivers/clk/meson/axg.c
@@ -16,6 +16,7 @@ 
 #include <div64.h>
 #include <dt-bindings/clock/axg-clkc.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include "clk_meson.h"
 #include <linux/err.h>
 
diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c
index bf2f357435a..ba9ec818de6 100644
--- a/drivers/clk/meson/g12a.c
+++ b/drivers/clk/meson/g12a.c
@@ -18,6 +18,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include "clk_meson.h"
 
diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c
index b9353c053eb..d66b23c2a90 100644
--- a/drivers/clk/meson/gxbb.c
+++ b/drivers/clk/meson/gxbb.c
@@ -16,6 +16,7 @@ 
 #include <syscon.h>
 #include <dt-bindings/clock/gxbb-clkc.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include "clk_meson.h"
 #include <linux/err.h>
 
diff --git a/drivers/clk/mpc83xx_clk.c b/drivers/clk/mpc83xx_clk.c
index b95aedeb2dc..f892074d9d6 100644
--- a/drivers/clk/mpc83xx_clk.c
+++ b/drivers/clk/mpc83xx_clk.c
@@ -17,6 +17,7 @@ 
 #include <dt-bindings/clk/mpc83xx-clk.h>
 #include <asm/arch/soc.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include "mpc83xx_clk.h"
 
diff --git a/drivers/clk/mpc83xx_clk.h b/drivers/clk/mpc83xx_clk.h
index 8a31a4c868f..b03b35a8784 100644
--- a/drivers/clk/mpc83xx_clk.h
+++ b/drivers/clk/mpc83xx_clk.h
@@ -18,6 +18,7 @@ 
  * @RAT_3_TO_1:   Ratio 3:1
  */
 #include <linux/bitops.h>
+#include <linux/errno.h>
 enum ratio {
 	RAT_UNK,
 	RAT_BYP,
diff --git a/drivers/clk/mtmips/clk-mt7628.c b/drivers/clk/mtmips/clk-mt7628.c
index 35780de8c49..f013c77df28 100644
--- a/drivers/clk/mtmips/clk-mt7628.c
+++ b/drivers/clk/mtmips/clk-mt7628.c
@@ -10,6 +10,7 @@ 
 #include <dm.h>
 #include <dt-bindings/clock/mt7628-clk.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 
 /* SYSCFG0 */
diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c
index 2e2ac6fe870..dd2b0b9914b 100644
--- a/drivers/clk/mvebu/armada-37xx-periph.c
+++ b/drivers/clk/mvebu/armada-37xx-periph.c
@@ -18,6 +18,7 @@ 
 #include <asm/arch/cpu.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define TBG_SEL		0x0
diff --git a/drivers/clk/mvebu/armada-37xx-tbg.c b/drivers/clk/mvebu/armada-37xx-tbg.c
index bb943830266..512a1f5824f 100644
--- a/drivers/clk/mvebu/armada-37xx-tbg.c
+++ b/drivers/clk/mvebu/armada-37xx-tbg.c
@@ -16,6 +16,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 
 #define NUM_TBG	    4
 
diff --git a/drivers/clk/owl/clk_owl.c b/drivers/clk/owl/clk_owl.c
index 1999c87a336..d596c0cf161 100644
--- a/drivers/clk/owl/clk_owl.c
+++ b/drivers/clk/owl/clk_owl.c
@@ -8,6 +8,7 @@ 
 
 #include <common.h>
 #include <dm.h>
+#include <linux/errno.h>
 #include "clk_owl.h"
 #include <asm/io.h>
 #if defined(CONFIG_MACH_S900)
diff --git a/drivers/clk/renesas/clk-rcar-gen2.c b/drivers/clk/renesas/clk-rcar-gen2.c
index a859625b60b..52d7bba0cff 100644
--- a/drivers/clk/renesas/clk-rcar-gen2.c
+++ b/drivers/clk/renesas/clk-rcar-gen2.c
@@ -18,6 +18,7 @@ 
 #include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <dt-bindings/clock/renesas-cpg-mssr.h>
diff --git a/drivers/clk/renesas/clk-rcar-gen3.c b/drivers/clk/renesas/clk-rcar-gen3.c
index ad2c73998d4..be230d1d923 100644
--- a/drivers/clk/renesas/clk-rcar-gen3.c
+++ b/drivers/clk/renesas/clk-rcar-gen3.c
@@ -20,6 +20,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include <dt-bindings/clock/renesas-cpg-mssr.h>
 
diff --git a/drivers/clk/renesas/renesas-cpg-mssr.c b/drivers/clk/renesas/renesas-cpg-mssr.c
index 7c1222f6c8c..e3e5d9640c9 100644
--- a/drivers/clk/renesas/renesas-cpg-mssr.c
+++ b/drivers/clk/renesas/renesas-cpg-mssr.c
@@ -17,6 +17,7 @@ 
 #include <wait_bit.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include <dt-bindings/clock/renesas-cpg-mssr.h>
 
diff --git a/drivers/clk/rockchip/clk_pll.c b/drivers/clk/rockchip/clk_pll.c
index 3424a9a36a3..65da88b5109 100644
--- a/drivers/clk/rockchip/clk_pll.c
+++ b/drivers/clk/rockchip/clk_pll.c
@@ -14,6 +14,7 @@ 
 #include <asm/arch-rockchip/hardware.h>
 #include <div64.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 static struct rockchip_pll_rate_table rockchip_auto_table;
 
diff --git a/drivers/clk/rockchip/clk_px30.c b/drivers/clk/rockchip/clk_px30.c
index 4178502bdff..8fc3b6e572f 100644
--- a/drivers/clk/rockchip/clk_px30.c
+++ b/drivers/clk/rockchip/clk_px30.c
@@ -21,6 +21,7 @@ 
 #include <dt-bindings/clock/px30-cru.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/clk/rockchip/clk_rk3036.c b/drivers/clk/rockchip/clk_rk3036.c
index 274572f70c1..80aa7c2f39a 100644
--- a/drivers/clk/rockchip/clk_rk3036.c
+++ b/drivers/clk/rockchip/clk_rk3036.c
@@ -17,6 +17,7 @@ 
 #include <dm/lists.h>
 #include <dt-bindings/clock/rk3036-cru.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/log2.h>
 #include <linux/stringify.h>
 
diff --git a/drivers/clk/rockchip/clk_rk3128.c b/drivers/clk/rockchip/clk_rk3128.c
index 5a0079e0298..b9c896460f0 100644
--- a/drivers/clk/rockchip/clk_rk3128.c
+++ b/drivers/clk/rockchip/clk_rk3128.c
@@ -19,6 +19,7 @@ 
 #include <dm/lists.h>
 #include <dt-bindings/clock/rk3128-cru.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/log2.h>
 
 enum {
diff --git a/drivers/clk/rockchip/clk_rk3188.c b/drivers/clk/rockchip/clk_rk3188.c
index aacc8cf2d14..b77b92e4c5b 100644
--- a/drivers/clk/rockchip/clk_rk3188.c
+++ b/drivers/clk/rockchip/clk_rk3188.c
@@ -24,6 +24,7 @@ 
 #include <dm/uclass-internal.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/log2.h>
 #include <linux/stringify.h>
 
diff --git a/drivers/clk/rockchip/clk_rk322x.c b/drivers/clk/rockchip/clk_rk322x.c
index b63fb9b3cca..780fd7e725b 100644
--- a/drivers/clk/rockchip/clk_rk322x.c
+++ b/drivers/clk/rockchip/clk_rk322x.c
@@ -18,6 +18,7 @@ 
 #include <dt-bindings/clock/rk3228-cru.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/log2.h>
 #include <linux/string.h>
 #include <linux/stringify.h>
diff --git a/drivers/clk/rockchip/clk_rk3288.c b/drivers/clk/rockchip/clk_rk3288.c
index 6221515df20..da40f74d424 100644
--- a/drivers/clk/rockchip/clk_rk3288.c
+++ b/drivers/clk/rockchip/clk_rk3288.c
@@ -28,6 +28,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/log2.h>
 #include <linux/string.h>
 #include <linux/stringify.h>
diff --git a/drivers/clk/rockchip/clk_rk3308.c b/drivers/clk/rockchip/clk_rk3308.c
index c6270aa07e1..7106685bb50 100644
--- a/drivers/clk/rockchip/clk_rk3308.c
+++ b/drivers/clk/rockchip/clk_rk3308.c
@@ -20,6 +20,7 @@ 
 #include <dm/lists.h>
 #include <dt-bindings/clock/rk3308-cru.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/clk/rockchip/clk_rk3328.c b/drivers/clk/rockchip/clk_rk3328.c
index 1050559cedf..6c7626ab154 100644
--- a/drivers/clk/rockchip/clk_rk3328.c
+++ b/drivers/clk/rockchip/clk_rk3328.c
@@ -21,6 +21,7 @@ 
 #include <dt-bindings/clock/rk3328-cru.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 struct pll_div {
diff --git a/drivers/clk/rockchip/clk_rk3368.c b/drivers/clk/rockchip/clk_rk3368.c
index 586639344d0..0d677f55ee1 100644
--- a/drivers/clk/rockchip/clk_rk3368.c
+++ b/drivers/clk/rockchip/clk_rk3368.c
@@ -22,6 +22,7 @@ 
 #include <dm/lists.h>
 #include <dt-bindings/clock/rk3368-cru.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <linux/stringify.h>
diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c
index e6d74ab6b93..016633c1382 100644
--- a/drivers/clk/rockchip/clk_rk3399.c
+++ b/drivers/clk/rockchip/clk_rk3399.c
@@ -23,6 +23,7 @@ 
 #include <dt-bindings/clock/rk3399-cru.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/clk/rockchip/clk_rv1108.c b/drivers/clk/rockchip/clk_rv1108.c
index 87a2847485c..4297934b981 100644
--- a/drivers/clk/rockchip/clk_rv1108.c
+++ b/drivers/clk/rockchip/clk_rv1108.c
@@ -21,6 +21,7 @@ 
 #include <dm/lists.h>
 #include <dt-bindings/clock/rv1108-cru.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/stringify.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/clk/sifive/fu540-prci.c b/drivers/clk/sifive/fu540-prci.c
index 6cb56d21acd..0aa4ac5eebd 100644
--- a/drivers/clk/sifive/fu540-prci.c
+++ b/drivers/clk/sifive/fu540-prci.c
@@ -37,6 +37,7 @@ 
 #include <errno.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <linux/math64.h>
diff --git a/drivers/clk/sunxi/clk_sunxi.c b/drivers/clk/sunxi/clk_sunxi.c
index d440abc1394..1b70f15ab9a 100644
--- a/drivers/clk/sunxi/clk_sunxi.c
+++ b/drivers/clk/sunxi/clk_sunxi.c
@@ -14,6 +14,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/ccu.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/log2.h>
 
 static const struct ccu_clk_gate *priv_to_gate(struct ccu_priv *priv,
diff --git a/drivers/clk/tegra/tegra-car-clk.c b/drivers/clk/tegra/tegra-car-clk.c
index 09a7cf470ca..d6abf0d6c11 100644
--- a/drivers/clk/tegra/tegra-car-clk.c
+++ b/drivers/clk/tegra/tegra-car-clk.c
@@ -10,6 +10,7 @@ 
 #include <malloc.h>
 #include <asm/arch/clock.h>
 #include <asm/arch-tegra/clk_rst.h>
+#include <linux/errno.h>
 
 static int tegra_car_clk_request(struct clk *clk)
 {
diff --git a/drivers/clk/uniphier/clk-uniphier-core.c b/drivers/clk/uniphier/clk-uniphier-core.c
index 4e25db354e0..13f2b76c890 100644
--- a/drivers/clk/uniphier/clk-uniphier-core.c
+++ b/drivers/clk/uniphier/clk-uniphier-core.c
@@ -10,6 +10,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
 
diff --git a/drivers/core/acpi.c b/drivers/core/acpi.c
index 26f494f2aeb..356cf0862a5 100644
--- a/drivers/core/acpi.c
+++ b/drivers/core/acpi.c
@@ -18,6 +18,7 @@ 
 #include <dm/acpi.h>
 #include <dm/device-internal.h>
 #include <dm/root.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define MAX_ACPI_ITEMS	100
diff --git a/drivers/core/device-remove.c b/drivers/core/device-remove.c
index 360cfa72bc1..3de629d24df 100644
--- a/drivers/core/device-remove.c
+++ b/drivers/core/device-remove.c
@@ -19,6 +19,7 @@ 
 #include <dm/uclass-internal.h>
 #include <dm/util.h>
 #include <power-domain.h>
+#include <linux/errno.h>
 
 int device_chld_unbind(struct udevice *dev, struct driver *drv)
 {
diff --git a/drivers/core/device.c b/drivers/core/device.c
index 29b71e24055..ac6ce92bc0f 100644
--- a/drivers/core/device.c
+++ b/drivers/core/device.c
@@ -29,6 +29,7 @@ 
 #include <dm/uclass-internal.h>
 #include <dm/util.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/list.h>
 #include <power-domain.h>
 #include <linux/printk.h>
diff --git a/drivers/core/devres.c b/drivers/core/devres.c
index e2d4a80cefd..9507ecb9a80 100644
--- a/drivers/core/devres.c
+++ b/drivers/core/devres.c
@@ -14,6 +14,7 @@ 
 #include <malloc.h>
 #include <stdio.h>
 #include <linux/compat.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/list.h>
 #include <dm/device.h>
diff --git a/drivers/core/lists.c b/drivers/core/lists.c
index 86a99abfaae..dcc1e4a4f95 100644
--- a/drivers/core/lists.c
+++ b/drivers/core/lists.c
@@ -19,6 +19,7 @@ 
 #include <dm/util.h>
 #include <fdtdec.h>
 #include <linux/compiler.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 struct driver *lists_driver_lookup_name(const char *name)
diff --git a/drivers/core/of_access.c b/drivers/core/of_access.c
index 368cd023578..ad9bd7dd5a2 100644
--- a/drivers/core/of_access.c
+++ b/drivers/core/of_access.c
@@ -25,6 +25,7 @@ 
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <dm/of_access.h>
 #include <linux/ctype.h>
diff --git a/drivers/core/of_addr.c b/drivers/core/of_addr.c
index 6316b651534..4fd4ee0c889 100644
--- a/drivers/core/of_addr.c
+++ b/drivers/core/of_addr.c
@@ -9,6 +9,7 @@ 
 #include <common.h>
 #include <log.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
diff --git a/drivers/core/of_extra.c b/drivers/core/of_extra.c
index e04fc9d2687..f2efc0c8ad9 100644
--- a/drivers/core/of_extra.c
+++ b/drivers/core/of_extra.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <log.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <dm/of_access.h>
 #include <dm/of_extra.h>
diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c
index fe94799b230..d68be142e68 100644
--- a/drivers/core/ofnode.c
+++ b/drivers/core/ofnode.c
@@ -12,6 +12,7 @@ 
 #include <malloc.h>
 #include <vsprintf.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
diff --git a/drivers/core/read.c b/drivers/core/read.c
index 8a31dc67c9b..ecd812566ce 100644
--- a/drivers/core/read.c
+++ b/drivers/core/read.c
@@ -11,6 +11,7 @@ 
 #include <mapmem.h>
 #include <asm/types.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 
 int dev_read_u32(const struct udevice *dev, const char *propname, u32 *outp)
 {
diff --git a/drivers/core/regmap.c b/drivers/core/regmap.c
index e3f2affd1cf..37fff77dc09 100644
--- a/drivers/core/regmap.c
+++ b/drivers/core/regmap.c
@@ -9,6 +9,7 @@ 
 #include <errno.h>
 #include <log.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
 #include <mapmem.h>
diff --git a/drivers/core/root.c b/drivers/core/root.c
index 1e9d580c494..2d0deea9f78 100644
--- a/drivers/core/root.c
+++ b/drivers/core/root.c
@@ -12,6 +12,7 @@ 
 #include <log.h>
 #include <malloc.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <dm/acpi.h>
 #include <dm/device.h>
diff --git a/drivers/core/simple-pm-bus.c b/drivers/core/simple-pm-bus.c
index 51dc9b206fd..96608bd95ed 100644
--- a/drivers/core/simple-pm-bus.c
+++ b/drivers/core/simple-pm-bus.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <linux/errno.h>
 
 /*
  * Power domains are taken care of by driver_probe, so we just have to enable
diff --git a/drivers/core/syscon-uclass.c b/drivers/core/syscon-uclass.c
index b5cd763b6bb..11ac1b17733 100644
--- a/drivers/core/syscon-uclass.c
+++ b/drivers/core/syscon-uclass.c
@@ -15,6 +15,7 @@ 
 #include <dm/lists.h>
 #include <dm/root.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 /*
  * Caution:
diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c
index 98fdb014222..3fae359866f 100644
--- a/drivers/core/uclass.c
+++ b/drivers/core/uclass.c
@@ -20,6 +20,7 @@ 
 #include <dm/uclass.h>
 #include <dm/uclass-internal.h>
 #include <dm/util.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/core/util.c b/drivers/core/util.c
index cd15768970c..242fb7010de 100644
--- a/drivers/core/util.c
+++ b/drivers/core/util.c
@@ -10,6 +10,7 @@ 
 #include <dm/ofnode.h>
 #include <dm/read.h>
 #include <dm/util.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <vsprintf.h>
 
diff --git a/drivers/cpu/bmips_cpu.c b/drivers/cpu/bmips_cpu.c
index 5a2fe894a5d..44110e1d8ec 100644
--- a/drivers/cpu/bmips_cpu.c
+++ b/drivers/cpu/bmips_cpu.c
@@ -17,6 +17,7 @@ 
 #include <vsprintf.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define REV_CHIPID_SHIFT		16
 #define REV_CHIPID_MASK			(0xffff << REV_CHIPID_SHIFT)
diff --git a/drivers/cpu/cpu-uclass.c b/drivers/cpu/cpu-uclass.c
index 58c8f833c6f..7aac150b12c 100644
--- a/drivers/cpu/cpu-uclass.c
+++ b/drivers/cpu/cpu-uclass.c
@@ -12,6 +12,7 @@ 
 #include <dm/lists.h>
 #include <dm/root.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 int cpu_probe_all(void)
diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c
index 2ebb2819488..0c660f81227 100644
--- a/drivers/cpu/imx8_cpu.c
+++ b/drivers/cpu/imx8_cpu.c
@@ -16,6 +16,7 @@ 
 #include <asm/arch-imx/cpu.h>
 #include <asm/armv8/cpu.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/cpu/mpc83xx_cpu.c b/drivers/cpu/mpc83xx_cpu.c
index 6929b6cf45b..126ae6cf7ae 100644
--- a/drivers/cpu/mpc83xx_cpu.c
+++ b/drivers/cpu/mpc83xx_cpu.c
@@ -13,6 +13,7 @@ 
 #include <vsprintf.h>
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include "mpc83xx_cpu.h"
 
diff --git a/drivers/cpu/riscv_cpu.c b/drivers/cpu/riscv_cpu.c
index fcf487d73d0..2fd18901dd4 100644
--- a/drivers/cpu/riscv_cpu.c
+++ b/drivers/cpu/riscv_cpu.c
@@ -15,6 +15,7 @@ 
 #include <dm/lists.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/crypto/fsl/fsl_rsa.c b/drivers/crypto/fsl/fsl_rsa.c
index ed2a54f6ec2..2658f8c0434 100644
--- a/drivers/crypto/fsl/fsl_rsa.c
+++ b/drivers/crypto/fsl/fsl_rsa.c
@@ -10,6 +10,7 @@ 
 #include <log.h>
 #include <asm/types.h>
 #include <malloc.h>
+#include <linux/errno.h>
 #include "jobdesc.h"
 #include "desc.h"
 #include "jr.h"
diff --git a/drivers/crypto/fsl/jr.c b/drivers/crypto/fsl/jr.c
index 9e31e92024c..9ac4817d448 100644
--- a/drivers/crypto/fsl/jr.c
+++ b/drivers/crypto/fsl/jr.c
@@ -8,6 +8,7 @@ 
 #include <common.h>
 #include <cpu_func.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <log.h>
 #include <malloc.h>
diff --git a/drivers/crypto/fsl/rng.c b/drivers/crypto/fsl/rng.c
index e4a952caeec..77f8e8a055f 100644
--- a/drivers/crypto/fsl/rng.c
+++ b/drivers/crypto/fsl/rng.c
@@ -11,6 +11,7 @@ 
 #include <cpu_func.h>
 #include <dm.h>
 #include <rng.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include "desc_constr.h"
diff --git a/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c b/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c
index f5ae35e1325..8997980caca 100644
--- a/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c
+++ b/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <u-boot/rsa-mod-exp.h>
 #include <errno.h>
 #include <fdtdec.h>
diff --git a/drivers/ddr/altera/sdram_agilex.c b/drivers/ddr/altera/sdram_agilex.c
index 771820941aa..8cc648bc98e 100644
--- a/drivers/ddr/altera/sdram_agilex.c
+++ b/drivers/ddr/altera/sdram_agilex.c
@@ -16,6 +16,7 @@ 
 #include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include "sdram_soc64.h"
 #include <wait_bit.h>
 #include <asm/arch/firewall.h>
diff --git a/drivers/ddr/altera/sdram_arria10.c b/drivers/ddr/altera/sdram_arria10.c
index 488f950dfcf..7d51bfd83c5 100644
--- a/drivers/ddr/altera/sdram_arria10.c
+++ b/drivers/ddr/altera/sdram_arria10.c
@@ -23,6 +23,7 @@ 
 #include <asm/arch/sdram.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 
diff --git a/drivers/ddr/altera/sdram_gen5.c b/drivers/ddr/altera/sdram_gen5.c
index 01857f29256..bc20fa09645 100644
--- a/drivers/ddr/altera/sdram_gen5.c
+++ b/drivers/ddr/altera/sdram_gen5.c
@@ -19,6 +19,7 @@ 
 #include <asm/bitops.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "sequencer.h"
diff --git a/drivers/ddr/altera/sdram_soc64.c b/drivers/ddr/altera/sdram_soc64.c
index 03ca6b58cfc..778528bf863 100644
--- a/drivers/ddr/altera/sdram_soc64.c
+++ b/drivers/ddr/altera/sdram_soc64.c
@@ -19,6 +19,7 @@ 
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "sdram_soc64.h"
 #include <wait_bit.h>
diff --git a/drivers/ddr/altera/sequencer.c b/drivers/ddr/altera/sequencer.c
index 7c54f001825..8d62f02660d 100644
--- a/drivers/ddr/altera/sequencer.c
+++ b/drivers/ddr/altera/sequencer.c
@@ -9,6 +9,7 @@ 
 #include <asm/arch/sdram.h>
 #include <errno.h>
 #include <hang.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "sequencer.h"
 
diff --git a/drivers/demo/demo-shape.c b/drivers/demo/demo-shape.c
index 3e1f79aee50..f35bc3e1492 100644
--- a/drivers/demo/demo-shape.c
+++ b/drivers/demo/demo-shape.c
@@ -14,6 +14,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/demo/demo-uclass.c b/drivers/demo/demo-uclass.c
index 5856a9891e8..cf85bf24a3f 100644
--- a/drivers/demo/demo-uclass.c
+++ b/drivers/demo/demo-uclass.c
@@ -15,6 +15,7 @@ 
 #include <malloc.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/list.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c
index dad6b5a1e36..4cc2be16bb3 100644
--- a/drivers/dfu/dfu.c
+++ b/drivers/dfu/dfu.c
@@ -17,6 +17,7 @@ 
 #include <hash.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/list.h>
 #include <linux/compiler.h>
 #include <linux/printk.h>
diff --git a/drivers/dfu/dfu_mmc.c b/drivers/dfu/dfu_mmc.c
index d34456c82f2..94989c2ba23 100644
--- a/drivers/dfu/dfu_mmc.c
+++ b/drivers/dfu/dfu_mmc.c
@@ -18,6 +18,7 @@ 
 #include <part.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/dfu/dfu_mtd.c b/drivers/dfu/dfu_mtd.c
index 679c7713fba..b93d9987374 100644
--- a/drivers/dfu/dfu_mtd.c
+++ b/drivers/dfu/dfu_mtd.c
@@ -14,6 +14,7 @@ 
 #include <vsprintf.h>
 #include <jffs2/load_kernel.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static bool mtd_is_aligned_with_block_size(struct mtd_info *mtd, u64 size)
diff --git a/drivers/dfu/dfu_ram.c b/drivers/dfu/dfu_ram.c
index 969468e7e41..55c3dc9eb19 100644
--- a/drivers/dfu/dfu_ram.c
+++ b/drivers/dfu/dfu_ram.c
@@ -13,6 +13,7 @@ 
 #include <errno.h>
 #include <dfu.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/dfu/dfu_sf.c b/drivers/dfu/dfu_sf.c
index c6c5328602e..3d0a4f98971 100644
--- a/drivers/dfu/dfu_sf.c
+++ b/drivers/dfu/dfu_sf.c
@@ -14,6 +14,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <jffs2/load_kernel.h>
+#include <linux/errno.h>
 #include <linux/mtd/mtd.h>
 #include <linux/string.h>
 
diff --git a/drivers/dfu/dfu_tftp.c b/drivers/dfu/dfu_tftp.c
index efa25d86f22..61efb11a545 100644
--- a/drivers/dfu/dfu_tftp.c
+++ b/drivers/dfu/dfu_tftp.c
@@ -9,6 +9,7 @@ 
 #include <malloc.h>
 #include <errno.h>
 #include <dfu.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/dma/bcm6348-iudma.c b/drivers/dma/bcm6348-iudma.c
index ceb8de9b8af..e1130f8f9fb 100644
--- a/drivers/dma/bcm6348-iudma.c
+++ b/drivers/dma/bcm6348-iudma.c
@@ -28,6 +28,7 @@ 
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #define DMA_RX_DESC	6
diff --git a/drivers/dma/dma-uclass.c b/drivers/dma/dma-uclass.c
index 79fbfa87d12..cc872831b5f 100644
--- a/drivers/dma/dma-uclass.c
+++ b/drivers/dma/dma-uclass.c
@@ -19,6 +19,7 @@ 
 #include <dma-uclass.h>
 #include <dt-structs.h>
 #include <errno.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #ifdef CONFIG_DMA_CHANNELS
diff --git a/drivers/dma/lpc32xx_dma.c b/drivers/dma/lpc32xx_dma.c
index 3fd56053fae..7078d3e7c6a 100644
--- a/drivers/dma/lpc32xx_dma.c
+++ b/drivers/dma/lpc32xx_dma.c
@@ -18,6 +18,7 @@ 
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 /* DMA controller channel register structure */
diff --git a/drivers/dma/sandbox-dma-test.c b/drivers/dma/sandbox-dma-test.c
index 6e02e8ff6e3..9a6904cd634 100644
--- a/drivers/dma/sandbox-dma-test.c
+++ b/drivers/dma/sandbox-dma-test.c
@@ -16,6 +16,7 @@ 
 #include <dma-uclass.h>
 #include <dt-structs.h>
 #include <errno.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/dma/ti/k3-psil.c b/drivers/dma/ti/k3-psil.c
index b5c92b28293..56da1e605c3 100644
--- a/drivers/dma/ti/k3-psil.c
+++ b/drivers/dma/ti/k3-psil.c
@@ -4,6 +4,7 @@ 
  *  Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
  */
 
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/err.h>
 
diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c
index 15be04b0898..0b6de5bbbcc 100644
--- a/drivers/dma/ti/k3-udma.c
+++ b/drivers/dma/ti/k3-udma.c
@@ -26,6 +26,7 @@ 
 #include <linux/delay.h>
 #include <linux/bitmap.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/soc/ti/k3-navss-ringacc.h>
 #include <linux/soc/ti/cppi5.h>
diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot/fb_common.c
index dfa383de57d..74a5bce22f7 100644
--- a/drivers/fastboot/fb_common.c
+++ b/drivers/fastboot/fb_common.c
@@ -17,6 +17,7 @@ 
 #include <stdarg.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <net/fastboot.h>
 
diff --git a/drivers/fastboot/fb_getvar.c b/drivers/fastboot/fb_getvar.c
index 448840ae4fe..b8f4938f9d5 100644
--- a/drivers/fastboot/fb_getvar.c
+++ b/drivers/fastboot/fb_getvar.c
@@ -13,6 +13,7 @@ 
 #include <part.h>
 #include <version.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/fastboot/fb_mmc.c b/drivers/fastboot/fb_mmc.c
index 5dc58f00a75..37cef1890f2 100644
--- a/drivers/fastboot/fb_mmc.c
+++ b/drivers/fastboot/fb_mmc.c
@@ -20,6 +20,7 @@ 
 #include <stdio.h>
 #include <linux/compat.h>
 #include <android_image.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/fastboot/fb_nand.c b/drivers/fastboot/fb_nand.c
index 43158063116..074aa2aeb2b 100644
--- a/drivers/fastboot/fb_nand.c
+++ b/drivers/fastboot/fb_nand.c
@@ -9,6 +9,7 @@ 
 #include <blk.h>
 #include <flash.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/firmware/firmware-zynqmp.c b/drivers/firmware/firmware-zynqmp.c
index b4f8dba9604..01d5ac72f8f 100644
--- a/drivers/firmware/firmware-zynqmp.c
+++ b/drivers/firmware/firmware-zynqmp.c
@@ -13,6 +13,7 @@ 
 #include <zynqmp_firmware.h>
 #include <asm/cache.h>
 #include <asm/ptrace.h>
+#include <linux/errno.h>
 
 #if defined(CONFIG_ZYNQMP_IPI)
 #include <mailbox.h>
diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c
index 1a38526d80a..d2e1be9c994 100644
--- a/drivers/firmware/ti_sci.c
+++ b/drivers/firmware/ti_sci.c
@@ -19,6 +19,7 @@ 
 #include <linux/bitops.h>
 #include <linux/compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/soc/ti/k3-sec-proxy.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include <linux/string.h>
diff --git a/drivers/fpga/altera.c b/drivers/fpga/altera.c
index 7f7d768c5cb..9908630c2d4 100644
--- a/drivers/fpga/altera.c
+++ b/drivers/fpga/altera.c
@@ -16,6 +16,7 @@ 
 #include <log.h>
 #include <stdio.h>
 #include <stratixII.h>
+#include <linux/errno.h>
 
 /* Define FPGA_DEBUG to 1 to get debug printf's */
 #define FPGA_DEBUG	0
diff --git a/drivers/fpga/socfpga_arria10.c b/drivers/fpga/socfpga_arria10.c
index 10d57a90f56..cd70cd922f3 100644
--- a/drivers/fpga/socfpga_arria10.c
+++ b/drivers/fpga/socfpga_arria10.c
@@ -23,6 +23,7 @@ 
 #include <watchdog.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define CFGWDTH_32	1
diff --git a/drivers/fpga/stratix10.c b/drivers/fpga/stratix10.c
index 81a3c35d9eb..e4a513171eb 100644
--- a/drivers/fpga/stratix10.c
+++ b/drivers/fpga/stratix10.c
@@ -10,6 +10,7 @@ 
 #include <time.h>
 #include <asm/arch/mailbox_s10.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define RECONFIG_STATUS_POLL_RESP_TIMEOUT_MS		60000
diff --git a/drivers/gpio/74x164_gpio.c b/drivers/gpio/74x164_gpio.c
index 81666c83a59..a6d360a04e1 100644
--- a/drivers/gpio/74x164_gpio.c
+++ b/drivers/gpio/74x164_gpio.c
@@ -20,6 +20,7 @@ 
 #include <dm/device_compat.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <spi.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/gpio/atmel_pio4.c b/drivers/gpio/atmel_pio4.c
index b82fe74a62b..9b291ae976a 100644
--- a/drivers/gpio/atmel_pio4.c
+++ b/drivers/gpio/atmel_pio4.c
@@ -15,6 +15,7 @@ 
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <mach/gpio.h>
 #include <mach/atmel_pio4.h>
 
diff --git a/drivers/gpio/axp_gpio.c b/drivers/gpio/axp_gpio.c
index 88993b643e2..76008670e0b 100644
--- a/drivers/gpio/axp_gpio.c
+++ b/drivers/gpio/axp_gpio.c
@@ -15,6 +15,7 @@ 
 #include <dm/lists.h>
 #include <dm/root.h>
 #include <errno.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static int axp_gpio_set_value(struct udevice *dev, unsigned pin, int val);
diff --git a/drivers/gpio/bcm2835_gpio.c b/drivers/gpio/bcm2835_gpio.c
index 0dff9ac711d..c7d120246fc 100644
--- a/drivers/gpio/bcm2835_gpio.c
+++ b/drivers/gpio/bcm2835_gpio.c
@@ -11,6 +11,7 @@ 
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <fdtdec.h>
+#include <linux/errno.h>
 
 struct bcm2835_gpios {
 	struct bcm2835_gpio_regs *reg;
diff --git a/drivers/gpio/bcm6345_gpio.c b/drivers/gpio/bcm6345_gpio.c
index 5da11d988e0..5eaad77dcb6 100644
--- a/drivers/gpio/bcm6345_gpio.c
+++ b/drivers/gpio/bcm6345_gpio.c
@@ -13,6 +13,7 @@ 
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 struct bcm6345_gpio_priv {
 	void __iomem *reg_dirout;
diff --git a/drivers/gpio/cortina_gpio.c b/drivers/gpio/cortina_gpio.c
index 055907c1a1d..3b093c87568 100644
--- a/drivers/gpio/cortina_gpio.c
+++ b/drivers/gpio/cortina_gpio.c
@@ -13,6 +13,7 @@ 
 #include <linux/bitops.h>
 #include <linux/compat.h>
 #include <linux/compiler.h>
+#include <linux/errno.h>
 
 /* GPIO Register Map */
 #define CORTINA_GPIO_CFG	0x00
diff --git a/drivers/gpio/da8xx_gpio.c b/drivers/gpio/da8xx_gpio.c
index dd7506ff177..d38a3f75bc5 100644
--- a/drivers/gpio/da8xx_gpio.c
+++ b/drivers/gpio/da8xx_gpio.c
@@ -15,6 +15,7 @@ 
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <dt-bindings/gpio/gpio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "da8xx_gpio.h"
diff --git a/drivers/gpio/dwapb_gpio.c b/drivers/gpio/dwapb_gpio.c
index e5e35181940..3ab3b399c6b 100644
--- a/drivers/gpio/dwapb_gpio.c
+++ b/drivers/gpio/dwapb_gpio.c
@@ -20,6 +20,7 @@ 
 #include <errno.h>
 #include <reset.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define GPIO_SWPORT_DR(p)	(0x00 + (p) * 0xc)
 #define GPIO_SWPORT_DDR(p)	(0x04 + (p) * 0xc)
diff --git a/drivers/gpio/gpio-rza1.c b/drivers/gpio/gpio-rza1.c
index aa600e483a6..6407727b453 100644
--- a/drivers/gpio/gpio-rza1.c
+++ b/drivers/gpio/gpio-rza1.c
@@ -11,6 +11,7 @@ 
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define P(bank)			(0x0000 + (bank) * 4)
 #define PSR(bank)		(0x0100 + (bank) * 4)
diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c
index b4501da67d1..44ba2ac2b3c 100644
--- a/drivers/gpio/gpio-uclass.c
+++ b/drivers/gpio/gpio-uclass.c
@@ -22,6 +22,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bug.h>
 #include <linux/ctype.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/gpio/hi6220_gpio.c b/drivers/gpio/hi6220_gpio.c
index 49236c97722..eb369195c8d 100644
--- a/drivers/gpio/hi6220_gpio.c
+++ b/drivers/gpio/hi6220_gpio.c
@@ -11,6 +11,7 @@ 
 #include <asm/io.h>
 #include <errno.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static int hi6220_gpio_direction_input(struct udevice *dev, unsigned int gpio)
diff --git a/drivers/gpio/hsdk-creg-gpio.c b/drivers/gpio/hsdk-creg-gpio.c
index d9df804f639..82ce0a813ba 100644
--- a/drivers/gpio/hsdk-creg-gpio.c
+++ b/drivers/gpio/hsdk-creg-gpio.c
@@ -16,6 +16,7 @@ 
 #include <dm.h>
 #include <errno.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #define DRV_NAME	"gpio_creg"
diff --git a/drivers/gpio/imx_rgpio2p.c b/drivers/gpio/imx_rgpio2p.c
index 60b8e8e25ac..fe171af18c5 100644
--- a/drivers/gpio/imx_rgpio2p.c
+++ b/drivers/gpio/imx_rgpio2p.c
@@ -13,6 +13,7 @@ 
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <malloc.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 enum imx_rgpio2p_direction {
diff --git a/drivers/gpio/intel_broadwell_gpio.c b/drivers/gpio/intel_broadwell_gpio.c
index 4323f0ba760..4fc345c755e 100644
--- a/drivers/gpio/intel_broadwell_gpio.c
+++ b/drivers/gpio/intel_broadwell_gpio.c
@@ -18,6 +18,7 @@ 
 #include <asm/pci.h>
 #include <asm/arch/gpio.h>
 #include <dt-bindings/gpio/x86-gpio.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/gpio/intel_gpio.c b/drivers/gpio/intel_gpio.c
index 975293ff3ab..360ec685249 100644
--- a/drivers/gpio/intel_gpio.c
+++ b/drivers/gpio/intel_gpio.c
@@ -22,6 +22,7 @@ 
 #include <asm/arch/gpio.h>
 #include <dm/acpi.h>
 #include <dt-bindings/gpio/x86-gpio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static int intel_gpio_direction_input(struct udevice *dev, uint offset)
diff --git a/drivers/gpio/intel_ich6_gpio.c b/drivers/gpio/intel_ich6_gpio.c
index 4a2757d1ac6..b3df925c756 100644
--- a/drivers/gpio/intel_ich6_gpio.c
+++ b/drivers/gpio/intel_ich6_gpio.c
@@ -38,6 +38,7 @@ 
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/pci.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/gpio/iproc_gpio.c b/drivers/gpio/iproc_gpio.c
index cc26a1306b6..50eb95d2522 100644
--- a/drivers/gpio/iproc_gpio.c
+++ b/drivers/gpio/iproc_gpio.c
@@ -11,6 +11,7 @@ 
 #include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/pinctrl.h>
+#include <linux/errno.h>
 
 /*
  * There are five GPIO bank register. Each bank can configure max of 32 gpios.
diff --git a/drivers/gpio/mpc83xx_spisel_boot.c b/drivers/gpio/mpc83xx_spisel_boot.c
index d818954ce29..34705769cbf 100644
--- a/drivers/gpio/mpc83xx_spisel_boot.c
+++ b/drivers/gpio/mpc83xx_spisel_boot.c
@@ -10,6 +10,7 @@ 
 #include <mapmem.h>
 #include <vsprintf.h>
 #include <asm/gpio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 struct mpc83xx_spisel_boot {
diff --git a/drivers/gpio/mpc8xxx_gpio.c b/drivers/gpio/mpc8xxx_gpio.c
index 20ad373d023..6959f1c5d62 100644
--- a/drivers/gpio/mpc8xxx_gpio.c
+++ b/drivers/gpio/mpc8xxx_gpio.c
@@ -13,6 +13,7 @@ 
 #include <mapmem.h>
 #include <vsprintf.h>
 #include <asm/gpio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 struct ccsr_gpio {
diff --git a/drivers/gpio/mscc_sgpio.c b/drivers/gpio/mscc_sgpio.c
index 780d77b2f86..0133e14bb73 100644
--- a/drivers/gpio/mscc_sgpio.c
+++ b/drivers/gpio/mscc_sgpio.c
@@ -17,6 +17,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 #define MSCC_SGPIOS_PER_BANK	32
 #define MSCC_SGPIO_BANK_DEPTH	4
diff --git a/drivers/gpio/msm_gpio.c b/drivers/gpio/msm_gpio.c
index 710994b4e12..d0877485085 100644
--- a/drivers/gpio/msm_gpio.c
+++ b/drivers/gpio/msm_gpio.c
@@ -11,6 +11,7 @@ 
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/gpio/mt7621_gpio.c b/drivers/gpio/mt7621_gpio.c
index 612413e17bc..e569c67a615 100644
--- a/drivers/gpio/mt7621_gpio.c
+++ b/drivers/gpio/mt7621_gpio.c
@@ -13,6 +13,7 @@ 
 #include <fdtdec.h>
 #include <malloc.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c
index 1334e156654..fd64a7abadf 100644
--- a/drivers/gpio/mxc_gpio.c
+++ b/drivers/gpio/mxc_gpio.c
@@ -14,6 +14,7 @@ 
 #include <asm/arch/imx-regs.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 enum mxc_gpio_direction {
diff --git a/drivers/gpio/pca953x_gpio.c b/drivers/gpio/pca953x_gpio.c
index e5fbd291377..1f7563531e7 100644
--- a/drivers/gpio/pca953x_gpio.c
+++ b/drivers/gpio/pca953x_gpio.c
@@ -30,6 +30,7 @@ 
 #include <dm/device_compat.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define PCA953X_INPUT           0
diff --git a/drivers/gpio/pic32_gpio.c b/drivers/gpio/pic32_gpio.c
index 7a98469de46..a4352ec8ba8 100644
--- a/drivers/gpio/pic32_gpio.c
+++ b/drivers/gpio/pic32_gpio.c
@@ -14,6 +14,7 @@ 
 #include <asm/gpio.h>
 #include <linux/bitops.h>
 #include <linux/compat.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <mach/pic32.h>
 
diff --git a/drivers/gpio/pm8916_gpio.c b/drivers/gpio/pm8916_gpio.c
index 58f044678b7..de150c44a54 100644
--- a/drivers/gpio/pm8916_gpio.c
+++ b/drivers/gpio/pm8916_gpio.c
@@ -8,6 +8,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <spmi/spmi.h>
 #include <asm/io.h>
diff --git a/drivers/gpio/s5p_gpio.c b/drivers/gpio/s5p_gpio.c
index 14f262739d2..0d87c6be7f2 100644
--- a/drivers/gpio/s5p_gpio.c
+++ b/drivers/gpio/s5p_gpio.c
@@ -14,6 +14,7 @@ 
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <dm/device-internal.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/gpio/sandbox.c b/drivers/gpio/sandbox.c
index df4ca043ac1..acbc6495c83 100644
--- a/drivers/gpio/sandbox.c
+++ b/drivers/gpio/sandbox.c
@@ -19,6 +19,7 @@ 
 #include <dm/pinctrl.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/gpio/sandbox-gpio.h>
+#include <linux/errno.h>
 
 
 struct gpio_state {
diff --git a/drivers/gpio/sifive-gpio.c b/drivers/gpio/sifive-gpio.c
index e7dbeea400d..76e3c702e21 100644
--- a/drivers/gpio/sifive-gpio.c
+++ b/drivers/gpio/sifive-gpio.c
@@ -13,6 +13,7 @@ 
 #include <errno.h>
 #include <asm/gpio.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static int sifive_gpio_probe(struct udevice *dev)
diff --git a/drivers/gpio/spear_gpio.c b/drivers/gpio/spear_gpio.c
index 4e4cd125457..2aed08781d7 100644
--- a/drivers/gpio/spear_gpio.c
+++ b/drivers/gpio/spear_gpio.c
@@ -13,6 +13,7 @@ 
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <errno.h>
+#include <linux/errno.h>
 
 static int gpio_direction(unsigned gpio,
 			  enum gpio_direction direction)
diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_gpio.c
index 20a60fe8b07..d7ba86cc151 100644
--- a/drivers/gpio/sunxi_gpio.c
+++ b/drivers/gpio/sunxi_gpio.c
@@ -20,6 +20,7 @@ 
 #include <asm/gpio.h>
 #include <dm/device-internal.h>
 #include <dt-bindings/gpio/gpio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define SUNXI_GPIOS_PER_BANK	SUNXI_GPIO_A_NR
diff --git a/drivers/gpio/tegra186_gpio.c b/drivers/gpio/tegra186_gpio.c
index 6626b5415a3..cf973e2d7f2 100644
--- a/drivers/gpio/tegra186_gpio.c
+++ b/drivers/gpio/tegra186_gpio.c
@@ -14,6 +14,7 @@ 
 #include <asm/gpio.h>
 #include <dm/device-internal.h>
 #include <dt-bindings/gpio/gpio.h>
+#include <linux/errno.h>
 #include "tegra186_gpio_priv.h"
 
 struct tegra186_gpio_port_data {
diff --git a/drivers/gpio/tegra_gpio.c b/drivers/gpio/tegra_gpio.c
index 912577a5719..c002e6864dd 100644
--- a/drivers/gpio/tegra_gpio.c
+++ b/drivers/gpio/tegra_gpio.c
@@ -22,6 +22,7 @@ 
 #include <asm/gpio.h>
 #include <dm/device-internal.h>
 #include <dt-bindings/gpio/gpio.h>
+#include <linux/errno.h>
 
 static const int CONFIG_SFIO = 0;
 static const int CONFIG_GPIO = 1;
diff --git a/drivers/gpio/vybrid_gpio.c b/drivers/gpio/vybrid_gpio.c
index 82ae6d88941..99f5d07cca0 100644
--- a/drivers/gpio/vybrid_gpio.c
+++ b/drivers/gpio/vybrid_gpio.c
@@ -13,6 +13,7 @@ 
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/io.h>
 #include <malloc.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c
index 6ee0757e03c..2fb39ca0382 100644
--- a/drivers/gpio/xilinx_gpio.c
+++ b/drivers/gpio/xilinx_gpio.c
@@ -8,6 +8,7 @@ 
 #include <log.h>
 #include <malloc.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/list.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
diff --git a/drivers/hwspinlock/hwspinlock-uclass.c b/drivers/hwspinlock/hwspinlock-uclass.c
index 6100fdfd0a5..14bfc6ae1b6 100644
--- a/drivers/hwspinlock/hwspinlock-uclass.c
+++ b/drivers/hwspinlock/hwspinlock-uclass.c
@@ -13,6 +13,7 @@ 
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
 #include <linux/compat.h>
+#include <linux/errno.h>
 
 static inline const struct hwspinlock_ops *
 hwspinlock_dev_ops(struct udevice *dev)
diff --git a/drivers/hwspinlock/stm32_hwspinlock.c b/drivers/hwspinlock/stm32_hwspinlock.c
index 8be585a0c86..ea54063c19b 100644
--- a/drivers/hwspinlock/stm32_hwspinlock.c
+++ b/drivers/hwspinlock/stm32_hwspinlock.c
@@ -10,6 +10,7 @@ 
 #include <malloc.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define STM32_MUTEX_COREID	BIT(8)
 #define STM32_MUTEX_LOCK_BIT	BIT(31)
diff --git a/drivers/i2c/ast_i2c.c b/drivers/i2c/ast_i2c.c
index 214362d04bb..f0d830e5636 100644
--- a/drivers/i2c/ast_i2c.c
+++ b/drivers/i2c/ast_i2c.c
@@ -16,6 +16,7 @@ 
 #include <asm/arch/scu_ast2500.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 #include "ast_i2c.h"
 
diff --git a/drivers/i2c/at91_i2c.c b/drivers/i2c/at91_i2c.c
index 57fbb0ce262..b825599dba5 100644
--- a/drivers/i2c/at91_i2c.c
+++ b/drivers/i2c/at91_i2c.c
@@ -16,6 +16,7 @@ 
 #include <fdtdec.h>
 #include <i2c.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <mach/clk.h>
 
 #include "at91_i2c.h"
diff --git a/drivers/i2c/cros_ec_ldo.c b/drivers/i2c/cros_ec_ldo.c
index c593540ac13..13b9973b543 100644
--- a/drivers/i2c/cros_ec_ldo.c
+++ b/drivers/i2c/cros_ec_ldo.c
@@ -10,6 +10,7 @@ 
 #include <errno.h>
 #include <i2c.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <power/tps65090.h>
 
 static int cros_ec_ldo_set_bus_speed(struct udevice *dev, unsigned int speed)
diff --git a/drivers/i2c/davinci_i2c.c b/drivers/i2c/davinci_i2c.c
index b4bd22fcc85..694172106c1 100644
--- a/drivers/i2c/davinci_i2c.c
+++ b/drivers/i2c/davinci_i2c.c
@@ -20,6 +20,7 @@ 
 #include <asm/arch/i2c_defs.h>
 #include <asm/io.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include "davinci_i2c.h"
 
 #ifdef CONFIG_DM_I2C
diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c
index 6ea5a31160b..e32bfbc2c29 100644
--- a/drivers/i2c/designware_i2c.c
+++ b/drivers/i2c/designware_i2c.c
@@ -16,6 +16,7 @@ 
 #include <time.h>
 #include <asm/io.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include "designware_i2c.h"
 #include <dm/device_compat.h>
 #include <linux/err.h>
diff --git a/drivers/i2c/designware_i2c_pci.c b/drivers/i2c/designware_i2c_pci.c
index 946506b89b2..50649710aae 100644
--- a/drivers/i2c/designware_i2c_pci.c
+++ b/drivers/i2c/designware_i2c_pci.c
@@ -16,6 +16,7 @@ 
 #include <dm/acpi.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include "designware_i2c.h"
 
 enum {
diff --git a/drivers/i2c/exynos_hs_i2c.c b/drivers/i2c/exynos_hs_i2c.c
index 34d10abde06..c334755a276 100644
--- a/drivers/i2c/exynos_hs_i2c.c
+++ b/drivers/i2c/exynos_hs_i2c.c
@@ -15,6 +15,7 @@ 
 #include <asm/arch/pinmux.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include "s3c24x0_i2c.h"
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c
index 9be7587261c..dad4a5549c1 100644
--- a/drivers/i2c/fsl_i2c.c
+++ b/drivers/i2c/fsl_i2c.c
@@ -19,6 +19,7 @@ 
 #include <mapmem.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /* The maximum number of microseconds we will wait until another master has
diff --git a/drivers/i2c/i2c-cortina.c b/drivers/i2c/i2c-cortina.c
index 4575ab6c40c..aa7f3a0264e 100644
--- a/drivers/i2c/i2c-cortina.c
+++ b/drivers/i2c/i2c-cortina.c
@@ -12,6 +12,7 @@ 
 #include <asm/io.h>
 #include <dm.h>
 #include <mapmem.h>
+#include <linux/errno.h>
 #include "i2c-cortina.h"
 
 static void set_speed(struct i2c_regs *regs, int i2c_spd)
diff --git a/drivers/i2c/i2c-gpio.c b/drivers/i2c/i2c-gpio.c
index fe90abd24a6..c29e5d7def0 100644
--- a/drivers/i2c/i2c-gpio.c
+++ b/drivers/i2c/i2c-gpio.c
@@ -13,6 +13,7 @@ 
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #define DEFAULT_UDELAY	5
diff --git a/drivers/i2c/i2c-uclass.c b/drivers/i2c/i2c-uclass.c
index 3b7db392b67..9e2d5dd0b12 100644
--- a/drivers/i2c/i2c-uclass.c
+++ b/drivers/i2c/i2c-uclass.c
@@ -18,6 +18,7 @@ 
 #include <asm/gpio.h>
 #endif
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define I2C_MAX_OFFSET_LEN	4
diff --git a/drivers/i2c/i2c-versatile.c b/drivers/i2c/i2c-versatile.c
index 62831522bd3..f78b12a560c 100644
--- a/drivers/i2c/i2c-versatile.c
+++ b/drivers/i2c/i2c-versatile.c
@@ -13,6 +13,7 @@ 
 #include <clk.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 
 #define I2C_CONTROL_REG		0x00
diff --git a/drivers/i2c/ihs_i2c.c b/drivers/i2c/ihs_i2c.c
index f6cd1222b87..31e8cc5d8eb 100644
--- a/drivers/i2c/ihs_i2c.c
+++ b/drivers/i2c/ihs_i2c.c
@@ -17,6 +17,7 @@ 
 #include <asm/unaligned.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #ifdef CONFIG_DM_I2C
diff --git a/drivers/i2c/imx_lpi2c.c b/drivers/i2c/imx_lpi2c.c
index eeb35e050b7..f7186639d18 100644
--- a/drivers/i2c/imx_lpi2c.c
+++ b/drivers/i2c/imx_lpi2c.c
@@ -17,6 +17,7 @@ 
 #include <fdtdec.h>
 #include <i2c.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 
 #define LPI2C_FIFO_SIZE 4
 #define LPI2C_NACK_TOUT_MS 1
diff --git a/drivers/i2c/intel_i2c.c b/drivers/i2c/intel_i2c.c
index 57ff9ec2a4a..cbda069131a 100644
--- a/drivers/i2c/intel_i2c.c
+++ b/drivers/i2c/intel_i2c.c
@@ -16,6 +16,7 @@ 
 #include <time.h>
 #include <vsprintf.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /* PCI Configuration Space (D31:F3): SMBus */
diff --git a/drivers/i2c/iproc_i2c.c b/drivers/i2c/iproc_i2c.c
index 4231c0c617f..b5d865d66ba 100644
--- a/drivers/i2c/iproc_i2c.c
+++ b/drivers/i2c/iproc_i2c.c
@@ -9,6 +9,7 @@ 
 #include <common.h>
 #include <config.h>
 #include <dm.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include "errno.h"
 #include <i2c.h>
diff --git a/drivers/i2c/meson_i2c.c b/drivers/i2c/meson_i2c.c
index b133aa1175e..051b238e166 100644
--- a/drivers/i2c/meson_i2c.c
+++ b/drivers/i2c/meson_i2c.c
@@ -12,6 +12,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 #define I2C_TIMEOUT_MS		100
 
diff --git a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
index 14ead6e2753..2b9e0ba585a 100644
--- a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
+++ b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
@@ -15,6 +15,7 @@ 
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/i2c/muxes/i2c-mux-uclass.c b/drivers/i2c/muxes/i2c-mux-uclass.c
index 8f6d1547f16..1af7b68e205 100644
--- a/drivers/i2c/muxes/i2c-mux-uclass.c
+++ b/drivers/i2c/muxes/i2c-mux-uclass.c
@@ -12,6 +12,7 @@ 
 #include <malloc.h>
 #include <dm/lists.h>
 #include <dm/root.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /**
diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c
index 87e9f9cb21d..3140a1abb6c 100644
--- a/drivers/i2c/muxes/pca954x.c
+++ b/drivers/i2c/muxes/pca954x.c
@@ -12,6 +12,7 @@ 
 #include <log.h>
 #include <malloc.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 
 #include <asm-generic/gpio.h>
 
diff --git a/drivers/i2c/mv_i2c.c b/drivers/i2c/mv_i2c.c
index 1850dc6a567..37d04bf11e9 100644
--- a/drivers/i2c/mv_i2c.c
+++ b/drivers/i2c/mv_i2c.c
@@ -23,6 +23,7 @@ 
 #include <stdio.h>
 #include <asm/io.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "mv_i2c.h"
 
diff --git a/drivers/i2c/nx_i2c.c b/drivers/i2c/nx_i2c.c
index af58c2c76ef..738796788af 100644
--- a/drivers/i2c/nx_i2c.c
+++ b/drivers/i2c/nx_i2c.c
@@ -9,6 +9,7 @@ 
 #include <asm/arch/clk.h>
 #include <asm/arch/nx_gpio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define I2C_WRITE       0
 #define I2C_READ        1
diff --git a/drivers/i2c/octeon_i2c.c b/drivers/i2c/octeon_i2c.c
index ef04ae5698a..19b7622b418 100644
--- a/drivers/i2c/octeon_i2c.c
+++ b/drivers/i2c/octeon_i2c.c
@@ -13,6 +13,7 @@ 
 #include <linux/bitfield.h>
 #include <linux/compat.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define TWSI_SW_TWSI		0x00
 #define TWSI_TWSI_SW		0x08
diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c
index db0812c17ec..b8cfc69c6cc 100644
--- a/drivers/i2c/omap24xx_i2c.c
+++ b/drivers/i2c/omap24xx_i2c.c
@@ -44,6 +44,7 @@ 
 #include <log.h>
 #include <stdio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #include <asm/io.h>
diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c
index 4267bbfa5a9..1fe207e7bc8 100644
--- a/drivers/i2c/rcar_i2c.c
+++ b/drivers/i2c/rcar_i2c.c
@@ -20,6 +20,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define RCAR_I2C_ICSCR			0x00 /* slave ctrl */
 #define RCAR_I2C_ICMCR			0x04 /* master ctrl */
diff --git a/drivers/i2c/rcar_iic.c b/drivers/i2c/rcar_iic.c
index cad0a623d36..dd0e921725b 100644
--- a/drivers/i2c/rcar_iic.c
+++ b/drivers/i2c/rcar_iic.c
@@ -16,6 +16,7 @@ 
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 struct rcar_iic_priv {
 	void __iomem		*base;
diff --git a/drivers/i2c/rk_i2c.c b/drivers/i2c/rk_i2c.c
index 81d8e1eb11d..98a0aee9b0e 100644
--- a/drivers/i2c/rk_i2c.c
+++ b/drivers/i2c/rk_i2c.c
@@ -19,6 +19,7 @@ 
 #include <asm/arch-rockchip/periph.h>
 #include <dm/pinctrl.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 
 /* i2c timerout */
diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x0_i2c.c
index 0fe92fe2357..ae3084d549d 100644
--- a/drivers/i2c/s3c24x0_i2c.c
+++ b/drivers/i2c/s3c24x0_i2c.c
@@ -20,6 +20,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <i2c.h>
+#include <linux/errno.h>
 #include "s3c24x0_i2c.h"
 
 #ifndef CONFIG_SYS_I2C_S3C24X0_SLAVE
diff --git a/drivers/i2c/sandbox_i2c.c b/drivers/i2c/sandbox_i2c.c
index 57b1c60fde6..2afd17f92fc 100644
--- a/drivers/i2c/sandbox_i2c.c
+++ b/drivers/i2c/sandbox_i2c.c
@@ -14,6 +14,7 @@ 
 #include <dm/acpi.h>
 #include <dm/lists.h>
 #include <dm/device-internal.h>
+#include <linux/errno.h>
 
 struct sandbox_i2c_priv {
 	bool test_mode;
diff --git a/drivers/i2c/stm32f7_i2c.c b/drivers/i2c/stm32f7_i2c.c
index 0f5c8446365..a353f063ed9 100644
--- a/drivers/i2c/stm32f7_i2c.c
+++ b/drivers/i2c/stm32f7_i2c.c
@@ -14,6 +14,7 @@ 
 #include <time.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/i2c/tegra186_bpmp_i2c.c b/drivers/i2c/tegra186_bpmp_i2c.c
index 897627a1236..188821bb878 100644
--- a/drivers/i2c/tegra186_bpmp_i2c.c
+++ b/drivers/i2c/tegra186_bpmp_i2c.c
@@ -11,6 +11,7 @@ 
 #include <asm/arch-tegra/bpmp_abi.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/i2c/tegra_i2c.c b/drivers/i2c/tegra_i2c.c
index 2cb51473a6c..03687b7532b 100644
--- a/drivers/i2c/tegra_i2c.c
+++ b/drivers/i2c/tegra_i2c.c
@@ -21,6 +21,7 @@ 
 #include <asm/arch-tegra/tegra_i2c.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/i2c/xilinx_xiic.c b/drivers/i2c/xilinx_xiic.c
index 149bd327bdf..aa86c630885 100644
--- a/drivers/i2c/xilinx_xiic.c
+++ b/drivers/i2c/xilinx_xiic.c
@@ -16,6 +16,7 @@ 
 #include <wait_bit.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 
 struct xilinx_xiic_priv {
 	void __iomem		*base;
diff --git a/drivers/input/cros_ec_keyb.c b/drivers/input/cros_ec_keyb.c
index c09a66376af..60f89562fad 100644
--- a/drivers/input/cros_ec_keyb.c
+++ b/drivers/input/cros_ec_keyb.c
@@ -14,6 +14,7 @@ 
 #include <key_matrix.h>
 #include <log.h>
 #include <stdio_dev.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 enum {
diff --git a/drivers/input/i8042.c b/drivers/input/i8042.c
index b490a99abce..e90a38ad97b 100644
--- a/drivers/input/i8042.c
+++ b/drivers/input/i8042.c
@@ -18,6 +18,7 @@ 
 #include <asm/io.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/input/keyboard-uclass.c b/drivers/input/keyboard-uclass.c
index 2007032e10c..fe73cd7bfd0 100644
--- a/drivers/input/keyboard-uclass.c
+++ b/drivers/input/keyboard-uclass.c
@@ -8,6 +8,7 @@ 
 #include <keyboard.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static int keyboard_start(struct stdio_dev *sdev)
diff --git a/drivers/input/tegra-kbc.c b/drivers/input/tegra-kbc.c
index 3654510858f..af289c8badb 100644
--- a/drivers/input/tegra-kbc.c
+++ b/drivers/input/tegra-kbc.c
@@ -19,6 +19,7 @@ 
 #include <asm/arch/funcmux.h>
 #include <asm/arch-tegra/timer.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/input.h>
 #include <linux/string.h>
 
diff --git a/drivers/led/led-uclass.c b/drivers/led/led-uclass.c
index ae9c3cbd7d3..70a94a19cd7 100644
--- a/drivers/led/led-uclass.c
+++ b/drivers/led/led-uclass.c
@@ -11,6 +11,7 @@ 
 #include <dm/device-internal.h>
 #include <dm/root.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 int led_get_by_label(const char *label, struct udevice **devp)
diff --git a/drivers/led/led_bcm6328.c b/drivers/led/led_bcm6328.c
index 52946835de3..4a07bcc8a70 100644
--- a/drivers/led/led_bcm6328.c
+++ b/drivers/led/led_bcm6328.c
@@ -10,6 +10,7 @@ 
 #include <log.h>
 #include <asm/io.h>
 #include <dm/lists.h>
+#include <linux/errno.h>
 
 #define LEDS_MAX			24
 
diff --git a/drivers/led/led_bcm6358.c b/drivers/led/led_bcm6358.c
index 307d418a178..019a84813ac 100644
--- a/drivers/led/led_bcm6358.c
+++ b/drivers/led/led_bcm6358.c
@@ -11,6 +11,7 @@ 
 #include <asm/io.h>
 #include <dm/lists.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define LEDS_MAX		32
 #define LEDS_WAIT		100
diff --git a/drivers/led/led_bcm6858.c b/drivers/led/led_bcm6858.c
index b415d8b2b40..c0f5a1a7bb6 100644
--- a/drivers/led/led_bcm6858.c
+++ b/drivers/led/led_bcm6858.c
@@ -15,6 +15,7 @@ 
 #include <asm/io.h>
 #include <dm/lists.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define LEDS_MAX		32
 #define LEDS_WAIT		100
diff --git a/drivers/led/led_gpio.c b/drivers/led/led_gpio.c
index ef9b61ee626..c576c0eae52 100644
--- a/drivers/led/led_gpio.c
+++ b/drivers/led/led_gpio.c
@@ -12,6 +12,7 @@ 
 #include <malloc.h>
 #include <asm/gpio.h>
 #include <dm/lists.h>
+#include <linux/errno.h>
 
 struct led_gpio_priv {
 	struct gpio_desc gpio;
diff --git a/drivers/mailbox/k3-sec-proxy.c b/drivers/mailbox/k3-sec-proxy.c
index 1edb7dfd56c..d9516bd59e4 100644
--- a/drivers/mailbox/k3-sec-proxy.c
+++ b/drivers/mailbox/k3-sec-proxy.c
@@ -13,6 +13,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 #include <linux/types.h>
 #include <linux/bitops.h>
 #include <linux/soc/ti/k3-sec-proxy.h>
diff --git a/drivers/mailbox/mailbox-uclass.c b/drivers/mailbox/mailbox-uclass.c
index c972d846089..233fa4f715f 100644
--- a/drivers/mailbox/mailbox-uclass.c
+++ b/drivers/mailbox/mailbox-uclass.c
@@ -10,6 +10,7 @@ 
 #include <mailbox-uclass.h>
 #include <malloc.h>
 #include <time.h>
+#include <linux/errno.h>
 
 static inline struct mbox_ops *mbox_dev_ops(struct udevice *dev)
 {
diff --git a/drivers/mailbox/sandbox-mbox.c b/drivers/mailbox/sandbox-mbox.c
index 19704dd5da9..4dd5371fc19 100644
--- a/drivers/mailbox/sandbox-mbox.c
+++ b/drivers/mailbox/sandbox-mbox.c
@@ -10,6 +10,7 @@ 
 #include <malloc.h>
 #include <asm/io.h>
 #include <asm/mbox.h>
+#include <linux/errno.h>
 
 #define SANDBOX_MBOX_CHANNELS 2
 
diff --git a/drivers/mailbox/stm32-ipcc.c b/drivers/mailbox/stm32-ipcc.c
index b8bf356b4ac..0c72f5e7c3d 100644
--- a/drivers/mailbox/stm32-ipcc.c
+++ b/drivers/mailbox/stm32-ipcc.c
@@ -12,6 +12,7 @@ 
 #include <asm/io.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 /*
  * IPCC has one set of registers per CPU
diff --git a/drivers/mailbox/tegra-hsp.c b/drivers/mailbox/tegra-hsp.c
index e91dac201d2..4b71e3ca7ef 100644
--- a/drivers/mailbox/tegra-hsp.c
+++ b/drivers/mailbox/tegra-hsp.c
@@ -11,6 +11,7 @@ 
 #include <mailbox-uclass.h>
 #include <dt-bindings/mailbox/tegra186-hsp.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define TEGRA_HSP_INT_DIMENSIONING		0x380
 #define TEGRA_HSP_INT_DIMENSIONING_NSI_SHIFT	16
diff --git a/drivers/mailbox/zynqmp-ipi.c b/drivers/mailbox/zynqmp-ipi.c
index f206a27a79e..ef8c93fa460 100644
--- a/drivers/mailbox/zynqmp-ipi.c
+++ b/drivers/mailbox/zynqmp-ipi.c
@@ -11,6 +11,7 @@ 
 #include <dm.h>
 #include <mailbox-uclass.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 #include <mach/sys_proto.h>
 #include <linux/ioport.h>
 #include <linux/io.h>
diff --git a/drivers/misc/atsha204a-i2c.c b/drivers/misc/atsha204a-i2c.c
index 779e1a17607..5262c005a04 100644
--- a/drivers/misc/atsha204a-i2c.c
+++ b/drivers/misc/atsha204a-i2c.c
@@ -18,6 +18,7 @@ 
 #include <log.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
 
diff --git a/drivers/misc/cros_ec_i2c.c b/drivers/misc/cros_ec_i2c.c
index e3678d0213a..782ee703eb6 100644
--- a/drivers/misc/cros_ec_i2c.c
+++ b/drivers/misc/cros_ec_i2c.c
@@ -18,6 +18,7 @@ 
 #include <cros_ec.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #ifdef DEBUG_TRACE
diff --git a/drivers/misc/cros_ec_lpc.c b/drivers/misc/cros_ec_lpc.c
index caca59471f1..6c9c9593a7c 100644
--- a/drivers/misc/cros_ec_lpc.c
+++ b/drivers/misc/cros_ec_lpc.c
@@ -20,6 +20,7 @@ 
 #include <stdio.h>
 #include <time.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 
 #ifdef DEBUG_TRACE
 #define debug_trace(fmt, b...)	debug(fmt, ##b)
diff --git a/drivers/misc/cros_ec_sandbox.c b/drivers/misc/cros_ec_sandbox.c
index 308b34e2f4b..5a5af51eb39 100644
--- a/drivers/misc/cros_ec_sandbox.c
+++ b/drivers/misc/cros_ec_sandbox.c
@@ -15,6 +15,7 @@ 
 #include <os.h>
 #include <stdio.h>
 #include <time.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <u-boot/sha256.h>
 #include <spi.h>
diff --git a/drivers/misc/cros_ec_spi.c b/drivers/misc/cros_ec_spi.c
index a94e216cac7..bb7b8c1b1de 100644
--- a/drivers/misc/cros_ec_spi.c
+++ b/drivers/misc/cros_ec_spi.c
@@ -20,6 +20,7 @@ 
 #include <spi.h>
 #include <stdio.h>
 #include <time.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 int cros_ec_spi_packet(struct udevice *udev, int out_bytes, int in_bytes)
diff --git a/drivers/misc/fs_loader.c b/drivers/misc/fs_loader.c
index f6383a02398..a4d048afd7f 100644
--- a/drivers/misc/fs_loader.c
+++ b/drivers/misc/fs_loader.c
@@ -12,6 +12,7 @@ 
 #include <fs_loader.h>
 #include <log.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <mapmem.h>
 #include <malloc.h>
diff --git a/drivers/misc/gdsys_ioep.c b/drivers/misc/gdsys_ioep.c
index 8c65f1473c3..22afebd9ab0 100644
--- a/drivers/misc/gdsys_ioep.c
+++ b/drivers/misc/gdsys_ioep.c
@@ -16,6 +16,7 @@ 
 #include <log.h>
 #include <misc.h>
 #include <regmap.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "gdsys_ioep.h"
diff --git a/drivers/misc/gdsys_soc.c b/drivers/misc/gdsys_soc.c
index b4c721c6fe6..09216f0e398 100644
--- a/drivers/misc/gdsys_soc.c
+++ b/drivers/misc/gdsys_soc.c
@@ -8,6 +8,7 @@ 
 #include <dm.h>
 #include <log.h>
 #include <dm/lists.h>
+#include <linux/errno.h>
 
 #include "gdsys_soc.h"
 
diff --git a/drivers/misc/i2c_eeprom.c b/drivers/misc/i2c_eeprom.c
index 45c34d388c8..0e1ba165f91 100644
--- a/drivers/misc/i2c_eeprom.c
+++ b/drivers/misc/i2c_eeprom.c
@@ -7,6 +7,7 @@ 
 #include <eeprom.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <dm.h>
 #include <dm/device-internal.h>
diff --git a/drivers/misc/i2c_eeprom_emul.c b/drivers/misc/i2c_eeprom_emul.c
index 925120ea0d5..9f0d89673d9 100644
--- a/drivers/misc/i2c_eeprom_emul.c
+++ b/drivers/misc/i2c_eeprom_emul.c
@@ -12,6 +12,7 @@ 
 #include <log.h>
 #include <malloc.h>
 #include <asm/test.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #ifdef DEBUG
diff --git a/drivers/misc/ihs_fpga.c b/drivers/misc/ihs_fpga.c
index 6a61a22c071..9dbb857101d 100644
--- a/drivers/misc/ihs_fpga.c
+++ b/drivers/misc/ihs_fpga.c
@@ -17,6 +17,7 @@ 
 #include <asm/gpio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "ihs_fpga.h"
diff --git a/drivers/misc/imx8/fuse.c b/drivers/misc/imx8/fuse.c
index e25d68e6a2e..c3a7d3a40b3 100644
--- a/drivers/misc/imx8/fuse.c
+++ b/drivers/misc/imx8/fuse.c
@@ -12,6 +12,7 @@ 
 #include <asm/arch/sys_proto.h>
 #include <asm/global_data.h>
 #include <linux/arm-smccc.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/misc/imx8/scu.c b/drivers/misc/imx8/scu.c
index ce1a35a552b..74cab629482 100644
--- a/drivers/misc/imx8/scu.c
+++ b/drivers/misc/imx8/scu.c
@@ -16,6 +16,7 @@ 
 #include <dm/device-internal.h>
 #include <asm/arch/sci/sci.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <misc.h>
 
diff --git a/drivers/misc/irq-uclass.c b/drivers/misc/irq-uclass.c
index 94fa233f193..6b6813e1fc5 100644
--- a/drivers/misc/irq-uclass.c
+++ b/drivers/misc/irq-uclass.c
@@ -12,6 +12,7 @@ 
 #include <irq.h>
 #include <log.h>
 #include <dm/device-internal.h>
+#include <linux/errno.h>
 
 int irq_route_pmc_gpio_gpe(struct udevice *dev, uint pmc_gpe_num)
 {
diff --git a/drivers/misc/irq_sandbox.c b/drivers/misc/irq_sandbox.c
index a2511b32fcd..14366febd38 100644
--- a/drivers/misc/irq_sandbox.c
+++ b/drivers/misc/irq_sandbox.c
@@ -10,6 +10,7 @@ 
 #include <irq.h>
 #include <acpi/acpi_device.h>
 #include <asm/test.h>
+#include <linux/errno.h>
 
 /**
  * struct sandbox_irq_priv - private data for this driver
diff --git a/drivers/misc/k3_avs.c b/drivers/misc/k3_avs.c
index 5aabac79309..621ce8b28d9 100644
--- a/drivers/misc/k3_avs.c
+++ b/drivers/misc/k3_avs.c
@@ -17,6 +17,7 @@ 
 #include <k3-avs.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 
 #define AM6_VTM_DEVINFO(i)	(priv->base + 0x100 + 0x20 * (i))
diff --git a/drivers/misc/k3_esm.c b/drivers/misc/k3_esm.c
index cc2a23dd663..82aa2545c08 100644
--- a/drivers/misc/k3_esm.c
+++ b/drivers/misc/k3_esm.c
@@ -13,6 +13,7 @@ 
 #include <asm/io.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define ESM_SFT_RST			0x0c
 #define ESM_SFT_RST_KEY			0x0f
diff --git a/drivers/misc/microchip_flexcom.c b/drivers/misc/microchip_flexcom.c
index 64cc4ae7b61..0886fbdd865 100644
--- a/drivers/misc/microchip_flexcom.c
+++ b/drivers/misc/microchip_flexcom.c
@@ -11,6 +11,7 @@ 
 #include <misc.h>
 #include <asm/io.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 struct microchip_flexcom_regs {
 	u32 cr;
diff --git a/drivers/misc/misc-uclass.c b/drivers/misc/misc-uclass.c
index 55381edc980..c0db58b8967 100644
--- a/drivers/misc/misc-uclass.c
+++ b/drivers/misc/misc-uclass.c
@@ -7,6 +7,7 @@ 
 #include <dm.h>
 #include <errno.h>
 #include <misc.h>
+#include <linux/errno.h>
 
 /*
  * Implement a  miscellaneous uclass for those do not fit other more
diff --git a/drivers/misc/misc_sandbox.c b/drivers/misc/misc_sandbox.c
index 9ea2a35db60..4e3e8a4a364 100644
--- a/drivers/misc/misc_sandbox.c
+++ b/drivers/misc/misc_sandbox.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <misc.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 struct misc_sandbox_priv {
diff --git a/drivers/misc/mpc83xx_serdes.c b/drivers/misc/mpc83xx_serdes.c
index b2f23e1343b..925e6ec3ab8 100644
--- a/drivers/misc/mpc83xx_serdes.c
+++ b/drivers/misc/mpc83xx_serdes.c
@@ -15,6 +15,7 @@ 
 #include <mapmem.h>
 #include <misc.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "mpc83xx_serdes.h"
diff --git a/drivers/misc/p2sb-uclass.c b/drivers/misc/p2sb-uclass.c
index b5219df46be..149f3d28ebf 100644
--- a/drivers/misc/p2sb-uclass.c
+++ b/drivers/misc/p2sb-uclass.c
@@ -15,6 +15,7 @@ 
 #include <spl.h>
 #include <asm/io.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 
 #define PCR_COMMON_IOSF_1_0	1
 
diff --git a/drivers/misc/p2sb_emul.c b/drivers/misc/p2sb_emul.c
index a4b6dba5162..3c17f6de3f6 100644
--- a/drivers/misc/p2sb_emul.c
+++ b/drivers/misc/p2sb_emul.c
@@ -16,6 +16,7 @@ 
 #include <pci.h>
 #include <asm/test.h>
 #include <p2sb.h>
+#include <linux/errno.h>
 
 /**
  * struct p2sb_emul_platdata - platform data for this device
diff --git a/drivers/misc/pca9551_led.c b/drivers/misc/pca9551_led.c
index cdc4390f815..312192fd62d 100644
--- a/drivers/misc/pca9551_led.c
+++ b/drivers/misc/pca9551_led.c
@@ -7,6 +7,7 @@ 
 #include <errno.h>
 #include <i2c.h>
 #include <status_led.h>
+#include <linux/errno.h>
 
 #ifndef CONFIG_PCA9551_I2C_ADDR
 #error "CONFIG_PCA9551_I2C_ADDR not defined!"
diff --git a/drivers/misc/pwrseq-uclass.c b/drivers/misc/pwrseq-uclass.c
index c8f6c46069b..220567ee279 100644
--- a/drivers/misc/pwrseq-uclass.c
+++ b/drivers/misc/pwrseq-uclass.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <pwrseq.h>
+#include <linux/errno.h>
 
 int pwrseq_set_power(struct udevice *dev, bool enable)
 {
diff --git a/drivers/misc/qfw.c b/drivers/misc/qfw.c
index 5c3ff8e52f6..c5629183f86 100644
--- a/drivers/misc/qfw.c
+++ b/drivers/misc/qfw.c
@@ -14,6 +14,7 @@ 
 #ifdef CONFIG_GENERATE_ACPI_TABLE
 #include <asm/tables.h>
 #endif
+#include <linux/errno.h>
 #include <linux/list.h>
 #include <linux/string.h>
 
diff --git a/drivers/misc/rockchip-otp.c b/drivers/misc/rockchip-otp.c
index 482de69070d..a8563a305d0 100644
--- a/drivers/misc/rockchip-otp.c
+++ b/drivers/misc/rockchip-otp.c
@@ -11,6 +11,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <misc.h>
+#include <linux/errno.h>
 
 /* OTP Register Offsets */
 #define OTPC_SBPI_CTRL			0x0020
diff --git a/drivers/misc/sifive-otp.c b/drivers/misc/sifive-otp.c
index 799d75b0873..97cb40b542c 100644
--- a/drivers/misc/sifive-otp.c
+++ b/drivers/misc/sifive-otp.c
@@ -23,6 +23,7 @@ 
 #include <dm/read.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <misc.h>
 #include <linux/printk.h>
diff --git a/drivers/misc/smsc_sio1007.c b/drivers/misc/smsc_sio1007.c
index 3b7b1c8bcf2..9fe6a18f59e 100644
--- a/drivers/misc/smsc_sio1007.c
+++ b/drivers/misc/smsc_sio1007.c
@@ -7,6 +7,7 @@ 
 #include <asm/io.h>
 #include <errno.h>
 #include <smsc_sio1007.h>
+#include <linux/errno.h>
 
 static inline u8 sio1007_read(int port, int reg)
 {
diff --git a/drivers/misc/stm32_rcc.c b/drivers/misc/stm32_rcc.c
index b82fe54c600..9a03679d21a 100644
--- a/drivers/misc/stm32_rcc.c
+++ b/drivers/misc/stm32_rcc.c
@@ -12,6 +12,7 @@ 
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
 #include <dm/lists.h>
+#include <linux/errno.h>
 
 struct stm32_rcc_clk stm32_rcc_clk_f42x = {
 	.drv_name = "stm32fx_rcc_clock",
diff --git a/drivers/misc/stm32mp_fuse.c b/drivers/misc/stm32mp_fuse.c
index 530a7824e3e..2d8c43b123f 100644
--- a/drivers/misc/stm32mp_fuse.c
+++ b/drivers/misc/stm32mp_fuse.c
@@ -11,6 +11,7 @@ 
 #include <stdio.h>
 #include <dm/device.h>
 #include <dm/uclass.h>
+#include <linux/errno.h>
 #include <power/stpmic1.h>
 
 #define STM32MP_OTP_BANK	0
diff --git a/drivers/misc/swap_case.c b/drivers/misc/swap_case.c
index 07c67577d54..64f29f86baa 100644
--- a/drivers/misc/swap_case.c
+++ b/drivers/misc/swap_case.c
@@ -13,6 +13,7 @@ 
 #include <pci.h>
 #include <asm/test.h>
 #include <linux/ctype.h>
+#include <linux/errno.h>
 
 /**
  * struct swap_case_platdata - platform data for this device
diff --git a/drivers/misc/tegra186_bpmp.c b/drivers/misc/tegra186_bpmp.c
index c9079b86a7a..24ff0cd120d 100644
--- a/drivers/misc/tegra186_bpmp.c
+++ b/drivers/misc/tegra186_bpmp.c
@@ -17,6 +17,7 @@ 
 #include <asm/arch-tegra/ivc.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/misc/vexpress_config.c b/drivers/misc/vexpress_config.c
index 9a9c5f75573..2b1d19a14a7 100644
--- a/drivers/misc/vexpress_config.c
+++ b/drivers/misc/vexpress_config.c
@@ -12,6 +12,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <misc.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define SYS_CFGDATA		0xa0
diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c
index 8c6894921d2..a8d1e9d7bbb 100644
--- a/drivers/mmc/am654_sdhci.c
+++ b/drivers/mmc/am654_sdhci.c
@@ -16,6 +16,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 /* CTL_CFG Registers */
 #define CTL_CFG_2		0x14
diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c
index 1781d7a3f91..cb838a398a6 100644
--- a/drivers/mmc/atmel_sdhci.c
+++ b/drivers/mmc/atmel_sdhci.c
@@ -12,6 +12,7 @@ 
 #include <stdio.h>
 #include <asm/arch/clk.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 
 #define ATMEL_SDHC_MIN_FREQ	400000
 #define ATMEL_SDHC_GCK_RATE	240000000
diff --git a/drivers/mmc/bcm2835_sdhci.c b/drivers/mmc/bcm2835_sdhci.c
index 7a410d1dd36..ac1a421cd3e 100644
--- a/drivers/mmc/bcm2835_sdhci.c
+++ b/drivers/mmc/bcm2835_sdhci.c
@@ -45,6 +45,7 @@ 
 #include <time.h>
 #include <asm/arch/msg.h>
 #include <asm/arch/mbox.h>
+#include <linux/errno.h>
 #include <mach/sdhci.h>
 #include <mach/timer.h>
 
diff --git a/drivers/mmc/bcm2835_sdhost.c b/drivers/mmc/bcm2835_sdhost.c
index cf362f620ae..97ca2ce029a 100644
--- a/drivers/mmc/bcm2835_sdhost.c
+++ b/drivers/mmc/bcm2835_sdhost.c
@@ -43,6 +43,7 @@ 
 #include <linux/bug.h>
 #include <linux/compat.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
 #include <linux/sizes.h>
diff --git a/drivers/mmc/bcmstb_sdhci.c b/drivers/mmc/bcmstb_sdhci.c
index 5269aa77ceb..5c4d227c6f0 100644
--- a/drivers/mmc/bcmstb_sdhci.c
+++ b/drivers/mmc/bcmstb_sdhci.c
@@ -8,6 +8,7 @@ 
 
 #include <common.h>
 #include <dm.h>
+#include <linux/errno.h>
 #include <mach/sdhci.h>
 #include <malloc.h>
 #include <sdhci.h>
diff --git a/drivers/mmc/ca_dw_mmc.c b/drivers/mmc/ca_dw_mmc.c
index 8ae5bd41454..fcb2700a7a8 100644
--- a/drivers/mmc/ca_dw_mmc.c
+++ b/drivers/mmc/ca_dw_mmc.c
@@ -8,6 +8,7 @@ 
 #include <dwmmc.h>
 #include <fdtdec.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
 #include <errno.h>
diff --git a/drivers/mmc/davinci_mmc.c b/drivers/mmc/davinci_mmc.c
index f4edff7566e..f8dc47bc239 100644
--- a/drivers/mmc/davinci_mmc.c
+++ b/drivers/mmc/davinci_mmc.c
@@ -19,6 +19,7 @@ 
 #include <asm-generic/gpio.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define WATCHDOG_COUNT		(100000)
diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c
index 3f8d4228150..95f3cf1d946 100644
--- a/drivers/mmc/dw_mmc.c
+++ b/drivers/mmc/dw_mmc.c
@@ -19,6 +19,7 @@ 
 #include <asm/cache.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 
 #define PAGE_SIZE 4096
diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c
index 55d3ad1692c..f54413aa9e5 100644
--- a/drivers/mmc/exynos_dw_mmc.c
+++ b/drivers/mmc/exynos_dw_mmc.c
@@ -9,6 +9,7 @@ 
 #include <fdtdec.h>
 #include <stdio.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
 #include <errno.h>
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 01a028ddb9f..c73ec572f14 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -31,6 +31,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c
index a90839ee9f5..2e667abf414 100644
--- a/drivers/mmc/fsl_esdhc_imx.c
+++ b/drivers/mmc/fsl_esdhc_imx.c
@@ -29,6 +29,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <power/regulator.h>
diff --git a/drivers/mmc/iproc_sdhci.c b/drivers/mmc/iproc_sdhci.c
index cd9d87be98b..216538d435a 100644
--- a/drivers/mmc/iproc_sdhci.c
+++ b/drivers/mmc/iproc_sdhci.c
@@ -12,6 +12,7 @@ 
 #include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/mmc/jz_mmc.c b/drivers/mmc/jz_mmc.c
index eec432a0df6..608e5623976 100644
--- a/drivers/mmc/jz_mmc.c
+++ b/drivers/mmc/jz_mmc.c
@@ -16,6 +16,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <mach/jz4780.h>
 #include <wait_bit.h>
 
diff --git a/drivers/mmc/meson_gx_mmc.c b/drivers/mmc/meson_gx_mmc.c
index 2afc80ff0c5..b804a0c8364 100644
--- a/drivers/mmc/meson_gx_mmc.c
+++ b/drivers/mmc/meson_gx_mmc.c
@@ -16,6 +16,7 @@ 
 #include <asm/gpio.h>
 #include <asm/arch/sd_emmc.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/log2.h>
 #include <linux/string.h>
 
diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c
index 9c30e01028b..cdc93c756c0 100644
--- a/drivers/mmc/mmc-uclass.c
+++ b/drivers/mmc/mmc-uclass.c
@@ -14,6 +14,7 @@ 
 #include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <linux/compat.h>
+#include <linux/errno.h>
 #include "mmc_private.h"
 
 int dm_mmc_get_b_max(struct udevice *dev, void *dst, lbaint_t blkcnt)
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index a3fdc5d63cc..93220596896 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -23,6 +23,7 @@ 
 #include <part.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <power/regulator.h>
diff --git a/drivers/mmc/mmc_legacy.c b/drivers/mmc/mmc_legacy.c
index da2941bada8..42077f88652 100644
--- a/drivers/mmc/mmc_legacy.c
+++ b/drivers/mmc/mmc_legacy.c
@@ -10,6 +10,7 @@ 
 #include <malloc.h>
 #include <mmc.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include "mmc_private.h"
 
 static struct list_head mmc_devices;
diff --git a/drivers/mmc/mmc_spi.c b/drivers/mmc/mmc_spi.c
index f8943314173..0581adb0841 100644
--- a/drivers/mmc/mmc_spi.c
+++ b/drivers/mmc/mmc_spi.c
@@ -15,6 +15,7 @@ 
 #include <stdlib.h>
 #include <vsprintf.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
 #include <linux/crc7.h>
diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c
index 6e61ef6b858..0ac7529f01a 100644
--- a/drivers/mmc/msm_sdhci.c
+++ b/drivers/mmc/msm_sdhci.c
@@ -17,6 +17,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /* Non-standard registers needed for SDHCI startup */
diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c
index 2fe33e07c18..2ec53e853a9 100644
--- a/drivers/mmc/mtk-sd.c
+++ b/drivers/mmc/mtk-sd.c
@@ -18,6 +18,7 @@ 
 #include <dm/device_compat.h>
 #include <dm/pinctrl.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
 #include <linux/printk.h>
diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c
index 775f2041a1a..f3e44f53cb4 100644
--- a/drivers/mmc/mv_sdhci.c
+++ b/drivers/mmc/mv_sdhci.c
@@ -9,6 +9,7 @@ 
 #include <sdhci.h>
 #include <stdio.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/mbus.h>
 #include <linux/string.h>
 
diff --git a/drivers/mmc/mvebu_mmc.c b/drivers/mmc/mvebu_mmc.c
index d586342a58d..3a967ac7720 100644
--- a/drivers/mmc/mvebu_mmc.c
+++ b/drivers/mmc/mvebu_mmc.c
@@ -21,6 +21,7 @@ 
 #include <asm/arch/soc.h>
 #include <mvebu_mmc.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/mmc/nexell_dw_mmc.c b/drivers/mmc/nexell_dw_mmc.c
index 04627594449..e5df2920242 100644
--- a/drivers/mmc/nexell_dw_mmc.c
+++ b/drivers/mmc/nexell_dw_mmc.c
@@ -14,6 +14,7 @@ 
 #include <syscon.h>
 #include <asm/arch/reset.h>
 #include <asm/arch/clk.h>
+#include <linux/errno.h>
 
 #define DWMCI_CLKSEL			0x09C
 #define DWMCI_SHIFT_0			0x0
diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c
index 54a34c72598..606c4a5c1c6 100644
--- a/drivers/mmc/omap_hsmmc.c
+++ b/drivers/mmc/omap_hsmmc.c
@@ -57,6 +57,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 #include <thermal.h>
 
diff --git a/drivers/mmc/pci_mmc.c b/drivers/mmc/pci_mmc.c
index 0c45e1b8936..345a330a983 100644
--- a/drivers/mmc/pci_mmc.c
+++ b/drivers/mmc/pci_mmc.c
@@ -16,6 +16,7 @@ 
 #include <acpi/acpi_dp.h>
 #include <asm-generic/gpio.h>
 #include <dm/acpi.h>
+#include <linux/errno.h>
 
 struct pci_mmc_plat {
 	struct mmc_config cfg;
diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c
index 83153c5c4c4..4e8d2a9e509 100644
--- a/drivers/mmc/renesas-sdhi.c
+++ b/drivers/mmc/renesas-sdhi.c
@@ -17,6 +17,7 @@ 
 #include <linux/compat.h>
 #include <linux/delay.h>
 #include <linux/dma-direction.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
 #include <power/regulator.h>
diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c
index f1dafa6ce71..6d31f9f3d30 100644
--- a/drivers/mmc/rockchip_dw_mmc.c
+++ b/drivers/mmc/rockchip_dw_mmc.c
@@ -18,6 +18,7 @@ 
 #include <asm/arch-rockchip/periph.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 struct rockchip_mmc_plat {
 #if CONFIG_IS_ENABLED(OF_PLATDATA)
diff --git a/drivers/mmc/rpmb.c b/drivers/mmc/rpmb.c
index 0d1b3eb875b..93fdf72f344 100644
--- a/drivers/mmc/rpmb.c
+++ b/drivers/mmc/rpmb.c
@@ -14,6 +14,7 @@ 
 #include <mmc.h>
 #include <sdhci.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <u-boot/sha256.h>
 #include "mmc_private.h"
diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c
index e06662141f5..cf32ca80821 100644
--- a/drivers/mmc/s5p_sdhci.c
+++ b/drivers/mmc/s5p_sdhci.c
@@ -12,6 +12,7 @@ 
 #include <fdtdec.h>
 #include <stdio.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <asm/gpio.h>
 #include <asm/arch/mmc.h>
diff --git a/drivers/mmc/sdhci-cadence.c b/drivers/mmc/sdhci-cadence.c
index b1e53e8d425..96901bce72d 100644
--- a/drivers/mmc/sdhci-cadence.c
+++ b/drivers/mmc/sdhci-cadence.c
@@ -11,6 +11,7 @@ 
 #include <linux/bitfield.h>
 #include <linux/bitops.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
 #include <linux/sizes.h>
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index a73eb478b03..b7add7f0312 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -23,6 +23,7 @@ 
 #include <linux/delay.h>
 #include <linux/dma-mapping.h>
 #include <phys2bus.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/mmc/snps_dw_mmc.c b/drivers/mmc/snps_dw_mmc.c
index f7c64312154..f123d3fe222 100644
--- a/drivers/mmc/snps_dw_mmc.c
+++ b/drivers/mmc/snps_dw_mmc.c
@@ -14,6 +14,7 @@ 
 #include <errno.h>
 #include <fdtdec.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/err.h>
 #include <malloc.h>
diff --git a/drivers/mmc/socfpga_dw_mmc.c b/drivers/mmc/socfpga_dw_mmc.c
index 1c3d996bcd5..9877919f4f1 100644
--- a/drivers/mmc/socfpga_dw_mmc.c
+++ b/drivers/mmc/socfpga_dw_mmc.c
@@ -15,6 +15,7 @@ 
 #include <fdtdec.h>
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/err.h>
 #include <malloc.h>
diff --git a/drivers/mmc/sti_sdhci.c b/drivers/mmc/sti_sdhci.c
index 394c4d19b56..e71b63a8fdf 100644
--- a/drivers/mmc/sti_sdhci.c
+++ b/drivers/mmc/sti_sdhci.c
@@ -12,6 +12,7 @@ 
 #include <sdhci.h>
 #include <asm/arch/sdhci.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/mmc/stm32_sdmmc2.c b/drivers/mmc/stm32_sdmmc2.c
index 0bc2ecee69b..f46c9a8e5bf 100644
--- a/drivers/mmc/stm32_sdmmc2.c
+++ b/drivers/mmc/stm32_sdmmc2.c
@@ -16,6 +16,7 @@ 
 #include <asm/cache.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <mmc.h>
 #include <reset.h>
diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c
index 4152b7be0e4..7164db122fa 100644
--- a/drivers/mmc/sunxi_mmc.c
+++ b/drivers/mmc/sunxi_mmc.c
@@ -24,6 +24,7 @@ 
 #include <asm/arch/mmc.h>
 #include <asm-generic/gpio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #ifdef CONFIG_DM_MMC
diff --git a/drivers/mmc/tangier_sdhci.c b/drivers/mmc/tangier_sdhci.c
index 879e2c98a21..622cc3ef1be 100644
--- a/drivers/mmc/tangier_sdhci.c
+++ b/drivers/mmc/tangier_sdhci.c
@@ -5,6 +5,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <dm/device.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
 #include <malloc.h>
diff --git a/drivers/mmc/tegra_mmc.c b/drivers/mmc/tegra_mmc.c
index e7a06ec7949..4cf18386434 100644
--- a/drivers/mmc/tegra_mmc.c
+++ b/drivers/mmc/tegra_mmc.c
@@ -23,6 +23,7 @@ 
 #if defined(CONFIG_TEGRA30) || defined(CONFIG_TEGRA210)
 #include <asm/arch/clock.h>
 #endif
+#include <linux/errno.h>
 
 struct tegra_mmc_plat {
 	struct mmc_config cfg;
diff --git a/drivers/mmc/tmio-common.c b/drivers/mmc/tmio-common.c
index b56f650f8a7..ff563cf9773 100644
--- a/drivers/mmc/tmio-common.c
+++ b/drivers/mmc/tmio-common.c
@@ -16,6 +16,7 @@ 
 #include <linux/compat.h>
 #include <linux/delay.h>
 #include <linux/dma-mapping.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
 #include <power/regulator.h>
diff --git a/drivers/mmc/xenon_sdhci.c b/drivers/mmc/xenon_sdhci.c
index 1336d919335..355b4eecb09 100644
--- a/drivers/mmc/xenon_sdhci.c
+++ b/drivers/mmc/xenon_sdhci.c
@@ -21,6 +21,7 @@ 
 #include <asm/global_data.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
 #include <sdhci.h>
diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c
index 01e75e2e770..923a10f11ec 100644
--- a/drivers/mmc/zynq_sdhci.c
+++ b/drivers/mmc/zynq_sdhci.c
@@ -11,6 +11,7 @@ 
 #include <fdtdec.h>
 #include <stdio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include "mmc_private.h"
 #include <log.h>
 #include <dm/device_compat.h>
diff --git a/drivers/mtd/altera_qspi.c b/drivers/mtd/altera_qspi.c
index e85005a1c10..1a43ad9977a 100644
--- a/drivers/mtd/altera_qspi.c
+++ b/drivers/mtd/altera_qspi.c
@@ -16,6 +16,7 @@ 
 #include <asm/io.h>
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c
index 413fa41e770..252f49fb4c6 100644
--- a/drivers/mtd/cfi_flash.c
+++ b/drivers/mtd/cfi_flash.c
@@ -37,6 +37,7 @@ 
 #include <asm/unaligned.h>
 #include <env_internal.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <mtd/cfi_flash.h>
 #include <watchdog.h>
diff --git a/drivers/mtd/hbmc-am654.c b/drivers/mtd/hbmc-am654.c
index 846b0e832b7..1583efd267d 100644
--- a/drivers/mtd/hbmc-am654.c
+++ b/drivers/mtd/hbmc-am654.c
@@ -9,6 +9,7 @@ 
 #include <regmap.h>
 #include <syscon.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 
 #define FSS_SYSC_REG	0x4
 
diff --git a/drivers/mtd/mtd_uboot.c b/drivers/mtd/mtd_uboot.c
index ebdec0dd6c5..cdf4600cd31 100644
--- a/drivers/mtd/mtd_uboot.c
+++ b/drivers/mtd/mtd_uboot.c
@@ -12,6 +12,7 @@ 
 #include <dm/device.h>
 #include <dm/uclass-internal.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
 #include <mtd.h>
diff --git a/drivers/mtd/mtdconcat.c b/drivers/mtd/mtdconcat.c
index 1baaa6e9475..46f2330468c 100644
--- a/drivers/mtd/mtdconcat.c
+++ b/drivers/mtd/mtdconcat.c
@@ -23,6 +23,7 @@ 
 #include <div64.h>
 #include <linux/bug.h>
 #include <linux/compat.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #endif
 
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index ba19bd8c7fa..b995fb8abab 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -33,6 +33,7 @@ 
 #include <linux/bug.h>
 #include <linux/err.h>
 #include <ubi_uboot.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #endif
 
diff --git a/drivers/mtd/nand/bbt.c b/drivers/mtd/nand/bbt.c
index 809ccf644d8..51d7efd2200 100644
--- a/drivers/mtd/nand/bbt.c
+++ b/drivers/mtd/nand/bbt.c
@@ -12,6 +12,7 @@ 
 #include <common.h>
 #include <dm/devres.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/mtd/nand.h>
 #ifndef __UBOOT__
 #include <linux/slab.h>
diff --git a/drivers/mtd/nand/core.c b/drivers/mtd/nand/core.c
index 45d827f686c..1d9d13dfe1e 100644
--- a/drivers/mtd/nand/core.c
+++ b/drivers/mtd/nand/core.c
@@ -15,6 +15,7 @@ 
 #include <linux/module.h>
 #endif
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/mtd/nand.h>
 #include <linux/printk.h>
 
diff --git a/drivers/mtd/nand/raw/atmel_nand.c b/drivers/mtd/nand/raw/atmel_nand.c
index dcd5f8ff82e..75c21ff7852 100644
--- a/drivers/mtd/nand/raw/atmel_nand.c
+++ b/drivers/mtd/nand/raw/atmel_nand.c
@@ -19,6 +19,7 @@ 
 #include <linux/bitops.h>
 #include <linux/bug.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/mtd/nand/raw/davinci_nand.c b/drivers/mtd/nand/raw/davinci_nand.c
index f64de80bf2b..6c4eb58abb6 100644
--- a/drivers/mtd/nand/raw/davinci_nand.c
+++ b/drivers/mtd/nand/raw/davinci_nand.c
@@ -34,6 +34,7 @@ 
 #include <nand.h>
 #include <dm/uclass.h>
 #include <asm/ti-common/davinci_nand.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 /* Definitions for 4-bit hardware ECC */
diff --git a/drivers/mtd/nand/raw/denali_dt.c b/drivers/mtd/nand/raw/denali_dt.c
index 8318ff507f3..1f6963b55fe 100644
--- a/drivers/mtd/nand/raw/denali_dt.c
+++ b/drivers/mtd/nand/raw/denali_dt.c
@@ -9,6 +9,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bug.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <linux/printk.h>
diff --git a/drivers/mtd/nand/raw/denali_spl.c b/drivers/mtd/nand/raw/denali_spl.c
index 7252e0340c6..504f773e4de 100644
--- a/drivers/mtd/nand/raw/denali_spl.c
+++ b/drivers/mtd/nand/raw/denali_spl.c
@@ -9,6 +9,7 @@ 
 #include <asm/io.h>
 #include <asm/unaligned.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/mtd/rawnand.h>
 #include <linux/string.h>
 #include "denali.h"
diff --git a/drivers/mtd/nand/raw/fsmc_nand.c b/drivers/mtd/nand/raw/fsmc_nand.c
index 1feaeadd4b7..0991a398f45 100644
--- a/drivers/mtd/nand/raw/fsmc_nand.c
+++ b/drivers/mtd/nand/raw/fsmc_nand.c
@@ -14,6 +14,7 @@ 
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/mtd/nand_ecc.h>
 #include <linux/mtd/fsmc_nand.h>
 #include <asm/arch/hardware.h>
diff --git a/drivers/mtd/nand/raw/mxc_nand.c b/drivers/mtd/nand/raw/mxc_nand.c
index c5e56c05873..a90d30bd100 100644
--- a/drivers/mtd/nand/raw/mxc_nand.c
+++ b/drivers/mtd/nand/raw/mxc_nand.c
@@ -15,6 +15,7 @@ 
 	defined(CONFIG_MX51) || defined(CONFIG_MX53)
 #include <asm/arch/imx-regs.h>
 #endif
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include "mxc_nand.h"
 
diff --git a/drivers/mtd/nand/raw/mxc_nand_spl.c b/drivers/mtd/nand/raw/mxc_nand_spl.c
index e1e542519d8..ad01cdce260 100644
--- a/drivers/mtd/nand/raw/mxc_nand_spl.c
+++ b/drivers/mtd/nand/raw/mxc_nand_spl.c
@@ -15,6 +15,7 @@ 
 #include <nand.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include "mxc_nand.h"
 
 #if defined(MXC_NFC_V1) || defined(MXC_NFC_V2_1)
diff --git a/drivers/mtd/nand/raw/mxs_nand_dt.c b/drivers/mtd/nand/raw/mxs_nand_dt.c
index 43dbe9e66ec..675b284b063 100644
--- a/drivers/mtd/nand/raw/mxs_nand_dt.c
+++ b/drivers/mtd/nand/raw/mxs_nand_dt.c
@@ -13,6 +13,7 @@ 
  */
 
 #include <dm.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <linux/printk.h>
diff --git a/drivers/mtd/nand/raw/mxs_nand_spl.c b/drivers/mtd/nand/raw/mxs_nand_spl.c
index bc3bc836434..0fe538e7d6d 100644
--- a/drivers/mtd/nand/raw/mxs_nand_spl.c
+++ b/drivers/mtd/nand/raw/mxs_nand_spl.c
@@ -15,6 +15,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static struct mtd_info *mtd;
diff --git a/drivers/mtd/nand/raw/nand.c b/drivers/mtd/nand/raw/nand.c
index 1b7918c54b6..486c1b4a8bd 100644
--- a/drivers/mtd/nand/raw/nand.c
+++ b/drivers/mtd/nand/raw/nand.c
@@ -9,6 +9,7 @@ 
 #include <nand.h>
 #include <errno.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/mtd/concat.h>
 
 #ifndef CONFIG_SYS_NAND_BASE_LIST
diff --git a/drivers/mtd/nand/raw/nand_bbt.c b/drivers/mtd/nand/raw/nand_bbt.c
index 9c758172c11..336a341f0a0 100644
--- a/drivers/mtd/nand/raw/nand_bbt.c
+++ b/drivers/mtd/nand/raw/nand_bbt.c
@@ -64,6 +64,7 @@ 
 #include <dm/devres.h>
 #include <linux/bug.h>
 #include <linux/compat.h>
+#include <linux/errno.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/bbm.h>
 #include <linux/mtd/rawnand.h>
diff --git a/drivers/mtd/nand/raw/nand_bch.c b/drivers/mtd/nand/raw/nand_bch.c
index 5733bcb9c62..94e03e9ba5e 100644
--- a/drivers/mtd/nand/raw/nand_bch.c
+++ b/drivers/mtd/nand/raw/nand_bch.c
@@ -10,6 +10,7 @@ 
 #include <common.h>
 #include <log.h>
 #include <dm/devres.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 /*#include <asm/io.h>*/
diff --git a/drivers/mtd/nand/raw/nand_timings.c b/drivers/mtd/nand/raw/nand_timings.c
index e6aa7903913..008ea3bdf40 100644
--- a/drivers/mtd/nand/raw/nand_timings.c
+++ b/drivers/mtd/nand/raw/nand_timings.c
@@ -10,6 +10,7 @@ 
  */
 #include <common.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/mtd/rawnand.h>
 
diff --git a/drivers/mtd/nand/raw/stm32_fmc2_nand.c b/drivers/mtd/nand/raw/stm32_fmc2_nand.c
index 422367a2650..2e41efcb5fb 100644
--- a/drivers/mtd/nand/raw/stm32_fmc2_nand.c
+++ b/drivers/mtd/nand/raw/stm32_fmc2_nand.c
@@ -13,6 +13,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <linux/ioport.h>
 #include <linux/printk.h>
diff --git a/drivers/mtd/nand/raw/sunxi_nand.c b/drivers/mtd/nand/raw/sunxi_nand.c
index 5fd741f1124..025f18ad49d 100644
--- a/drivers/mtd/nand/raw/sunxi_nand.c
+++ b/drivers/mtd/nand/raw/sunxi_nand.c
@@ -36,6 +36,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/mtd/nand/raw/sunxi_nand_spl.c b/drivers/mtd/nand/raw/sunxi_nand_spl.c
index b098ebef8f3..9b54d007f8e 100644
--- a/drivers/mtd/nand/raw/sunxi_nand_spl.c
+++ b/drivers/mtd/nand/raw/sunxi_nand_spl.c
@@ -13,6 +13,7 @@ 
 #include <linux/bitops.h>
 #include <linux/ctype.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /* registers */
diff --git a/drivers/mtd/nand/raw/vf610_nfc.c b/drivers/mtd/nand/raw/vf610_nfc.c
index 708653ab162..ceec8c81e94 100644
--- a/drivers/mtd/nand/raw/vf610_nfc.c
+++ b/drivers/mtd/nand/raw/vf610_nfc.c
@@ -26,6 +26,7 @@ 
 #include <stdio.h>
 #include <time.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c
index a59dae357f3..99622a335a3 100644
--- a/drivers/mtd/nand/spi/core.c
+++ b/drivers/mtd/nand/spi/core.c
@@ -30,6 +30,7 @@ 
 #include <dm/devres.h>
 #include <linux/bitops.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/mtd/spinand.h>
 #include <linux/printk.h>
 #include <linux/string.h>
diff --git a/drivers/mtd/nand/spi/gigadevice.c b/drivers/mtd/nand/spi/gigadevice.c
index 0b228dcb5b1..465f18642b0 100644
--- a/drivers/mtd/nand/spi/gigadevice.c
+++ b/drivers/mtd/nand/spi/gigadevice.c
@@ -11,6 +11,7 @@ 
 #include <linux/device.h>
 #include <linux/kernel.h>
 #endif
+#include <linux/errno.h>
 #include <linux/mtd/spinand.h>
 
 #define SPINAND_MFR_GIGADEVICE			0xC8
diff --git a/drivers/mtd/nand/spi/macronix.c b/drivers/mtd/nand/spi/macronix.c
index 215f09acc37..83f9daaf579 100644
--- a/drivers/mtd/nand/spi/macronix.c
+++ b/drivers/mtd/nand/spi/macronix.c
@@ -11,6 +11,7 @@ 
 #include <linux/kernel.h>
 #endif
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/mtd/spinand.h>
 
 #define SPINAND_MFR_MACRONIX		0xC2
diff --git a/drivers/mtd/nand/spi/micron.c b/drivers/mtd/nand/spi/micron.c
index 6bacf14aafe..5fde4a78d23 100644
--- a/drivers/mtd/nand/spi/micron.c
+++ b/drivers/mtd/nand/spi/micron.c
@@ -12,6 +12,7 @@ 
 #include <linux/kernel.h>
 #endif
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/mtd/spinand.h>
 
 #define SPINAND_MFR_MICRON		0x2c
diff --git a/drivers/mtd/nand/spi/toshiba.c b/drivers/mtd/nand/spi/toshiba.c
index c2cd3b426b3..d0b003d2957 100644
--- a/drivers/mtd/nand/spi/toshiba.c
+++ b/drivers/mtd/nand/spi/toshiba.c
@@ -12,6 +12,7 @@ 
 #include <linux/kernel.h>
 #endif
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/mtd/spinand.h>
 
 #define SPINAND_MFR_TOSHIBA		0x98
diff --git a/drivers/mtd/nand/spi/winbond.c b/drivers/mtd/nand/spi/winbond.c
index c119486efb7..4e1c8883b38 100644
--- a/drivers/mtd/nand/spi/winbond.c
+++ b/drivers/mtd/nand/spi/winbond.c
@@ -13,6 +13,7 @@ 
 #include <linux/kernel.h>
 #endif
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/mtd/spinand.h>
 
 #define SPINAND_MFR_WINBOND		0xEF
diff --git a/drivers/mtd/pic32_flash.c b/drivers/mtd/pic32_flash.c
index a50aec7d77e..3daa76f949a 100644
--- a/drivers/mtd/pic32_flash.c
+++ b/drivers/mtd/pic32_flash.c
@@ -15,6 +15,7 @@ 
 #include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <mach/pic32.h>
 #include <wait_bit.h>
diff --git a/drivers/mtd/renesas_rpc_hf.c b/drivers/mtd/renesas_rpc_hf.c
index b13d688b660..cef18a95a42 100644
--- a/drivers/mtd/renesas_rpc_hf.c
+++ b/drivers/mtd/renesas_rpc_hf.c
@@ -23,6 +23,7 @@ 
 #include <mtd.h>
 #include <wait_bit.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <mtd/cfi_flash.h>
 
 #define RPC_CMNCR		0x0000	/* R/W */
diff --git a/drivers/mtd/spi/sandbox.c b/drivers/mtd/spi/sandbox.c
index e18326b5692..0ab3596a2a1 100644
--- a/drivers/mtd/spi/sandbox.c
+++ b/drivers/mtd/spi/sandbox.c
@@ -17,6 +17,7 @@ 
 #include <spi.h>
 #include <os.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <spi_flash.h>
diff --git a/drivers/mtd/spi/sf_dataflash.c b/drivers/mtd/spi/sf_dataflash.c
index 90f09a5fa1d..c65d62e7cdb 100644
--- a/drivers/mtd/spi/sf_dataflash.c
+++ b/drivers/mtd/spi/sf_dataflash.c
@@ -20,6 +20,7 @@ 
 #include <time.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/math64.h>
 #include <linux/string.h>
 
diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c
index afd63d8fa6f..8cf4acf45d6 100644
--- a/drivers/mtd/spi/sf_probe.c
+++ b/drivers/mtd/spi/sf_probe.c
@@ -15,6 +15,7 @@ 
 #include <spi.h>
 #include <spi_flash.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "sf_internal.h"
diff --git a/drivers/mtd/st_smi.c b/drivers/mtd/st_smi.c
index d5346605990..a6c1a0e1c78 100644
--- a/drivers/mtd/st_smi.c
+++ b/drivers/mtd/st_smi.c
@@ -10,6 +10,7 @@ 
 #include <time.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/mtd/st_smi.h>
 
 #include <asm/io.h>
diff --git a/drivers/mtd/ubi/attach.c b/drivers/mtd/ubi/attach.c
index 7b9ca10ed2a..2fdf3dbc658 100644
--- a/drivers/mtd/ubi/attach.c
+++ b/drivers/mtd/ubi/attach.c
@@ -81,6 +81,7 @@ 
 #include <div64.h>
 #include <linux/bug.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #endif
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index f07051c9f73..f0f63ae7df0 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -33,6 +33,7 @@ 
 #else
 #include <vsprintf.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/log2.h>
 #include <linux/printk.h>
 #include <linux/string.h>
diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c
index c84e3471266..213061847d7 100644
--- a/drivers/mtd/ubi/debug.c
+++ b/drivers/mtd/ubi/debug.c
@@ -10,6 +10,7 @@ 
 #include <stdio.h>
 #include <ubi_uboot.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include "ubi.h"
diff --git a/drivers/mtd/ubi/eba.c b/drivers/mtd/ubi/eba.c
index 9fe5ed79125..23a72d6a325 100644
--- a/drivers/mtd/ubi/eba.c
+++ b/drivers/mtd/ubi/eba.c
@@ -36,6 +36,7 @@ 
 #include <u-boot/crc.h>
 #else
 #include <ubi_uboot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #endif
 
diff --git a/drivers/mtd/ubi/fastmap-wl.c b/drivers/mtd/ubi/fastmap-wl.c
index 4cb1377c425..df5fab00e1a 100644
--- a/drivers/mtd/ubi/fastmap-wl.c
+++ b/drivers/mtd/ubi/fastmap-wl.c
@@ -6,6 +6,8 @@ 
  *
  */
 
+#include <linux/errno.h>
+
 /**
  * update_fastmap_work_fn - calls ubi_update_fastmap from a work queue
  * @wrk: the work description object
diff --git a/drivers/mtd/ubi/fastmap.c b/drivers/mtd/ubi/fastmap.c
index 90ed73b8577..6812b122d65 100644
--- a/drivers/mtd/ubi/fastmap.c
+++ b/drivers/mtd/ubi/fastmap.c
@@ -17,6 +17,7 @@ 
 #include <malloc.h>
 #include <ubi_uboot.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #endif
 
diff --git a/drivers/mtd/ubi/io.c b/drivers/mtd/ubi/io.c
index ef819a86d27..f88bafd35d3 100644
--- a/drivers/mtd/ubi/io.c
+++ b/drivers/mtd/ubi/io.c
@@ -83,6 +83,7 @@ 
 #else
 #include <hexdump.h>
 #include <ubi_uboot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #endif
 
diff --git a/drivers/mtd/ubi/kapi.c b/drivers/mtd/ubi/kapi.c
index 3fac8b2b308..981146ef034 100644
--- a/drivers/mtd/ubi/kapi.c
+++ b/drivers/mtd/ubi/kapi.c
@@ -16,6 +16,7 @@ 
 #include <asm/div64.h>
 #else
 #include <ubi_uboot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #endif
 #include <linux/err.h>
diff --git a/drivers/mtd/ubi/misc.c b/drivers/mtd/ubi/misc.c
index 81275deaeb7..b9bad95cf6f 100644
--- a/drivers/mtd/ubi/misc.c
+++ b/drivers/mtd/ubi/misc.c
@@ -10,6 +10,7 @@ 
 #include <log.h>
 #include <malloc.h>
 #include <ubi_uboot.h>
+#include <linux/errno.h>
 #include "ubi.h"
 
 /**
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h
index 175988899c3..d91c9effd07 100644
--- a/drivers/mtd/ubi/ubi.h
+++ b/drivers/mtd/ubi/ubi.h
@@ -28,6 +28,7 @@ 
 #include <asm/pgtable.h>
 #else
 #include <ubi_uboot.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #endif
 #include <linux/mtd/mtd.h>
diff --git a/drivers/mtd/ubi/upd.c b/drivers/mtd/ubi/upd.c
index c4856b6c11e..96ecaf60c04 100644
--- a/drivers/mtd/ubi/upd.c
+++ b/drivers/mtd/ubi/upd.c
@@ -32,6 +32,7 @@ 
 #else
 #include <div64.h>
 #include <ubi_uboot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #endif
 #include <linux/err.h>
diff --git a/drivers/mtd/ubi/vmt.c b/drivers/mtd/ubi/vmt.c
index 079ffbe7563..806abc9122e 100644
--- a/drivers/mtd/ubi/vmt.c
+++ b/drivers/mtd/ubi/vmt.c
@@ -20,6 +20,7 @@ 
 #include <div64.h>
 #include <ubi_uboot.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #endif
 #include <linux/math64.h>
diff --git a/drivers/mtd/ubi/vtbl.c b/drivers/mtd/ubi/vtbl.c
index cb4de78fcbb..91c0589bb62 100644
--- a/drivers/mtd/ubi/vtbl.c
+++ b/drivers/mtd/ubi/vtbl.c
@@ -56,6 +56,7 @@ 
 #else
 #include <ubi_uboot.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #endif
 
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c
index b7e5cc17ef4..d0963285b1f 100644
--- a/drivers/mtd/ubi/wl.c
+++ b/drivers/mtd/ubi/wl.c
@@ -95,6 +95,7 @@ 
 #else
 #include <ubi_uboot.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #endif
 
 #include "ubi.h"
diff --git a/drivers/mtd/ubispl/ubispl.c b/drivers/mtd/ubispl/ubispl.c
index 3ffad548535..96afa7dec11 100644
--- a/drivers/mtd/ubispl/ubispl.c
+++ b/drivers/mtd/ubispl/ubispl.c
@@ -10,6 +10,7 @@ 
 #include <common.h>
 #include <errno.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
 #include <ubispl.h>
diff --git a/drivers/net/ag7xxx.c b/drivers/net/ag7xxx.c
index 7714178e478..b82ea522a69 100644
--- a/drivers/net/ag7xxx.c
+++ b/drivers/net/ag7xxx.c
@@ -25,6 +25,7 @@ 
 #include <linux/compiler.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/mii.h>
 #include <wait_bit.h>
 #include <asm/io.h>
diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c
index 8e58464cc6c..bf17d1fb29a 100644
--- a/drivers/net/altera_tse.c
+++ b/drivers/net/altera_tse.c
@@ -24,6 +24,7 @@ 
 #include <asm/global_data.h>
 #include <linux/dma-mapping.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "altera_tse.h"
 
diff --git a/drivers/net/armada100_fec.c b/drivers/net/armada100_fec.c
index 87c01e0e3cd..c8f61a23d12 100644
--- a/drivers/net/armada100_fec.c
+++ b/drivers/net/armada100_fec.c
@@ -21,6 +21,7 @@ 
 #include <asm/u-boot.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/mii.h>
 #include <asm/io.h>
 #include <asm/arch/armada100.h>
diff --git a/drivers/net/at91_emac.c b/drivers/net/at91_emac.c
index d49f9216c7d..26381a1bc6e 100644
--- a/drivers/net/at91_emac.c
+++ b/drivers/net/at91_emac.c
@@ -21,6 +21,7 @@ 
 #include <miiphy.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/mii.h>
 #include <linux/string.h>
 
diff --git a/drivers/net/bcm-sf2-eth.c b/drivers/net/bcm-sf2-eth.c
index a0cbecf60df..db7930fb88e 100644
--- a/drivers/net/bcm-sf2-eth.c
+++ b/drivers/net/bcm-sf2-eth.c
@@ -12,6 +12,7 @@ 
 #include <vsprintf.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/net/bcm6348-eth.c b/drivers/net/bcm6348-eth.c
index b759d12867d..eeea3dc579f 100644
--- a/drivers/net/bcm6348-eth.c
+++ b/drivers/net/bcm6348-eth.c
@@ -19,6 +19,7 @@ 
 #include <vsprintf.h>
 #include <wait_bit.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #define ETH_RX_DESC			PKTBUFSRX
diff --git a/drivers/net/bcm6368-eth.c b/drivers/net/bcm6368-eth.c
index f6b473ae9b0..0e6d266f103 100644
--- a/drivers/net/bcm6368-eth.c
+++ b/drivers/net/bcm6368-eth.c
@@ -20,6 +20,7 @@ 
 #include <asm/io.h>
 #include <dm/device_compat.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/net/bcmgenet.c b/drivers/net/bcmgenet.c
index a767fa6e6de..cd3dac49e7e 100644
--- a/drivers/net/bcmgenet.c
+++ b/drivers/net/bcmgenet.c
@@ -33,6 +33,7 @@ 
 #include <net.h>
 #include <dm/of_access.h>
 #include <dm/ofnode.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <linux/sizes.h>
 #include <asm/dma-mapping.h>
diff --git a/drivers/net/calxedaxgmac.c b/drivers/net/calxedaxgmac.c
index 5df36fa6726..37c3a54761b 100644
--- a/drivers/net/calxedaxgmac.c
+++ b/drivers/net/calxedaxgmac.c
@@ -13,6 +13,7 @@ 
 #include <linux/delay.h>
 #include <linux/err.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define TX_NUM_DESC			1
diff --git a/drivers/net/dc2114x.c b/drivers/net/dc2114x.c
index 3b0219eee92..8bc75baf97f 100644
--- a/drivers/net/dc2114x.c
+++ b/drivers/net/dc2114x.c
@@ -12,6 +12,7 @@ 
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define SROM_DLEVEL	0
diff --git a/drivers/net/designware.c b/drivers/net/designware.c
index bb36b77169a..ffb41e8bf1f 100644
--- a/drivers/net/designware.c
+++ b/drivers/net/designware.c
@@ -29,6 +29,7 @@ 
 #include <linux/compiler.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <asm/io.h>
 #include <linux/printk.h>
diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c
index 84fbe0ff3c1..c5e22aff5c0 100644
--- a/drivers/net/dwc_eth_qos.c
+++ b/drivers/net/dwc_eth_qos.c
@@ -51,6 +51,7 @@ 
 #endif
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/net/dwmac_socfpga.c b/drivers/net/dwmac_socfpga.c
index e93561dffa8..cddbd56ac7d 100644
--- a/drivers/net/dwmac_socfpga.c
+++ b/drivers/net/dwmac_socfpga.c
@@ -13,6 +13,7 @@ 
 #include <regmap.h>
 #include <reset.h>
 #include <syscon.h>
+#include <linux/errno.h>
 #include "designware.h"
 #include <dm/device_compat.h>
 #include <linux/err.h>
diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c
index 5041a1894ee..1705dde9d2c 100644
--- a/drivers/net/e1000.c
+++ b/drivers/net/e1000.c
@@ -43,6 +43,7 @@  tested on both gig copper and gig fiber boards
 #include <vsprintf.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "e1000.h"
 #include <asm/cache.h>
diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c
index a8a20a08012..3d7decd126a 100644
--- a/drivers/net/eepro100.c
+++ b/drivers/net/eepro100.c
@@ -16,6 +16,7 @@ 
 #include <pci.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /* Ethernet chip registers. */
diff --git a/drivers/net/ep93xx_eth.c b/drivers/net/ep93xx_eth.c
index 802d04a26ba..a4767e8742d 100644
--- a/drivers/net/ep93xx_eth.c
+++ b/drivers/net/ep93xx_eth.c
@@ -28,6 +28,7 @@ 
 #include <miiphy.h>
 #include <asm/u-boot.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <linux/types.h>
diff --git a/drivers/net/eth-phy-uclass.c b/drivers/net/eth-phy-uclass.c
index 4afa6c87461..861fc1bfb8a 100644
--- a/drivers/net/eth-phy-uclass.c
+++ b/drivers/net/eth-phy-uclass.c
@@ -10,6 +10,7 @@ 
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
 #include <dm/lists.h>
+#include <linux/errno.h>
 
 struct eth_phy_device_priv {
 	struct mii_dev *mdio_bus;
diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c
index a1e051770c7..c331cd9e97c 100644
--- a/drivers/net/ethoc.c
+++ b/drivers/net/ethoc.c
@@ -18,6 +18,7 @@ 
 #include <vsprintf.h>
 #include <asm/u-boot.h>
 #include <dm/platform_data/net_ethoc.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <malloc.h>
 #include <net.h>
diff --git a/drivers/net/fm/eth.c b/drivers/net/fm/eth.c
index 7d65ee70be4..c451b136ae3 100644
--- a/drivers/net/fm/eth.c
+++ b/drivers/net/fm/eth.c
@@ -28,6 +28,7 @@ 
 #include <fsl_memac.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "fm.h"
diff --git a/drivers/net/fm/init.c b/drivers/net/fm/init.c
index b779b5c2299..1829517d024 100644
--- a/drivers/net/fm/init.c
+++ b/drivers/net/fm/init.c
@@ -15,6 +15,7 @@ 
 #include <asm/fsl_serdes.h>
 #endif
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "fm.h"
diff --git a/drivers/net/fm/memac_phy.c b/drivers/net/fm/memac_phy.c
index 8973f498d17..79a15989ad9 100644
--- a/drivers/net/fm/memac_phy.c
+++ b/drivers/net/fm/memac_phy.c
@@ -13,6 +13,7 @@ 
 #include <fsl_memac.h>
 #include <fm_eth.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #ifdef CONFIG_SYS_MEMAC_LITTLE_ENDIAN
diff --git a/drivers/net/fsl-mc/dpio/qbman_portal.c b/drivers/net/fsl-mc/dpio/qbman_portal.c
index bedff4ff321..fb325846322 100644
--- a/drivers/net/fsl-mc/dpio/qbman_portal.c
+++ b/drivers/net/fsl-mc/dpio/qbman_portal.c
@@ -8,6 +8,7 @@ 
 #include <stdio.h>
 #include <asm/arch/clock.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "qbman_portal.h"
 
diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c
index 3a7e8e84b46..d2f8869a340 100644
--- a/drivers/net/fsl-mc/mc.c
+++ b/drivers/net/fsl-mc/mc.c
@@ -18,6 +18,7 @@ 
 #include <linux/bug.h>
 #include <asm/io.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <net.h>
 #include <fdt_support.h>
diff --git a/drivers/net/fsl-mc/mc_sys.c b/drivers/net/fsl-mc/mc_sys.c
index 239bccb4b0a..aa50e64bced 100644
--- a/drivers/net/fsl-mc/mc_sys.c
+++ b/drivers/net/fsl-mc/mc_sys.c
@@ -13,6 +13,7 @@ 
 #include <errno.h>
 #include <asm/io.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define MC_CMD_HDR_READ_CMDID(_hdr) \
 	((uint16_t)mc_dec((_hdr), MC_CMD_HDR_CMDID_O, MC_CMD_HDR_CMDID_S))
diff --git a/drivers/net/fsl_enetc.c b/drivers/net/fsl_enetc.c
index ed302eace59..7b9730a8446 100644
--- a/drivers/net/fsl_enetc.c
+++ b/drivers/net/fsl_enetc.c
@@ -18,6 +18,7 @@ 
 #include <miiphy.h>
 #include <linux/bug.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "fsl_enetc.h"
diff --git a/drivers/net/fsl_enetc_mdio.c b/drivers/net/fsl_enetc_mdio.c
index 9bca18e9407..282c08c82f5 100644
--- a/drivers/net/fsl_enetc_mdio.c
+++ b/drivers/net/fsl_enetc_mdio.c
@@ -14,6 +14,7 @@ 
 #include <asm/io.h>
 #include <asm/processor.h>
 #include <miiphy.h>
+#include <linux/errno.h>
 
 #include "fsl_enetc.h"
 
diff --git a/drivers/net/fsl_mcdmafec.c b/drivers/net/fsl_mcdmafec.c
index 819de623625..64c1e71ebbe 100644
--- a/drivers/net/fsl_mcdmafec.c
+++ b/drivers/net/fsl_mcdmafec.c
@@ -22,6 +22,7 @@ 
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/mii.h>
 #include <asm/immap.h>
 #include <asm/fsl_mcdmafec.h>
diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c
index f5e50ff0847..af58d04da23 100644
--- a/drivers/net/ftgmac100.c
+++ b/drivers/net/ftgmac100.c
@@ -24,6 +24,7 @@ 
 #include <asm/cache.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
 #include <linux/printk.h>
diff --git a/drivers/net/ftmac100.c b/drivers/net/ftmac100.c
index e2b897a7ccc..569f1e40047 100644
--- a/drivers/net/ftmac100.c
+++ b/drivers/net/ftmac100.c
@@ -18,6 +18,7 @@ 
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/string.h>
 
diff --git a/drivers/net/gmac_rockchip.c b/drivers/net/gmac_rockchip.c
index 7cd2451e084..8aed219d9ed 100644
--- a/drivers/net/gmac_rockchip.c
+++ b/drivers/net/gmac_rockchip.c
@@ -28,6 +28,7 @@ 
 #include <dm/pinctrl.h>
 #include <dt-bindings/clock/rk3288-cru.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "designware.h"
 
diff --git a/drivers/net/higmacv300.c b/drivers/net/higmacv300.c
index 0c71c51ceb4..7310d6a0426 100644
--- a/drivers/net/higmacv300.c
+++ b/drivers/net/higmacv300.c
@@ -13,6 +13,7 @@ 
 #include <linux/bitops.h>
 #include <linux/bug.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/mii.h>
 #include <miiphy.h>
 #include <net.h>
diff --git a/drivers/net/ks8851_mll.c b/drivers/net/ks8851_mll.c
index 65b160f8c40..f357fec5cc9 100644
--- a/drivers/net/ks8851_mll.c
+++ b/drivers/net/ks8851_mll.c
@@ -15,6 +15,7 @@ 
 #include <miiphy.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #include "ks8851_mll.h"
 
diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c
index ac0487e68d2..5da5582200d 100644
--- a/drivers/net/ldpaa_eth/ldpaa_eth.c
+++ b/drivers/net/ldpaa_eth/ldpaa_eth.c
@@ -23,6 +23,7 @@ 
 #include <linux/compat.h>
 #include <fsl-mc/fsl_dpmac.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <fsl-mc/ldpaa_wriop.h>
diff --git a/drivers/net/ldpaa_eth/ldpaa_wriop.c b/drivers/net/ldpaa_eth/ldpaa_wriop.c
index 06a284ad684..e2ad13b8975 100644
--- a/drivers/net/ldpaa_eth/ldpaa_wriop.c
+++ b/drivers/net/ldpaa_eth/ldpaa_wriop.c
@@ -11,6 +11,7 @@ 
 #include <linux/compat.h>
 #include <asm/arch/fsl_serdes.h>
 #include <fsl-mc/ldpaa_wriop.h>
+#include <linux/errno.h>
 
 struct wriop_dpmac_info dpmac_info[NUM_WRIOP_PORTS];
 
diff --git a/drivers/net/ldpaa_eth/lx2160a.c b/drivers/net/ldpaa_eth/lx2160a.c
index 9432b6eb85c..a61508befc8 100644
--- a/drivers/net/ldpaa_eth/lx2160a.c
+++ b/drivers/net/ldpaa_eth/lx2160a.c
@@ -8,6 +8,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/fsl_serdes.h>
 #include <asm/arch/soc.h>
+#include <linux/errno.h>
 #include <linux/mii.h>
 
 u32 dpmac_to_devdisr[] = {
diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c
index 5a86f204ee3..91ca0e03216 100644
--- a/drivers/net/mcffec.c
+++ b/drivers/net/mcffec.c
@@ -23,6 +23,7 @@ 
 #include <asm/immap.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/mii.h>
 #include <linux/string.h>
 
diff --git a/drivers/net/mdio_mux_sandbox.c b/drivers/net/mdio_mux_sandbox.c
index 3dba4d18a15..c22882c6e8d 100644
--- a/drivers/net/mdio_mux_sandbox.c
+++ b/drivers/net/mdio_mux_sandbox.c
@@ -7,6 +7,7 @@ 
 #include <dm.h>
 #include <errno.h>
 #include <miiphy.h>
+#include <linux/errno.h>
 
 /* macros copied over from mdio_sandbox.c */
 #define SANDBOX_PHY_ADDR	5
diff --git a/drivers/net/mdio_sandbox.c b/drivers/net/mdio_sandbox.c
index b731f60a98a..2d7c845a098 100644
--- a/drivers/net/mdio_sandbox.c
+++ b/drivers/net/mdio_sandbox.c
@@ -7,6 +7,7 @@ 
 #include <dm.h>
 #include <errno.h>
 #include <miiphy.h>
+#include <linux/errno.h>
 
 #define SANDBOX_PHY_ADDR	5
 #define SANDBOX_PHY_REG_CNT	2
diff --git a/drivers/net/mpc8xx_fec.c b/drivers/net/mpc8xx_fec.c
index d65378cec72..63e18789184 100644
--- a/drivers/net/mpc8xx_fec.c
+++ b/drivers/net/mpc8xx_fec.c
@@ -17,6 +17,7 @@ 
 #include <asm/io.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <phy.h>
diff --git a/drivers/net/mscc_eswitch/jr2_switch.c b/drivers/net/mscc_eswitch/jr2_switch.c
index d4752492c5b..0e0a4d7037c 100644
--- a/drivers/net/mscc_eswitch/jr2_switch.c
+++ b/drivers/net/mscc_eswitch/jr2_switch.c
@@ -13,6 +13,7 @@ 
 #include <fdt_support.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <miiphy.h>
diff --git a/drivers/net/mscc_eswitch/luton_switch.c b/drivers/net/mscc_eswitch/luton_switch.c
index 0ebc207157b..6ceb250688a 100644
--- a/drivers/net/mscc_eswitch/luton_switch.c
+++ b/drivers/net/mscc_eswitch/luton_switch.c
@@ -12,6 +12,7 @@ 
 #include <dm/of_addr.h>
 #include <fdt_support.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <miiphy.h>
diff --git a/drivers/net/mscc_eswitch/mscc_mac_table.c b/drivers/net/mscc_eswitch/mscc_mac_table.c
index 25b9cad42c9..dba44318f52 100644
--- a/drivers/net/mscc_eswitch/mscc_mac_table.c
+++ b/drivers/net/mscc_eswitch/mscc_mac_table.c
@@ -4,6 +4,7 @@ 
  */
 
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include "mscc_mac_table.h"
 
diff --git a/drivers/net/mscc_eswitch/mscc_miim.c b/drivers/net/mscc_eswitch/mscc_miim.c
index de257d4d60f..9d59fc53ee9 100644
--- a/drivers/net/mscc_eswitch/mscc_miim.c
+++ b/drivers/net/mscc_eswitch/mscc_miim.c
@@ -7,6 +7,7 @@ 
 #include <vsprintf.h>
 #include <wait_bit.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include "mscc_miim.h"
 
 #define MIIM_STATUS			0x0
diff --git a/drivers/net/mscc_eswitch/mscc_xfer.c b/drivers/net/mscc_eswitch/mscc_xfer.c
index 6f747464571..a2827b5377e 100644
--- a/drivers/net/mscc_eswitch/mscc_xfer.c
+++ b/drivers/net/mscc_eswitch/mscc_xfer.c
@@ -6,6 +6,7 @@ 
 #include <log.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include "mscc_xfer.h"
 
diff --git a/drivers/net/mscc_eswitch/ocelot_switch.c b/drivers/net/mscc_eswitch/ocelot_switch.c
index de8a44e48bc..b787524af16 100644
--- a/drivers/net/mscc_eswitch/ocelot_switch.c
+++ b/drivers/net/mscc_eswitch/ocelot_switch.c
@@ -12,6 +12,7 @@ 
 #include <dm/of_addr.h>
 #include <fdt_support.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <miiphy.h>
diff --git a/drivers/net/mscc_eswitch/serval_switch.c b/drivers/net/mscc_eswitch/serval_switch.c
index 540799567ec..9b6e5d8743d 100644
--- a/drivers/net/mscc_eswitch/serval_switch.c
+++ b/drivers/net/mscc_eswitch/serval_switch.c
@@ -12,6 +12,7 @@ 
 #include <dm/of_addr.h>
 #include <fdt_support.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <miiphy.h>
diff --git a/drivers/net/mscc_eswitch/servalt_switch.c b/drivers/net/mscc_eswitch/servalt_switch.c
index a1c86062fac..eecf6153245 100644
--- a/drivers/net/mscc_eswitch/servalt_switch.c
+++ b/drivers/net/mscc_eswitch/servalt_switch.c
@@ -12,6 +12,7 @@ 
 #include <dm/of_addr.h>
 #include <fdt_support.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <miiphy.h>
diff --git a/drivers/net/mt7628-eth.c b/drivers/net/mt7628-eth.c
index 1eea520b876..fd619361727 100644
--- a/drivers/net/mt7628-eth.c
+++ b/drivers/net/mt7628-eth.c
@@ -30,6 +30,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/net/mtk_eth.c b/drivers/net/mtk_eth.c
index ad86820bbb0..8cf78422f7d 100644
--- a/drivers/net/mtk_eth.c
+++ b/drivers/net/mtk_eth.c
@@ -26,6 +26,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/ioport.h>
 #include <linux/mdio.h>
 #include <linux/mii.h>
diff --git a/drivers/net/mvmdio.c b/drivers/net/mvmdio.c
index deaba8aee4f..c712043dc7d 100644
--- a/drivers/net/mvmdio.c
+++ b/drivers/net/mvmdio.c
@@ -13,6 +13,7 @@ 
 #include <asm/io.h>
 #include <wait_bit.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #define MVMDIO_SMI_DATA_SHIFT		0
diff --git a/drivers/net/pch_gbe.c b/drivers/net/pch_gbe.c
index fa824079391..887958fef54 100644
--- a/drivers/net/pch_gbe.c
+++ b/drivers/net/pch_gbe.c
@@ -17,6 +17,7 @@ 
 #include <pci.h>
 #include <miiphy.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "pch_gbe.h"
 
diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c
index 24947a33d74..2e7cd2b3dfc 100644
--- a/drivers/net/pcnet.c
+++ b/drivers/net/pcnet.c
@@ -22,6 +22,7 @@ 
 #include <pci.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define	PCNET_DEBUG_LEVEL	0	/* 0=off, 1=init, 2=rx/tx */
diff --git a/drivers/net/pfe_eth/pfe_driver.c b/drivers/net/pfe_eth/pfe_driver.c
index 58a4df2ae24..3b777ea77ad 100644
--- a/drivers/net/pfe_eth/pfe_driver.c
+++ b/drivers/net/pfe_eth/pfe_driver.c
@@ -9,6 +9,7 @@ 
 #include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <net/pfe_eth/pfe_eth.h>
 #include <net/pfe_eth/pfe_firmware.h>
diff --git a/drivers/net/pfe_eth/pfe_eth.c b/drivers/net/pfe_eth/pfe_eth.c
index 4848e2e2aa9..f582f8c5af5 100644
--- a/drivers/net/pfe_eth/pfe_eth.c
+++ b/drivers/net/pfe_eth/pfe_eth.c
@@ -13,6 +13,7 @@ 
 #include <dm/platform_data/pfe_dm_eth.h>
 #include <net.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <net/pfe_eth/pfe_eth.h>
 #include <net/pfe_eth/pfe_mdio.h>
 
diff --git a/drivers/net/pfe_eth/pfe_firmware.c b/drivers/net/pfe_eth/pfe_firmware.c
index 66d5ad930e3..286594d91b9 100644
--- a/drivers/net/pfe_eth/pfe_firmware.c
+++ b/drivers/net/pfe_eth/pfe_firmware.c
@@ -15,6 +15,7 @@ 
 #include <malloc.h>
 #include <stdio.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <net/pfe_eth/pfe_eth.h>
 #include <net/pfe_eth/pfe_firmware.h>
diff --git a/drivers/net/pfe_eth/pfe_mdio.c b/drivers/net/pfe_eth/pfe_mdio.c
index 4cc55b36885..08536dea67e 100644
--- a/drivers/net/pfe_eth/pfe_mdio.c
+++ b/drivers/net/pfe_eth/pfe_mdio.c
@@ -12,6 +12,7 @@ 
 #include <dm/platform_data/pfe_dm_eth.h>
 #include <net.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <net/pfe_eth/pfe_eth.h>
 
 extern struct gemac_s gem_info[];
diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c
index aa3e566bf2e..1395af5444d 100644
--- a/drivers/net/phy/aquantia.c
+++ b/drivers/net/phy/aquantia.c
@@ -14,6 +14,7 @@ 
 #include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
 #include <malloc.h>
diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c
index 29db299c1e7..7577ebdbe83 100644
--- a/drivers/net/phy/atheros.c
+++ b/drivers/net/phy/atheros.c
@@ -12,6 +12,7 @@ 
 #include <linux/bitfield.h>
 #include <linux/bitops.h>
 #include <dt-bindings/net/qca-ar803x.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define AR803x_PHY_DEBUG_ADDR_REG	0x1d
diff --git a/drivers/net/phy/b53.c b/drivers/net/phy/b53.c
index 2e4796f5d6c..1bc9b2e4e7c 100644
--- a/drivers/net/phy/b53.c
+++ b/drivers/net/phy/b53.c
@@ -28,6 +28,7 @@ 
 #include <vsprintf.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <errno.h>
diff --git a/drivers/net/phy/cortina.c b/drivers/net/phy/cortina.c
index 18e9f5ab25c..8ab483cdd58 100644
--- a/drivers/net/phy/cortina.c
+++ b/drivers/net/phy/cortina.c
@@ -15,6 +15,7 @@ 
 #include <vsprintf.h>
 #include <linux/ctype.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <linux/err.h>
 #include <phy.h>
diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c
index e4081244f21..9f07045007c 100644
--- a/drivers/net/phy/dp83867.c
+++ b/drivers/net/phy/dp83867.c
@@ -10,6 +10,7 @@ 
 #include <linux/bitops.h>
 #include <linux/compat.h>
 #include <malloc.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #include <dm.h>
diff --git a/drivers/net/phy/fixed.c b/drivers/net/phy/fixed.c
index b4833c5ac96..987cde1fc12 100644
--- a/drivers/net/phy/fixed.c
+++ b/drivers/net/phy/fixed.c
@@ -13,6 +13,7 @@ 
 #include <fdt_support.h>
 #include <stdio.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c
index a313e8bf917..f03b5541a97 100644
--- a/drivers/net/phy/marvell.c
+++ b/drivers/net/phy/marvell.c
@@ -11,6 +11,7 @@ 
 #include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define PHY_AUTONEGOTIATE_TIMEOUT 5000
 
diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c
index e7a1008f14d..d65368a85e1 100644
--- a/drivers/net/phy/meson-gxl.c
+++ b/drivers/net/phy/meson-gxl.c
@@ -12,6 +12,7 @@ 
 #include <linux/bitops.h>
 #include <dm.h>
 #include <phy.h>
+#include <linux/errno.h>
 
 /* This function is provided to cope with the possible failures of this phy
  * during aneg process. When aneg fails, the PHY reports that aneg is done
diff --git a/drivers/net/phy/micrel_ksz90x1.c b/drivers/net/phy/micrel_ksz90x1.c
index f0032e8ce16..4c0b2f4af85 100644
--- a/drivers/net/phy/micrel_ksz90x1.c
+++ b/drivers/net/phy/micrel_ksz90x1.c
@@ -14,6 +14,7 @@ 
 #include <errno.h>
 #include <micrel.h>
 #include <phy.h>
+#include <linux/errno.h>
 
 /*
  * KSZ9021 - KSZ9031 common
diff --git a/drivers/net/phy/mscc.c b/drivers/net/phy/mscc.c
index f8a4d069440..f0d37d1b81f 100644
--- a/drivers/net/phy/mscc.c
+++ b/drivers/net/phy/mscc.c
@@ -16,6 +16,7 @@ 
 #include <time.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 /* Microsemi PHY ID's */
diff --git a/drivers/net/phy/mv88e61xx.c b/drivers/net/phy/mv88e61xx.c
index 0a783e03129..927edb62a2e 100644
--- a/drivers/net/phy/mv88e61xx.c
+++ b/drivers/net/phy/mv88e61xx.c
@@ -34,6 +34,7 @@ 
 #include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <bitfield.h>
diff --git a/drivers/net/phy/ncsi.c b/drivers/net/phy/ncsi.c
index f112fa2bee9..9f68d14bf53 100644
--- a/drivers/net/phy/ncsi.c
+++ b/drivers/net/phy/ncsi.c
@@ -10,6 +10,7 @@ 
 #include <malloc.h>
 #include <phy.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <net/ncsi.h>
 #include <net/ncsi-pkt.h>
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index 026ccc467f6..bda41672cc9 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -23,6 +23,7 @@ 
 #include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/compiler.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/net/phy/xilinx_gmii2rgmii.c b/drivers/net/phy/xilinx_gmii2rgmii.c
index 86492e90c4d..1a7b24f0f68 100644
--- a/drivers/net/phy/xilinx_gmii2rgmii.c
+++ b/drivers/net/phy/xilinx_gmii2rgmii.c
@@ -11,6 +11,7 @@ 
 #include <phy.h>
 #include <stdio.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/net/phy/xilinx_phy.c b/drivers/net/phy/xilinx_phy.c
index 39dbfdb7da8..84fb1f0fe2e 100644
--- a/drivers/net/phy/xilinx_phy.c
+++ b/drivers/net/phy/xilinx_phy.c
@@ -10,6 +10,7 @@ 
 #include <log.h>
 #include <phy.h>
 #include <dm.h>
+#include <linux/errno.h>
 
 #define MII_PHY_STATUS_SPD_MASK		0x0C00
 #define MII_PHY_STATUS_FULLDUPLEX	0x1000
diff --git a/drivers/net/pic32_eth.c b/drivers/net/pic32_eth.c
index 5627b5d2d1a..3be550e64d5 100644
--- a/drivers/net/pic32_eth.c
+++ b/drivers/net/pic32_eth.c
@@ -18,6 +18,7 @@ 
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/mii.h>
 
 #include "pic32_eth.h"
diff --git a/drivers/net/pic32_mdio.c b/drivers/net/pic32_mdio.c
index 963b9e7fc8f..d30bceb4e53 100644
--- a/drivers/net/pic32_mdio.c
+++ b/drivers/net/pic32_mdio.c
@@ -13,6 +13,7 @@ 
 #include <wait_bit.h>
 #include <asm/io.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "pic32_eth.h"
 
diff --git a/drivers/net/ravb.c b/drivers/net/ravb.c
index b3f392cb8bf..d9d376c09ec 100644
--- a/drivers/net/ravb.c
+++ b/drivers/net/ravb.c
@@ -22,6 +22,7 @@ 
 #include <asm/global_data.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/mii.h>
 #include <wait_bit.h>
 #include <asm/io.h>
diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c
index ba0f477bf23..7c0bb2372d3 100644
--- a/drivers/net/rtl8139.c
+++ b/drivers/net/rtl8139.c
@@ -82,6 +82,7 @@ 
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <linux/types.h>
 
diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c
index c64888be490..9cc5cc8acf9 100644
--- a/drivers/net/rtl8169.c
+++ b/drivers/net/rtl8169.c
@@ -57,6 +57,7 @@ 
 #include <pci.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/net/sandbox-raw-bus.c b/drivers/net/sandbox-raw-bus.c
index 6b111d47eea..1509630b835 100644
--- a/drivers/net/sandbox-raw-bus.c
+++ b/drivers/net/sandbox-raw-bus.c
@@ -11,6 +11,7 @@ 
 #include <malloc.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static int eth_raw_bus_post_bind(struct udevice *dev)
diff --git a/drivers/net/sandbox.c b/drivers/net/sandbox.c
index 0551d0670b1..37eeaab4e82 100644
--- a/drivers/net/sandbox.c
+++ b/drivers/net/sandbox.c
@@ -16,6 +16,7 @@ 
 #include <asm/eth.h>
 #include <asm/global_data.h>
 #include <asm/test.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index 196020c1b81..8b1aae24467 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -13,6 +13,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/drivers/net/sni_ave.c b/drivers/net/sni_ave.c
index 13ec074acac..eb422f33b70 100644
--- a/drivers/net/sni_ave.c
+++ b/drivers/net/sni_ave.c
@@ -22,6 +22,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
 #include <linux/printk.h>
diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c
index 0715cf81c74..8b94322ae74 100644
--- a/drivers/net/sun8i_emac.c
+++ b/drivers/net/sun8i_emac.c
@@ -36,6 +36,7 @@ 
 #if CONFIG_IS_ENABLED(DM_GPIO)
 #include <asm-generic/gpio.h>
 #endif
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define MDIO_CMD_MII_BUSY		BIT(0)
diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_emac.c
index 009d0de4845..4470c741fa9 100644
--- a/drivers/net/sunxi_emac.c
+++ b/drivers/net/sunxi_emac.c
@@ -19,6 +19,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/gpio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /* EMAC register  */
diff --git a/drivers/net/ti/am65-cpsw-nuss.c b/drivers/net/ti/am65-cpsw-nuss.c
index 571f1ebfc46..14956af4580 100644
--- a/drivers/net/ti/am65-cpsw-nuss.c
+++ b/drivers/net/ti/am65-cpsw-nuss.c
@@ -23,6 +23,7 @@ 
 #include <phy.h>
 #include <power-domain.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/soc/ti/ti-udma.h>
 
diff --git a/drivers/net/ti/cpsw-common.c b/drivers/net/ti/cpsw-common.c
index 9ed0b56cc80..0b4adb1aa61 100644
--- a/drivers/net/ti/cpsw-common.c
+++ b/drivers/net/ti/cpsw-common.c
@@ -12,6 +12,7 @@ 
 #include <asm/io.h>
 #include <cpsw.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/net/ti/cpsw_mdio.c b/drivers/net/ti/cpsw_mdio.c
index e47d5a2a5c5..2e70477756a 100644
--- a/drivers/net/ti/cpsw_mdio.c
+++ b/drivers/net/ti/cpsw_mdio.c
@@ -14,6 +14,7 @@ 
 #include <wait_bit.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 struct cpsw_mdio_regs {
 	u32	version;
diff --git a/drivers/net/ti/davinci_emac.c b/drivers/net/ti/davinci_emac.c
index 19041be320e..272127903f5 100644
--- a/drivers/net/ti/davinci_emac.c
+++ b/drivers/net/ti/davinci_emac.c
@@ -35,6 +35,7 @@ 
 #include <asm/arch/emac_defs.h>
 #include <asm/io.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "davinci_emac.h"
 
diff --git a/drivers/net/ti/keystone_net.c b/drivers/net/ti/keystone_net.c
index 96bbb219d5d..a6062e33638 100644
--- a/drivers/net/ti/keystone_net.c
+++ b/drivers/net/ti/keystone_net.c
@@ -12,6 +12,7 @@ 
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #include <dm.h>
diff --git a/drivers/net/vsc9953.c b/drivers/net/vsc9953.c
index 4ae225e879f..36960bf1234 100644
--- a/drivers/net/vsc9953.c
+++ b/drivers/net/vsc9953.c
@@ -21,6 +21,7 @@ 
 #include <ethsw.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 static struct vsc9953_info vsc9953_l2sw = {
 		.port[0] = VSC9953_PORT_INFO_INITIALIZER(0),
diff --git a/drivers/net/xilinx_axi_emac.c b/drivers/net/xilinx_axi_emac.c
index f6cf8df44ff..0da2385a92e 100644
--- a/drivers/net/xilinx_axi_emac.c
+++ b/drivers/net/xilinx_axi_emac.c
@@ -20,6 +20,7 @@ 
 #include <miiphy.h>
 #include <wait_bit.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c
index 9ce57335bc6..47a401cc96f 100644
--- a/drivers/nvme/nvme.c
+++ b/drivers/nvme/nvme.c
@@ -18,6 +18,7 @@ 
 #include <vsprintf.h>
 #include <dm/device-internal.h>
 #include <linux/compat.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "nvme.h"
 
diff --git a/drivers/nvme/nvme_show.c b/drivers/nvme/nvme_show.c
index 5a0bb4a223e..2c3d7bcfa00 100644
--- a/drivers/nvme/nvme_show.c
+++ b/drivers/nvme/nvme_show.c
@@ -10,6 +10,7 @@ 
 #include <memalign.h>
 #include <nvme.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include "nvme.h"
 
 static void print_optional_admin_cmd(u16 oacs, int devnum)
diff --git a/drivers/pch/pch-uclass.c b/drivers/pch/pch-uclass.c
index ad4906aa58b..be9b89539f0 100644
--- a/drivers/pch/pch-uclass.c
+++ b/drivers/pch/pch-uclass.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <pch.h>
+#include <linux/errno.h>
 
 int pch_get_spi_base(struct udevice *dev, ulong *sbasep)
 {
diff --git a/drivers/pch/pch7.c b/drivers/pch/pch7.c
index 5fb35a19eff..8fc6388593f 100644
--- a/drivers/pch/pch7.c
+++ b/drivers/pch/pch7.c
@@ -7,6 +7,7 @@ 
 #include <dm.h>
 #include <log.h>
 #include <pch.h>
+#include <linux/errno.h>
 
 #define GPIO_BASE	0x44
 #define BIOS_CTRL	0xd8
diff --git a/drivers/pch/pch9.c b/drivers/pch/pch9.c
index 3bd011518b3..f36b70c53ab 100644
--- a/drivers/pch/pch9.c
+++ b/drivers/pch/pch9.c
@@ -7,6 +7,7 @@ 
 #include <dm.h>
 #include <log.h>
 #include <pch.h>
+#include <linux/errno.h>
 
 #define GPIO_BASE	0x48
 #define IO_BASE		0x4c
diff --git a/drivers/pch/sandbox_pch.c b/drivers/pch/sandbox_pch.c
index 76f552527e3..c9317f1fda2 100644
--- a/drivers/pch/sandbox_pch.c
+++ b/drivers/pch/sandbox_pch.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <pch.h>
+#include <linux/errno.h>
 
 struct sandbox_pch_priv {
 	bool protect;
diff --git a/drivers/pci/pci-aardvark.c b/drivers/pci/pci-aardvark.c
index 76234ea61c4..f2c2eb3870f 100644
--- a/drivers/pci/pci-aardvark.c
+++ b/drivers/pci/pci-aardvark.c
@@ -33,6 +33,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/ioport.h>
 
 /* PCIe core registers */
diff --git a/drivers/pci/pci-emul-uclass.c b/drivers/pci/pci-emul-uclass.c
index 6355daee5e1..1ba42693a84 100644
--- a/drivers/pci/pci-emul-uclass.c
+++ b/drivers/pci/pci-emul-uclass.c
@@ -9,6 +9,7 @@ 
 #include <fdtdec.h>
 #include <log.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <pci.h>
 #include <dm/lists.h>
diff --git a/drivers/pci/pci-rcar-gen2.c b/drivers/pci/pci-rcar-gen2.c
index e76abc1f84c..d73c171846f 100644
--- a/drivers/pci/pci-rcar-gen2.c
+++ b/drivers/pci/pci-rcar-gen2.c
@@ -12,6 +12,7 @@ 
 #include <errno.h>
 #include <pci.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 /* AHB-PCI Bridge PCI communication registers */
 #define RCAR_AHBPCI_PCICOM_OFFSET	0x800
diff --git a/drivers/pci/pci-rcar-gen3.c b/drivers/pci/pci-rcar-gen3.c
index 1f51854ccc6..9a990a06324 100644
--- a/drivers/pci/pci-rcar-gen3.c
+++ b/drivers/pci/pci-rcar-gen3.c
@@ -23,6 +23,7 @@ 
 #include <pci.h>
 #include <wait_bit.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define PCIECAR			0x000010
 #define PCIECCTLR		0x000018
diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c
index 1174d90b5f1..3cd87c7fc65 100644
--- a/drivers/pci/pci-uclass.c
+++ b/drivers/pci/pci-uclass.c
@@ -22,6 +22,7 @@ 
 #include <asm/fsp/fsp_support.h>
 #endif
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include "pci_internal.h"
diff --git a/drivers/pci/pci_common.c b/drivers/pci/pci_common.c
index e7469d88d82..7ee0980bb75 100644
--- a/drivers/pci/pci_common.c
+++ b/drivers/pci/pci_common.c
@@ -16,6 +16,7 @@ 
 #include <pci.h>
 #include <stdio.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 
 const char *pci_class_str(u8 class)
 {
diff --git a/drivers/pci/pci_mpc85xx.c b/drivers/pci/pci_mpc85xx.c
index d7073a49694..d207f8e645b 100644
--- a/drivers/pci/pci_mpc85xx.c
+++ b/drivers/pci/pci_mpc85xx.c
@@ -11,6 +11,7 @@ 
 #include <pci.h>
 #include <dm.h>
 #include <asm/fsl_law.h>
+#include <linux/errno.h>
 
 struct mpc85xx_pci_priv {
 	void __iomem		*cfg_addr;
diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c
index 3a046df743d..85ad27322f9 100644
--- a/drivers/pci/pci_rom.c
+++ b/drivers/pci/pci_rom.c
@@ -41,6 +41,7 @@ 
 #include <video_fb.h>
 #include <acpi/acpi_s3.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/screen_info.h>
 #include <linux/string.h>
 
diff --git a/drivers/pci/pci_sandbox.c b/drivers/pci/pci_sandbox.c
index 8745f286bd4..4af0bf73034 100644
--- a/drivers/pci/pci_sandbox.c
+++ b/drivers/pci/pci_sandbox.c
@@ -9,6 +9,7 @@ 
 #include <fdtdec.h>
 #include <log.h>
 #include <pci.h>
+#include <linux/errno.h>
 
 #define FDT_DEV_INFO_CELLS	4
 #define FDT_DEV_INFO_SIZE	(FDT_DEV_INFO_CELLS * sizeof(u32))
diff --git a/drivers/pci/pci_sh7751.c b/drivers/pci/pci_sh7751.c
index 62d098d378f..d5d1147f37d 100644
--- a/drivers/pci/pci_sh7751.c
+++ b/drivers/pci/pci_sh7751.c
@@ -14,6 +14,7 @@ 
 #include <asm/pci.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 /* Register addresses and such */
 #define SH7751_BCR1	(vu_long *)0xFF800000
diff --git a/drivers/pci/pci_tegra.c b/drivers/pci/pci_tegra.c
index 8845dc451e5..5f8cde34bdf 100644
--- a/drivers/pci/pci_tegra.c
+++ b/drivers/pci/pci_tegra.c
@@ -23,6 +23,7 @@ 
 #include <reset.h>
 #include <time.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/pci/pcie_brcmstb.c b/drivers/pci/pcie_brcmstb.c
index 4fd4d4dfbd1..10a19bdc950 100644
--- a/drivers/pci/pcie_brcmstb.c
+++ b/drivers/pci/pcie_brcmstb.c
@@ -20,6 +20,7 @@ 
 #include <pci.h>
 #include <asm/io.h>
 #include <linux/bitfield.h>
+#include <linux/errno.h>
 #include <linux/log2.h>
 #include <linux/iopoll.h>
 
diff --git a/drivers/pci/pcie_dw_mvebu.c b/drivers/pci/pcie_dw_mvebu.c
index b1f2750888c..287736cd88c 100644
--- a/drivers/pci/pcie_dw_mvebu.c
+++ b/drivers/pci/pcie_dw_mvebu.c
@@ -20,6 +20,7 @@ 
 #include <asm/io.h>
 #include <asm-generic/gpio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/pci/pcie_dw_ti.c b/drivers/pci/pcie_dw_ti.c
index 3d86bdaaafb..00b9a2418ab 100644
--- a/drivers/pci/pcie_dw_ti.c
+++ b/drivers/pci/pcie_dw_ti.c
@@ -20,6 +20,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/pci/pcie_fsl.c b/drivers/pci/pcie_fsl.c
index a8978dcc3bd..055c454599d 100644
--- a/drivers/pci/pcie_fsl.c
+++ b/drivers/pci/pcie_fsl.c
@@ -17,6 +17,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include "pcie_fsl.h"
 #include <dm/device_compat.h>
diff --git a/drivers/pci/pcie_imx.c b/drivers/pci/pcie_imx.c
index ab3d96efc53..928f624da9a 100644
--- a/drivers/pci/pcie_imx.c
+++ b/drivers/pci/pcie_imx.c
@@ -22,6 +22,7 @@ 
 #include <asm/io.h>
 #include <dm.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <errno.h>
 #include <asm/arch/sys_proto.h>
diff --git a/drivers/pci/pcie_intel_fpga.c b/drivers/pci/pcie_intel_fpga.c
index 2aedbdd0e56..bc937532642 100644
--- a/drivers/pci/pcie_intel_fpga.c
+++ b/drivers/pci/pcie_intel_fpga.c
@@ -14,6 +14,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define RP_TX_REG0			0x2000
 #define RP_TX_CNTRL			0x2004
diff --git a/drivers/pci/pcie_layerscape_ep.c b/drivers/pci/pcie_layerscape_ep.c
index c32c40f7957..680455fb31f 100644
--- a/drivers/pci/pcie_layerscape_ep.c
+++ b/drivers/pci/pcie_layerscape_ep.c
@@ -13,6 +13,7 @@ 
 #include <errno.h>
 #include <pci_ep.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <linux/log2.h>
 #include "pcie_layerscape.h"
diff --git a/drivers/pci/pcie_layerscape_fixup.c b/drivers/pci/pcie_layerscape_fixup.c
index d056294d649..6cab1f0f99b 100644
--- a/drivers/pci/pcie_layerscape_fixup.c
+++ b/drivers/pci/pcie_layerscape_fixup.c
@@ -19,6 +19,7 @@ 
 #include <asm/arch/clock.h>
 #endif
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include "pcie_layerscape.h"
 #include "pcie_layerscape_fixup_common.h"
 
diff --git a/drivers/pci/pcie_layerscape_fixup_common.c b/drivers/pci/pcie_layerscape_fixup_common.c
index b1a7578ec43..05b5f76cf2c 100644
--- a/drivers/pci/pcie_layerscape_fixup_common.c
+++ b/drivers/pci/pcie_layerscape_fixup_common.c
@@ -12,6 +12,7 @@ 
 #include <asm/arch/clock.h>
 #include <asm/arch/soc.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
 #include "pcie_layerscape_fixup_common.h"
diff --git a/drivers/pci/pcie_layerscape_gen4.c b/drivers/pci/pcie_layerscape_gen4.c
index 369124c2b8b..dcb991596b0 100644
--- a/drivers/pci/pcie_layerscape_gen4.c
+++ b/drivers/pci/pcie_layerscape_gen4.c
@@ -16,6 +16,7 @@ 
 #include <errno.h>
 #include <malloc.h>
 #include <dm.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 
 #include "pcie_layerscape_gen4.h"
diff --git a/drivers/pci/pcie_layerscape_gen4_fixup.c b/drivers/pci/pcie_layerscape_gen4_fixup.c
index b061388a22b..be70a9a8b57 100644
--- a/drivers/pci/pcie_layerscape_gen4_fixup.c
+++ b/drivers/pci/pcie_layerscape_gen4_fixup.c
@@ -20,6 +20,7 @@ 
 #include <asm/arch/clock.h>
 #endif
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include "pcie_layerscape_gen4.h"
 #include "pcie_layerscape_fixup_common.h"
 
diff --git a/drivers/pci/pcie_layerscape_rc.c b/drivers/pci/pcie_layerscape_rc.c
index 4c96f721b05..18d025d3b16 100644
--- a/drivers/pci/pcie_layerscape_rc.c
+++ b/drivers/pci/pcie_layerscape_rc.c
@@ -19,6 +19,7 @@ 
 	defined(CONFIG_ARM)
 #include <asm/arch/clock.h>
 #endif
+#include <linux/errno.h>
 #include "pcie_layerscape.h"
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/pci/pcie_mediatek.c b/drivers/pci/pcie_mediatek.c
index 8318b9ee796..29d82739486 100644
--- a/drivers/pci/pcie_mediatek.c
+++ b/drivers/pci/pcie_mediatek.c
@@ -19,6 +19,7 @@ 
 #include <asm/io.h>
 #include <dm/devres.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <linux/list.h>
 #include <linux/printk.h>
diff --git a/drivers/pci/pcie_phytium.c b/drivers/pci/pcie_phytium.c
index 926e7b33a86..3d91706ccf1 100644
--- a/drivers/pci/pcie_phytium.c
+++ b/drivers/pci/pcie_phytium.c
@@ -12,6 +12,7 @@ 
 #include <pci.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 /**
diff --git a/drivers/pci/pcie_rockchip.c b/drivers/pci/pcie_rockchip.c
index 7d84be36be9..460d74a3088 100644
--- a/drivers/pci/pcie_rockchip.c
+++ b/drivers/pci/pcie_rockchip.c
@@ -19,6 +19,7 @@ 
 #include <generic-phy.h>
 #include <pci.h>
 #include <power-domain.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 #include <reset.h>
 #include <syscon.h>
diff --git a/drivers/pci/pcie_xilinx.c b/drivers/pci/pcie_xilinx.c
index 600c69e20cf..442a21c1115 100644
--- a/drivers/pci/pcie_xilinx.c
+++ b/drivers/pci/pcie_xilinx.c
@@ -10,6 +10,7 @@ 
 #include <pci.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #include <asm/io.h>
diff --git a/drivers/pci_endpoint/pci_ep-uclass.c b/drivers/pci_endpoint/pci_ep-uclass.c
index 71b6bfa6382..aba38c3fe79 100644
--- a/drivers/pci_endpoint/pci_ep-uclass.c
+++ b/drivers/pci_endpoint/pci_ep-uclass.c
@@ -13,6 +13,7 @@ 
 #include <dm.h>
 #include <errno.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/log2.h>
 #include <pci_ep.h>
 
diff --git a/drivers/pci_endpoint/pcie-cadence-ep.c b/drivers/pci_endpoint/pcie-cadence-ep.c
index e392fae338a..44cce69a9aa 100644
--- a/drivers/pci_endpoint/pcie-cadence-ep.c
+++ b/drivers/pci_endpoint/pcie-cadence-ep.c
@@ -9,6 +9,7 @@ 
 #include <errno.h>
 #include <pci_ep.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <linux/log2.h>
 #include "pcie-cadence.h"
diff --git a/drivers/pci_endpoint/sandbox-pci_ep.c b/drivers/pci_endpoint/sandbox-pci_ep.c
index d1e552a2466..59c330066d7 100644
--- a/drivers/pci_endpoint/sandbox-pci_ep.c
+++ b/drivers/pci_endpoint/sandbox-pci_ep.c
@@ -9,6 +9,7 @@ 
 #include <pci.h>
 #include <pci_ep.h>
 #include <asm/test.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /**
diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c
index 16c412b245d..17c2de2caee 100644
--- a/drivers/phy/allwinner/phy-sun4i-usb.c
+++ b/drivers/phy/allwinner/phy-sun4i-usb.c
@@ -27,6 +27,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define REG_ISCR			0x00
diff --git a/drivers/phy/bcm6318-usbh-phy.c b/drivers/phy/bcm6318-usbh-phy.c
index d29344ddb48..f6b7e4c1ca5 100644
--- a/drivers/phy/bcm6318-usbh-phy.c
+++ b/drivers/phy/bcm6318-usbh-phy.c
@@ -19,6 +19,7 @@ 
 #include <dm/device.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 /* USBH Setup register */
 #define USBH_SETUP_REG		0x00
diff --git a/drivers/phy/bcm6348-usbh-phy.c b/drivers/phy/bcm6348-usbh-phy.c
index 8d28292726c..13031b886d4 100644
--- a/drivers/phy/bcm6348-usbh-phy.c
+++ b/drivers/phy/bcm6348-usbh-phy.c
@@ -17,6 +17,7 @@ 
 #include <asm/io.h>
 #include <dm/device.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define USBH_SETUP_PORT1_EN	BIT(0)
 
diff --git a/drivers/phy/bcm6358-usbh-phy.c b/drivers/phy/bcm6358-usbh-phy.c
index 501b97f3e21..aaa32315fa7 100644
--- a/drivers/phy/bcm6358-usbh-phy.c
+++ b/drivers/phy/bcm6358-usbh-phy.c
@@ -16,6 +16,7 @@ 
 #include <asm/io.h>
 #include <dm/device.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 /* USBH Swap Control register */
 #define USBH_SWAP_REG		0x00
diff --git a/drivers/phy/bcm6368-usbh-phy.c b/drivers/phy/bcm6368-usbh-phy.c
index 99fdd33499a..3bd4d688419 100644
--- a/drivers/phy/bcm6368-usbh-phy.c
+++ b/drivers/phy/bcm6368-usbh-phy.c
@@ -19,6 +19,7 @@ 
 #include <dm/device.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 /* USBH PLL Control register */
 #define USBH_PLL_REG		0x18
diff --git a/drivers/phy/keystone-usb-phy.c b/drivers/phy/keystone-usb-phy.c
index 27e1d35fc12..2806ee50ead 100644
--- a/drivers/phy/keystone-usb-phy.c
+++ b/drivers/phy/keystone-usb-phy.c
@@ -13,6 +13,7 @@ 
 #include <asm/arch/psc_defs.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 /* USB PHY control register offsets */
diff --git a/drivers/phy/meson-g12a-usb2.c b/drivers/phy/meson-g12a-usb2.c
index 734c79b78aa..3a63900833e 100644
--- a/drivers/phy/meson-g12a-usb2.c
+++ b/drivers/phy/meson-g12a-usb2.c
@@ -17,6 +17,7 @@ 
 #include <generic-phy.h>
 #include <regmap.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/regulator.h>
 #include <reset.h>
diff --git a/drivers/phy/meson-g12a-usb3-pcie.c b/drivers/phy/meson-g12a-usb3-pcie.c
index dc5dd62381f..02feae1e2cd 100644
--- a/drivers/phy/meson-g12a-usb3-pcie.c
+++ b/drivers/phy/meson-g12a-usb3-pcie.c
@@ -18,6 +18,7 @@ 
 #include <bitfield.h>
 #include <generic-phy.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #include <linux/bitops.h>
diff --git a/drivers/phy/meson-gxbb-usb2.c b/drivers/phy/meson-gxbb-usb2.c
index 6ae06364a57..8a06bc5aadb 100644
--- a/drivers/phy/meson-gxbb-usb2.c
+++ b/drivers/phy/meson-gxbb-usb2.c
@@ -12,6 +12,7 @@ 
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/regulator.h>
 #include <regmap.h>
diff --git a/drivers/phy/meson-gxl-usb2.c b/drivers/phy/meson-gxl-usb2.c
index 4bddd0eed9e..ebfde063ee8 100644
--- a/drivers/phy/meson-gxl-usb2.c
+++ b/drivers/phy/meson-gxl-usb2.c
@@ -16,6 +16,7 @@ 
 #include <generic-phy.h>
 #include <regmap.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/regulator.h>
 #include <clk.h>
diff --git a/drivers/phy/meson-gxl-usb3.c b/drivers/phy/meson-gxl-usb3.c
index 875fe6b44a6..f566ef78663 100644
--- a/drivers/phy/meson-gxl-usb3.c
+++ b/drivers/phy/meson-gxl-usb3.c
@@ -16,6 +16,7 @@ 
 #include <generic-phy.h>
 #include <regmap.h>
 #include <clk.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/usb/otg.h>
 
diff --git a/drivers/phy/msm8916-usbh-phy.c b/drivers/phy/msm8916-usbh-phy.c
index 4efaddd701c..5883926f087 100644
--- a/drivers/phy/msm8916-usbh-phy.c
+++ b/drivers/phy/msm8916-usbh-phy.c
@@ -7,6 +7,7 @@ 
 #include <dm.h>
 #include <generic-phy.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <usb/ehci-ci.h>
 #include <usb/ulpi.h>
 #include <asm/io.h>
diff --git a/drivers/phy/mt76x8-usb-phy.c b/drivers/phy/mt76x8-usb-phy.c
index 4c0818f6e8d..8c05e5e00df 100644
--- a/drivers/phy/mt76x8-usb-phy.c
+++ b/drivers/phy/mt76x8-usb-phy.c
@@ -15,6 +15,7 @@ 
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define OFS_U2_PHY_AC0			0x800
 #define USBPLL_FBDIV_S			16
diff --git a/drivers/phy/omap-usb2-phy.c b/drivers/phy/omap-usb2-phy.c
index a460a0560c3..df9ee140291 100644
--- a/drivers/phy/omap-usb2-phy.c
+++ b/drivers/phy/omap-usb2-phy.c
@@ -17,6 +17,7 @@ 
 #include <syscon.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 #define OMAP_USB2_CALIBRATE_FALSE_DISCONNECT	BIT(0)
 #define OMAP_USB2_DISABLE_CHG_DET		BIT(1)
diff --git a/drivers/phy/phy-da8xx-usb.c b/drivers/phy/phy-da8xx-usb.c
index ec87d3fea2d..943c908fafa 100644
--- a/drivers/phy/phy-da8xx-usb.c
+++ b/drivers/phy/phy-da8xx-usb.c
@@ -16,6 +16,7 @@ 
 #include <asm/arch/da8xx-usb.h>
 #include <asm/io.h>
 #include <generic-phy.h>
+#include <linux/errno.h>
 
 static int da8xx_usb_phy_power_on(struct phy *phy)
 {
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c
index 1e65c24356e..375a7575b77 100644
--- a/drivers/phy/phy-mtk-tphy.c
+++ b/drivers/phy/phy-mtk-tphy.c
@@ -16,6 +16,7 @@ 
 #include <dm/devres.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #include <dt-bindings/phy/phy.h>
 
diff --git a/drivers/phy/phy-rcar-gen2.c b/drivers/phy/phy-rcar-gen2.c
index 18da86e4bea..db32d3b1a41 100644
--- a/drivers/phy/phy-rcar-gen2.c
+++ b/drivers/phy/phy-rcar-gen2.c
@@ -19,6 +19,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 
 #define USBHS_LPSTS			0x02
diff --git a/drivers/phy/phy-rcar-gen3.c b/drivers/phy/phy-rcar-gen3.c
index 4afdb791505..fdd61efe4ac 100644
--- a/drivers/phy/phy-rcar-gen3.c
+++ b/drivers/phy/phy-rcar-gen3.c
@@ -17,6 +17,7 @@ 
 #include <usb.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/regulator.h>
 
diff --git a/drivers/phy/phy-stm32-usbphyc.c b/drivers/phy/phy-stm32-usbphyc.c
index d61a33422bc..c66d185cc82 100644
--- a/drivers/phy/phy-stm32-usbphyc.c
+++ b/drivers/phy/phy-stm32-usbphyc.c
@@ -17,6 +17,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/regulator.h>
 
diff --git a/drivers/phy/phy-ti-am654.c b/drivers/phy/phy-ti-am654.c
index 6907c1afb39..fa22b714540 100644
--- a/drivers/phy/phy-ti-am654.c
+++ b/drivers/phy/phy-ti-am654.c
@@ -23,6 +23,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 #define CMU_R07C		0x7c
 #define CMU_MASTER_CDN_O	BIT(24)
diff --git a/drivers/phy/phy-uclass.c b/drivers/phy/phy-uclass.c
index af5c2c6497a..bde8d029a44 100644
--- a/drivers/phy/phy-uclass.c
+++ b/drivers/phy/phy-uclass.c
@@ -9,6 +9,7 @@ 
 #include <dm/devres.h>
 #include <generic-phy.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 static inline struct phy_ops *phy_dev_ops(struct udevice *dev)
diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
index 75bd0fff5db..93d3696b133 100644
--- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
+++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
@@ -17,6 +17,7 @@ 
 #include <syscon.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <asm/arch-rockchip/clock.h>
 #include <linux/string.h>
diff --git a/drivers/phy/rockchip/phy-rockchip-pcie.c b/drivers/phy/rockchip/phy-rockchip-pcie.c
index c3bec8263f8..fc7801224ac 100644
--- a/drivers/phy/rockchip/phy-rockchip-pcie.c
+++ b/drivers/phy/rockchip/phy-rockchip-pcie.c
@@ -17,6 +17,7 @@ 
 #include <syscon.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <asm/arch-rockchip/clock.h>
 
diff --git a/drivers/phy/rockchip/phy-rockchip-typec.c b/drivers/phy/rockchip/phy-rockchip-typec.c
index 9a9a653c7ef..f018a95497d 100644
--- a/drivers/phy/rockchip/phy-rockchip-typec.c
+++ b/drivers/phy/rockchip/phy-rockchip-typec.c
@@ -19,6 +19,7 @@ 
 #include <syscon.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <asm/arch-rockchip/clock.h>
 #include <linux/string.h>
diff --git a/drivers/phy/sandbox-phy.c b/drivers/phy/sandbox-phy.c
index 84ff5c6275b..5b867a6294e 100644
--- a/drivers/phy/sandbox-phy.c
+++ b/drivers/phy/sandbox-phy.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <linux/errno.h>
 
 struct sandbox_phy_priv {
 	bool initialized;
diff --git a/drivers/phy/sti_usb_phy.c b/drivers/phy/sti_usb_phy.c
index cfc24e76b24..03a4d61434e 100644
--- a/drivers/phy/sti_usb_phy.c
+++ b/drivers/phy/sti_usb_phy.c
@@ -13,6 +13,7 @@ 
 #include <errno.h>
 #include <fdtdec.h>
 #include <generic-phy.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <regmap.h>
 #include <reset-uclass.h>
diff --git a/drivers/phy/ti-pipe3-phy.c b/drivers/phy/ti-pipe3-phy.c
index 2aa2a90c47c..96a573add48 100644
--- a/drivers/phy/ti-pipe3-phy.c
+++ b/drivers/phy/ti-pipe3-phy.c
@@ -17,6 +17,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 /* PLLCTRL Registers */
diff --git a/drivers/pinctrl/aspeed/pinctrl_ast2500.c b/drivers/pinctrl/aspeed/pinctrl_ast2500.c
index 05ef24864f2..3f57aabea1d 100644
--- a/drivers/pinctrl/aspeed/pinctrl_ast2500.c
+++ b/drivers/pinctrl/aspeed/pinctrl_ast2500.c
@@ -11,6 +11,7 @@ 
 #include <asm/arch/pinctrl.h>
 #include <asm/arch/scu_ast2500.h>
 #include <dm/pinctrl.h>
+#include <linux/errno.h>
 
 /*
  * This driver works with very simple configuration that has the same name
diff --git a/drivers/pinctrl/ath79/pinctrl_ar933x.c b/drivers/pinctrl/ath79/pinctrl_ar933x.c
index b3f9f6a01fd..9f8ecf49ca4 100644
--- a/drivers/pinctrl/ath79/pinctrl_ar933x.c
+++ b/drivers/pinctrl/ath79/pinctrl_ar933x.c
@@ -10,6 +10,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm/pinctrl.h>
+#include <linux/errno.h>
 #include <mach/ar71xx_regs.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/pinctrl/ath79/pinctrl_qca953x.c b/drivers/pinctrl/ath79/pinctrl_qca953x.c
index d27848c1ddd..409ab041173 100644
--- a/drivers/pinctrl/ath79/pinctrl_qca953x.c
+++ b/drivers/pinctrl/ath79/pinctrl_qca953x.c
@@ -10,6 +10,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm/pinctrl.h>
+#include <linux/errno.h>
 #include <mach/ar71xx_regs.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c
index 775a8a0a48a..a7c928c71e3 100644
--- a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c
+++ b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c
@@ -23,6 +23,7 @@ 
 #include <asm/system.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
+#include <linux/errno.h>
 
 struct bcm283x_pinctrl_priv {
 	u32 *base_reg;
diff --git a/drivers/pinctrl/broadcom/pinctrl-bcm6838.c b/drivers/pinctrl/broadcom/pinctrl-bcm6838.c
index af10ead601f..2f871b611fd 100644
--- a/drivers/pinctrl/broadcom/pinctrl-bcm6838.c
+++ b/drivers/pinctrl/broadcom/pinctrl-bcm6838.c
@@ -7,6 +7,7 @@ 
 #include <vsprintf.h>
 #include <dm/device_compat.h>
 #include <dm/pinctrl.h>
+#include <linux/errno.h>
 
 #define BCM6838_CMD_LOAD_MUX            0x21
 
diff --git a/drivers/pinctrl/exynos/pinctrl-exynos.c b/drivers/pinctrl/exynos/pinctrl-exynos.c
index 6034794f671..4a49519416c 100644
--- a/drivers/pinctrl/exynos/pinctrl-exynos.c
+++ b/drivers/pinctrl/exynos/pinctrl-exynos.c
@@ -10,6 +10,7 @@ 
 #include <errno.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "pinctrl-exynos.h"
 
diff --git a/drivers/pinctrl/exynos/pinctrl-exynos7420.c b/drivers/pinctrl/exynos/pinctrl-exynos7420.c
index ff6d6c4143f..7f1aeeda940 100644
--- a/drivers/pinctrl/exynos/pinctrl-exynos7420.c
+++ b/drivers/pinctrl/exynos/pinctrl-exynos7420.c
@@ -13,6 +13,7 @@ 
 #include <dm/root.h>
 #include <fdtdec.h>
 #include <asm/arch/pinmux.h>
+#include <linux/errno.h>
 #include "pinctrl-exynos.h"
 
 #define	GPD1_OFFSET	0xc0
diff --git a/drivers/pinctrl/intel/pinctrl.c b/drivers/pinctrl/intel/pinctrl.c
index 933175d2b6c..aa261a8bdc5 100644
--- a/drivers/pinctrl/intel/pinctrl.c
+++ b/drivers/pinctrl/intel/pinctrl.c
@@ -32,6 +32,7 @@ 
 #include <dm/device-internal.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 #define GPIO_DW_SIZE(x)			(sizeof(u32) * (x))
 #define PAD_CFG_OFFSET(x, dw_num)	((x) + GPIO_DW_SIZE(dw_num))
diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
index 6553dde45c2..9227e5948c8 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
@@ -12,6 +12,7 @@ 
 #include <asm/io.h>
 #include <asm-generic/gpio.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include "pinctrl-mtk-common.h"
 
diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c b/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c
index 8246aa6890e..0ed4b50b458 100644
--- a/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c
+++ b/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c
@@ -10,6 +10,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <dm/pinctrl.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include "pinctrl-meson-axg.h"
 
diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c
index 8a3c292548e..ad44da1e8bb 100644
--- a/drivers/pinctrl/meson/pinctrl-meson.c
+++ b/drivers/pinctrl/meson/pinctrl-meson.c
@@ -17,6 +17,7 @@ 
 #include <fdt_support.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/libfdt.h>
 #include <linux/sizes.h>
diff --git a/drivers/pinctrl/mscc/mscc-common.c b/drivers/pinctrl/mscc/mscc-common.c
index 307ed1db875..308f23b742d 100644
--- a/drivers/pinctrl/mscc/mscc-common.c
+++ b/drivers/pinctrl/mscc/mscc-common.c
@@ -22,6 +22,7 @@ 
 #include <errno.h>
 #include <fdtdec.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include "mscc-common.h"
 
diff --git a/drivers/pinctrl/mtmips/pinctrl-mt7628.c b/drivers/pinctrl/mtmips/pinctrl-mt7628.c
index 1b51c229271..2e043509cf8 100644
--- a/drivers/pinctrl/mtmips/pinctrl-mt7628.c
+++ b/drivers/pinctrl/mtmips/pinctrl-mt7628.c
@@ -10,6 +10,7 @@ 
 #include <asm/global_data.h>
 #include <dm/pinctrl.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 
 #include "pinctrl-mtmips-common.h"
diff --git a/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c b/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c
index d5262438e17..ad9bd0311cc 100644
--- a/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c
+++ b/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c
@@ -9,6 +9,7 @@ 
 #include <dm.h>
 #include <malloc.h>
 #include <dm/pinctrl.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/string.h>
 
diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
index 1e8c345b847..c52b8f5df33 100644
--- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
+++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
@@ -36,6 +36,7 @@ 
 #include <asm/system.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/printk.h>
 #include <linux/string.h>
diff --git a/drivers/pinctrl/mvebu/pinctrl-mvebu.c b/drivers/pinctrl/mvebu/pinctrl-mvebu.c
index c2b9c80586b..e5820375393 100644
--- a/drivers/pinctrl/mvebu/pinctrl-mvebu.c
+++ b/drivers/pinctrl/mvebu/pinctrl-mvebu.c
@@ -17,6 +17,7 @@ 
 #include <asm/io.h>
 #include <asm/arch-armada8k/soc-info.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include "pinctrl-mvebu.h"
 
 #define AP_EMMC_PHY_CTRL_REG		0x100
diff --git a/drivers/pinctrl/nexell/pinctrl-nexell.c b/drivers/pinctrl/nexell/pinctrl-nexell.c
index 4518c05d468..da5ca6846cf 100644
--- a/drivers/pinctrl/nexell/pinctrl-nexell.c
+++ b/drivers/pinctrl/nexell/pinctrl-nexell.c
@@ -9,6 +9,7 @@ 
 #include <dm.h>
 #include <errno.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include "pinctrl-nexell.h"
 #include "pinctrl-s5pxx18.h"
 
diff --git a/drivers/pinctrl/nexell/pinctrl-s5pxx18.c b/drivers/pinctrl/nexell/pinctrl-s5pxx18.c
index 96a2ed38a05..5bb012b197f 100644
--- a/drivers/pinctrl/nexell/pinctrl-s5pxx18.c
+++ b/drivers/pinctrl/nexell/pinctrl-s5pxx18.c
@@ -13,6 +13,7 @@ 
 #include <asm/io.h>
 #include <dm/pinctrl.h>
 #include <dm/root.h>
+#include <linux/errno.h>
 #include "pinctrl-nexell.h"
 #include "pinctrl-s5pxx18.h"
 
diff --git a/drivers/pinctrl/nxp/pinctrl-imx.c b/drivers/pinctrl/nxp/pinctrl-imx.c
index 1596dcc4747..6db7313aecd 100644
--- a/drivers/pinctrl/nxp/pinctrl-imx.c
+++ b/drivers/pinctrl/nxp/pinctrl-imx.c
@@ -10,6 +10,7 @@ 
 #include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/err.h>
 #include <dm.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-mxs.c b/drivers/pinctrl/nxp/pinctrl-mxs.c
index 1067654e07e..6cb6977812a 100644
--- a/drivers/pinctrl/nxp/pinctrl-mxs.c
+++ b/drivers/pinctrl/nxp/pinctrl-mxs.c
@@ -9,6 +9,7 @@ 
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/err.h>
 #include <dm.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-scu.c b/drivers/pinctrl/nxp/pinctrl-scu.c
index 33bba8696f6..81f6eb56db3 100644
--- a/drivers/pinctrl/nxp/pinctrl-scu.c
+++ b/drivers/pinctrl/nxp/pinctrl-scu.c
@@ -10,6 +10,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/sci/sci.h>
 #include <misc.h>
+#include <linux/errno.h>
 
 #include "pinctrl-imx.h"
 
diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c
index 4400e8088d8..49eb9078f15 100644
--- a/drivers/pinctrl/pinctrl-at91-pio4.c
+++ b/drivers/pinctrl/pinctrl-at91-pio4.c
@@ -12,6 +12,7 @@ 
 #include <asm/global_data.h>
 #include <dm/pinctrl.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/err.h>
 #include <mach/atmel_pio4.h>
diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c
index 30f2bebbc78..aa5d05d93e9 100644
--- a/drivers/pinctrl/pinctrl-at91.c
+++ b/drivers/pinctrl/pinctrl-at91.c
@@ -13,6 +13,7 @@ 
 #include <dm/pinctrl.h>
 #include <asm/hardware.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/err.h>
 #include <mach/at91_pio.h>
diff --git a/drivers/pinctrl/pinctrl-generic.c b/drivers/pinctrl/pinctrl-generic.c
index 7a2131d73ea..45b3ad5d793 100644
--- a/drivers/pinctrl/pinctrl-generic.c
+++ b/drivers/pinctrl/pinctrl-generic.c
@@ -8,6 +8,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/compat.h>
 #include <dm/pinctrl.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /**
diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c
index 738f5bd6364..e4a05f5cce6 100644
--- a/drivers/pinctrl/pinctrl-single.c
+++ b/drivers/pinctrl/pinctrl-single.c
@@ -7,6 +7,7 @@ 
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <dm/pinctrl.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <asm/io.h>
 
diff --git a/drivers/pinctrl/pinctrl-sti.c b/drivers/pinctrl/pinctrl-sti.c
index d446982c4e7..f6444181671 100644
--- a/drivers/pinctrl/pinctrl-sti.c
+++ b/drivers/pinctrl/pinctrl-sti.c
@@ -17,6 +17,7 @@ 
 #include <asm/io.h>
 #include <dm/pinctrl.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/printk.h>
 
diff --git a/drivers/pinctrl/pinctrl-stmfx.c b/drivers/pinctrl/pinctrl-stmfx.c
index dc063e087e8..bdf852c5f02 100644
--- a/drivers/pinctrl/pinctrl-stmfx.c
+++ b/drivers/pinctrl/pinctrl-stmfx.c
@@ -18,6 +18,7 @@ 
 #include <linux/bitfield.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <power/regulator.h>
 
diff --git a/drivers/pinctrl/pinctrl-uclass.c b/drivers/pinctrl/pinctrl-uclass.c
index f821959137e..817ea3f3323 100644
--- a/drivers/pinctrl/pinctrl-uclass.c
+++ b/drivers/pinctrl/pinctrl-uclass.c
@@ -8,6 +8,7 @@ 
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/err.h>
 #include <linux/list.h>
diff --git a/drivers/pinctrl/pinctrl_pic32.c b/drivers/pinctrl/pinctrl_pic32.c
index 2eb80d92b34..6f2b34f2813 100644
--- a/drivers/pinctrl/pinctrl_pic32.c
+++ b/drivers/pinctrl/pinctrl_pic32.c
@@ -13,6 +13,7 @@ 
 #include <asm/io.h>
 #include <dm/pinctrl.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <mach/pic32.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/pinctrl/pinctrl_stm32.c b/drivers/pinctrl/pinctrl_stm32.c
index 998b90f803f..faec68c3b2e 100644
--- a/drivers/pinctrl/pinctrl_stm32.c
+++ b/drivers/pinctrl/pinctrl_stm32.c
@@ -13,6 +13,7 @@ 
 #include <dm/pinctrl.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/printk.h>
 
diff --git a/drivers/pinctrl/renesas/pfc-r7s72100.c b/drivers/pinctrl/renesas/pfc-r7s72100.c
index 3d0caa9bb77..db4dea11104 100644
--- a/drivers/pinctrl/renesas/pfc-r7s72100.c
+++ b/drivers/pinctrl/renesas/pfc-r7s72100.c
@@ -12,6 +12,7 @@ 
 #include <dm/lists.h>
 #include <dm/pinctrl.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/err.h>
 
diff --git a/drivers/pinctrl/renesas/pfc-r8a7790.c b/drivers/pinctrl/renesas/pfc-r8a7790.c
index 5e1502ed969..30e9a117f8d 100644
--- a/drivers/pinctrl/renesas/pfc-r8a7790.c
+++ b/drivers/pinctrl/renesas/pfc-r8a7790.c
@@ -12,6 +12,7 @@ 
 #include <dm.h>
 #include <errno.h>
 #include <dm/pinctrl.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 
 #include "sh_pfc.h"
diff --git a/drivers/pinctrl/renesas/pfc-r8a7791.c b/drivers/pinctrl/renesas/pfc-r8a7791.c
index d6095d6f674..7ae6e4081c0 100644
--- a/drivers/pinctrl/renesas/pfc-r8a7791.c
+++ b/drivers/pinctrl/renesas/pfc-r8a7791.c
@@ -10,6 +10,7 @@ 
 #include <dm.h>
 #include <errno.h>
 #include <dm/pinctrl.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 
 #include "sh_pfc.h"
diff --git a/drivers/pinctrl/renesas/pfc-r8a7794.c b/drivers/pinctrl/renesas/pfc-r8a7794.c
index 91ac815f3da..e59fd7656e0 100644
--- a/drivers/pinctrl/renesas/pfc-r8a7794.c
+++ b/drivers/pinctrl/renesas/pfc-r8a7794.c
@@ -11,6 +11,7 @@ 
 #include <dm.h>
 #include <errno.h>
 #include <dm/pinctrl.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 
 #include "sh_pfc.h"
diff --git a/drivers/pinctrl/renesas/pfc-r8a77970.c b/drivers/pinctrl/renesas/pfc-r8a77970.c
index 33ecd933986..9996eb9298c 100644
--- a/drivers/pinctrl/renesas/pfc-r8a77970.c
+++ b/drivers/pinctrl/renesas/pfc-r8a77970.c
@@ -16,6 +16,7 @@ 
 #include <dm.h>
 #include <errno.h>
 #include <dm/pinctrl.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 
 #include "sh_pfc.h"
diff --git a/drivers/pinctrl/renesas/pfc-r8a77980.c b/drivers/pinctrl/renesas/pfc-r8a77980.c
index 32efb4409c6..1b04250e527 100644
--- a/drivers/pinctrl/renesas/pfc-r8a77980.c
+++ b/drivers/pinctrl/renesas/pfc-r8a77980.c
@@ -16,6 +16,7 @@ 
 #include <dm.h>
 #include <errno.h>
 #include <dm/pinctrl.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 
 #include "sh_pfc.h"
diff --git a/drivers/pinctrl/renesas/pfc-r8a77990.c b/drivers/pinctrl/renesas/pfc-r8a77990.c
index de22e49ebef..e0bf1e4a300 100644
--- a/drivers/pinctrl/renesas/pfc-r8a77990.c
+++ b/drivers/pinctrl/renesas/pfc-r8a77990.c
@@ -16,6 +16,7 @@ 
 #include <errno.h>
 #include <dm/pinctrl.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 
 #include "sh_pfc.h"
diff --git a/drivers/pinctrl/renesas/pfc.c b/drivers/pinctrl/renesas/pfc.c
index 6bf8fdff478..1a7e686a465 100644
--- a/drivers/pinctrl/renesas/pfc.c
+++ b/drivers/pinctrl/renesas/pfc.c
@@ -20,6 +20,7 @@ 
 #include <dm/pinctrl.h>
 #include <linux/bitops.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
 
diff --git a/drivers/pinctrl/rockchip/pinctrl-px30.c b/drivers/pinctrl/rockchip/pinctrl-px30.c
index 617721a6264..bf1ee07c5fe 100644
--- a/drivers/pinctrl/rockchip/pinctrl-px30.c
+++ b/drivers/pinctrl/rockchip/pinctrl-px30.c
@@ -10,6 +10,7 @@ 
 #include <regmap.h>
 #include <syscon.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include "pinctrl-rockchip.h"
 
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3036.c b/drivers/pinctrl/rockchip/pinctrl-rk3036.c
index d49e3007cea..11d4e784d02 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk3036.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk3036.c
@@ -9,6 +9,7 @@ 
 #include <regmap.h>
 #include <syscon.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include "pinctrl-rockchip.h"
 
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3128.c b/drivers/pinctrl/rockchip/pinctrl-rk3128.c
index a175d6c07f1..445dbf85d4f 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk3128.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk3128.c
@@ -9,6 +9,7 @@ 
 #include <regmap.h>
 #include <syscon.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include "pinctrl-rockchip.h"
 
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3188.c b/drivers/pinctrl/rockchip/pinctrl-rk3188.c
index 8f197110e5e..c4ff4e58531 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk3188.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk3188.c
@@ -9,6 +9,7 @@ 
 #include <dm/pinctrl.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/errno.h>
 
 #include "pinctrl-rockchip.h"
 
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk322x.c b/drivers/pinctrl/rockchip/pinctrl-rk322x.c
index 85bc0ef0f31..3e925837ee8 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk322x.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk322x.c
@@ -10,6 +10,7 @@ 
 #include <regmap.h>
 #include <syscon.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include "pinctrl-rockchip.h"
 
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3288.c b/drivers/pinctrl/rockchip/pinctrl-rk3288.c
index 011ca286ec9..e8cdca1bd28 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk3288.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk3288.c
@@ -9,6 +9,7 @@ 
 #include <dm/pinctrl.h>
 #include <regmap.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include "pinctrl-rockchip.h"
 
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3308.c b/drivers/pinctrl/rockchip/pinctrl-rk3308.c
index db2b10a6906..088617de5db 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk3308.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk3308.c
@@ -10,6 +10,7 @@ 
 #include <regmap.h>
 #include <syscon.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include "pinctrl-rockchip.h"
 
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3328.c b/drivers/pinctrl/rockchip/pinctrl-rk3328.c
index 61eb9e0af0c..342d67d06d9 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk3328.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk3328.c
@@ -10,6 +10,7 @@ 
 #include <regmap.h>
 #include <syscon.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include "pinctrl-rockchip.h"
 
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3368.c b/drivers/pinctrl/rockchip/pinctrl-rk3368.c
index d8ccd4de576..d66b62d9136 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk3368.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk3368.c
@@ -9,6 +9,7 @@ 
 #include <dm/pinctrl.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/errno.h>
 
 #include "pinctrl-rockchip.h"
 
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3399.c b/drivers/pinctrl/rockchip/pinctrl-rk3399.c
index d04c1afb090..ec33f89bb82 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk3399.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk3399.c
@@ -10,6 +10,7 @@ 
 #include <regmap.h>
 #include <syscon.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include "pinctrl-rockchip.h"
 
diff --git a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c
index 16efb09b57f..389d584078f 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c
@@ -12,6 +12,7 @@ 
 #include <syscon.h>
 #include <fdtdec.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
 
diff --git a/drivers/pinctrl/rockchip/pinctrl-rv1108.c b/drivers/pinctrl/rockchip/pinctrl-rv1108.c
index 22334329ed4..c0fb962ef05 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rv1108.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rv1108.c
@@ -10,6 +10,7 @@ 
 #include <regmap.h>
 #include <syscon.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include "pinctrl-rockchip.h"
 
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
index 631bb1f963b..44a1571db4f 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
@@ -9,6 +9,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/err.h>
 #include <linux/kernel.h>
diff --git a/drivers/power/acpi_pmc/acpi-pmc-uclass.c b/drivers/power/acpi_pmc/acpi-pmc-uclass.c
index 98d217ca72f..d713dc81f0a 100644
--- a/drivers/power/acpi_pmc/acpi-pmc-uclass.c
+++ b/drivers/power/acpi_pmc/acpi-pmc-uclass.c
@@ -14,6 +14,7 @@ 
 #include <asm/intel_pinctrl.h>
 #endif
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <power/acpi_pmc.h>
 
 struct tco_regs {
diff --git a/drivers/power/acpi_pmc/pmc_emul.c b/drivers/power/acpi_pmc/pmc_emul.c
index 5ed6fcca262..93ba847e2ec 100644
--- a/drivers/power/acpi_pmc/pmc_emul.c
+++ b/drivers/power/acpi_pmc/pmc_emul.c
@@ -11,6 +11,7 @@ 
 #include <log.h>
 #include <pci.h>
 #include <asm/test.h>
+#include <linux/errno.h>
 #include <power/acpi_pmc.h>
 
 /**
diff --git a/drivers/power/acpi_pmc/sandbox.c b/drivers/power/acpi_pmc/sandbox.c
index 48a6c663bd2..667b7a5daf5 100644
--- a/drivers/power/acpi_pmc/sandbox.c
+++ b/drivers/power/acpi_pmc/sandbox.c
@@ -11,6 +11,7 @@ 
 #include <dm.h>
 #include <log.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <power/acpi_pmc.h>
 
 #define GPIO_GPE_CFG		0x1050
diff --git a/drivers/power/axp152.c b/drivers/power/axp152.c
index d6e36125c12..bf07232b08d 100644
--- a/drivers/power/axp152.c
+++ b/drivers/power/axp152.c
@@ -7,6 +7,7 @@ 
 #include <command.h>
 #include <asm/arch/pmic_bus.h>
 #include <axp_pmic.h>
+#include <linux/errno.h>
 
 static u8 axp152_mvolt_to_target(int mvolt, int min, int max, int div)
 {
diff --git a/drivers/power/axp209.c b/drivers/power/axp209.c
index ade531940b9..878ccf45906 100644
--- a/drivers/power/axp209.c
+++ b/drivers/power/axp209.c
@@ -9,6 +9,7 @@ 
 #include <asm/arch/pmic_bus.h>
 #include <axp_pmic.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #ifdef CONFIG_AXP_ALDO3_VOLT_SLOPE_08
 #  define AXP209_VRC_SLOPE AXP209_VRC_LDO3_800uV_uS
diff --git a/drivers/power/axp221.c b/drivers/power/axp221.c
index 3446fe7365d..e0249796729 100644
--- a/drivers/power/axp221.c
+++ b/drivers/power/axp221.c
@@ -14,6 +14,7 @@ 
 #include <errno.h>
 #include <asm/arch/pmic_bus.h>
 #include <axp_pmic.h>
+#include <linux/errno.h>
 
 static u8 axp221_mvolt_to_cfg(int mvolt, int min, int max, int div)
 {
diff --git a/drivers/power/axp809.c b/drivers/power/axp809.c
index 6323492b66d..fd85b734145 100644
--- a/drivers/power/axp809.c
+++ b/drivers/power/axp809.c
@@ -16,6 +16,7 @@ 
 #include <asm/arch/gpio.h>
 #include <asm/arch/pmic_bus.h>
 #include <axp_pmic.h>
+#include <linux/errno.h>
 
 static u8 axp809_mvolt_to_cfg(int mvolt, int min, int max, int div)
 {
diff --git a/drivers/power/axp818.c b/drivers/power/axp818.c
index 0531707c8aa..bfdc3d93caf 100644
--- a/drivers/power/axp818.c
+++ b/drivers/power/axp818.c
@@ -16,6 +16,7 @@ 
 #include <asm/arch/gpio.h>
 #include <asm/arch/pmic_bus.h>
 #include <axp_pmic.h>
+#include <linux/errno.h>
 
 static u8 axp818_mvolt_to_cfg(int mvolt, int min, int max, int div)
 {
diff --git a/drivers/power/battery/bat_trats.c b/drivers/power/battery/bat_trats.c
index d1545004de3..c7350afe8e2 100644
--- a/drivers/power/battery/bat_trats.c
+++ b/drivers/power/battery/bat_trats.c
@@ -9,6 +9,7 @@ 
 #include <log.h>
 #include <stdio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/battery.h>
 #include <power/max8997_pmic.h>
diff --git a/drivers/power/battery/bat_trats2.c b/drivers/power/battery/bat_trats2.c
index abac714ff34..67fd7d8dbae 100644
--- a/drivers/power/battery/bat_trats2.c
+++ b/drivers/power/battery/bat_trats2.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/battery.h>
 #include <power/max77693_pmic.h>
diff --git a/drivers/power/domain/bcm6328-power-domain.c b/drivers/power/domain/bcm6328-power-domain.c
index a494bfa8c9d..21933018fc4 100644
--- a/drivers/power/domain/bcm6328-power-domain.c
+++ b/drivers/power/domain/bcm6328-power-domain.c
@@ -9,6 +9,7 @@ 
 #include <power-domain-uclass.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define MAX_DOMAINS	32
 
diff --git a/drivers/power/domain/imx8-power-domain-legacy.c b/drivers/power/domain/imx8-power-domain-legacy.c
index 61ed7172f28..37167b33460 100644
--- a/drivers/power/domain/imx8-power-domain-legacy.c
+++ b/drivers/power/domain/imx8-power-domain-legacy.c
@@ -16,6 +16,7 @@ 
 #include <dm/device.h>
 #include <dm/uclass-internal.h>
 #include <asm/arch/sci/sci.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/power/domain/imx8m-power-domain.c b/drivers/power/domain/imx8m-power-domain.c
index e50ded8b4c5..0d9501cf8ac 100644
--- a/drivers/power/domain/imx8m-power-domain.c
+++ b/drivers/power/domain/imx8m-power-domain.c
@@ -16,6 +16,7 @@ 
 #include <dm/device.h>
 #include <imx_sip.h>
 #include <linux/arm-smccc.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/power/domain/meson-ee-pwrc.c b/drivers/power/domain/meson-ee-pwrc.c
index 8349a9c1582..7e131d32553 100644
--- a/drivers/power/domain/meson-ee-pwrc.c
+++ b/drivers/power/domain/meson-ee-pwrc.c
@@ -18,6 +18,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 /* AO Offsets */
 
diff --git a/drivers/power/domain/meson-gx-pwrc-vpu.c b/drivers/power/domain/meson-gx-pwrc-vpu.c
index a41b230448f..78ac99e8d9b 100644
--- a/drivers/power/domain/meson-gx-pwrc-vpu.c
+++ b/drivers/power/domain/meson-gx-pwrc-vpu.c
@@ -18,6 +18,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 enum {
 	VPU_PWRC_COMPATIBLE_GX		= 0,
diff --git a/drivers/power/domain/mtk-power-domain.c b/drivers/power/domain/mtk-power-domain.c
index fae4749012b..d8467ac6c26 100644
--- a/drivers/power/domain/mtk-power-domain.c
+++ b/drivers/power/domain/mtk-power-domain.c
@@ -15,6 +15,7 @@ 
 #include <asm/processor.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 
 #include <dt-bindings/power/mt7623-power.h>
diff --git a/drivers/power/domain/power-domain-uclass.c b/drivers/power/domain/power-domain-uclass.c
index c2c7c3bd507..cf9227572f9 100644
--- a/drivers/power/domain/power-domain-uclass.c
+++ b/drivers/power/domain/power-domain-uclass.c
@@ -10,6 +10,7 @@ 
 #include <power-domain.h>
 #include <power-domain-uclass.h>
 #include <dm/device-internal.h>
+#include <linux/errno.h>
 
 static inline struct power_domain_ops *power_domain_dev_ops(struct udevice *dev)
 {
diff --git a/drivers/power/domain/sandbox-power-domain.c b/drivers/power/domain/sandbox-power-domain.c
index 4d9a2006e66..373db61ba0f 100644
--- a/drivers/power/domain/sandbox-power-domain.c
+++ b/drivers/power/domain/sandbox-power-domain.c
@@ -10,6 +10,7 @@ 
 #include <power-domain-uclass.h>
 #include <asm/io.h>
 #include <asm/power-domain.h>
+#include <linux/errno.h>
 
 #define SANDBOX_POWER_DOMAINS 3
 
diff --git a/drivers/power/domain/ti-sci-power-domain.c b/drivers/power/domain/ti-sci-power-domain.c
index 7ee121dfb26..fd90f4926db 100644
--- a/drivers/power/domain/ti-sci-power-domain.c
+++ b/drivers/power/domain/ti-sci-power-domain.c
@@ -16,6 +16,7 @@ 
 #include <power-domain-uclass.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include <dt-bindings/soc/ti,sci_pm_domain.h>
 
diff --git a/drivers/power/exynos-tmu.c b/drivers/power/exynos-tmu.c
index bc872488215..e714add9995 100644
--- a/drivers/power/exynos-tmu.c
+++ b/drivers/power/exynos-tmu.c
@@ -25,6 +25,7 @@ 
 #include <tmu.h>
 #include <asm/arch/tmu.h>
 #include <asm/arch/power.h>
+#include <linux/errno.h>
 
 #define TRIMINFO_RELOAD		1
 #define CORE_EN			1
diff --git a/drivers/power/fuel_gauge/fg_max17042.c b/drivers/power/fuel_gauge/fg_max17042.c
index fde4bd19554..89a170aea60 100644
--- a/drivers/power/fuel_gauge/fg_max17042.c
+++ b/drivers/power/fuel_gauge/fg_max17042.c
@@ -8,6 +8,7 @@ 
 #include <log.h>
 #include <stdio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/max17042_fg.h>
 #include <i2c.h>
diff --git a/drivers/power/mfd/fg_max77693.c b/drivers/power/mfd/fg_max77693.c
index 4633f79bbe7..e96e5907628 100644
--- a/drivers/power/mfd/fg_max77693.c
+++ b/drivers/power/mfd/fg_max77693.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/max77693_fg.h>
 #include <i2c.h>
diff --git a/drivers/power/mfd/muic_max77693.c b/drivers/power/mfd/muic_max77693.c
index a021c04ccd4..8f567c0ebe9 100644
--- a/drivers/power/mfd/muic_max77693.c
+++ b/drivers/power/mfd/muic_max77693.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/power_chrg.h>
 #include <power/max77693_muic.h>
diff --git a/drivers/power/mfd/pmic_max77693.c b/drivers/power/mfd/pmic_max77693.c
index 1955189c239..64519d92fd1 100644
--- a/drivers/power/mfd/pmic_max77693.c
+++ b/drivers/power/mfd/pmic_max77693.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/max77693_pmic.h>
 #include <i2c.h>
diff --git a/drivers/power/pmic/act8846.c b/drivers/power/pmic/act8846.c
index 8f0f5a6d96e..7bd69ccc0b4 100644
--- a/drivers/power/pmic/act8846.c
+++ b/drivers/power/pmic/act8846.c
@@ -9,6 +9,7 @@ 
 #include <errno.h>
 #include <fdtdec.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <power/act8846_pmic.h>
 #include <power/pmic.h>
diff --git a/drivers/power/pmic/as3722.c b/drivers/power/pmic/as3722.c
index c7dd9705d18..9152f657ff7 100644
--- a/drivers/power/pmic/as3722.c
+++ b/drivers/power/pmic/as3722.c
@@ -12,6 +12,7 @@ 
 #include <i2c.h>
 #include <log.h>
 #include <dm/lists.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/as3722.h>
 #include <power/pmic.h>
diff --git a/drivers/power/pmic/as3722_gpio.c b/drivers/power/pmic/as3722_gpio.c
index 987fbdf9bc0..6b091a58b8b 100644
--- a/drivers/power/pmic/as3722_gpio.c
+++ b/drivers/power/pmic/as3722_gpio.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <asm/gpio.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/as3722.h>
 #include <power/pmic.h>
diff --git a/drivers/power/pmic/bd71837.c b/drivers/power/pmic/bd71837.c
index da9aa541979..35d5018a391 100644
--- a/drivers/power/pmic/bd71837.c
+++ b/drivers/power/pmic/bd71837.c
@@ -9,6 +9,7 @@ 
 #include <i2c.h>
 #include <log.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/pmic/da9063.c b/drivers/power/pmic/da9063.c
index ca95b82e6d0..b88e79f4314 100644
--- a/drivers/power/pmic/da9063.c
+++ b/drivers/power/pmic/da9063.c
@@ -10,6 +10,7 @@ 
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/pmic/fan53555.c b/drivers/power/pmic/fan53555.c
index c9b15d5b68f..256c455aa29 100644
--- a/drivers/power/pmic/fan53555.c
+++ b/drivers/power/pmic/fan53555.c
@@ -10,6 +10,7 @@ 
 #include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <i2c.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/fan53555.h>
 #include <power/pmic.h>
diff --git a/drivers/power/pmic/i2c_pmic_emul.c b/drivers/power/pmic/i2c_pmic_emul.c
index 4e72e966cfe..1a044ea5b17 100644
--- a/drivers/power/pmic/i2c_pmic_emul.c
+++ b/drivers/power/pmic/i2c_pmic_emul.c
@@ -10,6 +10,7 @@ 
 #include <i2c.h>
 #include <log.h>
 #include <malloc.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <power/pmic.h>
diff --git a/drivers/power/pmic/lp873x.c b/drivers/power/pmic/lp873x.c
index c307a9e3024..4addcf9cbd1 100644
--- a/drivers/power/pmic/lp873x.c
+++ b/drivers/power/pmic/lp873x.c
@@ -11,6 +11,7 @@ 
 #include <i2c.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/pmic/lp87565.c b/drivers/power/pmic/lp87565.c
index ba67a5efc02..c4bf1aff78c 100644
--- a/drivers/power/pmic/lp87565.c
+++ b/drivers/power/pmic/lp87565.c
@@ -11,6 +11,7 @@ 
 #include <i2c.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/pmic/max77686.c b/drivers/power/pmic/max77686.c
index 7e6f7d1966f..2c83aab57a8 100644
--- a/drivers/power/pmic/max77686.c
+++ b/drivers/power/pmic/max77686.c
@@ -10,6 +10,7 @@ 
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/pmic/mc34708.c b/drivers/power/pmic/mc34708.c
index d1661f01999..df66038d68d 100644
--- a/drivers/power/pmic/mc34708.c
+++ b/drivers/power/pmic/mc34708.c
@@ -12,6 +12,7 @@ 
 #include <i2c.h>
 #include <stdio.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/power/pmic/muic_max8997.c b/drivers/power/pmic/muic_max8997.c
index 6184b70e2fd..6994eb96d7c 100644
--- a/drivers/power/pmic/muic_max8997.c
+++ b/drivers/power/pmic/muic_max8997.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/power_chrg.h>
 #include <power/max8997_muic.h>
diff --git a/drivers/power/pmic/palmas.c b/drivers/power/pmic/palmas.c
index 88f88e0014c..0b4366a2715 100644
--- a/drivers/power/pmic/palmas.c
+++ b/drivers/power/pmic/palmas.c
@@ -10,6 +10,7 @@ 
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <power/pmic.h>
diff --git a/drivers/power/pmic/pca9450.c b/drivers/power/pmic/pca9450.c
index b61dac193f2..6e80c5cdc4f 100644
--- a/drivers/power/pmic/pca9450.c
+++ b/drivers/power/pmic/pca9450.c
@@ -10,6 +10,7 @@ 
 #include <i2c.h>
 #include <log.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/pmic/pfuze100.c b/drivers/power/pmic/pfuze100.c
index 15420acb472..0955d46fc78 100644
--- a/drivers/power/pmic/pfuze100.c
+++ b/drivers/power/pmic/pfuze100.c
@@ -10,6 +10,7 @@ 
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/pmic/pm8916.c b/drivers/power/pmic/pm8916.c
index ddc30604cff..c47c89754d1 100644
--- a/drivers/power/pmic/pm8916.c
+++ b/drivers/power/pmic/pm8916.c
@@ -6,6 +6,7 @@ 
  */
 #include <common.h>
 #include <dm.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <spmi/spmi.h>
 
diff --git a/drivers/power/pmic/pmic-uclass.c b/drivers/power/pmic/pmic-uclass.c
index a83131e1736..257e514b10b 100644
--- a/drivers/power/pmic/pmic-uclass.c
+++ b/drivers/power/pmic/pmic-uclass.c
@@ -13,6 +13,7 @@ 
 #include <dm/lists.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <power/pmic.h>
 #include <linux/ctype.h>
diff --git a/drivers/power/pmic/pmic_hi6553.c b/drivers/power/pmic/pmic_hi6553.c
index 4442f3501f7..b724fe4a69e 100644
--- a/drivers/power/pmic/pmic_hi6553.c
+++ b/drivers/power/pmic/pmic_hi6553.c
@@ -7,6 +7,7 @@ 
 #include <asm/io.h>
 #include <common.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/max8997_muic.h>
 #include <power/hi6553_pmic.h>
diff --git a/drivers/power/pmic/pmic_ltc3676.c b/drivers/power/pmic/pmic_ltc3676.c
index 5dc0079c2af..022d782e83d 100644
--- a/drivers/power/pmic/pmic_ltc3676.c
+++ b/drivers/power/pmic/pmic_ltc3676.c
@@ -8,6 +8,7 @@ 
 #include <errno.h>
 #include <i2c.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/ltc3676_pmic.h>
 
diff --git a/drivers/power/pmic/pmic_max77696.c b/drivers/power/pmic/pmic_max77696.c
index de36b462180..b29fa6dedfd 100644
--- a/drivers/power/pmic/pmic_max77696.c
+++ b/drivers/power/pmic/pmic_max77696.c
@@ -8,6 +8,7 @@ 
 #include <errno.h>
 #include <i2c.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/max77696_pmic.h>
 
diff --git a/drivers/power/pmic/pmic_max8997.c b/drivers/power/pmic/pmic_max8997.c
index bf8a015dc8c..6c4958208c8 100644
--- a/drivers/power/pmic/pmic_max8997.c
+++ b/drivers/power/pmic/pmic_max8997.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/max8997_pmic.h>
 #include <i2c.h>
diff --git a/drivers/power/pmic/pmic_max8998.c b/drivers/power/pmic/pmic_max8998.c
index 8e2c4b8e02e..c4cc8485ea8 100644
--- a/drivers/power/pmic/pmic_max8998.c
+++ b/drivers/power/pmic/pmic_max8998.c
@@ -6,6 +6,7 @@ 
 
 #include <common.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/max8998_pmic.h>
 #include <errno.h>
diff --git a/drivers/power/pmic/pmic_mc34vr500.c b/drivers/power/pmic/pmic_mc34vr500.c
index 9a3f748538c..a28c3e9b2b1 100644
--- a/drivers/power/pmic/pmic_mc34vr500.c
+++ b/drivers/power/pmic/pmic_mc34vr500.c
@@ -8,6 +8,7 @@ 
 #include <errno.h>
 #include <i2c.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/mc34vr500_pmic.h>
 
diff --git a/drivers/power/pmic/pmic_pca9450.c b/drivers/power/pmic/pmic_pca9450.c
index 651f3a0c274..323b81a66ca 100644
--- a/drivers/power/pmic/pmic_pca9450.c
+++ b/drivers/power/pmic/pmic_pca9450.c
@@ -7,6 +7,7 @@ 
 #include <errno.h>
 #include <i2c.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/pca9450.h>
 
diff --git a/drivers/power/pmic/pmic_pfuze100.c b/drivers/power/pmic/pmic_pfuze100.c
index 25a4aa0ed62..1beb42393c3 100644
--- a/drivers/power/pmic/pmic_pfuze100.c
+++ b/drivers/power/pmic/pmic_pfuze100.c
@@ -8,6 +8,7 @@ 
 #include <errno.h>
 #include <i2c.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/pfuze100_pmic.h>
 
diff --git a/drivers/power/pmic/pmic_pfuze3000.c b/drivers/power/pmic/pmic_pfuze3000.c
index 82d932cef1b..7d426801b7d 100644
--- a/drivers/power/pmic/pmic_pfuze3000.c
+++ b/drivers/power/pmic/pmic_pfuze3000.c
@@ -8,6 +8,7 @@ 
 #include <errno.h>
 #include <i2c.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/pfuze3000_pmic.h>
 
diff --git a/drivers/power/pmic/pmic_tps65910_dm.c b/drivers/power/pmic/pmic_tps65910_dm.c
index 8ead1db802a..422fb72c38e 100644
--- a/drivers/power/pmic/pmic_tps65910_dm.c
+++ b/drivers/power/pmic/pmic_tps65910_dm.c
@@ -7,6 +7,7 @@ 
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/pmic/rk8xx.c b/drivers/power/pmic/rk8xx.c
index 71027e8da35..991a94b41ab 100644
--- a/drivers/power/pmic/rk8xx.c
+++ b/drivers/power/pmic/rk8xx.c
@@ -9,6 +9,7 @@ 
 #include <errno.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/rk8xx_pmic.h>
 #include <power/pmic.h>
 
diff --git a/drivers/power/pmic/s2mps11.c b/drivers/power/pmic/s2mps11.c
index 5ff4f205211..93c3507e8fa 100644
--- a/drivers/power/pmic/s2mps11.c
+++ b/drivers/power/pmic/s2mps11.c
@@ -10,6 +10,7 @@ 
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/s2mps11.h>
diff --git a/drivers/power/pmic/s5m8767.c b/drivers/power/pmic/s5m8767.c
index eea072ae824..f1fa6740660 100644
--- a/drivers/power/pmic/s5m8767.c
+++ b/drivers/power/pmic/s5m8767.c
@@ -9,6 +9,7 @@ 
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/pmic/sandbox.c b/drivers/power/pmic/sandbox.c
index 398b72341bd..813294c7f36 100644
--- a/drivers/power/pmic/sandbox.c
+++ b/drivers/power/pmic/sandbox.c
@@ -9,6 +9,7 @@ 
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/pmic/stpmic1.c b/drivers/power/pmic/stpmic1.c
index 2c85410b1bf..c7cd596da08 100644
--- a/drivers/power/pmic/stpmic1.c
+++ b/drivers/power/pmic/stpmic1.c
@@ -13,6 +13,7 @@ 
 #include <dm/device.h>
 #include <dm/device_compat.h>
 #include <dm/lists.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/stpmic1.h>
 
diff --git a/drivers/power/pmic/tps65090.c b/drivers/power/pmic/tps65090.c
index 2a04d5948a5..8c8ffbe2046 100644
--- a/drivers/power/pmic/tps65090.c
+++ b/drivers/power/pmic/tps65090.c
@@ -10,6 +10,7 @@ 
 #include <fdtdec.h>
 #include <i2c.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/tps65090.h>
diff --git a/drivers/power/pmic/tps65941.c b/drivers/power/pmic/tps65941.c
index fd350b24df2..a05023516ba 100644
--- a/drivers/power/pmic/tps65941.c
+++ b/drivers/power/pmic/tps65941.c
@@ -11,6 +11,7 @@ 
 #include <i2c.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/power_core.c b/drivers/power/power_core.c
index 35be5d90732..bc8a2b6bf8c 100644
--- a/drivers/power/power_core.c
+++ b/drivers/power/power_core.c
@@ -15,6 +15,7 @@ 
 #include <malloc.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <linux/types.h>
 #include <linux/list.h>
diff --git a/drivers/power/power_dialog.c b/drivers/power/power_dialog.c
index 62e460bd581..267ef50203f 100644
--- a/drivers/power/power_dialog.c
+++ b/drivers/power/power_dialog.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <dialog_pmic.h>
 #include <errno.h>
diff --git a/drivers/power/power_fsl.c b/drivers/power/power_fsl.c
index 2324815a5bd..e26b60c6abc 100644
--- a/drivers/power/power_fsl.c
+++ b/drivers/power/power_fsl.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <spi.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <fsl_pmic.h>
 #include <errno.h>
diff --git a/drivers/power/power_i2c.c b/drivers/power/power_i2c.c
index ebf078fe714..263d0f3eaa6 100644
--- a/drivers/power/power_i2c.c
+++ b/drivers/power/power_i2c.c
@@ -13,6 +13,7 @@ 
 #include <common.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <linux/types.h>
 #include <power/pmic.h>
diff --git a/drivers/power/power_spi.c b/drivers/power/power_spi.c
index 1eaf9773ef8..adf317e849a 100644
--- a/drivers/power/power_spi.c
+++ b/drivers/power/power_spi.c
@@ -10,6 +10,7 @@ 
  */
 
 #include <common.h>
+#include <linux/errno.h>
 #include <linux/types.h>
 #include <power/pmic.h>
 #include <spi.h>
diff --git a/drivers/power/regulator/act8846.c b/drivers/power/regulator/act8846.c
index 1783813a158..0140231214a 100644
--- a/drivers/power/regulator/act8846.c
+++ b/drivers/power/regulator/act8846.c
@@ -11,6 +11,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <linux/errno.h>
 #include <power/act8846_pmic.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/regulator/as3722_regulator.c b/drivers/power/regulator/as3722_regulator.c
index 0fee9bf00b6..da25e58dec9 100644
--- a/drivers/power/regulator/as3722_regulator.c
+++ b/drivers/power/regulator/as3722_regulator.c
@@ -10,6 +10,7 @@ 
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <power/as3722.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/regulator/bd71837.c b/drivers/power/regulator/bd71837.c
index 8c7f71be3e8..7ebba28a992 100644
--- a/drivers/power/regulator/bd71837.c
+++ b/drivers/power/regulator/bd71837.c
@@ -9,6 +9,7 @@ 
 #include <dm.h>
 #include <log.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <power/bd71837.h>
diff --git a/drivers/power/regulator/da9063.c b/drivers/power/regulator/da9063.c
index 3e5d2596561..ae069e602a3 100644
--- a/drivers/power/regulator/da9063.c
+++ b/drivers/power/regulator/da9063.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <power/da9063_pmic.h>
 #include <power/pmic.h>
diff --git a/drivers/power/regulator/fan53555.c b/drivers/power/regulator/fan53555.c
index a7fa01f787b..fa8dc96f9da 100644
--- a/drivers/power/regulator/fan53555.c
+++ b/drivers/power/regulator/fan53555.c
@@ -12,6 +12,7 @@ 
 #include <log.h>
 #include <asm/gpio.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/fan53555.h>
 #include <power/pmic.h>
diff --git a/drivers/power/regulator/fixed.c b/drivers/power/regulator/fixed.c
index 0303c6c5224..78245de90a6 100644
--- a/drivers/power/regulator/fixed.c
+++ b/drivers/power/regulator/fixed.c
@@ -10,6 +10,7 @@ 
 #include <dm.h>
 #include <log.h>
 #include <asm/gpio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include "regulator_common.h"
diff --git a/drivers/power/regulator/gpio-regulator.c b/drivers/power/regulator/gpio-regulator.c
index 8b93a1da72e..bc862179a80 100644
--- a/drivers/power/regulator/gpio-regulator.c
+++ b/drivers/power/regulator/gpio-regulator.c
@@ -11,6 +11,7 @@ 
 #include <i2c.h>
 #include <log.h>
 #include <asm/gpio.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/regulator/lp873x_regulator.c b/drivers/power/regulator/lp873x_regulator.c
index 9ec23b6f548..c47a4a9a778 100644
--- a/drivers/power/regulator/lp873x_regulator.c
+++ b/drivers/power/regulator/lp873x_regulator.c
@@ -12,6 +12,7 @@ 
 #include <dm.h>
 #include <i2c.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/lp873x.h>
diff --git a/drivers/power/regulator/lp87565_regulator.c b/drivers/power/regulator/lp87565_regulator.c
index 5b14c07b4ce..2275a7367b0 100644
--- a/drivers/power/regulator/lp87565_regulator.c
+++ b/drivers/power/regulator/lp87565_regulator.c
@@ -13,6 +13,7 @@ 
 #include <i2c.h>
 #include <log.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/lp87565.h>
diff --git a/drivers/power/regulator/max77686.c b/drivers/power/regulator/max77686.c
index 4d3ac980fc8..bcbe257f53f 100644
--- a/drivers/power/regulator/max77686.c
+++ b/drivers/power/regulator/max77686.c
@@ -11,6 +11,7 @@ 
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/regulator/palmas_regulator.c b/drivers/power/regulator/palmas_regulator.c
index adbc921e53a..9f1ae1d246f 100644
--- a/drivers/power/regulator/palmas_regulator.c
+++ b/drivers/power/regulator/palmas_regulator.c
@@ -12,6 +12,7 @@ 
 #include <dm.h>
 #include <i2c.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/regulator/pbias_regulator.c b/drivers/power/regulator/pbias_regulator.c
index 0bc8562b317..26598b7129f 100644
--- a/drivers/power/regulator/pbias_regulator.c
+++ b/drivers/power/regulator/pbias_regulator.c
@@ -10,6 +10,7 @@ 
 #include <log.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/regulator/pfuze100.c b/drivers/power/regulator/pfuze100.c
index 15f34b915f2..b874d58961c 100644
--- a/drivers/power/regulator/pfuze100.c
+++ b/drivers/power/regulator/pfuze100.c
@@ -11,6 +11,7 @@ 
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/regulator/pwm_regulator.c b/drivers/power/regulator/pwm_regulator.c
index 2031d882953..451ce106e4f 100644
--- a/drivers/power/regulator/pwm_regulator.c
+++ b/drivers/power/regulator/pwm_regulator.c
@@ -15,6 +15,7 @@ 
 #include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/power/regulator/regulator-uclass.c b/drivers/power/regulator/regulator-uclass.c
index 2f095d57e8e..704a33d057a 100644
--- a/drivers/power/regulator/regulator-uclass.c
+++ b/drivers/power/regulator/regulator-uclass.c
@@ -11,6 +11,7 @@ 
 #include <stdio.h>
 #include <dm/uclass-internal.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/regulator/regulator_common.c b/drivers/power/regulator/regulator_common.c
index aae110a6655..ace87764092 100644
--- a/drivers/power/regulator/regulator_common.c
+++ b/drivers/power/regulator/regulator_common.c
@@ -9,6 +9,7 @@ 
 #include <log.h>
 #include <asm/gpio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 #include "regulator_common.h"
 
diff --git a/drivers/power/regulator/rk8xx.c b/drivers/power/regulator/rk8xx.c
index a08e2151f93..03e6ffcc978 100644
--- a/drivers/power/regulator/rk8xx.c
+++ b/drivers/power/regulator/rk8xx.c
@@ -12,6 +12,7 @@ 
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <power/rk8xx_pmic.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/regulator/s2mps11_regulator.c b/drivers/power/regulator/s2mps11_regulator.c
index 295e1d2c62a..ffbc06d9b79 100644
--- a/drivers/power/regulator/s2mps11_regulator.c
+++ b/drivers/power/regulator/s2mps11_regulator.c
@@ -10,6 +10,7 @@ 
 #include <dm.h>
 #include <i2c.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/regulator/s5m8767.c b/drivers/power/regulator/s5m8767.c
index b46a2a486ec..7e1d08b8d11 100644
--- a/drivers/power/regulator/s5m8767.c
+++ b/drivers/power/regulator/s5m8767.c
@@ -8,6 +8,7 @@ 
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/s5m8767.h>
diff --git a/drivers/power/regulator/sandbox.c b/drivers/power/regulator/sandbox.c
index 18596770b37..88c6f3ca3b2 100644
--- a/drivers/power/regulator/sandbox.c
+++ b/drivers/power/regulator/sandbox.c
@@ -9,6 +9,7 @@ 
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/regulator/stm32-vrefbuf.c b/drivers/power/regulator/stm32-vrefbuf.c
index 92136961c2e..73cae7c6d8e 100644
--- a/drivers/power/regulator/stm32-vrefbuf.c
+++ b/drivers/power/regulator/stm32-vrefbuf.c
@@ -12,6 +12,7 @@ 
 #include <asm/io.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <linux/kernel.h>
 #include <power/regulator.h>
diff --git a/drivers/power/regulator/stpmic1.c b/drivers/power/regulator/stpmic1.c
index 3e342f48086..38cd18b0d4f 100644
--- a/drivers/power/regulator/stpmic1.c
+++ b/drivers/power/regulator/stpmic1.c
@@ -8,6 +8,7 @@ 
 #include <dm.h>
 #include <errno.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/stpmic1.h>
diff --git a/drivers/power/regulator/tps62360_regulator.c b/drivers/power/regulator/tps62360_regulator.c
index ce54495490d..5d7d3d43ed5 100644
--- a/drivers/power/regulator/tps62360_regulator.c
+++ b/drivers/power/regulator/tps62360_regulator.c
@@ -8,6 +8,7 @@ 
 #include <dm.h>
 #include <i2c.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 
 #define TPS62360_REG_SET0	0
diff --git a/drivers/power/regulator/tps65090_regulator.c b/drivers/power/regulator/tps65090_regulator.c
index 74403a5a894..95db2d60e50 100644
--- a/drivers/power/regulator/tps65090_regulator.c
+++ b/drivers/power/regulator/tps65090_regulator.c
@@ -9,6 +9,7 @@ 
 #include <log.h>
 #include <time.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/tps65090.h>
diff --git a/drivers/power/regulator/tps65910_regulator.c b/drivers/power/regulator/tps65910_regulator.c
index 2c0dd0604b3..a2bd9c6c18a 100644
--- a/drivers/power/regulator/tps65910_regulator.c
+++ b/drivers/power/regulator/tps65910_regulator.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/regulator/tps65941_regulator.c b/drivers/power/regulator/tps65941_regulator.c
index c25ca318100..535d88a7e19 100644
--- a/drivers/power/regulator/tps65941_regulator.c
+++ b/drivers/power/regulator/tps65941_regulator.c
@@ -14,6 +14,7 @@ 
 #include <log.h>
 #include <stdio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/tps65941.h>
diff --git a/drivers/power/tps6586x.c b/drivers/power/tps6586x.c
index 49b28a5e6bf..acf0d5cfa4f 100644
--- a/drivers/power/tps6586x.c
+++ b/drivers/power/tps6586x.c
@@ -10,6 +10,7 @@ 
 #include <asm/io.h>
 #include <i2c.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 static struct udevice *tps6586x_dev;
 
diff --git a/drivers/pwm/exynos_pwm.c b/drivers/pwm/exynos_pwm.c
index e55fcceafd7..5417e95ef7b 100644
--- a/drivers/pwm/exynos_pwm.c
+++ b/drivers/pwm/exynos_pwm.c
@@ -11,6 +11,7 @@ 
 #include <asm/arch/clk.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/pwm.h>
+#include <linux/errno.h>
 
 struct exynos_pwm_priv {
 	struct s5p_timer *regs;
diff --git a/drivers/pwm/pwm-mtk.c b/drivers/pwm/pwm-mtk.c
index c6973dad3a8..1459e7fa673 100644
--- a/drivers/pwm/pwm-mtk.c
+++ b/drivers/pwm/pwm-mtk.c
@@ -13,6 +13,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 
 /* PWM registers and bits definitions */
diff --git a/drivers/pwm/pwm-sifive.c b/drivers/pwm/pwm-sifive.c
index 0b819cfbf78..866b243c004 100644
--- a/drivers/pwm/pwm-sifive.c
+++ b/drivers/pwm/pwm-sifive.c
@@ -19,6 +19,7 @@ 
 #include <pwm.h>
 #include <regmap.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/log2.h>
 #include <linux/bitfield.h>
diff --git a/drivers/pwm/pwm-uclass.c b/drivers/pwm/pwm-uclass.c
index 027181c6465..ab2df85e3ea 100644
--- a/drivers/pwm/pwm-uclass.c
+++ b/drivers/pwm/pwm-uclass.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <pwm.h>
+#include <linux/errno.h>
 
 int pwm_set_invert(struct udevice *dev, uint channel, bool polarity)
 {
diff --git a/drivers/pwm/rk_pwm.c b/drivers/pwm/rk_pwm.c
index 0fb894804b5..04c16ff36d8 100644
--- a/drivers/pwm/rk_pwm.c
+++ b/drivers/pwm/rk_pwm.c
@@ -16,6 +16,7 @@ 
 #include <asm/io.h>
 #include <asm/arch-rockchip/pwm.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/pwm/sandbox_pwm.c b/drivers/pwm/sandbox_pwm.c
index 28988187e03..0e267064b14 100644
--- a/drivers/pwm/sandbox_pwm.c
+++ b/drivers/pwm/sandbox_pwm.c
@@ -9,6 +9,7 @@ 
 #include <errno.h>
 #include <pwm.h>
 #include <asm/test.h>
+#include <linux/errno.h>
 
 enum {
 	NUM_CHANNELS	= 3,
diff --git a/drivers/pwm/sunxi_pwm.c b/drivers/pwm/sunxi_pwm.c
index ffcf60c5584..d3e714a6ab3 100644
--- a/drivers/pwm/sunxi_pwm.c
+++ b/drivers/pwm/sunxi_pwm.c
@@ -14,6 +14,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/pwm.h>
 #include <asm/arch/gpio.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/pwm/tegra_pwm.c b/drivers/pwm/tegra_pwm.c
index 5e98d0fc2c7..2cfb3787dc4 100644
--- a/drivers/pwm/tegra_pwm.c
+++ b/drivers/pwm/tegra_pwm.c
@@ -10,6 +10,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/pwm.h>
+#include <linux/errno.h>
 
 struct tegra_pwm_priv {
 	struct pwm_ctlr *regs;
diff --git a/drivers/ram/bmips_ram.c b/drivers/ram/bmips_ram.c
index 8f953e79afd..0746d677a4c 100644
--- a/drivers/ram/bmips_ram.c
+++ b/drivers/ram/bmips_ram.c
@@ -13,6 +13,7 @@ 
 #include <init.h>
 #include <ram.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 
 #define SDRAM_CFG_REG		0x0
 #define SDRAM_CFG_COL_SHIFT	4
diff --git a/drivers/ram/imxrt_sdram.c b/drivers/ram/imxrt_sdram.c
index 3726a39335e..bfdf666cc43 100644
--- a/drivers/ram/imxrt_sdram.c
+++ b/drivers/ram/imxrt_sdram.c
@@ -15,6 +15,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/ram/k3-am654-ddrss.c b/drivers/ram/k3-am654-ddrss.c
index 1ed7c3aabc1..d4cc6d772e7 100644
--- a/drivers/ram/k3-am654-ddrss.c
+++ b/drivers/ram/k3-am654-ddrss.c
@@ -17,6 +17,7 @@ 
 #include <dm.h>
 #include <asm/arch/sys_proto.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 #include "k3-am654-ddrss.h"
 
diff --git a/drivers/ram/k3-j721e/k3-j721e-ddrss.c b/drivers/ram/k3-j721e/k3-j721e-ddrss.c
index 25cdf83922f..bccf5a65c92 100644
--- a/drivers/ram/k3-j721e/k3-j721e-ddrss.c
+++ b/drivers/ram/k3-j721e/k3-j721e-ddrss.c
@@ -16,6 +16,7 @@ 
 #include <power-domain.h>
 #include <wait_bit.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 
 #include "lpddr4_obj_if.h"
 #include "lpddr4_if.h"
diff --git a/drivers/ram/k3-j721e/lpddr4_sanity.h b/drivers/ram/k3-j721e/lpddr4_sanity.h
index 0f0fc2767c1..84050d72c4a 100644
--- a/drivers/ram/k3-j721e/lpddr4_sanity.h
+++ b/drivers/ram/k3-j721e/lpddr4_sanity.h
@@ -21,6 +21,7 @@ 
 #define LPDDR4_SANITY_H
 
 #include <errno.h>
+#include <linux/errno.h>
 #include <linux/types.h>
 #include "lpddr4_if.h"
 
diff --git a/drivers/ram/mediatek/ddr3-mt7629.c b/drivers/ram/mediatek/ddr3-mt7629.c
index b3a68cb0787..a2f72b70470 100644
--- a/drivers/ram/mediatek/ddr3-mt7629.c
+++ b/drivers/ram/mediatek/ddr3-mt7629.c
@@ -14,6 +14,7 @@ 
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 /* EMI */
 #define EMI_CONA			0x000
diff --git a/drivers/ram/mpc83xx_sdram.c b/drivers/ram/mpc83xx_sdram.c
index 2a78291deb5..844a8a0d9fb 100644
--- a/drivers/ram/mpc83xx_sdram.c
+++ b/drivers/ram/mpc83xx_sdram.c
@@ -12,6 +12,7 @@ 
 #include <asm/bitops.h>
 #include <asm/global_data.h>
 #include <dt-bindings/memory/mpc83xx-sdram.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/ram/ram-uclass.c b/drivers/ram/ram-uclass.c
index f4d387fed1e..7f3b6276f9f 100644
--- a/drivers/ram/ram-uclass.c
+++ b/drivers/ram/ram-uclass.c
@@ -10,6 +10,7 @@ 
 #include <errno.h>
 #include <dm/lists.h>
 #include <dm/root.h>
+#include <linux/errno.h>
 
 int ram_get_info(struct udevice *dev, struct ram_info *info)
 {
diff --git a/drivers/ram/rockchip/dmc-rk3368.c b/drivers/ram/rockchip/dmc-rk3368.c
index 8795ad1c32c..1c3d95d7d63 100644
--- a/drivers/ram/rockchip/dmc-rk3368.c
+++ b/drivers/ram/rockchip/dmc-rk3368.c
@@ -25,6 +25,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 struct dram_info {
diff --git a/drivers/ram/rockchip/sdram_rk3188.c b/drivers/ram/rockchip/sdram_rk3188.c
index a2c36fa3cad..a8db0e34122 100644
--- a/drivers/ram/rockchip/sdram_rk3188.c
+++ b/drivers/ram/rockchip/sdram_rk3188.c
@@ -28,6 +28,7 @@ 
 #include <asm/arch-rockchip/sdram_rk3288.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 struct chan_info {
diff --git a/drivers/ram/rockchip/sdram_rk322x.c b/drivers/ram/rockchip/sdram_rk322x.c
index 51d87e6d29f..92fe235be5a 100644
--- a/drivers/ram/rockchip/sdram_rk322x.c
+++ b/drivers/ram/rockchip/sdram_rk322x.c
@@ -24,6 +24,7 @@ 
 #include <asm/types.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/ram/rockchip/sdram_rk3288.c b/drivers/ram/rockchip/sdram_rk3288.c
index 1063fde3e87..4f48da4b4e5 100644
--- a/drivers/ram/rockchip/sdram_rk3288.c
+++ b/drivers/ram/rockchip/sdram_rk3288.c
@@ -28,6 +28,7 @@ 
 #include <asm/arch-rockchip/sdram_rk3288.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <power/regulator.h>
 #include <power/rk8xx_pmic.h>
diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c
index 935bfc97b14..45c20b7cfa3 100644
--- a/drivers/ram/rockchip/sdram_rk3399.c
+++ b/drivers/ram/rockchip/sdram_rk3399.c
@@ -26,6 +26,7 @@ 
 #include <linux/delay.h>
 #include <linux/err.h>
 #include <time.h>
+#include <linux/errno.h>
 
 #define PRESET_SGRF_HOLD(n)	((0x1 << (6 + 16)) | ((n) << 6))
 #define PRESET_GPIO0_HOLD(n)	((0x1 << (7 + 16)) | ((n) << 7))
diff --git a/drivers/ram/sifive/fu540_ddr.c b/drivers/ram/sifive/fu540_ddr.c
index eff6da55ad2..0270dd088db 100644
--- a/drivers/ram/sifive/fu540_ddr.c
+++ b/drivers/ram/sifive/fu540_ddr.c
@@ -19,6 +19,7 @@ 
 #include <clk.h>
 #include <wait_bit.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define DENALI_CTL_0	0
 #define DENALI_CTL_21	21
diff --git a/drivers/ram/stm32_sdram.c b/drivers/ram/stm32_sdram.c
index 3f61addac31..04fb730525d 100644
--- a/drivers/ram/stm32_sdram.c
+++ b/drivers/ram/stm32_sdram.c
@@ -15,6 +15,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/ram/stm32mp1/stm32mp1_ddr.c b/drivers/ram/stm32mp1/stm32mp1_ddr.c
index 1f39ce5ea49..6742aa6a986 100644
--- a/drivers/ram/stm32mp1/stm32mp1_ddr.c
+++ b/drivers/ram/stm32mp1/stm32mp1_ddr.c
@@ -15,6 +15,7 @@ 
 #include <asm/arch/ddr.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <linux/printk.h>
 #include <linux/string.h>
diff --git a/drivers/ram/stm32mp1/stm32mp1_ram.c b/drivers/ram/stm32mp1/stm32mp1_ram.c
index a24788957df..347ff769e40 100644
--- a/drivers/ram/stm32mp1/stm32mp1_ram.c
+++ b/drivers/ram/stm32mp1/stm32mp1_ram.c
@@ -13,6 +13,7 @@ 
 #include <stdio.h>
 #include <syscon.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include "stm32mp1_ddr.h"
diff --git a/drivers/remoteproc/k3_system_controller.c b/drivers/remoteproc/k3_system_controller.c
index 44271c5baf8..aa993b97392 100644
--- a/drivers/remoteproc/k3_system_controller.c
+++ b/drivers/remoteproc/k3_system_controller.c
@@ -13,6 +13,7 @@ 
 #include <errno.h>
 #include <mailbox.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 #include <linux/soc/ti/k3-sec-proxy.h>
 #include <linux/string.h>
 
diff --git a/drivers/remoteproc/rproc-elf-loader.c b/drivers/remoteproc/rproc-elf-loader.c
index 45331107353..d4064a311b5 100644
--- a/drivers/remoteproc/rproc-elf-loader.c
+++ b/drivers/remoteproc/rproc-elf-loader.c
@@ -11,6 +11,7 @@ 
 #include <asm/cache.h>
 #include <dm/device_compat.h>
 #include <linux/compat.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/remoteproc/rproc-uclass.c b/drivers/remoteproc/rproc-uclass.c
index 1ed194aa034..950dc3f9b11 100644
--- a/drivers/remoteproc/rproc-uclass.c
+++ b/drivers/remoteproc/rproc-uclass.c
@@ -16,6 +16,7 @@ 
 #include <dm.h>
 #include <dm/uclass.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/remoteproc/sandbox_testproc.c b/drivers/remoteproc/sandbox_testproc.c
index 4317af78d29..e3759eed95c 100644
--- a/drivers/remoteproc/sandbox_testproc.c
+++ b/drivers/remoteproc/sandbox_testproc.c
@@ -10,6 +10,7 @@ 
 #include <log.h>
 #include <remoteproc.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 /**
diff --git a/drivers/remoteproc/stm32_copro.c b/drivers/remoteproc/stm32_copro.c
index e09d2b9a646..eb437464ae1 100644
--- a/drivers/remoteproc/stm32_copro.c
+++ b/drivers/remoteproc/stm32_copro.c
@@ -15,6 +15,7 @@ 
 #include <asm/io.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #define RCC_GCR_HOLD_BOOT	0
diff --git a/drivers/remoteproc/ti_k3_arm64_rproc.c b/drivers/remoteproc/ti_k3_arm64_rproc.c
index 28c6ddb6919..20b02f691e3 100644
--- a/drivers/remoteproc/ti_k3_arm64_rproc.c
+++ b/drivers/remoteproc/ti_k3_arm64_rproc.c
@@ -17,6 +17,7 @@ 
 #include <power-domain.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include "ti_sci_proc.h"
 
diff --git a/drivers/remoteproc/ti_k3_dsp_rproc.c b/drivers/remoteproc/ti_k3_dsp_rproc.c
index cbebfacb48c..722b9432491 100644
--- a/drivers/remoteproc/ti_k3_dsp_rproc.c
+++ b/drivers/remoteproc/ti_k3_dsp_rproc.c
@@ -19,6 +19,7 @@ 
 #include <power-domain.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include <linux/string.h>
diff --git a/drivers/remoteproc/ti_k3_r5f_rproc.c b/drivers/remoteproc/ti_k3_r5f_rproc.c
index 964a75309ad..db437c1a686 100644
--- a/drivers/remoteproc/ti_k3_r5f_rproc.c
+++ b/drivers/remoteproc/ti_k3_r5f_rproc.c
@@ -18,6 +18,7 @@ 
 #include <asm/io.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include <linux/string.h>
diff --git a/drivers/remoteproc/ti_power_proc.c b/drivers/remoteproc/ti_power_proc.c
index 0d78ec439d0..84e621ca9ee 100644
--- a/drivers/remoteproc/ti_power_proc.c
+++ b/drivers/remoteproc/ti_power_proc.c
@@ -11,6 +11,7 @@ 
 #include <log.h>
 #include <remoteproc.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <mach/psc_defs.h>
diff --git a/drivers/reset/reset-bcm6345.c b/drivers/reset/reset-bcm6345.c
index 156703e0843..69793967c42 100644
--- a/drivers/reset/reset-bcm6345.c
+++ b/drivers/reset/reset-bcm6345.c
@@ -15,6 +15,7 @@ 
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define MAX_RESETS	32
 
diff --git a/drivers/reset/reset-hisilicon.c b/drivers/reset/reset-hisilicon.c
index 139bc5d73e0..2012421e417 100644
--- a/drivers/reset/reset-hisilicon.c
+++ b/drivers/reset/reset-hisilicon.c
@@ -11,6 +11,7 @@ 
 #include <dt-bindings/reset/ti-syscon.h>
 #include <reset-uclass.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 struct hisi_reset_priv {
 	void __iomem *base;
diff --git a/drivers/reset/reset-hsdk.c b/drivers/reset/reset-hsdk.c
index 0c8f276293d..531e2cfb5fa 100644
--- a/drivers/reset/reset-hsdk.c
+++ b/drivers/reset/reset-hsdk.c
@@ -11,6 +11,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <reset-uclass.h>
 
diff --git a/drivers/reset/reset-imx7.c b/drivers/reset/reset-imx7.c
index 96916b644ad..1ad031b9041 100644
--- a/drivers/reset/reset-imx7.c
+++ b/drivers/reset/reset-imx7.c
@@ -13,6 +13,7 @@ 
 #include <reset-uclass.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 struct imx7_reset_priv {
 	void __iomem *base;
diff --git a/drivers/reset/reset-mediatek.c b/drivers/reset/reset-mediatek.c
index 97d3d575927..9df4c2a1c7b 100644
--- a/drivers/reset/reset-mediatek.c
+++ b/drivers/reset/reset-mediatek.c
@@ -16,6 +16,7 @@ 
 #include <syscon.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 struct mediatek_reset_priv {
 	struct regmap *regmap;
diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c
index 4e3327898e2..8322a48a8ae 100644
--- a/drivers/reset/reset-meson.c
+++ b/drivers/reset/reset-meson.c
@@ -13,6 +13,7 @@ 
 #include <reset-uclass.h>
 #include <regmap.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define REG_COUNT	8
 #define BITS_PER_REG	32
diff --git a/drivers/reset/reset-mtmips.c b/drivers/reset/reset-mtmips.c
index bc20e3335c5..4d59a9b8ac5 100644
--- a/drivers/reset/reset-mtmips.c
+++ b/drivers/reset/reset-mtmips.c
@@ -12,6 +12,7 @@ 
 #include <malloc.h>
 #include <reset-uclass.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 
 struct mtmips_reset_priv {
diff --git a/drivers/reset/reset-raspberrypi.c b/drivers/reset/reset-raspberrypi.c
index e2d284e5aca..e4aa7ca6d3b 100644
--- a/drivers/reset/reset-raspberrypi.c
+++ b/drivers/reset/reset-raspberrypi.c
@@ -9,6 +9,7 @@ 
 #include <reset-uclass.h>
 #include <asm/arch/msg.h>
 #include <dt-bindings/reset/raspberrypi,firmware-reset.h>
+#include <linux/errno.h>
 
 static int raspberrypi_reset_request(struct reset_ctl *reset_ctl)
 {
diff --git a/drivers/reset/reset-rockchip.c b/drivers/reset/reset-rockchip.c
index 80925556508..5e8daa28913 100644
--- a/drivers/reset/reset-rockchip.c
+++ b/drivers/reset/reset-rockchip.c
@@ -9,6 +9,7 @@ 
 #include <malloc.h>
 #include <reset-uclass.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <asm/arch-rockchip/hardware.h>
 #include <dm/lists.h>
diff --git a/drivers/reset/reset-sunxi.c b/drivers/reset/reset-sunxi.c
index b9ca80e9b02..54692cc3f5e 100644
--- a/drivers/reset/reset-sunxi.c
+++ b/drivers/reset/reset-sunxi.c
@@ -14,6 +14,7 @@ 
 #include <asm/io.h>
 #include <dm/lists.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/log2.h>
 #include <asm/arch/ccu.h>
 
diff --git a/drivers/reset/reset-syscon.c b/drivers/reset/reset-syscon.c
index 8520227d551..16e74dc8e94 100644
--- a/drivers/reset/reset-syscon.c
+++ b/drivers/reset/reset-syscon.c
@@ -11,6 +11,7 @@ 
 #include <syscon.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 struct syscon_reset_priv {
 	struct regmap *regmap;
diff --git a/drivers/reset/reset-ti-sci.c b/drivers/reset/reset-ti-sci.c
index 95cd3885876..4d00622eb81 100644
--- a/drivers/reset/reset-ti-sci.c
+++ b/drivers/reset/reset-ti-sci.c
@@ -16,6 +16,7 @@ 
 #include <reset-uclass.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 
 /**
diff --git a/drivers/reset/reset-uclass.c b/drivers/reset/reset-uclass.c
index 5e38ce5c066..4dc2950bbab 100644
--- a/drivers/reset/reset-uclass.c
+++ b/drivers/reset/reset-uclass.c
@@ -11,6 +11,7 @@ 
 #include <reset.h>
 #include <reset-uclass.h>
 #include <dm/devres.h>
+#include <linux/errno.h>
 
 static inline struct reset_ops *reset_dev_ops(struct udevice *dev)
 {
diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c
index fe1bd5541bd..b557906b890 100644
--- a/drivers/reset/reset-uniphier.c
+++ b/drivers/reset/reset-uniphier.c
@@ -11,6 +11,7 @@ 
 #include <reset-uclass.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
 
diff --git a/drivers/reset/sandbox-reset.c b/drivers/reset/sandbox-reset.c
index 7a6f7f676cc..a6936e81877 100644
--- a/drivers/reset/sandbox-reset.c
+++ b/drivers/reset/sandbox-reset.c
@@ -10,6 +10,7 @@ 
 #include <reset-uclass.h>
 #include <asm/io.h>
 #include <asm/reset.h>
+#include <linux/errno.h>
 
 #define SANDBOX_RESET_SIGNALS 101
 
diff --git a/drivers/reset/sti-reset.c b/drivers/reset/sti-reset.c
index 12000d05cc8..75d972a5fa2 100644
--- a/drivers/reset/sti-reset.c
+++ b/drivers/reset/sti-reset.c
@@ -16,6 +16,7 @@ 
 #include <asm/global_data.h>
 #include <dt-bindings/reset/stih407-resets.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/reset/stm32-reset.c b/drivers/reset/stm32-reset.c
index 64a11cfcfc0..6f68c479e36 100644
--- a/drivers/reset/stm32-reset.c
+++ b/drivers/reset/stm32-reset.c
@@ -13,6 +13,7 @@ 
 #include <stm32_rcc.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 /* reset clear offset for STM32MP RCC */
 #define RCC_CL 0x4
diff --git a/drivers/reset/tegra-car-reset.c b/drivers/reset/tegra-car-reset.c
index a33d4533a82..68ec38643fd 100644
--- a/drivers/reset/tegra-car-reset.c
+++ b/drivers/reset/tegra-car-reset.c
@@ -10,6 +10,7 @@ 
 #include <reset-uclass.h>
 #include <asm/arch/clock.h>
 #include <asm/arch-tegra/clk_rst.h>
+#include <linux/errno.h>
 
 static int tegra_car_reset_request(struct reset_ctl *reset_ctl)
 {
diff --git a/drivers/rng/meson-rng.c b/drivers/rng/meson-rng.c
index 448d4537b05..0debe8a1068 100644
--- a/drivers/rng/meson-rng.c
+++ b/drivers/rng/meson-rng.c
@@ -10,6 +10,7 @@ 
 #include <dm.h>
 #include <rng.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 struct meson_rng_platdata {
diff --git a/drivers/rng/rng-uclass.c b/drivers/rng/rng-uclass.c
index b6af3b8606a..b315401f20e 100644
--- a/drivers/rng/rng-uclass.c
+++ b/drivers/rng/rng-uclass.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <rng.h>
+#include <linux/errno.h>
 
 int dm_rng_read(struct udevice *dev, void *buffer, size_t size)
 {
diff --git a/drivers/rng/rockchip_rng.c b/drivers/rng/rockchip_rng.c
index c6a834b67c5..efc1980e449 100644
--- a/drivers/rng/rockchip_rng.c
+++ b/drivers/rng/rockchip_rng.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <linux/string.h>
 #include <rng.h>
diff --git a/drivers/rng/stm32mp1_rng.c b/drivers/rng/stm32mp1_rng.c
index 32f8cebb687..25cba160222 100644
--- a/drivers/rng/stm32mp1_rng.c
+++ b/drivers/rng/stm32mp1_rng.c
@@ -12,6 +12,7 @@ 
 #include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <asm/io.h>
diff --git a/drivers/rtc/ds3231.c b/drivers/rtc/ds3231.c
index 328b03ed05d..ebb1cc65c64 100644
--- a/drivers/rtc/ds3231.c
+++ b/drivers/rtc/ds3231.c
@@ -21,6 +21,7 @@ 
 #include <rtc.h>
 #include <i2c.h>
 #include <stdio.h>
+#include <linux/errno.h>
 
 /*
  * RTC register addresses
diff --git a/drivers/rtc/ds3232.c b/drivers/rtc/ds3232.c
index 0a30e0eabb4..e6c9f878665 100644
--- a/drivers/rtc/ds3232.c
+++ b/drivers/rtc/ds3232.c
@@ -10,6 +10,7 @@ 
 #include <rtc.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 /*
  * RTC register addresses
diff --git a/drivers/rtc/pl031.c b/drivers/rtc/pl031.c
index 1b6717232c7..f98e3506eb6 100644
--- a/drivers/rtc/pl031.c
+++ b/drivers/rtc/pl031.c
@@ -14,6 +14,7 @@ 
 #include <rtc.h>
 #include <asm/io.h>
 #include <asm/types.h>
+#include <linux/errno.h>
 
 /*
  * Register definitions
diff --git a/drivers/rtc/rtc-uclass.c b/drivers/rtc/rtc-uclass.c
index 8035f7fe9cc..1fda0cd8fbc 100644
--- a/drivers/rtc/rtc-uclass.c
+++ b/drivers/rtc/rtc-uclass.c
@@ -9,6 +9,7 @@ 
 #include <errno.h>
 #include <log.h>
 #include <rtc.h>
+#include <linux/errno.h>
 
 int dm_rtc_get(struct udevice *dev, struct rtc_time *time)
 {
diff --git a/drivers/rtc/rv3029.c b/drivers/rtc/rv3029.c
index 4dddf62aca8..ffed37ad5aa 100644
--- a/drivers/rtc/rv3029.c
+++ b/drivers/rtc/rv3029.c
@@ -19,6 +19,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define RTC_RV3029_PAGE_LEN             7
 
diff --git a/drivers/rtc/rx8010sj.c b/drivers/rtc/rx8010sj.c
index 1d9b7cd6358..1da7a7d6c90 100644
--- a/drivers/rtc/rx8010sj.c
+++ b/drivers/rtc/rx8010sj.c
@@ -23,6 +23,7 @@ 
 #include <rtc.h>
 #include <stdio.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 /*---------------------------------------------------------------------*/
 /* #undef DEBUG_RTC */
diff --git a/drivers/rtc/rx8025.c b/drivers/rtc/rx8025.c
index 7fd04d999b0..aaa3609be00 100644
--- a/drivers/rtc/rx8025.c
+++ b/drivers/rtc/rx8025.c
@@ -14,6 +14,7 @@ 
 #include <i2c.h>
 #include <rtc.h>
 #include <stdio.h>
+#include <linux/errno.h>
 
 /*---------------------------------------------------------------------*/
 #undef DEBUG_RTC
diff --git a/drivers/rtc/s35392a.c b/drivers/rtc/s35392a.c
index 5d70ed1ecda..3744d8445fb 100644
--- a/drivers/rtc/s35392a.c
+++ b/drivers/rtc/s35392a.c
@@ -25,6 +25,7 @@ 
 #include <linux/bitrev.h>
 #include <rtc.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define S35390A_CHIP_ADDR	0x30
 
diff --git a/drivers/rtc/stm32_rtc.c b/drivers/rtc/stm32_rtc.c
index f9db318af1d..8f9540697df 100644
--- a/drivers/rtc/stm32_rtc.c
+++ b/drivers/rtc/stm32_rtc.c
@@ -10,6 +10,7 @@ 
 #include <asm/io.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 
 #define STM32_RTC_TR		0x00
diff --git a/drivers/scsi/scsi-uclass.c b/drivers/scsi/scsi-uclass.c
index acf3b3dc957..4b063ad06e1 100644
--- a/drivers/scsi/scsi-uclass.c
+++ b/drivers/scsi/scsi-uclass.c
@@ -11,6 +11,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <scsi.h>
+#include <linux/errno.h>
 
 int scsi_exec(struct udevice *dev, struct scsi_cmd *pccb)
 {
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c
index 1a5e256d61a..ad7ca9e8784 100644
--- a/drivers/scsi/scsi.c
+++ b/drivers/scsi/scsi.c
@@ -17,6 +17,7 @@ 
 #include <vsprintf.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #if !defined(CONFIG_DM_SCSI)
diff --git a/drivers/serial/altera_jtag_uart.c b/drivers/serial/altera_jtag_uart.c
index 35b76f53f93..6b20d3d487b 100644
--- a/drivers/serial/altera_jtag_uart.c
+++ b/drivers/serial/altera_jtag_uart.c
@@ -10,6 +10,7 @@ 
 #include <serial.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 /* data register */
 #define ALTERA_JTAG_RVALID	BIT(15)	/* Read valid */
diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c
index 0be5cd75c85..ea9eb206a10 100644
--- a/drivers/serial/altera_uart.c
+++ b/drivers/serial/altera_uart.c
@@ -10,6 +10,7 @@ 
 #include <serial.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 /* status register */
 #define ALTERA_UART_TMT		BIT(5)	/* tx empty */
diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c
index dfcb6fd6981..270f61cc074 100644
--- a/drivers/serial/arm_dcc.c
+++ b/drivers/serial/arm_dcc.c
@@ -18,6 +18,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <serial.h>
+#include <linux/errno.h>
 
 #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V7A) || defined(CONFIG_CPU_V7R)
 /*
diff --git a/drivers/serial/atmel_usart.c b/drivers/serial/atmel_usart.c
index f2065935886..f6e14cc9021 100644
--- a/drivers/serial/atmel_usart.c
+++ b/drivers/serial/atmel_usart.c
@@ -16,6 +16,7 @@ 
 #include <asm/global_data.h>
 #include <linux/compiler.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #include <asm/io.h>
 #ifdef CONFIG_DM_SERIAL
diff --git a/drivers/serial/lpc32xx_hsuart.c b/drivers/serial/lpc32xx_hsuart.c
index 7d31c6d4a14..598ae08c668 100644
--- a/drivers/serial/lpc32xx_hsuart.c
+++ b/drivers/serial/lpc32xx_hsuart.c
@@ -8,6 +8,7 @@ 
 #include <dm.h>
 #include <serial.h>
 #include <dm/platform_data/lpc32xx_hsuart.h>
+#include <linux/errno.h>
 
 #include <asm/arch/uart.h>
 #include <linux/compiler.h>
diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c
index 840d89f16fa..603a8cb5977 100644
--- a/drivers/serial/ns16550.c
+++ b/drivers/serial/ns16550.c
@@ -16,6 +16,7 @@ 
 #include <watchdog.h>
 #include <asm/global_data.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/types.h>
 #include <asm/io.h>
 
diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c
index 01c924675af..aef4c75d388 100644
--- a/drivers/serial/sandbox.c
+++ b/drivers/serial/sandbox.c
@@ -20,6 +20,7 @@ 
 #include <asm/global_data.h>
 #include <linux/compiler.h>
 #include <asm/state.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c
index bb6bdbe4291..5033298f95a 100644
--- a/drivers/serial/serial-uclass.c
+++ b/drivers/serial/serial-uclass.c
@@ -19,6 +19,7 @@ 
 #include <dm/device-internal.h>
 #include <dm/of_access.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c
index 3f8ab647e55..6e10e5ec846 100644
--- a/drivers/serial/serial.c
+++ b/drivers/serial/serial.c
@@ -16,6 +16,7 @@ 
 #include <linux/compiler.h>
 #include <errno.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/serial/serial_ar933x.c b/drivers/serial/serial_ar933x.c
index 9de94b69bd0..a16d6a6eca6 100644
--- a/drivers/serial/serial_ar933x.c
+++ b/drivers/serial/serial_ar933x.c
@@ -14,6 +14,7 @@ 
 #include <asm/types.h>
 #include <dm/pinctrl.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <mach/ar71xx_regs.h>
 
 #define AR933X_UART_DATA_REG            0x00
diff --git a/drivers/serial/serial_bcm283x_mu.c b/drivers/serial/serial_bcm283x_mu.c
index 8a4af87eb64..d9ebb273ddc 100644
--- a/drivers/serial/serial_bcm283x_mu.c
+++ b/drivers/serial/serial_bcm283x_mu.c
@@ -25,6 +25,7 @@ 
 #include <dm/pinctrl.h>
 #include <linux/bitops.h>
 #include <linux/compiler.h>
+#include <linux/errno.h>
 
 struct bcm283x_mu_regs {
 	u32 io;
diff --git a/drivers/serial/serial_bcm283x_pl011.c b/drivers/serial/serial_bcm283x_pl011.c
index 923f402fbe9..efb6eb60b35 100644
--- a/drivers/serial/serial_bcm283x_pl011.c
+++ b/drivers/serial/serial_bcm283x_pl011.c
@@ -9,6 +9,7 @@ 
 #include <dm/pinctrl.h>
 #include <dm/platform_data/serial_pl01x.h>
 #include <serial.h>
+#include <linux/errno.h>
 #include "serial_pl01x_internal.h"
 
 /*
diff --git a/drivers/serial/serial_bcm6345.c b/drivers/serial/serial_bcm6345.c
index 5b963ce45bc..309cbf63af9 100644
--- a/drivers/serial/serial_bcm6345.c
+++ b/drivers/serial/serial_bcm6345.c
@@ -14,6 +14,7 @@ 
 #include <serial.h>
 #include <asm/io.h>
 #include <asm/types.h>
+#include <linux/errno.h>
 
 /* UART Control register */
 #define UART_CTL_REG			0x0
diff --git a/drivers/serial/serial_cortina.c b/drivers/serial/serial_cortina.c
index cc20673efef..c0beba19f58 100644
--- a/drivers/serial/serial_cortina.c
+++ b/drivers/serial/serial_cortina.c
@@ -13,6 +13,7 @@ 
 #include <serial.h>
 #include <linux/bitops.h>
 #include <linux/compiler.h>
+#include <linux/errno.h>
 
 /* Register definitions */
 #define UCFG			0x00	/* UART config register */
diff --git a/drivers/serial/serial_efi.c b/drivers/serial/serial_efi.c
index b152e102587..df3a0901024 100644
--- a/drivers/serial/serial_efi.c
+++ b/drivers/serial/serial_efi.c
@@ -15,6 +15,7 @@ 
 #include <linux/compiler.h>
 #include <asm/io.h>
 #include <serial.h>
+#include <linux/errno.h>
 
 /* Information about the efi console */
 struct serial_efi_priv {
diff --git a/drivers/serial/serial_linflexuart.c b/drivers/serial/serial_linflexuart.c
index d8482ba7047..d9be526ffe2 100644
--- a/drivers/serial/serial_linflexuart.c
+++ b/drivers/serial/serial_linflexuart.c
@@ -13,6 +13,7 @@ 
 #include <linux/compiler.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
+#include <linux/errno.h>
 
 #define US1_TDRE            (1 << 7)
 #define US1_RDRF            (1 << 5)
diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c
index 8631d790e6f..1017981f97c 100644
--- a/drivers/serial/serial_lpuart.c
+++ b/drivers/serial/serial_lpuart.c
@@ -18,6 +18,7 @@ 
 #include <linux/compiler.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
+#include <linux/errno.h>
 
 #define US1_TDRE	(1 << 7)
 #define US1_RDRF	(1 << 5)
diff --git a/drivers/serial/serial_mcf.c b/drivers/serial/serial_mcf.c
index 6b907fe1920..2d2f07e369b 100644
--- a/drivers/serial/serial_mcf.c
+++ b/drivers/serial/serial_mcf.c
@@ -23,6 +23,7 @@ 
 #include <linux/compiler.h>
 #include <asm/immap.h>
 #include <asm/uart.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/serial/serial_meson.c b/drivers/serial/serial_meson.c
index 496a2ca2c35..80141642af8 100644
--- a/drivers/serial/serial_meson.c
+++ b/drivers/serial/serial_meson.c
@@ -10,6 +10,7 @@ 
 #include <linux/bitops.h>
 #include <linux/compiler.h>
 #include <serial.h>
+#include <linux/errno.h>
 
 struct meson_uart {
 	u32 wfifo;
diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c
index 13c7f9d809e..0809f1ff8a9 100644
--- a/drivers/serial/serial_msm.c
+++ b/drivers/serial/serial_msm.c
@@ -19,6 +19,7 @@ 
 #include <asm/io.h>
 #include <linux/compiler.h>
 #include <dm/pinctrl.h>
+#include <linux/errno.h>
 
 /* Serial registers - this driver works in uartdm mode*/
 
diff --git a/drivers/serial/serial_mtk.c b/drivers/serial/serial_mtk.c
index 0d2a9dc7e3e..74b5cc880c1 100644
--- a/drivers/serial/serial_mtk.c
+++ b/drivers/serial/serial_mtk.c
@@ -18,6 +18,7 @@ 
 #include <asm/io.h>
 #include <asm/types.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 struct mtk_serial_regs {
diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c
index 1f8eeb2cbfe..1c08f3ec795 100644
--- a/drivers/serial/serial_mxc.c
+++ b/drivers/serial/serial_mxc.c
@@ -13,6 +13,7 @@ 
 #include <dm/platform_data/serial_mxc.h>
 #include <serial.h>
 #include <linux/compiler.h>
+#include <linux/errno.h>
 
 /* UART Control Register Bit Fields.*/
 #define URXD_CHARRDY	(1<<15)
diff --git a/drivers/serial/serial_nulldev.c b/drivers/serial/serial_nulldev.c
index efae14dd6ca..c92ae698088 100644
--- a/drivers/serial/serial_nulldev.c
+++ b/drivers/serial/serial_nulldev.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <serial.h>
+#include <linux/errno.h>
 
 static int nulldev_serial_setbrg(struct udevice *dev, int baudrate)
 {
diff --git a/drivers/serial/serial_omap.c b/drivers/serial/serial_omap.c
index f7997fc788f..b661b11f0d8 100644
--- a/drivers/serial/serial_omap.c
+++ b/drivers/serial/serial_omap.c
@@ -14,6 +14,7 @@ 
 #include <serial.h>
 #include <clk.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 #ifndef CONFIG_SYS_NS16550_CLK
 #define CONFIG_SYS_NS16550_CLK  0
diff --git a/drivers/serial/serial_owl.c b/drivers/serial/serial_owl.c
index 2651a45a7f3..d721e24e4bf 100644
--- a/drivers/serial/serial_owl.c
+++ b/drivers/serial/serial_owl.c
@@ -15,6 +15,7 @@ 
 #include <asm/io.h>
 #include <asm/types.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 /* UART Registers */
 #define	OWL_UART_CTL			(0x0000)
diff --git a/drivers/serial/serial_pic32.c b/drivers/serial/serial_pic32.c
index ce6c5db762f..8e420fb764b 100644
--- a/drivers/serial/serial_pic32.c
+++ b/drivers/serial/serial_pic32.c
@@ -11,6 +11,7 @@ 
 #include <wait_bit.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <mach/pic32.h>
 #include <dt-bindings/clock/microchip,clock.h>
 
diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c
index 1ae5bac249a..a472e8ca5de 100644
--- a/drivers/serial/serial_pl01x.c
+++ b/drivers/serial/serial_pl01x.c
@@ -12,6 +12,7 @@ 
 
 #include <common.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 /* For get_bus_freq() */
 #include <clock_legacy.h>
 #include <dm.h>
diff --git a/drivers/serial/serial_pxa.c b/drivers/serial/serial_pxa.c
index a97d03a8876..e20f0c87540 100644
--- a/drivers/serial/serial_pxa.c
+++ b/drivers/serial/serial_pxa.c
@@ -31,6 +31,7 @@ 
 #include <linux/compiler.h>
 #include <serial.h>
 #include <watchdog.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c
index 986c5ca8107..1a939628a5a 100644
--- a/drivers/serial/serial_s5p.c
+++ b/drivers/serial/serial_s5p.c
@@ -18,6 +18,7 @@ 
 #include <asm/arch/uart.h>
 #include <serial.h>
 #include <clk.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/serial/serial_sh.c b/drivers/serial/serial_sh.c
index d697d62d910..e596c042ca6 100644
--- a/drivers/serial/serial_sh.c
+++ b/drivers/serial/serial_sh.c
@@ -17,6 +17,7 @@ 
 #include <linux/compiler.h>
 #include <dm/platform_data/serial_sh.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include "serial_sh.h"
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/serial/serial_sifive.c b/drivers/serial/serial_sifive.c
index c3f0a3cb65d..39b62d30eb4 100644
--- a/drivers/serial/serial_sifive.c
+++ b/drivers/serial/serial_sifive.c
@@ -16,6 +16,7 @@ 
 #include <linux/compiler.h>
 #include <serial.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/serial/serial_sti_asc.c b/drivers/serial/serial_sti_asc.c
index aa3c9efc8a0..0cb53d7ae3f 100644
--- a/drivers/serial/serial_sti_asc.c
+++ b/drivers/serial/serial_sti_asc.c
@@ -13,6 +13,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/serial/serial_stm32.c b/drivers/serial/serial_stm32.c
index cab0db2c96a..5cd4c815cfd 100644
--- a/drivers/serial/serial_stm32.c
+++ b/drivers/serial/serial_stm32.c
@@ -15,6 +15,7 @@ 
 #include <asm/arch/stm32.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include "serial_stm32.h"
 #include <dm/device_compat.h>
 
diff --git a/drivers/serial/serial_xuartlite.c b/drivers/serial/serial_xuartlite.c
index 5116d13751d..fd9e227557f 100644
--- a/drivers/serial/serial_xuartlite.c
+++ b/drivers/serial/serial_xuartlite.c
@@ -14,6 +14,7 @@ 
 #include <linux/bitops.h>
 #include <linux/compiler.h>
 #include <serial.h>
+#include <linux/errno.h>
 
 #define SR_TX_FIFO_FULL		BIT(3) /* transmit FIFO full */
 #define SR_TX_FIFO_EMPTY	BIT(2) /* transmit FIFO empty */
diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c
index 0e71cada1bb..7fec7d5bec4 100644
--- a/drivers/serial/serial_zynq.c
+++ b/drivers/serial/serial_zynq.c
@@ -18,6 +18,7 @@ 
 #include <linux/compiler.h>
 #include <serial.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 #define ZYNQ_UART_SR_TXACTIVE	BIT(11) /* TX active */
 #define ZYNQ_UART_SR_TXFULL	BIT(4) /* TX FIFO full */
diff --git a/drivers/smem/msm_smem.c b/drivers/smem/msm_smem.c
index 09a1268e276..ba9d108173c 100644
--- a/drivers/smem/msm_smem.c
+++ b/drivers/smem/msm_smem.c
@@ -16,6 +16,7 @@ 
 #include <asm/io.h>
 #include <linux/bug.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/ioport.h>
 #include <linux/io.h>
 #include <smem.h>
diff --git a/drivers/smem/smem-uclass.c b/drivers/smem/smem-uclass.c
index ce7bf40656e..90b1316d6dc 100644
--- a/drivers/smem/smem-uclass.c
+++ b/drivers/smem/smem-uclass.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <smem.h>
+#include <linux/errno.h>
 
 int smem_alloc(struct udevice *dev, unsigned int host,
 		unsigned int item, size_t size)
diff --git a/drivers/soc/soc-uclass.c b/drivers/soc/soc-uclass.c
index d22773e478b..29d586e0bcd 100644
--- a/drivers/soc/soc-uclass.c
+++ b/drivers/soc/soc-uclass.c
@@ -10,6 +10,7 @@ 
 #include <errno.h>
 #include <dm/lists.h>
 #include <dm/root.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 int soc_get(struct udevice **devp)
diff --git a/drivers/soc/soc_ti_k3.c b/drivers/soc/soc_ti_k3.c
index 77514c225e2..5ffccba2e8c 100644
--- a/drivers/soc/soc_ti_k3.c
+++ b/drivers/soc/soc_ti_k3.c
@@ -8,6 +8,7 @@ 
 #include <dm.h>
 #include <soc.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 
 #include <asm/io.h>
 
diff --git a/drivers/soc/ti/k3-navss-ringacc.c b/drivers/soc/ti/k3-navss-ringacc.c
index f4a0272f3ae..21c4b3fe194 100644
--- a/drivers/soc/ti/k3-navss-ringacc.c
+++ b/drivers/soc/ti/k3-navss-ringacc.c
@@ -21,6 +21,7 @@ 
 #include <linux/compat.h>
 #include <linux/dma-mapping.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/soc/ti/k3-navss-ringacc.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
diff --git a/drivers/soc/ti/keystone_serdes.c b/drivers/soc/ti/keystone_serdes.c
index f2a5c18b80b..c121fec52d4 100644
--- a/drivers/soc/ti/keystone_serdes.c
+++ b/drivers/soc/ti/keystone_serdes.c
@@ -11,6 +11,7 @@ 
 #include <stdio.h>
 #include <asm/ti-common/keystone_serdes.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define SERDES_CMU_REGS(x)		(0x0000 + (0x0c00 * (x)))
 #define SERDES_LANE_REGS(x)		(0x0200 + (0x200 * (x)))
diff --git a/drivers/sound/broadwell_i2s.c b/drivers/sound/broadwell_i2s.c
index adb0b2b104d..4258d607cb4 100644
--- a/drivers/sound/broadwell_i2s.c
+++ b/drivers/sound/broadwell_i2s.c
@@ -15,6 +15,7 @@ 
 #include <log.h>
 #include <time.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include "broadwell_i2s.h"
 
 enum {
diff --git a/drivers/sound/broadwell_sound.c b/drivers/sound/broadwell_sound.c
index 6e083fe1f69..ba2a68ce56a 100644
--- a/drivers/sound/broadwell_sound.c
+++ b/drivers/sound/broadwell_sound.c
@@ -13,6 +13,7 @@ 
 #include <dm.h>
 #include <i2s.h>
 #include <sound.h>
+#include <linux/errno.h>
 
 static int broadwell_sound_probe(struct udevice *dev)
 {
diff --git a/drivers/sound/codec-uclass.c b/drivers/sound/codec-uclass.c
index 1ec77acfc1c..207dc188c48 100644
--- a/drivers/sound/codec-uclass.c
+++ b/drivers/sound/codec-uclass.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <audio_codec.h>
+#include <linux/errno.h>
 
 int audio_codec_set_params(struct udevice *dev, int interface, int rate,
 			   int mclk_freq, int bits_per_sample, uint channels)
diff --git a/drivers/sound/da7219.c b/drivers/sound/da7219.c
index 6bc1ad0036e..41aa338b55f 100644
--- a/drivers/sound/da7219.c
+++ b/drivers/sound/da7219.c
@@ -20,6 +20,7 @@ 
 #include <asm-generic/gpio.h>
 #include <dt-bindings/sound/nhlt.h>
 #include <dm/acpi.h>
+#include <linux/errno.h>
 
 #define DA7219_ACPI_HID		"DLGS7219"
 
diff --git a/drivers/sound/hda_codec.c b/drivers/sound/hda_codec.c
index 93820d77802..241b6270c4d 100644
--- a/drivers/sound/hda_codec.c
+++ b/drivers/sound/hda_codec.c
@@ -18,6 +18,7 @@ 
 #include <dt-bindings/sound/azalia.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 /**
  * struct hda_regs - HDA registers
diff --git a/drivers/sound/i2s-uclass.c b/drivers/sound/i2s-uclass.c
index b741e3952d1..e31d9933fff 100644
--- a/drivers/sound/i2s-uclass.c
+++ b/drivers/sound/i2s-uclass.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <i2s.h>
+#include <linux/errno.h>
 
 int i2s_tx_data(struct udevice *dev, void *data, uint data_size)
 {
diff --git a/drivers/sound/max98088.c b/drivers/sound/max98088.c
index 5b4c489f4b1..6c2caf3f77f 100644
--- a/drivers/sound/max98088.c
+++ b/drivers/sound/max98088.c
@@ -17,6 +17,7 @@ 
 #include <log.h>
 #include <sound.h>
 #include <asm/gpio.h>
+#include <linux/errno.h>
 #include "maxim_codec.h"
 #include "max98088.h"
 
diff --git a/drivers/sound/max98090.c b/drivers/sound/max98090.c
index d23955d6e10..16620c3e967 100644
--- a/drivers/sound/max98090.c
+++ b/drivers/sound/max98090.c
@@ -15,6 +15,7 @@ 
 #include <sound.h>
 #include <asm/gpio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include "maxim_codec.h"
 #include "max98090.h"
 
diff --git a/drivers/sound/max98095.c b/drivers/sound/max98095.c
index 5037f9516fa..db52ccdea3b 100644
--- a/drivers/sound/max98095.c
+++ b/drivers/sound/max98095.c
@@ -16,6 +16,7 @@ 
 #include <log.h>
 #include <sound.h>
 #include <asm/gpio.h>
+#include <linux/errno.h>
 #include "i2s.h"
 #include "max98095.h"
 
diff --git a/drivers/sound/max98357a.c b/drivers/sound/max98357a.c
index 841bc6ef682..8fbcf80abcb 100644
--- a/drivers/sound/max98357a.c
+++ b/drivers/sound/max98357a.c
@@ -20,6 +20,7 @@ 
 #endif
 #include <dt-bindings/sound/nhlt.h>
 #include <dm/acpi.h>
+#include <linux/errno.h>
 
 struct max98357a_priv {
 	struct gpio_desc sdmode_gpio;
diff --git a/drivers/sound/rockchip_i2s.c b/drivers/sound/rockchip_i2s.c
index 4e9e68aaac8..a20c8e78b88 100644
--- a/drivers/sound/rockchip_i2s.c
+++ b/drivers/sound/rockchip_i2s.c
@@ -14,6 +14,7 @@ 
 #include <sound.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 struct rk_i2s_regs {
 	u32 txcr;		/* I2S_TXCR, 0x00 */
diff --git a/drivers/sound/rockchip_sound.c b/drivers/sound/rockchip_sound.c
index 94058e603d7..ec93a44aec7 100644
--- a/drivers/sound/rockchip_sound.c
+++ b/drivers/sound/rockchip_sound.c
@@ -16,6 +16,7 @@ 
 #include <sound.h>
 #include <asm/arch-rockchip/periph.h>
 #include <dm/pinctrl.h>
+#include <linux/errno.h>
 
 static int rockchip_sound_setup(struct udevice *dev)
 {
diff --git a/drivers/sound/rt5677.c b/drivers/sound/rt5677.c
index 16aa9dfc5b2..bfe78ff6b4f 100644
--- a/drivers/sound/rt5677.c
+++ b/drivers/sound/rt5677.c
@@ -9,6 +9,7 @@ 
 #include <audio_codec.h>
 #include <dm.h>
 #include <i2c.h>
+#include <linux/errno.h>
 #include "rt5677.h"
 #include <log.h>
 
diff --git a/drivers/sound/samsung-i2s.c b/drivers/sound/samsung-i2s.c
index 24e124e8083..51cb9637bab 100644
--- a/drivers/sound/samsung-i2s.c
+++ b/drivers/sound/samsung-i2s.c
@@ -14,6 +14,7 @@ 
 #include <asm/arch/pinmux.h>
 #include <asm/arch/i2s-regs.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 
 #define FIC_TX2COUNT(x)		(((x) >>  24) & 0xf)
 #define FIC_TX1COUNT(x)		(((x) >>  16) & 0xf)
diff --git a/drivers/sound/samsung_sound.c b/drivers/sound/samsung_sound.c
index 473cedf7e97..16fdb22ea9e 100644
--- a/drivers/sound/samsung_sound.c
+++ b/drivers/sound/samsung_sound.c
@@ -12,6 +12,7 @@ 
 #include <sound.h>
 #include <asm/gpio.h>
 #include <asm/arch/power.h>
+#include <linux/errno.h>
 
 static int samsung_sound_setup(struct udevice *dev)
 {
diff --git a/drivers/sound/sandbox.c b/drivers/sound/sandbox.c
index 0686add3c8b..1c30f06350f 100644
--- a/drivers/sound/sandbox.c
+++ b/drivers/sound/sandbox.c
@@ -12,6 +12,7 @@ 
 #include <log.h>
 #include <sound.h>
 #include <asm/sdl.h>
+#include <linux/errno.h>
 
 struct sandbox_codec_priv {
 	int interface;
diff --git a/drivers/sound/sound-uclass.c b/drivers/sound/sound-uclass.c
index 92f4b0b924b..86722d23c5c 100644
--- a/drivers/sound/sound-uclass.c
+++ b/drivers/sound/sound-uclass.c
@@ -11,6 +11,7 @@ 
 #include <malloc.h>
 #include <sound.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #define SOUND_BITS_IN_BYTE 8
 
diff --git a/drivers/sound/tegra_ahub.c b/drivers/sound/tegra_ahub.c
index 2fead1aeffd..cb27be0a7cb 100644
--- a/drivers/sound/tegra_ahub.c
+++ b/drivers/sound/tegra_ahub.c
@@ -16,6 +16,7 @@ 
 #include <asm/io.h>
 #include <asm/arch-tegra/tegra_ahub.h>
 #include <asm/arch-tegra/tegra_i2s.h>
+#include <linux/errno.h>
 #include "tegra_i2s_priv.h"
 
 struct tegra_ahub_priv {
diff --git a/drivers/sound/tegra_i2s.c b/drivers/sound/tegra_i2s.c
index 5cf82250da2..7749cd47b70 100644
--- a/drivers/sound/tegra_i2s.c
+++ b/drivers/sound/tegra_i2s.c
@@ -14,6 +14,7 @@ 
 #include <sound.h>
 #include <asm/io.h>
 #include <asm/arch-tegra/tegra_i2s.h>
+#include <linux/errno.h>
 #include "tegra_i2s_priv.h"
 
 int tegra_i2s_set_cif_tx_ctrl(struct udevice *dev, u32 value)
diff --git a/drivers/sound/tegra_sound.c b/drivers/sound/tegra_sound.c
index aef6a2eb147..d76448c7e4d 100644
--- a/drivers/sound/tegra_sound.c
+++ b/drivers/sound/tegra_sound.c
@@ -14,6 +14,7 @@ 
 #include <misc.h>
 #include <sound.h>
 #include <asm/gpio.h>
+#include <linux/errno.h>
 #include "tegra_i2s_priv.h"
 
 static int tegra_sound_setup(struct udevice *dev)
diff --git a/drivers/sound/wm8994.c b/drivers/sound/wm8994.c
index 367e1445417..c37c787549d 100644
--- a/drivers/sound/wm8994.c
+++ b/drivers/sound/wm8994.c
@@ -17,6 +17,7 @@ 
 #include <asm/arch/clk.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/sound.h>
+#include <linux/errno.h>
 #include "wm8994.h"
 #include "wm8994_registers.h"
 
diff --git a/drivers/spi/atcspi200_spi.c b/drivers/spi/atcspi200_spi.c
index 79bcd12367b..aed5f64eabb 100644
--- a/drivers/spi/atcspi200_spi.c
+++ b/drivers/spi/atcspi200_spi.c
@@ -15,6 +15,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c
index 7dbbe1f43cf..f270eea61e8 100644
--- a/drivers/spi/atmel-quadspi.c
+++ b/drivers/spi/atmel-quadspi.c
@@ -20,6 +20,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
 #include <linux/ioport.h>
diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c
index 33bf382998e..1a95cfb9f65 100644
--- a/drivers/spi/atmel_spi.c
+++ b/drivers/spi/atmel_spi.c
@@ -17,6 +17,7 @@ 
 #include <asm/gpio.h>
 #endif
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 /*
diff --git a/drivers/spi/bcm63xx_hsspi.c b/drivers/spi/bcm63xx_hsspi.c
index f5914380248..f45214fbda4 100644
--- a/drivers/spi/bcm63xx_hsspi.c
+++ b/drivers/spi/bcm63xx_hsspi.c
@@ -18,6 +18,7 @@ 
 #include <wait_bit.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define HSSPI_PP			0
 
diff --git a/drivers/spi/bcm63xx_spi.c b/drivers/spi/bcm63xx_spi.c
index a5550a214e8..ac79961a14e 100644
--- a/drivers/spi/bcm63xx_spi.c
+++ b/drivers/spi/bcm63xx_spi.c
@@ -17,6 +17,7 @@ 
 #include <stdio.h>
 #include <wait_bit.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 
 /* BCM6348 SPI core */
 #define SPI_6348_CLK			0x06
diff --git a/drivers/spi/bcmstb_spi.c b/drivers/spi/bcmstb_spi.c
index 5879a7883b1..539abcfd953 100644
--- a/drivers/spi/bcmstb_spi.c
+++ b/drivers/spi/bcmstb_spi.c
@@ -19,6 +19,7 @@ 
 #include <malloc.h>
 #include <spi.h>
 #include <time.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/spi/cf_spi.c b/drivers/spi/cf_spi.c
index a6a5c7f17c9..0a211b37707 100644
--- a/drivers/spi/cf_spi.c
+++ b/drivers/spi/cf_spi.c
@@ -23,6 +23,7 @@ 
 #include <malloc.h>
 #include <asm/coldfire/dspi.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 struct coldfire_spi_priv {
diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c
index 3d1c0b58070..7058ba9acf5 100644
--- a/drivers/spi/davinci_spi.c
+++ b/drivers/spi/davinci_spi.c
@@ -20,6 +20,7 @@ 
 #include <dm/platform_data/spi_davinci.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 /* SPIGCR0 */
 #define SPIGCR0_SPIENA_MASK	0x1
diff --git a/drivers/spi/designware_spi.c b/drivers/spi/designware_spi.c
index 3838504455a..f6c63435147 100644
--- a/drivers/spi/designware_spi.c
+++ b/drivers/spi/designware_spi.c
@@ -23,6 +23,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/compat.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <asm/io.h>
 
diff --git a/drivers/spi/exynos_spi.c b/drivers/spi/exynos_spi.c
index 03c03ab4874..cec59208395 100644
--- a/drivers/spi/exynos_spi.c
+++ b/drivers/spi/exynos_spi.c
@@ -21,6 +21,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/spi/fsl_dspi.c b/drivers/spi/fsl_dspi.c
index eae6b379a9c..190b60b3c4f 100644
--- a/drivers/spi/fsl_dspi.c
+++ b/drivers/spi/fsl_dspi.c
@@ -10,6 +10,7 @@ 
  */
 
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/math64.h>
 #include <common.h>
 #include <dm.h>
diff --git a/drivers/spi/fsl_espi.c b/drivers/spi/fsl_espi.c
index cf79947cb44..fb82228c92b 100644
--- a/drivers/spi/fsl_espi.c
+++ b/drivers/spi/fsl_espi.c
@@ -14,6 +14,7 @@ 
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <malloc.h>
diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c
index 2923fb5fb3d..195808c4066 100644
--- a/drivers/spi/fsl_qspi.c
+++ b/drivers/spi/fsl_qspi.c
@@ -29,6 +29,7 @@ 
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/sizes.h>
 #include <linux/iopoll.h>
diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c
index 308ace8a580..51d283c5e6f 100644
--- a/drivers/spi/ich.c
+++ b/drivers/spi/ich.c
@@ -29,6 +29,7 @@ 
 #include <asm/mtrr.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <linux/string.h>
 
diff --git a/drivers/spi/meson_spifc.c b/drivers/spi/meson_spifc.c
index 5bc99370a10..08b3859678f 100644
--- a/drivers/spi/meson_spifc.c
+++ b/drivers/spi/meson_spifc.c
@@ -17,6 +17,7 @@ 
 #include <asm/io.h>
 #include <linux/bitfield.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /* register map */
diff --git a/drivers/spi/mpc8xx_spi.c b/drivers/spi/mpc8xx_spi.c
index 2b08756497a..df1489a1e02 100644
--- a/drivers/spi/mpc8xx_spi.c
+++ b/drivers/spi/mpc8xx_spi.c
@@ -22,6 +22,7 @@ 
 #include <spi.h>
 #include <stdio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #include <asm/cpm_8xx.h>
 #include <asm/io.h>
diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c
index b7fd47984de..eedb29216cb 100644
--- a/drivers/spi/mpc8xxx_spi.c
+++ b/drivers/spi/mpc8xxx_spi.c
@@ -18,6 +18,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 enum {
 	SPI_EV_NE = BIT(31 - 22),	/* Receiver Not Empty */
diff --git a/drivers/spi/mt7621_spi.c b/drivers/spi/mt7621_spi.c
index 786afaaa9cd..581a9bd44c4 100644
--- a/drivers/spi/mt7621_spi.c
+++ b/drivers/spi/mt7621_spi.c
@@ -16,6 +16,7 @@ 
 #include <stdio.h>
 #include <wait_bit.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/printk.h>
 
diff --git a/drivers/spi/mtk_snfi_spi.c b/drivers/spi/mtk_snfi_spi.c
index bd9b79929a9..07a178a8785 100644
--- a/drivers/spi/mtk_snfi_spi.c
+++ b/drivers/spi/mtk_snfi_spi.c
@@ -16,6 +16,7 @@ 
 #include <watchdog.h>
 #include <dm/pinctrl.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
 #include <linux/string.h>
diff --git a/drivers/spi/nxp_fspi.c b/drivers/spi/nxp_fspi.c
index b4f928741f3..fc75913022b 100644
--- a/drivers/spi/nxp_fspi.c
+++ b/drivers/spi/nxp_fspi.c
@@ -41,6 +41,7 @@ 
 #include <dm.h>
 #include <clk.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/sizes.h>
 #include <linux/iopoll.h>
diff --git a/drivers/spi/pic32_spi.c b/drivers/spi/pic32_spi.c
index 4eb039f3579..222c30a1ebd 100644
--- a/drivers/spi/pic32_spi.c
+++ b/drivers/spi/pic32_spi.c
@@ -17,6 +17,7 @@ 
 #include <linux/compat.h>
 #include <malloc.h>
 #include <spi.h>
+#include <linux/errno.h>
 
 #include <asm/types.h>
 #include <asm/io.h>
diff --git a/drivers/spi/pl022_spi.c b/drivers/spi/pl022_spi.c
index 7cf19a1a661..236de5b54a3 100644
--- a/drivers/spi/pl022_spi.c
+++ b/drivers/spi/pl022_spi.c
@@ -14,6 +14,7 @@ 
 #include <dm.h>
 #include <asm/global_data.h>
 #include <dm/platform_data/spi_pl022.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <spi.h>
 #include <linux/printk.h>
diff --git a/drivers/spi/soft_spi.c b/drivers/spi/soft_spi.c
index 87e1e2417ce..9818ecb4c18 100644
--- a/drivers/spi/soft_spi.c
+++ b/drivers/spi/soft_spi.c
@@ -20,6 +20,7 @@ 
 #include <asm/gpio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/spi/spi-mem-nodm.c b/drivers/spi/spi-mem-nodm.c
index 841eefc12ce..42a6126dd7b 100644
--- a/drivers/spi/spi-mem-nodm.c
+++ b/drivers/spi/spi-mem-nodm.c
@@ -7,6 +7,7 @@ 
 #include <malloc.h>
 #include <spi.h>
 #include <spi-mem.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 int spi_mem_exec_op(struct spi_slave *slave,
diff --git a/drivers/spi/spi-mem.c b/drivers/spi/spi-mem.c
index 13027613dda..5580b34f34f 100644
--- a/drivers/spi/spi-mem.c
+++ b/drivers/spi/spi-mem.c
@@ -16,6 +16,7 @@ 
 #include <dm/device_compat.h>
 #include <spi.h>
 #include <spi-mem.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #endif
 
diff --git a/drivers/spi/spi-sifive.c b/drivers/spi/spi-sifive.c
index 026ef439ef9..bfc02ec1dc3 100644
--- a/drivers/spi/spi-sifive.c
+++ b/drivers/spi/spi-sifive.c
@@ -15,6 +15,7 @@ 
 #include <wait_bit.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/log2.h>
 #include <clk.h>
 #include <linux/string.h>
diff --git a/drivers/spi/spi-sunxi.c b/drivers/spi/spi-sunxi.c
index 3b1e9fc2284..c19a24a1c64 100644
--- a/drivers/spi/spi-sunxi.c
+++ b/drivers/spi/spi-sunxi.c
@@ -31,6 +31,7 @@ 
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include <asm/bitops.h>
 #include <asm/gpio.h>
diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c
index 56869c125af..c59ae3ff9b3 100644
--- a/drivers/spi/spi-uclass.c
+++ b/drivers/spi/spi-uclass.c
@@ -15,6 +15,7 @@ 
 #include <dm/uclass-internal.h>
 #include <dm/lists.h>
 #include <dm/util.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/spi/stm32_qspi.c b/drivers/spi/stm32_qspi.c
index 9f6ea01f99f..34bfd99bead 100644
--- a/drivers/spi/stm32_qspi.c
+++ b/drivers/spi/stm32_qspi.c
@@ -15,6 +15,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <linux/ioport.h>
 #include <linux/printk.h>
diff --git a/drivers/spi/stm32_spi.c b/drivers/spi/stm32_spi.c
index 09711b0aabc..d37404f0c8c 100644
--- a/drivers/spi/stm32_spi.c
+++ b/drivers/spi/stm32_spi.c
@@ -15,6 +15,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #include <asm/io.h>
diff --git a/drivers/spi/tegra20_sflash.c b/drivers/spi/tegra20_sflash.c
index 7b81e785215..7be4efd35c6 100644
--- a/drivers/spi/tegra20_sflash.c
+++ b/drivers/spi/tegra20_sflash.c
@@ -21,6 +21,7 @@ 
 #include <fdtdec.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include "tegra_spi.h"
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c
index ba97f3ece77..9fecdb20f73 100644
--- a/drivers/spi/ti_qspi.c
+++ b/drivers/spi/ti_qspi.c
@@ -23,6 +23,7 @@ 
 #include <asm/ti-common/ti-edma3.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <regmap.h>
 #include <syscon.h>
diff --git a/drivers/spi/uniphier_spi.c b/drivers/spi/uniphier_spi.c
index 21fa7a77efb..742554a09ab 100644
--- a/drivers/spi/uniphier_spi.c
+++ b/drivers/spi/uniphier_spi.c
@@ -14,6 +14,7 @@ 
 #include <linux/bitfield.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <spi.h>
 #include <wait_bit.h>
diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c
index a1022ad496e..a95558139d8 100644
--- a/drivers/spi/zynq_qspi.c
+++ b/drivers/spi/zynq_qspi.c
@@ -16,6 +16,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c
index 01186f3c039..1386dc86ed6 100644
--- a/drivers/spi/zynqmp_gqspi.c
+++ b/drivers/spi/zynqmp_gqspi.c
@@ -23,6 +23,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define GQSPI_GFIFO_STRT_MODE_MASK	BIT(29)
diff --git a/drivers/spmi/spmi-msm.c b/drivers/spmi/spmi-msm.c
index 1f9b3c31008..d06fc34c697 100644
--- a/drivers/spmi/spmi-msm.c
+++ b/drivers/spmi/spmi-msm.c
@@ -15,6 +15,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 #include <spmi/spmi.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/spmi/spmi-sandbox.c b/drivers/spmi/spmi-sandbox.c
index 0da419c5052..f1e0d691503 100644
--- a/drivers/spmi/spmi-sandbox.c
+++ b/drivers/spmi/spmi-sandbox.c
@@ -10,6 +10,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <linux/errno.h>
 #include <spmi/spmi.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
diff --git a/drivers/spmi/spmi-uclass.c b/drivers/spmi/spmi-uclass.c
index ff098731bb2..fc8252fbc91 100644
--- a/drivers/spmi/spmi-uclass.c
+++ b/drivers/spmi/spmi-uclass.c
@@ -8,6 +8,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <linux/errno.h>
 #include <spmi/spmi.h>
 #include <linux/ctype.h>
 
diff --git a/drivers/sysreset/sysreset-ti-sci.c b/drivers/sysreset/sysreset-ti-sci.c
index 3877b9bc125..09ebd161fcb 100644
--- a/drivers/sysreset/sysreset-ti-sci.c
+++ b/drivers/sysreset/sysreset-ti-sci.c
@@ -13,6 +13,7 @@ 
 #include <sysreset.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 
 /**
diff --git a/drivers/sysreset/sysreset-uclass.c b/drivers/sysreset/sysreset-uclass.c
index 717e2fc9453..015b938b1b7 100644
--- a/drivers/sysreset/sysreset-uclass.c
+++ b/drivers/sysreset/sysreset-uclass.c
@@ -22,6 +22,7 @@ 
 #include <dm/root.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 int sysreset_request(struct udevice *dev, enum sysreset_t type)
 {
diff --git a/drivers/sysreset/sysreset_ast.c b/drivers/sysreset/sysreset_ast.c
index ee941c77706..f93eea629df 100644
--- a/drivers/sysreset/sysreset_ast.c
+++ b/drivers/sysreset/sysreset_ast.c
@@ -12,6 +12,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/wdt.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 static int ast_sysreset_request(struct udevice *dev, enum sysreset_t type)
 {
diff --git a/drivers/sysreset/sysreset_microblaze.c b/drivers/sysreset/sysreset_microblaze.c
index b45e894440d..1bb24914e77 100644
--- a/drivers/sysreset/sysreset_microblaze.c
+++ b/drivers/sysreset/sysreset_microblaze.c
@@ -9,6 +9,7 @@ 
 #include <stdio.h>
 #include <sysreset.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 static int microblaze_sysreset_request(struct udevice *dev,
 				       enum sysreset_t type)
diff --git a/drivers/sysreset/sysreset_mpc83xx.c b/drivers/sysreset/sysreset_mpc83xx.c
index 39274d0b69f..f2b2fc89c61 100644
--- a/drivers/sysreset/sysreset_mpc83xx.c
+++ b/drivers/sysreset/sysreset_mpc83xx.c
@@ -14,6 +14,7 @@ 
 #include <wait_bit.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #include "sysreset_mpc83xx.h"
 
diff --git a/drivers/sysreset/sysreset_octeon.c b/drivers/sysreset/sysreset_octeon.c
index a05dac3226e..963ec20dc0b 100644
--- a/drivers/sysreset/sysreset_octeon.c
+++ b/drivers/sysreset/sysreset_octeon.c
@@ -8,6 +8,7 @@ 
 #include <errno.h>
 #include <sysreset.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 
 #define RST_SOFT_RST		0x0080
 
diff --git a/drivers/sysreset/sysreset_rockchip.c b/drivers/sysreset/sysreset_rockchip.c
index 0fc6b683f2b..a5e0f47c7d8 100644
--- a/drivers/sysreset/sysreset_rockchip.c
+++ b/drivers/sysreset/sysreset_rockchip.c
@@ -12,6 +12,7 @@ 
 #include <asm/arch-rockchip/cru_rk3328.h>
 #include <asm/arch-rockchip/hardware.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 int rockchip_sysreset_request(struct udevice *dev, enum sysreset_t type)
 {
diff --git a/drivers/sysreset/sysreset_sandbox.c b/drivers/sysreset/sysreset_sandbox.c
index 5d14a01ca74..ed37420f60e 100644
--- a/drivers/sysreset/sysreset_sandbox.c
+++ b/drivers/sysreset/sysreset_sandbox.c
@@ -11,6 +11,7 @@ 
 #include <asm/state.h>
 #include <asm/test.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static int sandbox_warm_sysreset_request(struct udevice *dev,
diff --git a/drivers/sysreset/sysreset_socfpga.c b/drivers/sysreset/sysreset_socfpga.c
index 178bcb227ff..c348649cedf 100644
--- a/drivers/sysreset/sysreset_socfpga.c
+++ b/drivers/sysreset/sysreset_socfpga.c
@@ -11,6 +11,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/reset_manager.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 struct socfpga_sysreset_data {
 	void __iomem *rstmgr_base;
diff --git a/drivers/sysreset/sysreset_socfpga_s10.c b/drivers/sysreset/sysreset_socfpga_s10.c
index b109320eedd..7c6e5391b50 100644
--- a/drivers/sysreset/sysreset_socfpga_s10.c
+++ b/drivers/sysreset/sysreset_socfpga_s10.c
@@ -10,6 +10,7 @@ 
 #include <stdio.h>
 #include <sysreset.h>
 #include <asm/arch/mailbox_s10.h>
+#include <linux/errno.h>
 
 static int socfpga_sysreset_request(struct udevice *dev,
 				    enum sysreset_t type)
diff --git a/drivers/sysreset/sysreset_sti.c b/drivers/sysreset/sysreset_sti.c
index c1b22873ff4..26431ee129b 100644
--- a/drivers/sysreset/sysreset_sti.c
+++ b/drivers/sysreset/sysreset_sti.c
@@ -12,6 +12,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/sysreset/sysreset_syscon.c b/drivers/sysreset/sysreset_syscon.c
index 0dfa91fc90e..e6e98b383ee 100644
--- a/drivers/sysreset/sysreset_syscon.c
+++ b/drivers/sysreset/sysreset_syscon.c
@@ -14,6 +14,7 @@ 
 #include <sysreset.h>
 #include <syscon.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 struct syscon_reboot_priv {
diff --git a/drivers/sysreset/sysreset_watchdog.c b/drivers/sysreset/sysreset_watchdog.c
index 3493c5e8e45..4fd234a62ec 100644
--- a/drivers/sysreset/sysreset_watchdog.c
+++ b/drivers/sysreset/sysreset_watchdog.c
@@ -8,6 +8,7 @@ 
 #include <errno.h>
 #include <sysreset.h>
 #include <wdt.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 struct wdt_reboot_priv {
diff --git a/drivers/sysreset/sysreset_x86.c b/drivers/sysreset/sysreset_x86.c
index bc911435602..0ab2b543abd 100644
--- a/drivers/sysreset/sysreset_x86.c
+++ b/drivers/sysreset/sysreset_x86.c
@@ -13,6 +13,7 @@ 
 #include <acpi/acpi_s3.h>
 #include <asm/io.h>
 #include <asm/processor.h>
+#include <linux/errno.h>
 
 struct x86_sysreset_platdata {
 	struct udevice *pch;
diff --git a/drivers/sysreset/sysreset_xtfpga.c b/drivers/sysreset/sysreset_xtfpga.c
index ad1781e6c0f..ce30114a17a 100644
--- a/drivers/sysreset/sysreset_xtfpga.c
+++ b/drivers/sysreset/sysreset_xtfpga.c
@@ -10,6 +10,7 @@ 
 #include <errno.h>
 #include <sysreset.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 
 static int xtfpga_reset_request(struct udevice *dev, enum sysreset_t type)
 {
diff --git a/drivers/tee/broadcom/chimp_optee.c b/drivers/tee/broadcom/chimp_optee.c
index 91ebc17c036..a92fd9c9562 100644
--- a/drivers/tee/broadcom/chimp_optee.c
+++ b/drivers/tee/broadcom/chimp_optee.c
@@ -7,6 +7,7 @@ 
 #include <string.h>
 #include <tee.h>
 #include <broadcom/chimp.h>
+#include <linux/errno.h>
 
 #ifdef CONFIG_CHIMP_OPTEE
 
diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c
index 0fc7a0ec7f1..c1460999cbe 100644
--- a/drivers/tee/optee/core.c
+++ b/drivers/tee/optee/core.c
@@ -10,6 +10,7 @@ 
 #include <tee.h>
 #include <linux/arm-smccc.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/string.h>
 
diff --git a/drivers/tee/optee/supplicant.c b/drivers/tee/optee/supplicant.c
index ae042b9a204..fe99a328adb 100644
--- a/drivers/tee/optee/supplicant.c
+++ b/drivers/tee/optee/supplicant.c
@@ -7,6 +7,7 @@ 
 #include <log.h>
 #include <malloc.h>
 #include <tee.h>
+#include <linux/errno.h>
 #include <linux/types.h>
 
 #include "optee_msg.h"
diff --git a/drivers/tee/sandbox.c b/drivers/tee/sandbox.c
index 00e6f91df98..14df3ce0130 100644
--- a/drivers/tee/sandbox.c
+++ b/drivers/tee/sandbox.c
@@ -7,6 +7,7 @@ 
 #include <sandboxtee.h>
 #include <stdio.h>
 #include <tee.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <tee/optee_ta_avb.h>
 
diff --git a/drivers/tee/tee-uclass.c b/drivers/tee/tee-uclass.c
index 76de11c3fb8..f42cc1becb8 100644
--- a/drivers/tee/tee-uclass.c
+++ b/drivers/tee/tee-uclass.c
@@ -10,6 +10,7 @@ 
 #include <tee.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /**
diff --git a/drivers/thermal/imx_scu_thermal.c b/drivers/thermal/imx_scu_thermal.c
index 9b2f74636a5..17c92ae0635 100644
--- a/drivers/thermal/imx_scu_thermal.c
+++ b/drivers/thermal/imx_scu_thermal.c
@@ -15,6 +15,7 @@ 
 #include <dm/device.h>
 #include <asm/arch/sci/sci.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
 
diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c
index 82e8f8e6512..812c2ec07c3 100644
--- a/drivers/thermal/imx_thermal.c
+++ b/drivers/thermal/imx_thermal.c
@@ -18,6 +18,7 @@ 
 #include <errno.h>
 #include <malloc.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/math64.h>
 #include <thermal.h>
 #include <imx_thermal.h>
diff --git a/drivers/thermal/imx_tmu.c b/drivers/thermal/imx_tmu.c
index 6ec16a35f27..279ea5a322e 100644
--- a/drivers/thermal/imx_tmu.c
+++ b/drivers/thermal/imx_tmu.c
@@ -18,6 +18,7 @@ 
 #include <fuse.h>
 #include <malloc.h>
 #include <thermal.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/thermal/thermal-uclass.c b/drivers/thermal/thermal-uclass.c
index a4ea1e29145..92dc311168b 100644
--- a/drivers/thermal/thermal-uclass.c
+++ b/drivers/thermal/thermal-uclass.c
@@ -10,6 +10,7 @@ 
 #include <fdtdec.h>
 #include <malloc.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/list.h>
 
 
diff --git a/drivers/timer/arc_timer.c b/drivers/timer/arc_timer.c
index c6771d15966..592b196cbbc 100644
--- a/drivers/timer/arc_timer.c
+++ b/drivers/timer/arc_timer.c
@@ -10,6 +10,7 @@ 
 #include <asm/arcregs.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/timer/atmel_pit_timer.c b/drivers/timer/atmel_pit_timer.c
index 70511697fef..07459d9c26b 100644
--- a/drivers/timer/atmel_pit_timer.c
+++ b/drivers/timer/atmel_pit_timer.c
@@ -10,6 +10,7 @@ 
 #include <timer.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define AT91_PIT_VALUE		0xfffff
 #define AT91_PIT_PITEN		BIT(24)		/* Timer Enabled */
diff --git a/drivers/timer/mpc83xx_timer.c b/drivers/timer/mpc83xx_timer.c
index becaadee7d6..700b4097373 100644
--- a/drivers/timer/mpc83xx_timer.c
+++ b/drivers/timer/mpc83xx_timer.c
@@ -18,6 +18,7 @@ 
 #include <asm/ptrace.h>
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/timer/mtk_timer.c b/drivers/timer/mtk_timer.c
index 69ed521811d..7aec7a7d59e 100644
--- a/drivers/timer/mtk_timer.c
+++ b/drivers/timer/mtk_timer.c
@@ -12,6 +12,7 @@ 
 #include <timer.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define MTK_GPT4_CTRL	0x40
 #define MTK_GPT4_CLK	0x44
diff --git a/drivers/timer/nomadik-mtu-timer.c b/drivers/timer/nomadik-mtu-timer.c
index 7ff921385a3..5d5eadc47d7 100644
--- a/drivers/timer/nomadik-mtu-timer.c
+++ b/drivers/timer/nomadik-mtu-timer.c
@@ -17,6 +17,7 @@ 
 #include <timer.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define MTU_NUM_TIMERS		4
 
diff --git a/drivers/timer/rockchip_timer.c b/drivers/timer/rockchip_timer.c
index 7e7612f154e..20dddd53e4f 100644
--- a/drivers/timer/rockchip_timer.c
+++ b/drivers/timer/rockchip_timer.c
@@ -15,6 +15,7 @@ 
 #include <dt-structs.h>
 #include <timer.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/timer/sti-timer.c b/drivers/timer/sti-timer.c
index ff42056abdd..2278b049354 100644
--- a/drivers/timer/sti-timer.c
+++ b/drivers/timer/sti-timer.c
@@ -9,6 +9,7 @@ 
 #include <clk.h>
 #include <timer.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 #include <asm/io.h>
 #include <asm/arch-armv7/globaltimer.h>
diff --git a/drivers/timer/stm32_timer.c b/drivers/timer/stm32_timer.c
index c57fa3f5570..96749c8a64f 100644
--- a/drivers/timer/stm32_timer.c
+++ b/drivers/timer/stm32_timer.c
@@ -11,6 +11,7 @@ 
 #include <timer.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include <asm/io.h>
 
diff --git a/drivers/timer/timer-uclass.c b/drivers/timer/timer-uclass.c
index d90755a7e74..01b3a42f3e0 100644
--- a/drivers/timer/timer-uclass.c
+++ b/drivers/timer/timer-uclass.c
@@ -14,6 +14,7 @@ 
 #include <errno.h>
 #include <timer.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/tpm/cr50_i2c.c b/drivers/tpm/cr50_i2c.c
index 24b1e244860..9ba0466f929 100644
--- a/drivers/tpm/cr50_i2c.c
+++ b/drivers/tpm/cr50_i2c.c
@@ -22,6 +22,7 @@ 
 #include <asm/arch/iomap.h>
 #include <asm/arch/pm.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 enum {
diff --git a/drivers/tpm/tpm-uclass.c b/drivers/tpm/tpm-uclass.c
index 61331726833..23400235a4c 100644
--- a/drivers/tpm/tpm-uclass.c
+++ b/drivers/tpm/tpm-uclass.c
@@ -9,6 +9,7 @@ 
 #include <log.h>
 #include <time.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <linux/unaligned/be_byteshift.h>
 #include <tpm-v1.h>
diff --git a/drivers/tpm/tpm2_ftpm_tee.c b/drivers/tpm/tpm2_ftpm_tee.c
index 885b3e2c148..249cf11beff 100644
--- a/drivers/tpm/tpm2_ftpm_tee.c
+++ b/drivers/tpm/tpm2_ftpm_tee.c
@@ -19,6 +19,7 @@ 
 #include <tpm-v2.h>
 #include <tee.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "tpm_tis.h"
diff --git a/drivers/tpm/tpm2_tis_sandbox.c b/drivers/tpm/tpm2_tis_sandbox.c
index 437f65cc395..6b61dbb88b5 100644
--- a/drivers/tpm/tpm2_tis_sandbox.c
+++ b/drivers/tpm/tpm2_tis_sandbox.c
@@ -12,6 +12,7 @@ 
 #include <asm/state.h>
 #include <asm/unaligned.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
 
diff --git a/drivers/tpm/tpm_tis_lpc.c b/drivers/tpm/tpm_tis_lpc.c
index 63b86b131bc..e6eec6bca9e 100644
--- a/drivers/tpm/tpm_tis_lpc.c
+++ b/drivers/tpm/tpm_tis_lpc.c
@@ -21,6 +21,7 @@ 
 #include <vsprintf.h>
 #include <asm/io.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define PREFIX "lpc_tpm: "
diff --git a/drivers/tpm/tpm_tis_sandbox.c b/drivers/tpm/tpm_tis_sandbox.c
index 4b1cf36d9b9..da31ec3ff56 100644
--- a/drivers/tpm/tpm_tis_sandbox.c
+++ b/drivers/tpm/tpm_tis_sandbox.c
@@ -11,6 +11,7 @@ 
 #include <vsprintf.h>
 #include <asm/state.h>
 #include <asm/unaligned.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
 
diff --git a/drivers/tpm/tpm_tis_st33zp24_i2c.c b/drivers/tpm/tpm_tis_st33zp24_i2c.c
index bd9c08e06cb..b5c706b7ccf 100644
--- a/drivers/tpm/tpm_tis_st33zp24_i2c.c
+++ b/drivers/tpm/tpm_tis_st33zp24_i2c.c
@@ -22,6 +22,7 @@ 
 #include <errno.h>
 #include <vsprintf.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <linux/types.h>
 #include <asm/unaligned.h>
diff --git a/drivers/tpm/tpm_tis_st33zp24_spi.c b/drivers/tpm/tpm_tis_st33zp24_spi.c
index 2b6b3714087..33f7392431f 100644
--- a/drivers/tpm/tpm_tis_st33zp24_spi.c
+++ b/drivers/tpm/tpm_tis_st33zp24_spi.c
@@ -22,6 +22,7 @@ 
 #include <errno.h>
 #include <vsprintf.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <linux/types.h>
 #include <asm/unaligned.h>
diff --git a/drivers/ufs/ufs.c b/drivers/ufs/ufs.c
index ee2f9dbf588..9f4b4555269 100644
--- a/drivers/ufs/ufs.c
+++ b/drivers/ufs/ufs.c
@@ -23,6 +23,7 @@ 
 #include <scsi.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <linux/dma-mapping.h>
diff --git a/drivers/usb/cdns3/cdns3-ti.c b/drivers/usb/cdns3/cdns3-ti.c
index cd7b2113ace..5130b4c70d2 100644
--- a/drivers/usb/cdns3/cdns3-ti.c
+++ b/drivers/usb/cdns3/cdns3-ti.c
@@ -11,6 +11,7 @@ 
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/usb/otg.h>
 #include <malloc.h>
diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c
index d5fb8a0edb3..135ca1b2af9 100644
--- a/drivers/usb/cdns3/core.c
+++ b/drivers/usb/cdns3/core.c
@@ -20,6 +20,7 @@ 
 #include <dm/devres.h>
 #include <dm/lists.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/io.h>
 #include <usb.h>
diff --git a/drivers/usb/cdns3/drd.c b/drivers/usb/cdns3/drd.c
index 47874fec29e..e84fb57b2e0 100644
--- a/drivers/usb/cdns3/drd.c
+++ b/drivers/usb/cdns3/drd.c
@@ -13,6 +13,7 @@ 
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <linux/kernel.h>
 #include <linux/usb/otg.h>
diff --git a/drivers/usb/cdns3/ep0.c b/drivers/usb/cdns3/ep0.c
index 4fbd450fed3..7be5c8de4e2 100644
--- a/drivers/usb/cdns3/ep0.c
+++ b/drivers/usb/cdns3/ep0.c
@@ -16,6 +16,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/usb/composite.h>
 #include <linux/iopoll.h>
 
diff --git a/drivers/usb/cdns3/gadget-export.h b/drivers/usb/cdns3/gadget-export.h
index 577469eee96..99066a2adb5 100644
--- a/drivers/usb/cdns3/gadget-export.h
+++ b/drivers/usb/cdns3/gadget-export.h
@@ -25,4 +25,5 @@  static inline void cdns3_gadget_exit(struct cdns3 *cdns) { }
 
 #endif
 
+#include <linux/errno.h>
 #endif /* __LINUX_CDNS3_GADGET_EXPORT */
diff --git a/drivers/usb/cdns3/gadget.c b/drivers/usb/cdns3/gadget.c
index 535935ac723..e42b82d0c2b 100644
--- a/drivers/usb/cdns3/gadget.c
+++ b/drivers/usb/cdns3/gadget.c
@@ -63,6 +63,7 @@ 
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <linux/usb/gadget.h>
diff --git a/drivers/usb/cdns3/host-export.h b/drivers/usb/cdns3/host-export.h
index b498a170b7e..299fe5749c9 100644
--- a/drivers/usb/cdns3/host-export.h
+++ b/drivers/usb/cdns3/host-export.h
@@ -25,4 +25,5 @@  static inline void cdns3_host_exit(struct cdns3 *cdns) { }
 
 #endif /* CONFIG_USB_CDNS3_HOST */
 
+#include <linux/errno.h>
 #endif /* __LINUX_CDNS3_HOST_EXPORT */
diff --git a/drivers/usb/cdns3/host.c b/drivers/usb/cdns3/host.c
index b44e7df1131..702fc86e92e 100644
--- a/drivers/usb/cdns3/host.c
+++ b/drivers/usb/cdns3/host.c
@@ -12,6 +12,7 @@ 
 #include <dm/devres.h>
 #include <linux/compat.h>
 #include <usb.h>
+#include <linux/errno.h>
 #include <usb/xhci.h>
 
 #include "core.h"
diff --git a/drivers/usb/common/fsl-dt-fixup.c b/drivers/usb/common/fsl-dt-fixup.c
index 5382447eb72..a279c28bdad 100644
--- a/drivers/usb/common/fsl-dt-fixup.c
+++ b/drivers/usb/common/fsl-dt-fixup.c
@@ -18,6 +18,7 @@ 
 #include <fsl_usb.h>
 #include <fdt_support.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #ifndef CONFIG_USB_MAX_CONTROLLER_COUNT
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 86825565895..f79f9c93166 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -23,6 +23,7 @@ 
 #include <linux/delay.h>
 #include <linux/dma-mapping.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/ioport.h>
 #include <dm.h>
 #include <generic-phy.h>
diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c
index c78ac00521d..54a9ffb9d68 100644
--- a/drivers/usb/dwc3/dwc3-generic.c
+++ b/drivers/usb/dwc3/dwc3-generic.c
@@ -17,6 +17,7 @@ 
 #include <dwc3-uboot.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
diff --git a/drivers/usb/dwc3/dwc3-meson-g12a.c b/drivers/usb/dwc3/dwc3-meson-g12a.c
index 6fdf686af8d..999cb11d594 100644
--- a/drivers/usb/dwc3/dwc3-meson-g12a.c
+++ b/drivers/usb/dwc3/dwc3-meson-g12a.c
@@ -15,6 +15,7 @@ 
 #include <dwc3-uboot.h>
 #include <generic-phy.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c
index 9596bf144c3..2d722376efb 100644
--- a/drivers/usb/dwc3/dwc3-omap.c
+++ b/drivers/usb/dwc3/dwc3-omap.c
@@ -20,6 +20,7 @@ 
 #include <dwc3-omap-uboot.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
+#include <linux/errno.h>
 #include <linux/usb/dwc3-omap.h>
 #include <linux/ioport.h>
 
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c
index f9420873bba..80de10ec125 100644
--- a/drivers/usb/dwc3/ep0.c
+++ b/drivers/usb/dwc3/ep0.c
@@ -16,6 +16,7 @@ 
 #include <cpu_func.h>
 #include <dm/device_compat.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/list.h>
 #include <linux/string.h>
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index c33e0894e10..fa338119de6 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -23,6 +23,7 @@ 
 #include <linux/bug.h>
 #include <linux/delay.h>
 #include <linux/dma-mapping.h>
+#include <linux/errno.h>
 #include <linux/list.h>
 #include <linux/printk.h>
 #include <linux/string.h>
diff --git a/drivers/usb/dwc3/ti_usb_phy.c b/drivers/usb/dwc3/ti_usb_phy.c
index f8ab06482c9..ea512ea8ffb 100644
--- a/drivers/usb/dwc3/ti_usb_phy.c
+++ b/drivers/usb/dwc3/ti_usb_phy.c
@@ -23,6 +23,7 @@ 
 #include <dm/devres.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/ioport.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
diff --git a/drivers/usb/emul/sandbox_flash.c b/drivers/usb/emul/sandbox_flash.c
index 883f6ae6d39..e63720f2550 100644
--- a/drivers/usb/emul/sandbox_flash.c
+++ b/drivers/usb/emul/sandbox_flash.c
@@ -10,6 +10,7 @@ 
 #include <os.h>
 #include <scsi.h>
 #include <usb.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /*
diff --git a/drivers/usb/emul/sandbox_hub.c b/drivers/usb/emul/sandbox_hub.c
index 21bf3bda48d..b2dc73e65f7 100644
--- a/drivers/usb/emul/sandbox_hub.c
+++ b/drivers/usb/emul/sandbox_hub.c
@@ -9,6 +9,7 @@ 
 #include <log.h>
 #include <usb.h>
 #include <dm/device-internal.h>
+#include <linux/errno.h>
 
 /* We only support up to 8 */
 #define SANDBOX_NUM_PORTS	4
diff --git a/drivers/usb/emul/sandbox_keyb.c b/drivers/usb/emul/sandbox_keyb.c
index 9f4b4089562..1c8de6d37fe 100644
--- a/drivers/usb/emul/sandbox_keyb.c
+++ b/drivers/usb/emul/sandbox_keyb.c
@@ -10,6 +10,7 @@ 
 #include <os.h>
 #include <scsi.h>
 #include <usb.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /*
diff --git a/drivers/usb/emul/usb-emul-uclass.c b/drivers/usb/emul/usb-emul-uclass.c
index 9807cbed165..6b309592f6b 100644
--- a/drivers/usb/emul/usb-emul-uclass.c
+++ b/drivers/usb/emul/usb-emul-uclass.c
@@ -9,6 +9,7 @@ 
 #include <log.h>
 #include <usb.h>
 #include <dm/device-internal.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static int copy_to_unicode(char *buff, int length, const char *str)
diff --git a/drivers/usb/eth/asix.c b/drivers/usb/eth/asix.c
index fe98a581d0d..de25ba12f61 100644
--- a/drivers/usb/eth/asix.c
+++ b/drivers/usb/eth/asix.c
@@ -16,6 +16,7 @@ 
 #include <vsprintf.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/mii.h>
 #include <linux/string.h>
 #include "usb_ether.h"
diff --git a/drivers/usb/eth/asix88179.c b/drivers/usb/eth/asix88179.c
index 8191b85eb4d..c1c873c2c2b 100644
--- a/drivers/usb/eth/asix88179.c
+++ b/drivers/usb/eth/asix88179.c
@@ -14,6 +14,7 @@ 
 #include <vsprintf.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/mii.h>
 #include <linux/string.h>
 #include "usb_ether.h"
diff --git a/drivers/usb/eth/lan78xx.c b/drivers/usb/eth/lan78xx.c
index 9a7a0d834a1..194753fb278 100644
--- a/drivers/usb/eth/lan78xx.c
+++ b/drivers/usb/eth/lan78xx.c
@@ -8,6 +8,7 @@ 
 #include <net.h>
 #include <usb.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "usb_ether.h"
 #include "lan7x.h"
diff --git a/drivers/usb/eth/lan7x.c b/drivers/usb/eth/lan7x.c
index b3bca81059c..c3c1ebb1cb6 100644
--- a/drivers/usb/eth/lan7x.c
+++ b/drivers/usb/eth/lan7x.c
@@ -12,6 +12,7 @@ 
 #include <stdio.h>
 #include <usb.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/ethtool.h>
 #include <linux/mii.h>
 #include <linux/string.h>
diff --git a/drivers/usb/eth/mcs7830.c b/drivers/usb/eth/mcs7830.c
index bbc03c7ea58..02a241414ff 100644
--- a/drivers/usb/eth/mcs7830.c
+++ b/drivers/usb/eth/mcs7830.c
@@ -17,6 +17,7 @@ 
 #include <vsprintf.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/mii.h>
 #include <malloc.h>
 #include <memalign.h>
diff --git a/drivers/usb/eth/r8152.c b/drivers/usb/eth/r8152.c
index 1f60fc499b9..da0b285077a 100644
--- a/drivers/usb/eth/r8152.c
+++ b/drivers/usb/eth/r8152.c
@@ -16,6 +16,7 @@ 
 #include <vsprintf.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/mii.h>
 #include <linux/bitops.h>
 #include <linux/string.h>
diff --git a/drivers/usb/eth/r8152_fw.c b/drivers/usb/eth/r8152_fw.c
index f953b0384b8..7e9b13de044 100644
--- a/drivers/usb/eth/r8152_fw.c
+++ b/drivers/usb/eth/r8152_fw.c
@@ -8,6 +8,7 @@ 
 #include <errno.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include "usb_ether.h"
 #include "r8152.h"
 
diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c
index d9085007441..435224c7197 100644
--- a/drivers/usb/eth/smsc95xx.c
+++ b/drivers/usb/eth/smsc95xx.c
@@ -20,6 +20,7 @@ 
 #include <asm/u-boot.h>
 #include <asm/unaligned.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/mii.h>
 #include <linux/string.h>
 #include "usb_ether.h"
diff --git a/drivers/usb/eth/usb_ether.c b/drivers/usb/eth/usb_ether.c
index 097425b7afa..54bb0118228 100644
--- a/drivers/usb/eth/usb_ether.c
+++ b/drivers/usb/eth/usb_ether.c
@@ -13,6 +13,7 @@ 
 #include <usb.h>
 #include <asm/cache.h>
 #include <dm/device-internal.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "usb_ether.h"
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
index f353f1a3cd2..d5b3d1d40e4 100644
--- a/drivers/usb/gadget/composite.c
+++ b/drivers/usb/gadget/composite.c
@@ -11,6 +11,7 @@ 
 #include <dm/devres.h>
 #include <linux/bitops.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <linux/usb/composite.h>
 
diff --git a/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c b/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c
index 84b46709a58..6b6fe0a5040 100644
--- a/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c
+++ b/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c
@@ -22,6 +22,7 @@ 
 #include <log.h>
 #include <stdio.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static u8 clear_feature_num;
diff --git a/drivers/usb/gadget/f_dfu.c b/drivers/usb/gadget/f_dfu.c
index 43a342c5afe..a1f13b6ec22 100644
--- a/drivers/usb/gadget/f_dfu.c
+++ b/drivers/usb/gadget/f_dfu.c
@@ -20,6 +20,7 @@ 
 #include <log.h>
 #include <malloc.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <linux/usb/ch9.h>
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index 14a710a5238..40648ef38bd 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -18,6 +18,7 @@ 
 #include <log.h>
 #include <malloc.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <linux/usb/ch9.h>
diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c
index 8723c656e0b..e0b898db214 100644
--- a/drivers/usb/gadget/f_mass_storage.c
+++ b/drivers/usb/gadget/f_mass_storage.c
@@ -250,6 +250,7 @@ 
 #include <vsprintf.h>
 #include <dm/devres.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <linux/err.h>
diff --git a/drivers/usb/gadget/f_rockusb.c b/drivers/usb/gadget/f_rockusb.c
index 1705b7a611a..a852707525a 100644
--- a/drivers/usb/gadget/f_rockusb.c
+++ b/drivers/usb/gadget/f_rockusb.c
@@ -14,6 +14,7 @@ 
 #include <memalign.h>
 #include <part.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
diff --git a/drivers/usb/gadget/f_sdp.c b/drivers/usb/gadget/f_sdp.c
index 34c393c9f04..fde5c2c690e 100644
--- a/drivers/usb/gadget/f_sdp.c
+++ b/drivers/usb/gadget/f_sdp.c
@@ -23,6 +23,7 @@ 
 #include <log.h>
 #include <malloc.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/usb/gadget/f_thor.c b/drivers/usb/gadget/f_thor.c
index 142bd99c698..4a70bdcc5c3 100644
--- a/drivers/usb/gadget/f_thor.c
+++ b/drivers/usb/gadget/f_thor.c
@@ -26,6 +26,7 @@ 
 #include <version.h>
 #include <vsprintf.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <linux/usb/ch9.h>
diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget/g_dnl.c
index cd4015f65a0..1a0160b5836 100644
--- a/drivers/usb/gadget/g_dnl.c
+++ b/drivers/usb/gadget/g_dnl.c
@@ -10,6 +10,7 @@ 
 #include <log.h>
 #include <malloc.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <mmc.h>
diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h
index 70067afa7d4..e43d96eab36 100644
--- a/drivers/usb/gadget/gadget_chips.h
+++ b/drivers/usb/gadget/gadget_chips.h
@@ -14,6 +14,7 @@ 
  * Ported to U-Boot by: Thomas Smits <ts.smits@gmail.com> and
  *                      Remy Bohmer <linux@bohmer.net>
  */
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #ifdef CONFIG_USB_GADGET_NET2280
diff --git a/drivers/usb/gadget/pxa25x_udc.c b/drivers/usb/gadget/pxa25x_udc.c
index 22db49164da..3e35e0fa45f 100644
--- a/drivers/usb/gadget/pxa25x_udc.c
+++ b/drivers/usb/gadget/pxa25x_udc.c
@@ -32,6 +32,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/pxa.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <linux/usb/ch9.h>
diff --git a/drivers/usb/gadget/udc/udc-core.c b/drivers/usb/gadget/udc/udc-core.c
index 13c42aabab3..74d66fd77b2 100644
--- a/drivers/usb/gadget/udc/udc-core.c
+++ b/drivers/usb/gadget/udc/udc-core.c
@@ -23,6 +23,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
+#include <linux/errno.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
 
diff --git a/drivers/usb/gadget/udc/udc-uclass.c b/drivers/usb/gadget/udc/udc-uclass.c
index 384aa47a98f..7fa4aae4d2b 100644
--- a/drivers/usb/gadget/udc/udc-uclass.c
+++ b/drivers/usb/gadget/udc/udc-uclass.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/usb/gadget.h>
 
diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c
index 62eab821bb6..b8c92f52b2f 100644
--- a/drivers/usb/host/dwc2.c
+++ b/drivers/usb/host/dwc2.c
@@ -23,6 +23,7 @@ 
 #include <asm/io.h>
 #include <dm/device_compat.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <power/regulator.h>
 #include <reset.h>
diff --git a/drivers/usb/host/dwc3-of-simple.c b/drivers/usb/host/dwc3-of-simple.c
index e4abc6f3b9b..afd304fba86 100644
--- a/drivers/usb/host/dwc3-of-simple.c
+++ b/drivers/usb/host/dwc3-of-simple.c
@@ -14,6 +14,7 @@ 
 #include <dm.h>
 #include <reset.h>
 #include <clk.h>
+#include <linux/errno.h>
 
 struct dwc3_of_simple {
 	struct clk_bulk		clks;
diff --git a/drivers/usb/host/dwc3-sti-glue.c b/drivers/usb/host/dwc3-sti-glue.c
index da232a6a829..779fd25880c 100644
--- a/drivers/usb/host/dwc3-sti-glue.c
+++ b/drivers/usb/host/dwc3-sti-glue.c
@@ -17,6 +17,7 @@ 
 #include <reset-uclass.h>
 #include <syscon.h>
 #include <usb.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 #include <linux/usb/dwc3.h>
diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c
index 3b208e8eb22..dc6eb5b9bb6 100644
--- a/drivers/usb/host/ehci-atmel.c
+++ b/drivers/usb/host/ehci-atmel.c
@@ -13,6 +13,7 @@ 
 #include <usb.h>
 #include <asm/io.h>
 #include <asm/arch/clk.h>
+#include <linux/errno.h>
 
 #include "ehci.h"
 
diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
index 35bd319de8a..b929eb9781b 100644
--- a/drivers/usb/host/ehci-fsl.c
+++ b/drivers/usb/host/ehci-fsl.c
@@ -17,6 +17,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <usb/ehci-ci.h>
 #include <hwconfig.h>
diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci-generic.c
index 304a3437d56..b9ad1785cea 100644
--- a/drivers/usb/host/ehci-generic.c
+++ b/drivers/usb/host/ehci-generic.c
@@ -13,6 +13,7 @@ 
 #include <reset.h>
 #include <asm/io.h>
 #include <dm.h>
+#include <linux/errno.h>
 #include "ehci.h"
 #include <power/regulator.h>
 
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index fe6459e4a31..4ef54a53d83 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -24,6 +24,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/compiler.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "ehci.h"
diff --git a/drivers/usb/host/ehci-marvell.c b/drivers/usb/host/ehci-marvell.c
index 440280f722e..f419a0ab24b 100644
--- a/drivers/usb/host/ehci-marvell.c
+++ b/drivers/usb/host/ehci-marvell.c
@@ -12,6 +12,7 @@ 
 #include <usb.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include "ehci.h"
 #include <linux/mbus.h>
 #include <asm/arch/cpu.h>
diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c
index 6492769b2a3..458472b7b2e 100644
--- a/drivers/usb/host/ehci-msm.c
+++ b/drivers/usb/host/ehci-msm.c
@@ -12,6 +12,7 @@ 
 #include <errno.h>
 #include <stdio.h>
 #include <usb.h>
+#include <linux/errno.h>
 #include <usb/ehci-ci.h>
 #include <usb/ulpi.h>
 #include <wait_bit.h>
diff --git a/drivers/usb/host/ehci-mx5.c b/drivers/usb/host/ehci-mx5.c
index 709cb1cff54..2b7c9cc80d7 100644
--- a/drivers/usb/host/ehci-mx5.c
+++ b/drivers/usb/host/ehci-mx5.c
@@ -12,6 +12,7 @@ 
 #include <asm/global_data.h>
 #include <linux/compiler.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <usb/ehci-ci.h>
 #include <asm/io.h>
diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c
index 51723fca051..7ca106520db 100644
--- a/drivers/usb/host/ehci-mx6.c
+++ b/drivers/usb/host/ehci-mx6.c
@@ -13,6 +13,7 @@ 
 #include <asm/global_data.h>
 #include <linux/compiler.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <usb/ehci-ci.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c
index d0b7ac512e8..0cbc8ee75e9 100644
--- a/drivers/usb/host/ehci-mxc.c
+++ b/drivers/usb/host/ehci-mxc.c
@@ -9,6 +9,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <usb/ehci-ci.h>
 #include <errno.h>
 
diff --git a/drivers/usb/host/ehci-mxs.c b/drivers/usb/host/ehci-mxs.c
index 05c0f4a196e..7698c7761fe 100644
--- a/drivers/usb/host/ehci-mxs.c
+++ b/drivers/usb/host/ehci-mxs.c
@@ -12,6 +12,7 @@ 
 #include <asm/arch/imx-regs.h>
 #include <errno.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #include "ehci.h"
 
diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c
index 45c3418e7f8..cc5c9406112 100644
--- a/drivers/usb/host/ehci-omap.c
+++ b/drivers/usb/host/ehci-omap.c
@@ -17,6 +17,7 @@ 
 #include <usb.h>
 #include <vsprintf.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <usb/ulpi.h>
 #include <errno.h>
diff --git a/drivers/usb/host/ehci-vf.c b/drivers/usb/host/ehci-vf.c
index 39d5b1dd9be..3f140521c9c 100644
--- a/drivers/usb/host/ehci-vf.c
+++ b/drivers/usb/host/ehci-vf.c
@@ -21,6 +21,7 @@ 
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/mach-imx/regs-usbphy.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <usb/ehci-ci.h>
 #include <linux/libfdt.h>
diff --git a/drivers/usb/host/ehci-zynq.c b/drivers/usb/host/ehci-zynq.c
index 6eef3814a14..918e224e761 100644
--- a/drivers/usb/host/ehci-zynq.c
+++ b/drivers/usb/host/ehci-zynq.c
@@ -12,6 +12,7 @@ 
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <usb/ehci-ci.h>
 #include <usb/ulpi.h>
 
diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c
index e9f87cfb7b0..f034d50a382 100644
--- a/drivers/usb/host/ohci-da8xx.c
+++ b/drivers/usb/host/ohci-da8xx.c
@@ -14,6 +14,7 @@ 
 #include <dm/ofnode.h>
 #include <generic-phy.h>
 #include <reset.h>
+#include <linux/errno.h>
 #include "ohci.h"
 #include <asm/arch/da8xx-usb.h>
 
diff --git a/drivers/usb/host/ohci-generic.c b/drivers/usb/host/ohci-generic.c
index b84bf8ac0f7..ae7066169d3 100644
--- a/drivers/usb/host/ohci-generic.c
+++ b/drivers/usb/host/ohci-generic.c
@@ -12,6 +12,7 @@ 
 #include <dm/ofnode.h>
 #include <generic-phy.h>
 #include <reset.h>
+#include <linux/errno.h>
 #include "ohci.h"
 
 #if !defined(CONFIG_USB_OHCI_NEW)
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index 598567d6047..3b204efdd69 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -35,6 +35,7 @@ 
 #include <errno.h>
 #include <asm/cache.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #if defined(CONFIG_PCI_OHCI)
diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c
index 7595813868c..f977b3336f0 100644
--- a/drivers/usb/host/r8a66597-hcd.c
+++ b/drivers/usb/host/r8a66597-hcd.c
@@ -14,6 +14,7 @@ 
 #include <asm/io.h>
 #include <dm/device_compat.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <linux/string.h>
 #include <power/regulator.h>
diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c
index a8f4c56b7e7..1104fb2d040 100644
--- a/drivers/usb/host/usb-uclass.c
+++ b/drivers/usb/host/usb-uclass.c
@@ -17,6 +17,7 @@ 
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 extern bool usb_started; /* flag for the started/stopped USB status */
diff --git a/drivers/usb/host/xhci-brcm.c b/drivers/usb/host/xhci-brcm.c
index ee65f51c5d2..3308b7e756a 100644
--- a/drivers/usb/host/xhci-brcm.c
+++ b/drivers/usb/host/xhci-brcm.c
@@ -8,6 +8,7 @@ 
 #include <fdtdec.h>
 #include <usb.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <usb/xhci.h>
 
 #define DRD2U3H_XHC_REGS_AXIWRA	0xC08
diff --git a/drivers/usb/host/xhci-dwc3.c b/drivers/usb/host/xhci-dwc3.c
index fdbf2c83b56..b96aea1e010 100644
--- a/drivers/usb/host/xhci-dwc3.c
+++ b/drivers/usb/host/xhci-dwc3.c
@@ -15,6 +15,7 @@ 
 #include <usb.h>
 #include <dwc3-uboot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <usb/xhci.h>
diff --git a/drivers/usb/host/xhci-mvebu.c b/drivers/usb/host/xhci-mvebu.c
index 32e00378ab7..bc3a9f4d018 100644
--- a/drivers/usb/host/xhci-mvebu.c
+++ b/drivers/usb/host/xhci-mvebu.c
@@ -11,6 +11,7 @@ 
 #include <log.h>
 #include <stdio.h>
 #include <usb.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 #include <asm/gpio.h>
 
diff --git a/drivers/usb/host/xhci-rcar.c b/drivers/usb/host/xhci-rcar.c
index 8fc51df3d11..28eea930cc2 100644
--- a/drivers/usb/host/xhci-rcar.c
+++ b/drivers/usb/host/xhci-rcar.c
@@ -15,6 +15,7 @@ 
 #include <wait_bit.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #include <usb/xhci.h>
 #include "xhci-rcar-r8a779x_usb3_v3.h"
diff --git a/drivers/usb/musb-new/am35x.c b/drivers/usb/musb-new/am35x.c
index 410cf042f66..8d8aa779467 100644
--- a/drivers/usb/musb-new/am35x.c
+++ b/drivers/usb/musb-new/am35x.c
@@ -29,6 +29,7 @@ 
 #include <asm/omap_musb.h>
 #include <linux/bug.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "linux-compat.h"
 #endif
diff --git a/drivers/usb/musb-new/da8xx.c b/drivers/usb/musb-new/da8xx.c
index e13a6810b8d..8c44ed2429f 100644
--- a/drivers/usb/musb-new/da8xx.c
+++ b/drivers/usb/musb-new/da8xx.c
@@ -23,6 +23,7 @@ 
 #include <asm/arch/hardware.h>
 #include <asm/arch/da8xx-usb.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/usb/otg.h>
 #include <asm/omap_musb.h>
 #include <generic-phy.h>
diff --git a/drivers/usb/musb-new/mt85xx.c b/drivers/usb/musb-new/mt85xx.c
index 78b4c93e860..c5b994d906b 100644
--- a/drivers/usb/musb-new/mt85xx.c
+++ b/drivers/usb/musb-new/mt85xx.c
@@ -16,6 +16,7 @@ 
 #include <dm/lists.h>
 #include <dm/root.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <linux/usb/musb.h>
diff --git a/drivers/usb/musb-new/musb_dsps.c b/drivers/usb/musb-new/musb_dsps.c
index f9d30b5b76d..14d8cfb70fc 100644
--- a/drivers/usb/musb-new/musb_dsps.c
+++ b/drivers/usb/musb-new/musb_dsps.c
@@ -35,6 +35,7 @@ 
 #include <time.h>
 #include <vsprintf.h>
 #include <asm/omap_musb.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include "linux-compat.h"
 #endif
diff --git a/drivers/usb/musb-new/musb_gadget.c b/drivers/usb/musb-new/musb_gadget.c
index ceac6a82b64..949bea72aae 100644
--- a/drivers/usb/musb-new/musb_gadget.c
+++ b/drivers/usb/musb-new/musb_gadget.c
@@ -25,6 +25,7 @@ 
 #include <common.h>
 #include <vsprintf.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <linux/usb/ch9.h>
diff --git a/drivers/usb/musb-new/musb_gadget_ep0.c b/drivers/usb/musb-new/musb_gadget_ep0.c
index 22de98559d9..769aa25f175 100644
--- a/drivers/usb/musb-new/musb_gadget_ep0.c
+++ b/drivers/usb/musb-new/musb_gadget_ep0.c
@@ -19,6 +19,7 @@ 
 #include <linux/interrupt.h>
 #else
 #include <common.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include "linux-compat.h"
 #include <asm/processor.h>
diff --git a/drivers/usb/musb-new/omap2430.c b/drivers/usb/musb-new/omap2430.c
index e8bc3f33597..b609034184f 100644
--- a/drivers/usb/musb-new/omap2430.c
+++ b/drivers/usb/musb-new/omap2430.c
@@ -18,6 +18,7 @@ 
 #include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/usb/otg.h>
 #include <asm/omap_common.h>
diff --git a/drivers/usb/musb-new/pic32.c b/drivers/usb/musb-new/pic32.c
index f1bd127b7d4..ca1c8d57867 100644
--- a/drivers/usb/musb-new/pic32.c
+++ b/drivers/usb/musb-new/pic32.c
@@ -15,6 +15,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <linux/usb/musb.h>
 #include "linux-compat.h"
diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c
index 20d968f8497..1ab74d4be39 100644
--- a/drivers/usb/musb-new/sunxi.c
+++ b/drivers/usb/musb-new/sunxi.c
@@ -33,6 +33,7 @@ 
 #include <dm/root.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <linux/usb/musb.h>
diff --git a/drivers/usb/musb-new/ti-musb.c b/drivers/usb/musb-new/ti-musb.c
index bbec8774310..e4382a30969 100644
--- a/drivers/usb/musb-new/ti-musb.c
+++ b/drivers/usb/musb-new/ti-musb.c
@@ -13,6 +13,7 @@ 
 #include <malloc.h>
 #include <vsprintf.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <linux/usb/otg.h>
diff --git a/drivers/video/am335x-fb.c b/drivers/video/am335x-fb.c
index 4e0d9c2b098..4d74e96e2a3 100644
--- a/drivers/video/am335x-fb.c
+++ b/drivers/video/am335x-fb.c
@@ -26,6 +26,7 @@ 
 #include <asm/utils.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include "am335x-fb.h"
diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c
index 13dc28412c7..bee082508b6 100644
--- a/drivers/video/atmel_hlcdfb.c
+++ b/drivers/video/atmel_hlcdfb.c
@@ -23,6 +23,7 @@ 
 #include <wait_bit.h>
 #include <atmel_hlcdc.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 
 #if defined(CONFIG_LCD_LOGO)
 #include <bmp_logo.h>
diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c
index e5e0aeec350..20b9ba661c2 100644
--- a/drivers/video/atmel_lcdfb.c
+++ b/drivers/video/atmel_lcdfb.c
@@ -20,6 +20,7 @@ 
 #include <bmp_layout.h>
 #include <atmel_lcdc.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/video/backlight-uclass.c b/drivers/video/backlight-uclass.c
index 0aadf8a1f97..60cc206c5fd 100644
--- a/drivers/video/backlight-uclass.c
+++ b/drivers/video/backlight-uclass.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <backlight.h>
+#include <linux/errno.h>
 
 int backlight_enable(struct udevice *dev)
 {
diff --git a/drivers/video/bcm2835.c b/drivers/video/bcm2835.c
index 0888cb00197..7d2a452fd6f 100644
--- a/drivers/video/bcm2835.c
+++ b/drivers/video/bcm2835.c
@@ -10,6 +10,7 @@ 
 #include <asm/arch/mbox.h>
 #include <asm/arch/msg.h>
 #include <asm/cache.h>
+#include <linux/errno.h>
 
 static int bcm2835_video_probe(struct udevice *dev)
 {
diff --git a/drivers/video/bridge/anx6345.c b/drivers/video/bridge/anx6345.c
index 5d76cedbcea..e7c33e6a18b 100644
--- a/drivers/video/bridge/anx6345.c
+++ b/drivers/video/bridge/anx6345.c
@@ -11,6 +11,7 @@ 
 #include <log.h>
 #include <video_bridge.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "../anx98xx-edp.h"
 
diff --git a/drivers/video/bridge/ps862x.c b/drivers/video/bridge/ps862x.c
index 7e9c6da4545..b6f3e300f35 100644
--- a/drivers/video/bridge/ps862x.c
+++ b/drivers/video/bridge/ps862x.c
@@ -12,6 +12,7 @@ 
 #include <video_bridge.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/video/bridge/video-bridge-uclass.c b/drivers/video/bridge/video-bridge-uclass.c
index 389b02cdcba..d606342d847 100644
--- a/drivers/video/bridge/video-bridge-uclass.c
+++ b/drivers/video/bridge/video-bridge-uclass.c
@@ -11,6 +11,7 @@ 
 #include <log.h>
 #include <video_bridge.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 int video_bridge_set_backlight(struct udevice *dev, int percent)
 {
diff --git a/drivers/video/broadwell_igd.c b/drivers/video/broadwell_igd.c
index 7a282be660f..77a4dc15830 100644
--- a/drivers/video/broadwell_igd.c
+++ b/drivers/video/broadwell_igd.c
@@ -24,6 +24,7 @@ 
 #include <asm/arch/iomap.h>
 #include <asm/arch/pch.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include "i915_reg.h"
 
 struct broadwell_igd_priv {
diff --git a/drivers/video/console_normal.c b/drivers/video/console_normal.c
index 04f022491e5..5b51252aaa6 100644
--- a/drivers/video/console_normal.c
+++ b/drivers/video/console_normal.c
@@ -12,6 +12,7 @@ 
 #include <video.h>
 #include <video_console.h>
 #include <video_font.h>		/* Get font data, width and height */
+#include <linux/errno.h>
 
 static int console_normal_set_row(struct udevice *dev, uint row, int clr)
 {
diff --git a/drivers/video/console_rotate.c b/drivers/video/console_rotate.c
index 36c8d0609d8..3649bd4487e 100644
--- a/drivers/video/console_rotate.c
+++ b/drivers/video/console_rotate.c
@@ -10,6 +10,7 @@ 
 #include <video.h>
 #include <video_console.h>
 #include <video_font.h>		/* Get font data, width and height */
+#include <linux/errno.h>
 
 static int console_set_row_1(struct udevice *dev, uint row, int clr)
 {
diff --git a/drivers/video/console_truetype.c b/drivers/video/console_truetype.c
index 26093408453..17e040bc926 100644
--- a/drivers/video/console_truetype.c
+++ b/drivers/video/console_truetype.c
@@ -9,6 +9,7 @@ 
 #include <malloc.h>
 #include <video.h>
 #include <video_console.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /* Functions needed by stb_truetype.h */
diff --git a/drivers/video/coreboot.c b/drivers/video/coreboot.c
index 6914162d3ac..e29b0651a67 100644
--- a/drivers/video/coreboot.c
+++ b/drivers/video/coreboot.c
@@ -9,6 +9,7 @@ 
 #include <vbe.h>
 #include <video.h>
 #include <asm/arch/sysinfo.h>
+#include <linux/errno.h>
 
 static int save_vesa_mode(struct cb_framebuffer *fb,
 			  struct vesa_mode_info *vesa)
diff --git a/drivers/video/display-uclass.c b/drivers/video/display-uclass.c
index 1a29ce5d858..8b49a7ba028 100644
--- a/drivers/video/display-uclass.c
+++ b/drivers/video/display-uclass.c
@@ -8,6 +8,7 @@ 
 #include <display.h>
 #include <edid.h>
 #include <errno.h>
+#include <linux/errno.h>
 
 int display_read_edid(struct udevice *dev, u8 *buf, int buf_size)
 {
diff --git a/drivers/video/dsi-host-uclass.c b/drivers/video/dsi-host-uclass.c
index 1db1f88a179..78e3d94e3e7 100644
--- a/drivers/video/dsi-host-uclass.c
+++ b/drivers/video/dsi-host-uclass.c
@@ -8,6 +8,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <dsi_host.h>
+#include <linux/errno.h>
 
 int dsi_host_init(struct udevice *dev,
 		  struct mipi_dsi_device *device,
diff --git a/drivers/video/dw_mipi_dsi.c b/drivers/video/dw_mipi_dsi.c
index 547dfc4b81c..1a2d2b3b7f5 100644
--- a/drivers/video/dw_mipi_dsi.c
+++ b/drivers/video/dw_mipi_dsi.c
@@ -22,6 +22,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <video_bridge.h>
 #include <linux/string.h>
diff --git a/drivers/video/efi.c b/drivers/video/efi.c
index 489998f3625..aa67cf17ad0 100644
--- a/drivers/video/efi.c
+++ b/drivers/video/efi.c
@@ -12,6 +12,7 @@ 
 #include <stdio.h>
 #include <vbe.h>
 #include <video.h>
+#include <linux/errno.h>
 
 struct pixel {
 	u8 pos;
diff --git a/drivers/video/exynos/exynos_dp.c b/drivers/video/exynos/exynos_dp.c
index d63d9effb00..72333b47010 100644
--- a/drivers/video/exynos/exynos_dp.c
+++ b/drivers/video/exynos/exynos_dp.c
@@ -14,6 +14,7 @@ 
 #include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
 #include <video_bridge.h>
diff --git a/drivers/video/exynos/exynos_dp_lowlevel.c b/drivers/video/exynos/exynos_dp_lowlevel.c
index efa3b924af1..c87e18f1dad 100644
--- a/drivers/video/exynos/exynos_dp_lowlevel.c
+++ b/drivers/video/exynos/exynos_dp_lowlevel.c
@@ -15,6 +15,7 @@ 
 #include <asm/arch/dp_info.h>
 #include <asm/arch/dp.h>
 #include <fdtdec.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include "exynos_dp_lowlevel.h"
 
diff --git a/drivers/video/exynos/exynos_mipi_dsi.c b/drivers/video/exynos/exynos_mipi_dsi.c
index 1d5ed38bf44..a21c185cc79 100644
--- a/drivers/video/exynos/exynos_mipi_dsi.c
+++ b/drivers/video/exynos/exynos_mipi_dsi.c
@@ -13,6 +13,7 @@ 
 #include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/devres.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/compat.h>
 #include <linux/err.h>
diff --git a/drivers/video/exynos/exynos_mipi_dsi_common.c b/drivers/video/exynos/exynos_mipi_dsi_common.c
index ab7d61afc88..26e5d24314b 100644
--- a/drivers/video/exynos/exynos_mipi_dsi_common.c
+++ b/drivers/video/exynos/exynos_mipi_dsi_common.c
@@ -13,6 +13,7 @@ 
 #include <linux/err.h>
 #include <asm/arch/dsim.h>
 #include <asm/arch/mipi_dsim.h>
+#include <linux/errno.h>
 
 #include "exynos_mipi_dsi_lowlevel.h"
 
diff --git a/drivers/video/fsl_dcu_fb.c b/drivers/video/fsl_dcu_fb.c
index 0dafac2829e..a8404dd2711 100644
--- a/drivers/video/fsl_dcu_fb.c
+++ b/drivers/video/fsl_dcu_fb.c
@@ -16,6 +16,7 @@ 
 #include <fdt_support.h>
 #include <fsl_dcu_fb.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/fb.h>
 #include <malloc.h>
 #include <video.h>
diff --git a/drivers/video/hitachi_tx18d42vm_lcd.c b/drivers/video/hitachi_tx18d42vm_lcd.c
index 752bc62eb68..fd51761485d 100644
--- a/drivers/video/hitachi_tx18d42vm_lcd.c
+++ b/drivers/video/hitachi_tx18d42vm_lcd.c
@@ -9,6 +9,7 @@ 
 #include <malloc.h>
 #include <stdio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 #include <asm/gpio.h>
 #include <errno.h>
diff --git a/drivers/video/ihs_video_out.c b/drivers/video/ihs_video_out.c
index 2124b826d28..dcbfbde688f 100644
--- a/drivers/video/ihs_video_out.c
+++ b/drivers/video/ihs_video_out.c
@@ -16,6 +16,7 @@ 
 #include <regmap.h>
 #include <video_osd.h>
 #include <asm/gpio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static const uint MAX_X_CHARS = 53;
diff --git a/drivers/video/ivybridge_igd.c b/drivers/video/ivybridge_igd.c
index d4247ee6406..47aa55ebdfc 100644
--- a/drivers/video/ivybridge_igd.c
+++ b/drivers/video/ivybridge_igd.c
@@ -21,6 +21,7 @@ 
 #include <asm/arch/pch.h>
 #include <asm/arch/sandybridge.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/video/lg4573.c b/drivers/video/lg4573.c
index f91ee7363f5..7d4ddca1573 100644
--- a/drivers/video/lg4573.c
+++ b/drivers/video/lg4573.c
@@ -17,6 +17,7 @@ 
 #include <spi.h>
 #include <asm/gpio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define PWR_ON_DELAY_MSECS  120
diff --git a/drivers/video/logicore_dp_tx.c b/drivers/video/logicore_dp_tx.c
index 45eba82c409..938455c0e4a 100644
--- a/drivers/video/logicore_dp_tx.c
+++ b/drivers/video/logicore_dp_tx.c
@@ -16,6 +16,7 @@ 
 #include <errno.h>
 #include <stdio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "axi.h"
diff --git a/drivers/video/mali_dp.c b/drivers/video/mali_dp.c
index 778a9a917dd..44841a9f929 100644
--- a/drivers/video/mali_dp.c
+++ b/drivers/video/mali_dp.c
@@ -21,6 +21,7 @@ 
 #include <clk.h>
 #include <dm/device_compat.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <linux/string.h>
 
diff --git a/drivers/video/meson/meson_dw_hdmi.c b/drivers/video/meson/meson_dw_hdmi.c
index ec550b57fda..0fa1178415a 100644
--- a/drivers/video/meson/meson_dw_hdmi.c
+++ b/drivers/video/meson/meson_dw_hdmi.c
@@ -14,6 +14,7 @@ 
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <power/regulator.h>
 #include <clk.h>
diff --git a/drivers/video/meson/meson_vpu.c b/drivers/video/meson/meson_vpu.c
index b34e5df5630..9acc2eab356 100644
--- a/drivers/video/meson/meson_vpu.c
+++ b/drivers/video/meson/meson_vpu.c
@@ -15,6 +15,7 @@ 
 #include <part.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/errno.h>
 #include <linux/sizes.h>
 #include <asm/arch/mem.h>
 #include <dm/device-internal.h>
diff --git a/drivers/video/mipi_dsi.c b/drivers/video/mipi_dsi.c
index 5caa6a6fef6..7f9e2c8357f 100644
--- a/drivers/video/mipi_dsi.c
+++ b/drivers/video/mipi_dsi.c
@@ -39,6 +39,7 @@ 
 #include <mipi_display.h>
 #include <mipi_dsi.h>
 #include <dm/devres.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /**
diff --git a/drivers/video/mvebu_lcd.c b/drivers/video/mvebu_lcd.c
index f3cb2bfb480..142ae235599 100644
--- a/drivers/video/mvebu_lcd.c
+++ b/drivers/video/mvebu_lcd.c
@@ -12,6 +12,7 @@ 
 #include <asm/cache.h>
 #include <dm/device_compat.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/mbus.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/drivers/video/nexell/s5pxx18_dp.c b/drivers/video/nexell/s5pxx18_dp.c
index 2248f479057..e857b004d91 100644
--- a/drivers/video/nexell/s5pxx18_dp.c
+++ b/drivers/video/nexell/s5pxx18_dp.c
@@ -12,6 +12,7 @@ 
 #include <asm/arch/reset.h>
 #include <asm/arch/nexell.h>
 #include <asm/arch/display.h>
+#include <linux/errno.h>
 
 #include "soc/s5pxx18_soc_disptop.h"
 #include "soc/s5pxx18_soc_dpc.h"
diff --git a/drivers/video/nexell/s5pxx18_dp_hdmi.c b/drivers/video/nexell/s5pxx18_dp_hdmi.c
index 3f1fb8a5757..087cb11f916 100644
--- a/drivers/video/nexell/s5pxx18_dp_hdmi.c
+++ b/drivers/video/nexell/s5pxx18_dp_hdmi.c
@@ -9,6 +9,7 @@ 
 #include <common.h>
 #include <errno.h>
 #include <log.h>
+#include <linux/errno.h>
 
 #include <asm/arch/nexell.h>
 #include <asm/arch/tieoff.h>
diff --git a/drivers/video/nexell/s5pxx18_dp_lvds.c b/drivers/video/nexell/s5pxx18_dp_lvds.c
index f8ea63fdf1b..cc95de13f51 100644
--- a/drivers/video/nexell/s5pxx18_dp_lvds.c
+++ b/drivers/video/nexell/s5pxx18_dp_lvds.c
@@ -8,6 +8,7 @@ 
 #include <config.h>
 #include <common.h>
 #include <errno.h>
+#include <linux/errno.h>
 
 #include <asm/arch/nexell.h>
 #include <asm/arch/reset.h>
diff --git a/drivers/video/nexell/s5pxx18_dp_mipi.c b/drivers/video/nexell/s5pxx18_dp_mipi.c
index 670272b2680..0eb1ebb377a 100644
--- a/drivers/video/nexell/s5pxx18_dp_mipi.c
+++ b/drivers/video/nexell/s5pxx18_dp_mipi.c
@@ -8,6 +8,7 @@ 
 #include <config.h>
 #include <common.h>
 #include <errno.h>
+#include <linux/errno.h>
 
 #include <asm/arch/nexell.h>
 #include <asm/arch/tieoff.h>
diff --git a/drivers/video/nexell_display.c b/drivers/video/nexell_display.c
index 4101e0962a9..1592e9b46ab 100644
--- a/drivers/video/nexell_display.c
+++ b/drivers/video/nexell_display.c
@@ -22,6 +22,7 @@ 
 #include <asm/io.h>
 #include <asm/arch/display.h>
 #include <asm/arch/display_dev.h>
+#include <linux/errno.h>
 #include "videomodes.h"
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/video/orisetech_otm8009a.c b/drivers/video/orisetech_otm8009a.c
index acb8f384a88..b6a8527533c 100644
--- a/drivers/video/orisetech_otm8009a.c
+++ b/drivers/video/orisetech_otm8009a.c
@@ -15,6 +15,7 @@ 
 #include <asm/gpio.h>
 #include <dm/device_compat.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <power/regulator.h>
 
diff --git a/drivers/video/panel-uclass.c b/drivers/video/panel-uclass.c
index 246d1b2836d..8bdba13c457 100644
--- a/drivers/video/panel-uclass.c
+++ b/drivers/video/panel-uclass.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <dm.h>
 #include <panel.h>
+#include <linux/errno.h>
 
 int panel_enable_backlight(struct udevice *dev)
 {
diff --git a/drivers/video/pwm_backlight.c b/drivers/video/pwm_backlight.c
index 468a5703bdb..6aacb067ad3 100644
--- a/drivers/video/pwm_backlight.c
+++ b/drivers/video/pwm_backlight.c
@@ -14,6 +14,7 @@ 
 #include <pwm.h>
 #include <asm/gpio.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 
 /**
diff --git a/drivers/video/raydium-rm68200.c b/drivers/video/raydium-rm68200.c
index 1efd1607f63..d31cbb4c34a 100644
--- a/drivers/video/raydium-rm68200.c
+++ b/drivers/video/raydium-rm68200.c
@@ -15,6 +15,7 @@ 
 #include <asm/gpio.h>
 #include <dm/device_compat.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <power/regulator.h>
 
diff --git a/drivers/video/rockchip/rk3288_mipi.c b/drivers/video/rockchip/rk3288_mipi.c
index b232ff0b76b..f842dfeb1d7 100644
--- a/drivers/video/rockchip/rk3288_mipi.c
+++ b/drivers/video/rockchip/rk3288_mipi.c
@@ -11,6 +11,7 @@ 
 #include <log.h>
 #include <panel.h>
 #include <regmap.h>
+#include <linux/errno.h>
 #include "rk_mipi.h"
 #include <syscon.h>
 #include <asm/gpio.h>
diff --git a/drivers/video/rockchip/rk3399_mipi.c b/drivers/video/rockchip/rk3399_mipi.c
index 113708d97e5..efcd8614c03 100644
--- a/drivers/video/rockchip/rk3399_mipi.c
+++ b/drivers/video/rockchip/rk3399_mipi.c
@@ -11,6 +11,7 @@ 
 #include <log.h>
 #include <panel.h>
 #include <regmap.h>
+#include <linux/errno.h>
 #include "rk_mipi.h"
 #include <syscon.h>
 #include <asm/gpio.h>
diff --git a/drivers/video/rockchip/rk_edp.c b/drivers/video/rockchip/rk_edp.c
index 575aee1cdb1..d6478d4f398 100644
--- a/drivers/video/rockchip/rk_edp.c
+++ b/drivers/video/rockchip/rk_edp.c
@@ -24,6 +24,7 @@ 
 #include <asm/arch-rockchip/hardware.h>
 #include <dt-bindings/clock/rk3288-cru.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define MAX_CR_LOOP 5
diff --git a/drivers/video/rockchip/rk_lvds.c b/drivers/video/rockchip/rk_lvds.c
index 24f3caabb01..c9890feac0f 100644
--- a/drivers/video/rockchip/rk_lvds.c
+++ b/drivers/video/rockchip/rk_lvds.c
@@ -20,6 +20,7 @@ 
 #include <asm/arch-rockchip/lvds_rk3288.h>
 #include <dt-bindings/clock/rk3288-cru.h>
 #include <dt-bindings/video/rk3288.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/video/rockchip/rk_mipi.c b/drivers/video/rockchip/rk_mipi.c
index 2e235cb6c2c..2438d44cf3f 100644
--- a/drivers/video/rockchip/rk_mipi.c
+++ b/drivers/video/rockchip/rk_mipi.c
@@ -12,6 +12,7 @@ 
 #include <panel.h>
 #include <regmap.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include "rk_mipi.h"
 #include <syscon.h>
 #include <asm/gpio.h>
diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c
index 7e864698697..41541ef8222 100644
--- a/drivers/video/rockchip/rk_vop.c
+++ b/drivers/video/rockchip/rk_vop.c
@@ -23,6 +23,7 @@ 
 #include <dm/uclass-internal.h>
 #include <linux/bitops.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 #include "rk_vop.h"
 
diff --git a/drivers/video/sandbox_osd.c b/drivers/video/sandbox_osd.c
index 9fb1224bf59..ab6abae520e 100644
--- a/drivers/video/sandbox_osd.c
+++ b/drivers/video/sandbox_osd.c
@@ -8,6 +8,7 @@ 
 #include <dm.h>
 #include <malloc.h>
 #include <video_osd.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "sandbox_osd.h"
diff --git a/drivers/video/simple_panel.c b/drivers/video/simple_panel.c
index 6c624c37699..74ae68ea3ad 100644
--- a/drivers/video/simple_panel.c
+++ b/drivers/video/simple_panel.c
@@ -10,6 +10,7 @@ 
 #include <log.h>
 #include <panel.h>
 #include <asm/gpio.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 
 struct simple_panel_priv {
diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c
index c545c79ced8..d722832f3eb 100644
--- a/drivers/video/simplefb.c
+++ b/drivers/video/simplefb.c
@@ -11,6 +11,7 @@ 
 #include <stdio.h>
 #include <video.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static int simple_video_probe(struct udevice *dev)
diff --git a/drivers/video/stm32/stm32_dsi.c b/drivers/video/stm32/stm32_dsi.c
index e77a0f478a6..617d900343c 100644
--- a/drivers/video/stm32/stm32_dsi.c
+++ b/drivers/video/stm32/stm32_dsi.c
@@ -25,6 +25,7 @@ 
 #include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <linux/printk.h>
 #include <power/regulator.h>
diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c
index d2ac2e57c8a..3767792a399 100644
--- a/drivers/video/stm32/stm32_ltdc.c
+++ b/drivers/video/stm32/stm32_ltdc.c
@@ -20,6 +20,7 @@ 
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 
 struct stm32_ltdc_priv {
diff --git a/drivers/video/sunxi/sunxi_de2.c b/drivers/video/sunxi/sunxi_de2.c
index 8529504014e..c323e0b0d5a 100644
--- a/drivers/video/sunxi/sunxi_de2.c
+++ b/drivers/video/sunxi/sunxi_de2.c
@@ -23,6 +23,7 @@ 
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "simplefb_common.h"
 
diff --git a/drivers/video/sunxi/sunxi_display.c b/drivers/video/sunxi/sunxi_display.c
index 56c63e4ea43..9e59da06bf4 100644
--- a/drivers/video/sunxi/sunxi_display.c
+++ b/drivers/video/sunxi/sunxi_display.c
@@ -14,6 +14,7 @@ 
 #include <time.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <asm/arch/clock.h>
diff --git a/drivers/video/sunxi/sunxi_lcd.c b/drivers/video/sunxi/sunxi_lcd.c
index c39438ff09a..841ef433493 100644
--- a/drivers/video/sunxi/sunxi_lcd.c
+++ b/drivers/video/sunxi/sunxi_lcd.c
@@ -18,6 +18,7 @@ 
 #include <asm/arch/lcdc.h>
 #include <asm/arch/gpio.h>
 #include <asm/gpio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 struct sunxi_lcd_priv {
diff --git a/drivers/video/tda19988.c b/drivers/video/tda19988.c
index 48c29129192..bead13f2934 100644
--- a/drivers/video/tda19988.c
+++ b/drivers/video/tda19988.c
@@ -12,6 +12,7 @@ 
 #include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 /*
  * TDA19988 uses paged registers. We encode the page# in the upper
diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c
index 5e03aab67bb..f10c509345d 100644
--- a/drivers/video/tegra.c
+++ b/drivers/video/tegra.c
@@ -17,6 +17,7 @@ 
 #include <asm/system.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 
 #include <asm/arch/clock.h>
 #include <asm/arch/funcmux.h>
diff --git a/drivers/video/tegra124/display.c b/drivers/video/tegra124/display.c
index 1c47b133c85..c16110f1191 100644
--- a/drivers/video/tegra124/display.c
+++ b/drivers/video/tegra124/display.c
@@ -25,6 +25,7 @@ 
 #include <asm/arch-tegra/dc.h>
 #include <dm/uclass-internal.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include "displayport.h"
 
 /* return in 1000ths of a Hertz */
diff --git a/drivers/video/tegra124/dp.c b/drivers/video/tegra124/dp.c
index 9c5ce04c376..52b06f32ea8 100644
--- a/drivers/video/tegra124/dp.c
+++ b/drivers/video/tegra124/dp.c
@@ -16,6 +16,7 @@ 
 #include <asm/io.h>
 #include <asm/arch-tegra/dc.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "display.h"
 #include "edid.h"
diff --git a/drivers/video/tegra124/sor.c b/drivers/video/tegra124/sor.c
index 345974f465b..17a1f75a9bf 100644
--- a/drivers/video/tegra124/sor.c
+++ b/drivers/video/tegra124/sor.c
@@ -17,6 +17,7 @@ 
 #include <asm/arch/clock.h>
 #include <asm/arch-tegra/dc.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include "displayport.h"
 #include "sor.h"
diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c
index 128fa88648f..7262cc0a65c 100644
--- a/drivers/video/vidconsole-uclass.c
+++ b/drivers/video/vidconsole-uclass.c
@@ -17,6 +17,7 @@ 
 #include <video_font.h>		/* Bitmap font for code page 437 */
 #include <vsprintf.h>
 #include <linux/ctype.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /*
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c
index 398f1a97e04..722a9c8765a 100644
--- a/drivers/video/video-uclass.c
+++ b/drivers/video/video-uclass.c
@@ -24,6 +24,7 @@ 
 #ifdef CONFIG_SANDBOX
 #include <asm/sdl.h>
 #endif
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /*
diff --git a/drivers/video/video_bmp.c b/drivers/video/video_bmp.c
index 802d84a8860..e854e3a3bfe 100644
--- a/drivers/video/video_bmp.c
+++ b/drivers/video/video_bmp.c
@@ -13,6 +13,7 @@ 
 #include <video.h>
 #include <watchdog.h>
 #include <asm/unaligned.h>
+#include <linux/errno.h>
 
 #ifdef CONFIG_VIDEO_BMP_RLE8
 #define BMP_RLE8_ESCAPE		0
diff --git a/drivers/video/videomodes.c b/drivers/video/videomodes.c
index ba0fa3589f6..f14fe3bb9e6 100644
--- a/drivers/video/videomodes.c
+++ b/drivers/video/videomodes.c
@@ -64,6 +64,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <linux/ctype.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include "videomodes.h"
diff --git a/drivers/virtio/virtio-uclass.c b/drivers/virtio/virtio-uclass.c
index 50e143bb9e5..da0945b5c60 100644
--- a/drivers/virtio/virtio-uclass.c
+++ b/drivers/virtio/virtio-uclass.c
@@ -24,6 +24,7 @@ 
 #include <vsprintf.h>
 #include <dm/lists.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static const char *const virtio_drv_name[VIRTIO_ID_MAX_NUM] = {
diff --git a/drivers/virtio/virtio_blk.c b/drivers/virtio/virtio_blk.c
index 95b7360656a..5117b925126 100644
--- a/drivers/virtio/virtio_blk.c
+++ b/drivers/virtio/virtio_blk.c
@@ -12,6 +12,7 @@ 
 #include <virtio.h>
 #include <virtio_ring.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include "virtio_blk.h"
 
 struct virtio_blk_priv {
diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c
index 50f79dcb3b1..42baf5c9fd2 100644
--- a/drivers/virtio/virtio_mmio.c
+++ b/drivers/virtio/virtio_mmio.c
@@ -16,6 +16,7 @@ 
 #include <linux/bug.h>
 #include <linux/compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/string.h>
 #include "virtio_mmio.h"
diff --git a/drivers/virtio/virtio_net.c b/drivers/virtio/virtio_net.c
index a16268f9d27..277d4832fbb 100644
--- a/drivers/virtio/virtio_net.c
+++ b/drivers/virtio/virtio_net.c
@@ -10,6 +10,7 @@ 
 #include <virtio_types.h>
 #include <virtio.h>
 #include <virtio_ring.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "virtio_net.h"
 
diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c
index 59deadeec33..bef5dd1ca3c 100644
--- a/drivers/virtio/virtio_pci_legacy.c
+++ b/drivers/virtio/virtio_pci_legacy.c
@@ -18,6 +18,7 @@ 
 #include <linux/bug.h>
 #include <linux/compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include "virtio_pci.h"
 
diff --git a/drivers/virtio/virtio_pci_modern.c b/drivers/virtio/virtio_pci_modern.c
index cc3378d8758..9edb271e929 100644
--- a/drivers/virtio/virtio_pci_modern.c
+++ b/drivers/virtio/virtio_pci_modern.c
@@ -19,6 +19,7 @@ 
 #include <linux/compat.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/string.h>
 #include "virtio_pci.h"
diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index f058b2f8de8..76dc7d3a762 100644
--- a/drivers/virtio/virtio_ring.c
+++ b/drivers/virtio/virtio_ring.c
@@ -16,6 +16,7 @@ 
 #include <virtio_ring.h>
 #include <linux/bug.h>
 #include <linux/compat.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 int virtqueue_add(struct virtqueue *vq, struct virtio_sg *sgs[],
diff --git a/drivers/virtio/virtio_sandbox.c b/drivers/virtio/virtio_sandbox.c
index 1e5589f004c..8fb04b8b39e 100644
--- a/drivers/virtio/virtio_sandbox.c
+++ b/drivers/virtio/virtio_sandbox.c
@@ -14,6 +14,7 @@ 
 #include <linux/bug.h>
 #include <linux/compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 
 struct virtio_sandbox_priv {
diff --git a/drivers/w1-eeprom/ds2502.c b/drivers/w1-eeprom/ds2502.c
index 42a3560c237..167351055af 100644
--- a/drivers/w1-eeprom/ds2502.c
+++ b/drivers/w1-eeprom/ds2502.c
@@ -26,6 +26,7 @@ 
 #include <linux/err.h>
 #include <w1-eeprom.h>
 #include <w1.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #define DS2502_PAGE_SIZE	32
diff --git a/drivers/w1-eeprom/w1-eeprom-uclass.c b/drivers/w1-eeprom/w1-eeprom-uclass.c
index 8a63f614c58..07e1c12e5ce 100644
--- a/drivers/w1-eeprom/w1-eeprom-uclass.c
+++ b/drivers/w1-eeprom/w1-eeprom-uclass.c
@@ -16,6 +16,7 @@ 
 #include <stdio.h>
 #include <w1.h>
 #include <w1-eeprom.h>
+#include <linux/errno.h>
 
 #include <dm/device-internal.h>
 
diff --git a/drivers/w1/mxc_w1.c b/drivers/w1/mxc_w1.c
index 8e6372f0bed..92b18606c82 100644
--- a/drivers/w1/mxc_w1.c
+++ b/drivers/w1/mxc_w1.c
@@ -23,6 +23,7 @@ 
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 #include <w1.h>
 
diff --git a/drivers/w1/w1-uclass.c b/drivers/w1/w1-uclass.c
index 61887bee1de..a40beaefd67 100644
--- a/drivers/w1/w1-uclass.c
+++ b/drivers/w1/w1-uclass.c
@@ -16,6 +16,7 @@ 
 #include <stdio.h>
 #include <w1.h>
 #include <w1-eeprom.h>
+#include <linux/errno.h>
 
 #include <dm/device-internal.h>
 
diff --git a/drivers/watchdog/armada-37xx-wdt.c b/drivers/watchdog/armada-37xx-wdt.c
index 7af680a5c25..b845e2b2e3d 100644
--- a/drivers/watchdog/armada-37xx-wdt.c
+++ b/drivers/watchdog/armada-37xx-wdt.c
@@ -13,6 +13,7 @@ 
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
 #include <dm/device_compat.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c
index a5cbc4309cc..c116a011263 100644
--- a/drivers/watchdog/at91sam9_wdt.c
+++ b/drivers/watchdog/at91sam9_wdt.c
@@ -24,6 +24,7 @@ 
 #include <dm.h>
 #include <errno.h>
 #include <wdt.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/watchdog/bcm6345_wdt.c b/drivers/watchdog/bcm6345_wdt.c
index ee77f49a944..5999561efd2 100644
--- a/drivers/watchdog/bcm6345_wdt.c
+++ b/drivers/watchdog/bcm6345_wdt.c
@@ -13,6 +13,7 @@ 
 #include <wdt.h>
 #include <clk.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 
 /* WDT Value register */
 #define WDT_VAL_REG		0x0
diff --git a/drivers/watchdog/cortina_wdt.c b/drivers/watchdog/cortina_wdt.c
index 7ab9d7b2db9..0f60b3a6322 100644
--- a/drivers/watchdog/cortina_wdt.c
+++ b/drivers/watchdog/cortina_wdt.c
@@ -10,6 +10,7 @@ 
 #include <asm/io.h>
 #include <wdt.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define CA_WDT_CTRL		0x00
 #define CA_WDT_PS		0x04
diff --git a/drivers/watchdog/designware_wdt.c b/drivers/watchdog/designware_wdt.c
index 12f09a7a392..b2d17f6e335 100644
--- a/drivers/watchdog/designware_wdt.c
+++ b/drivers/watchdog/designware_wdt.c
@@ -11,6 +11,7 @@ 
 #include <asm/io.h>
 #include <asm/utils.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define DW_WDT_CR	0x00
 #define DW_WDT_TORR	0x04
diff --git a/drivers/watchdog/imx_watchdog.c b/drivers/watchdog/imx_watchdog.c
index b90c2daecee..e17d9217cc0 100644
--- a/drivers/watchdog/imx_watchdog.c
+++ b/drivers/watchdog/imx_watchdog.c
@@ -17,6 +17,7 @@ 
 #endif
 #include <fsl_wdog.h>
 #include <div64.h>
+#include <linux/errno.h>
 
 #define TIMEOUT_MAX	128000
 #define TIMEOUT_MIN	500
diff --git a/drivers/watchdog/mpc8xx_wdt.c b/drivers/watchdog/mpc8xx_wdt.c
index 3cb50ab091f..d2277356cc4 100644
--- a/drivers/watchdog/mpc8xx_wdt.c
+++ b/drivers/watchdog/mpc8xx_wdt.c
@@ -10,6 +10,7 @@ 
 #include <mpc8xx.h>
 #include <asm/cpm_8xx.h>
 #include <asm/io.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 void hw_watchdog_reset(void)
diff --git a/drivers/watchdog/mt7621_wdt.c b/drivers/watchdog/mt7621_wdt.c
index ff5c3243ce7..d033d95b6f5 100644
--- a/drivers/watchdog/mt7621_wdt.c
+++ b/drivers/watchdog/mt7621_wdt.c
@@ -14,6 +14,7 @@ 
 #include <wdt.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c
index a636cff354d..2a38bef43ec 100644
--- a/drivers/watchdog/mtk_wdt.c
+++ b/drivers/watchdog/mtk_wdt.c
@@ -12,6 +12,7 @@ 
 #include <wdt.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 #define MTK_WDT_MODE			0x00
 #define MTK_WDT_LENGTH			0x04
diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c
index 9059a4c6105..9d3896a5d99 100644
--- a/drivers/watchdog/omap_wdt.c
+++ b/drivers/watchdog/omap_wdt.c
@@ -46,6 +46,7 @@ 
 #include <wdt.h>
 #include <dm.h>
 #include <errno.h>
+#include <linux/errno.h>
 
 /* Hardware timeout in seconds */
 #define WDT_HW_TIMEOUT 60
diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c
index 3284321299d..804a7681107 100644
--- a/drivers/watchdog/orion_wdt.c
+++ b/drivers/watchdog/orion_wdt.c
@@ -19,6 +19,7 @@ 
 #include <wdt.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/drivers/watchdog/stm32mp_wdt.c b/drivers/watchdog/stm32mp_wdt.c
index 89ce5588a37..c45dbdc9bdb 100644
--- a/drivers/watchdog/stm32mp_wdt.c
+++ b/drivers/watchdog/stm32mp_wdt.c
@@ -11,6 +11,7 @@ 
 #include <wdt.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 #include <linux/iopoll.h>
 #include <linux/printk.h>
 
diff --git a/drivers/watchdog/wdt-uclass.c b/drivers/watchdog/wdt-uclass.c
index 0ef303f1f2d..e2791a0dba0 100644
--- a/drivers/watchdog/wdt-uclass.c
+++ b/drivers/watchdog/wdt-uclass.c
@@ -14,6 +14,7 @@ 
 #include <asm/global_data.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/watchdog/xilinx_tb_wdt.c b/drivers/watchdog/xilinx_tb_wdt.c
index ea4311c8ce1..5047cd04561 100644
--- a/drivers/watchdog/xilinx_tb_wdt.c
+++ b/drivers/watchdog/xilinx_tb_wdt.c
@@ -13,6 +13,7 @@ 
 #include <log.h>
 #include <wdt.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 
 #define XWT_CSR0_WRS_MASK	0x00000008 /* Reset status Mask */
diff --git a/drivers/watchdog/xilinx_wwdt.c b/drivers/watchdog/xilinx_wwdt.c
index d8a585a4830..a486e032624 100644
--- a/drivers/watchdog/xilinx_wwdt.c
+++ b/drivers/watchdog/xilinx_wwdt.c
@@ -14,6 +14,7 @@ 
 #include <regmap.h>
 #include <wdt.h>
 #include <linux/compat.h>
+#include <linux/errno.h>
 #include <linux/io.h>
 
 /* Refresh Register Masks */
diff --git a/env/common.c b/env/common.c
index 4df445eb2c4..b8ac49cf499 100644
--- a/env/common.c
+++ b/env/common.c
@@ -16,6 +16,7 @@ 
 #include <sort.h>
 #include <stdio.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/stddef.h>
 #include <search.h>
diff --git a/env/env.c b/env/env.c
index c289af4c6a4..60c0295affb 100644
--- a/env/env.c
+++ b/env/env.c
@@ -12,6 +12,7 @@ 
 #include <asm/global_data.h>
 #include <linux/bitops.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/env/ext4.c b/env/ext4.c
index a51c7c6eff3..59ed02c0ca1 100644
--- a/env/ext4.c
+++ b/env/ext4.c
@@ -21,6 +21,7 @@ 
 #include <common.h>
 #include <part.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <command.h>
diff --git a/env/fat.c b/env/fat.c
index e95af7e19d3..c4c09fee02b 100644
--- a/env/fat.c
+++ b/env/fat.c
@@ -19,6 +19,7 @@ 
 #include <mmc.h>
 #include <stdio.h>
 #include <asm/cache.h>
+#include <linux/errno.h>
 #include <linux/stddef.h>
 #include <linux/string.h>
 
diff --git a/env/mmc.c b/env/mmc.c
index 6b1a795f434..361197916f7 100644
--- a/env/mmc.c
+++ b/env/mmc.c
@@ -9,6 +9,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <command.h>
diff --git a/env/nand.c b/env/nand.c
index e8d226ee715..730baf0095c 100644
--- a/env/nand.c
+++ b/env/nand.c
@@ -19,6 +19,7 @@ 
 #include <env_internal.h>
 #include <stdio.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/stddef.h>
 #include <malloc.h>
 #include <memalign.h>
diff --git a/env/remote.c b/env/remote.c
index 131ac83584f..0d026176794 100644
--- a/env/remote.c
+++ b/env/remote.c
@@ -10,6 +10,7 @@ 
 #include <env_internal.h>
 #include <stdio.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/stddef.h>
 #include <u-boot/crc.h>
 
diff --git a/env/sata.c b/env/sata.c
index d88771b27e2..56109397d53 100644
--- a/env/sata.c
+++ b/env/sata.c
@@ -7,6 +7,7 @@ 
 
 #include <common.h>
 #include <stdio.h>
+#include <linux/errno.h>
 
 #include <command.h>
 #include <env.h>
diff --git a/env/sf.c b/env/sf.c
index 077d82f8e77..4bf67dcc8a9 100644
--- a/env/sf.c
+++ b/env/sf.c
@@ -23,6 +23,7 @@ 
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <dm/device-internal.h>
+#include <linux/errno.h>
 #include <u-boot/crc.h>
 
 #ifndef CONFIG_SPL_BUILD
diff --git a/env/ubi.c b/env/ubi.c
index 12495776609..da691f470c8 100644
--- a/env/ubi.c
+++ b/env/ubi.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <stdio.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <command.h>
diff --git a/fs/btrfs/btrfs.c b/fs/btrfs/btrfs.c
index de16217d0dd..9b9f9b5ffa3 100644
--- a/fs/btrfs/btrfs.c
+++ b/fs/btrfs/btrfs.c
@@ -9,6 +9,7 @@ 
 #include <config.h>
 #include <malloc.h>
 #include <uuid.h>
+#include <linux/errno.h>
 #include <linux/time.h>
 
 struct btrfs_info btrfs_info;
diff --git a/fs/cbfs/cbfs.c b/fs/cbfs/cbfs.c
index 51a59030f60..1b27320a760 100644
--- a/fs/cbfs/cbfs.c
+++ b/fs/cbfs/cbfs.c
@@ -8,6 +8,7 @@ 
 #include <log.h>
 #include <malloc.h>
 #include <asm/byteorder.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /* Offset of master header from the start of a coreboot ROM */
diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c
index a6fbd5a971d..c3ca193a190 100644
--- a/fs/ext4/ext4_common.c
+++ b/fs/ext4/ext4_common.c
@@ -28,6 +28,7 @@ 
 #include <part.h>
 #include <stddef.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/stat.h>
 #include <linux/string.h>
 #include <linux/time.h>
diff --git a/fs/ext4/ext4_journal.c b/fs/ext4/ext4_journal.c
index 9f1eb6ad9d1..ad967d39f95 100644
--- a/fs/ext4/ext4_journal.c
+++ b/fs/ext4/ext4_journal.c
@@ -21,6 +21,7 @@ 
 #include <ext_common.h>
 #include <stdio.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "ext4_common.h"
 
diff --git a/fs/ext4/ext4_write.c b/fs/ext4/ext4_write.c
index 22bb845f8bf..a38e0edd6a7 100644
--- a/fs/ext4/ext4_write.c
+++ b/fs/ext4/ext4_write.c
@@ -28,6 +28,7 @@ 
 #include <memalign.h>
 #include <part.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/stat.h>
 #include <div64.h>
 #include <linux/string.h>
diff --git a/fs/ext4/ext4fs.c b/fs/ext4/ext4fs.c
index c004d5facbb..8143079b8b0 100644
--- a/fs/ext4/ext4fs.c
+++ b/fs/ext4/ext4fs.c
@@ -29,6 +29,7 @@ 
 #include <part.h>
 #include <stdio.h>
 #include <uuid.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "ext4_common.h"
 
diff --git a/fs/fat/fat.c b/fs/fat/fat.c
index 28ac59c2d73..6b8cf4ff02c 100644
--- a/fs/fat/fat.c
+++ b/fs/fat/fat.c
@@ -23,6 +23,7 @@ 
 #include <asm/cache.h>
 #include <linux/compiler.h>
 #include <linux/ctype.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /*
diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c
index bdc604038ad..42ddb285789 100644
--- a/fs/fat/fat_write.c
+++ b/fs/fat/fat_write.c
@@ -17,6 +17,7 @@ 
 #include <asm/cache.h>
 #include <linux/ctype.h>
 #include <div64.h>
+#include <linux/errno.h>
 #include <linux/math64.h>
 #include <linux/string.h>
 #include "fat.c"
diff --git a/fs/fs.c b/fs/fs.c
index 207420b0ab4..092e1725050 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -25,6 +25,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <div64.h>
+#include <linux/errno.h>
 #include <linux/math64.h>
 #include <efi_loader.h>
 #include <linux/string.h>
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
index 77178e0e28a..07196c52e4f 100644
--- a/fs/ubifs/debug.c
+++ b/fs/ubifs/debug.c
@@ -20,6 +20,7 @@ 
 #include <time.h>
 #include <vsprintf.h>
 #include <dm/devres.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/fs/ubifs/io.c b/fs/ubifs/io.c
index 57e0847464c..4ef1381fc7d 100644
--- a/fs/ubifs/io.c
+++ b/fs/ubifs/io.c
@@ -68,6 +68,7 @@ 
 #else
 #include <linux/compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #endif
 #include "ubifs.h"
diff --git a/fs/ubifs/log.c b/fs/ubifs/log.c
index 0c8671a8847..6e43a9c62b4 100644
--- a/fs/ubifs/log.c
+++ b/fs/ubifs/log.c
@@ -19,6 +19,7 @@ 
 #include <log.h>
 #include <dm/devres.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #endif
 #include "ubifs.h"
diff --git a/fs/ubifs/lprops.c b/fs/ubifs/lprops.c
index 83e6b2d5df2..b5ddde857c3 100644
--- a/fs/ubifs/lprops.c
+++ b/fs/ubifs/lprops.c
@@ -20,6 +20,7 @@ 
 #include <log.h>
 #include <malloc.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #endif
 #include "ubifs.h"
diff --git a/fs/ubifs/lpt_commit.c b/fs/ubifs/lpt_commit.c
index 583f113902e..7c5f5d9a246 100644
--- a/fs/ubifs/lpt_commit.c
+++ b/fs/ubifs/lpt_commit.c
@@ -23,6 +23,7 @@ 
 #include <linux/bitops.h>
 #include <linux/compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include "crc16.h"
diff --git a/fs/ubifs/orphan.c b/fs/ubifs/orphan.c
index 6aa2890ff05..1d7b8b6a181 100644
--- a/fs/ubifs/orphan.c
+++ b/fs/ubifs/orphan.c
@@ -10,6 +10,7 @@ 
 #include <log.h>
 #include <dm/devres.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include "ubifs.h"
 
 /*
diff --git a/fs/ubifs/recovery.c b/fs/ubifs/recovery.c
index cf2b8a48b8a..8d342766221 100644
--- a/fs/ubifs/recovery.c
+++ b/fs/ubifs/recovery.c
@@ -43,6 +43,7 @@ 
 #include <u-boot/crc.h>
 #else
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #endif
 #include "ubifs.h"
diff --git a/fs/ubifs/replay.c b/fs/ubifs/replay.c
index 0862fe4ebf3..248a8065925 100644
--- a/fs/ubifs/replay.c
+++ b/fs/ubifs/replay.c
@@ -25,6 +25,7 @@ 
 #include <dm/devres.h>
 #include <linux/compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #endif
 #include "ubifs.h"
diff --git a/fs/ubifs/scan.c b/fs/ubifs/scan.c
index 7a6e46df5d9..9332a61ff34 100644
--- a/fs/ubifs/scan.c
+++ b/fs/ubifs/scan.c
@@ -20,6 +20,7 @@ 
 #include <log.h>
 #include <dm/devres.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #endif
 #include "ubifs.h"
 
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index 62b03731f8d..8f219ba8533 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -36,6 +36,7 @@ 
 #include <vsprintf.h>
 #include <linux/bitops.h>
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/log2.h>
 #include <linux/printk.h>
 #include <linux/stat.h>
diff --git a/fs/ubifs/tnc.c b/fs/ubifs/tnc.c
index c8aef71d86a..72bcd422746 100644
--- a/fs/ubifs/tnc.c
+++ b/fs/ubifs/tnc.c
@@ -29,6 +29,7 @@ 
 #include <linux/bug.h>
 #include <linux/compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/stat.h>
 #include <linux/string.h>
 #endif
diff --git a/fs/ubifs/tnc_misc.c b/fs/ubifs/tnc_misc.c
index e4cd785b9f5..659ff2e2ce2 100644
--- a/fs/ubifs/tnc_misc.c
+++ b/fs/ubifs/tnc_misc.c
@@ -19,6 +19,7 @@ 
 #include <log.h>
 #include <dm/devres.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #endif
 #include "ubifs.h"
 
diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c
index ab48f10310c..e76839e098d 100644
--- a/fs/ubifs/ubifs.c
+++ b/fs/ubifs/ubifs.c
@@ -20,6 +20,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "ubifs.h"
 #include <part.h>
diff --git a/fs/yaffs2/yaffs_uboot_glue.c b/fs/yaffs2/yaffs_uboot_glue.c
index a3ff0044788..62f034552e5 100644
--- a/fs/yaffs2/yaffs_uboot_glue.c
+++ b/fs/yaffs2/yaffs_uboot_glue.c
@@ -24,6 +24,7 @@ 
 #include <malloc.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/fs/yaffs2/yaffsfs.c b/fs/yaffs2/yaffsfs.c
index 5bf9350c822..8f43d3ac085 100644
--- a/fs/yaffs2/yaffsfs.c
+++ b/fs/yaffs2/yaffsfs.c
@@ -13,6 +13,7 @@ 
 
 #include <div64.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "yaffsfs.h"
 #include "yaffs_guts.h"
diff --git a/fs/yaffs2/yportenv.h b/fs/yaffs2/yportenv.h
index 081391a1d0f..607b7cc31cf 100644
--- a/fs/yaffs2/yportenv.h
+++ b/fs/yaffs2/yportenv.h
@@ -18,6 +18,7 @@ 
 #define __YPORTENV_H__
 
 #include <linux/bug.h>
+#include <linux/errno.h>
 #include <linux/types.h>
 
 /* Definition of types */
diff --git a/include/acpi/acpi_s3.h b/include/acpi/acpi_s3.h
index baa848dcd15..1dc568117bd 100644
--- a/include/acpi/acpi_s3.h
+++ b/include/acpi/acpi_s3.h
@@ -6,6 +6,7 @@ 
 #ifndef __ASM_ACPI_S3_H__
 #define __ASM_ACPI_S3_H__
 
+#include <linux/errno.h>
 #define WAKEUP_BASE	0x600
 
 /* PM1_STATUS register */
diff --git a/include/board.h b/include/board.h
index a43f35a021b..755a888e338 100644
--- a/include/board.h
+++ b/include/board.h
@@ -4,6 +4,7 @@ 
  * Mario Six,  Guntermann & Drunck GmbH, mario.six@gdsys.cc
  */
 
+#include <linux/errno.h>
 struct udevice;
 
 /*
diff --git a/include/common.h b/include/common.h
index 2b7a422fbe1..4fa613216ef 100644
--- a/include/common.h
+++ b/include/common.h
@@ -14,7 +14,6 @@ 
 
 #ifndef __ASSEMBLY__		/* put C only stuff in this section */
 #include <config.h>
-#include <errno.h>
 #include <linux/types.h>
 #include <linux/kernel.h>
 #endif	/* __ASSEMBLY__ */
diff --git a/include/dfu.h b/include/dfu.h
index 436057e378e..475b2a254d6 100644
--- a/include/dfu.h
+++ b/include/dfu.h
@@ -12,6 +12,7 @@ 
 
 #include <common.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/list.h>
 #include <mmc.h>
 #include <spi_flash.h>
diff --git a/include/dm/pinctrl.h b/include/dm/pinctrl.h
index 692e5fc8cbf..f879901279d 100644
--- a/include/dm/pinctrl.h
+++ b/include/dm/pinctrl.h
@@ -6,6 +6,7 @@ 
 #ifndef __PINCTRL_H
 #define __PINCTRL_H
 
+#include <linux/errno.h>
 #define PINNAME_SIZE	10
 #define PINMUX_SIZE	40
 
diff --git a/include/dwc3-uboot.h b/include/dwc3-uboot.h
index e08530ec4e5..6c583e5e7b6 100644
--- a/include/dwc3-uboot.h
+++ b/include/dwc3-uboot.h
@@ -10,6 +10,7 @@ 
 #define __DWC3_UBOOT_H_
 
 #include <generic-phy.h>
+#include <linux/errno.h>
 #include <linux/usb/otg.h>
 #include <linux/usb/phy.h>
 
diff --git a/include/eeprom.h b/include/eeprom.h
index 6820844cea3..06f2a471657 100644
--- a/include/eeprom.h
+++ b/include/eeprom.h
@@ -25,4 +25,5 @@  int eeprom_write(uint dev_addr, uint offset, uchar *buffer, uint cnt);
 # define CONFIG_SYS_DEF_EEPROM_ADDR CONFIG_SYS_I2C_EEPROM_ADDR
 #endif
 
+#include <linux/errno.h>
 #endif
diff --git a/include/hwspinlock.h b/include/hwspinlock.h
index 99389c13c24..88a2868b70e 100644
--- a/include/hwspinlock.h
+++ b/include/hwspinlock.h
@@ -12,6 +12,7 @@ 
  * critical sections and synchronisation between multiprocessors.
  */
 
+#include <linux/errno.h>
 struct udevice;
 
 /**
diff --git a/include/linux/soc/ti/ti_sci_protocol.h b/include/linux/soc/ti/ti_sci_protocol.h
index eb916ba1019..0d02ca82aef 100644
--- a/include/linux/soc/ti/ti_sci_protocol.h
+++ b/include/linux/soc/ti/ti_sci_protocol.h
@@ -21,6 +21,7 @@ 
  * @firmware_description: Firmware description (not usually used).
  */
 #include <linux/bitops.h>
+#include <linux/errno.h>
 struct ti_sci_version_info {
 	u8 abi_major;
 	u8 abi_minor;
diff --git a/include/mipi_dsi.h b/include/mipi_dsi.h
index c8a7d3daefa..33eae9fb6d0 100644
--- a/include/mipi_dsi.h
+++ b/include/mipi_dsi.h
@@ -17,6 +17,7 @@ 
 
 #include <mipi_display.h>
 #include <linux/bitops.h>
+#include <linux/errno.h>
 
 struct mipi_dsi_host;
 struct mipi_dsi_device;
diff --git a/include/power-domain.h b/include/power-domain.h
index 72ff2ff25ba..12945f07854 100644
--- a/include/power-domain.h
+++ b/include/power-domain.h
@@ -42,6 +42,7 @@ 
  * by which power domains are managed.
  */
 
+#include <linux/errno.h>
 struct udevice;
 
 /**
diff --git a/include/power/sandbox_pmic.h b/include/power/sandbox_pmic.h
index 1dbd15b5235..25cb95db84f 100644
--- a/include/power/sandbox_pmic.h
+++ b/include/power/sandbox_pmic.h
@@ -7,6 +7,7 @@ 
 #ifndef _SANDBOX_PMIC_H_
 #define  _SANDBOX_PMIC_H_
 
+#include <linux/errno.h>
 #define SANDBOX_LDO_DRIVER		"sandbox_ldo"
 #define SANDBOX_OF_LDO_PREFIX		"ldo"
 #define SANDBOX_BUCK_DRIVER		"sandbox_buck"
diff --git a/include/regmap.h b/include/regmap.h
index bae96a6ef0b..5a3f3dce02c 100644
--- a/include/regmap.h
+++ b/include/regmap.h
@@ -9,6 +9,7 @@ 
 
 #include <time.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 /**
  * DOC: Overview
diff --git a/include/remoteproc.h b/include/remoteproc.h
index a903acb9b24..92de5604a80 100644
--- a/include/remoteproc.h
+++ b/include/remoteproc.h
@@ -14,6 +14,7 @@ 
  * platforms have moved to dm/fdt.
  */
 #include <dm/platdata.h>	/* For platform data support - non dt world */
+#include <linux/errno.h>
 
 /**
  * enum rproc_mem_type - What type of memory model does the rproc use
diff --git a/include/soc.h b/include/soc.h
index a52a300a84a..eda52d78cdf 100644
--- a/include/soc.h
+++ b/include/soc.h
@@ -7,6 +7,7 @@ 
 #ifndef __SOC_H
 #define __SOC_H
 
+#include <linux/errno.h>
 #define SOC_MAX_STR_SIZE	128
 
 struct udevice;
diff --git a/include/spi-mem.h b/include/spi-mem.h
index 893f7bd7337..da495777bba 100644
--- a/include/spi-mem.h
+++ b/include/spi-mem.h
@@ -15,6 +15,7 @@ 
 #include <dm.h>
 #include <errno.h>
 #include <spi.h>
+#include <linux/errno.h>
 
 #define SPI_MEM_OP_CMD(__opcode, __buswidth)			\
 	{							\
diff --git a/include/spi_flash.h b/include/spi_flash.h
index 35af2cf5707..8cab4f27088 100644
--- a/include/spi_flash.h
+++ b/include/spi_flash.h
@@ -11,6 +11,7 @@ 
 
 #include <dm.h>	/* Because we dereference struct udevice here */
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <linux/types.h>
 #include <linux/mtd/spi-nor.h>
diff --git a/include/splash.h b/include/splash.h
index 7fd2de8fea1..8b70e4a8068 100644
--- a/include/splash.h
+++ b/include/splash.h
@@ -23,6 +23,7 @@ 
 #define _SPLASH_H_
 
 #include <errno.h>
+#include <linux/errno.h>
 
 enum splash_storage {
 	SPLASH_STORAGE_NAND,
diff --git a/include/tlv_eeprom.h b/include/tlv_eeprom.h
index f7e130296a7..99cefa61dfa 100644
--- a/include/tlv_eeprom.h
+++ b/include/tlv_eeprom.h
@@ -8,6 +8,7 @@ 
 #define __TLV_EEPROM_H_
 
 #include <compiler.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /*
diff --git a/include/u-boot/aes.h b/include/u-boot/aes.h
index 32281041de2..ee686394509 100644
--- a/include/u-boot/aes.h
+++ b/include/u-boot/aes.h
@@ -8,6 +8,7 @@ 
 
 #include <errno.h>
 #include <image.h>
+#include <linux/errno.h>
 
 #if IMAGE_ENABLE_ENCRYPT
 int image_aes_encrypt(struct image_cipher_info *info,
diff --git a/include/u-boot/rsa.h b/include/u-boot/rsa.h
index bed1c097c2c..6d5f50a0030 100644
--- a/include/u-boot/rsa.h
+++ b/include/u-boot/rsa.h
@@ -13,6 +13,7 @@ 
 
 #include <errno.h>
 #include <image.h>
+#include <linux/errno.h>
 
 /**
  * struct rsa_public_key - holder for a public key
diff --git a/lib/acpi/acpi_device.c b/lib/acpi/acpi_device.c
index f891f3ade90..9e31a69c20f 100644
--- a/lib/acpi/acpi_device.c
+++ b/lib/acpi/acpi_device.c
@@ -17,6 +17,7 @@ 
 #include <acpi/acpigen.h>
 #include <asm-generic/gpio.h>
 #include <dm/acpi.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /**
diff --git a/lib/acpi/acpi_dp.c b/lib/acpi/acpi_dp.c
index 194e79d7d03..87e7bc4313b 100644
--- a/lib/acpi/acpi_dp.c
+++ b/lib/acpi/acpi_dp.c
@@ -14,6 +14,7 @@ 
 #include <acpi/acpigen.h>
 #include <acpi/acpi_dp.h>
 #include <dm/acpi.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static void acpi_dp_write_array(struct acpi_ctx *ctx,
diff --git a/lib/acpi/acpi_table.c b/lib/acpi/acpi_table.c
index d6abb6068a6..0f6cb8728cd 100644
--- a/lib/acpi/acpi_table.c
+++ b/lib/acpi/acpi_table.c
@@ -15,6 +15,7 @@ 
 #include <acpi/acpi_table.h>
 #include <asm/global_data.h>
 #include <dm/acpi.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 int acpi_create_dmar(struct acpi_dmar *dmar, enum dmar_flags flags)
diff --git a/lib/acpi/acpigen.c b/lib/acpi/acpigen.c
index 0906b1d3030..f119de2bca6 100644
--- a/lib/acpi/acpigen.c
+++ b/lib/acpi/acpigen.c
@@ -16,6 +16,7 @@ 
 #include <acpi/acpi_device.h>
 #include <acpi/acpi_table.h>
 #include <dm/acpi.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 u8 *acpigen_get_current(struct acpi_ctx *ctx)
diff --git a/lib/aes/aes-decrypt.c b/lib/aes/aes-decrypt.c
index 09fdf38df63..3b01d1c8cbb 100644
--- a/lib/aes/aes-decrypt.c
+++ b/lib/aes/aes-decrypt.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <malloc.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #endif
 #include <image.h>
diff --git a/lib/bch.c b/lib/bch.c
index 7f82cef242b..578f4191309 100644
--- a/lib/bch.c
+++ b/lib/bch.c
@@ -59,6 +59,7 @@ 
 #include <malloc.h>
 #include <ubi_uboot.h>
 #include <dm/devres.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #include <linux/bitops.h>
diff --git a/lib/binman.c b/lib/binman.c
index 7a8ad62c4a8..f6c2d0a6432 100644
--- a/lib/binman.c
+++ b/lib/binman.c
@@ -12,6 +12,7 @@ 
 #include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
+#include <linux/errno.h>
 
 /**
  * struct binman_info - Information needed by the binman library
diff --git a/lib/crypto/asymmetric_type.c b/lib/crypto/asymmetric_type.c
index 24c2d15ef97..46d0dd468e5 100644
--- a/lib/crypto/asymmetric_type.c
+++ b/lib/crypto/asymmetric_type.c
@@ -18,6 +18,7 @@ 
 #include <linux/compat.h>
 #include <linux/ctype.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #else
diff --git a/lib/crypto/pkcs7_parser.c b/lib/crypto/pkcs7_parser.c
index d5efa828d6a..3cb13fae86d 100644
--- a/lib/crypto/pkcs7_parser.c
+++ b/lib/crypto/pkcs7_parser.c
@@ -11,6 +11,7 @@ 
 #include <dm/devres.h>
 #include <linux/bitops.h>
 #include <linux/compat.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #endif
 #include <linux/kernel.h>
diff --git a/lib/crypto/pkcs7_verify.c b/lib/crypto/pkcs7_verify.c
index 5ca268ee00c..2d9113fd2e0 100644
--- a/lib/crypto/pkcs7_verify.c
+++ b/lib/crypto/pkcs7_verify.c
@@ -15,6 +15,7 @@ 
 #include <linux/bitops.h>
 #include <linux/compat.h>
 #include <linux/asn1.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <u-boot/rsa-checksum.h>
diff --git a/lib/crypto/public_key.c b/lib/crypto/public_key.c
index 839f867050a..4b64adbe352 100644
--- a/lib/crypto/public_key.c
+++ b/lib/crypto/public_key.c
@@ -14,6 +14,7 @@ 
 #include <linux/bug.h>
 #include <linux/compat.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #else
diff --git a/lib/crypto/rsa_helper.c b/lib/crypto/rsa_helper.c
index c941d40fd7a..acea8b26213 100644
--- a/lib/crypto/rsa_helper.c
+++ b/lib/crypto/rsa_helper.c
@@ -15,6 +15,7 @@ 
 #include <linux/fips.h>
 #endif
 #include <crypto/internal/rsa.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include "rsapubkey.asn1.h"
 #ifndef __UBOOT__
diff --git a/lib/crypto/x509_cert_parser.c b/lib/crypto/x509_cert_parser.c
index a0f0689118f..909190c8af8 100644
--- a/lib/crypto/x509_cert_parser.c
+++ b/lib/crypto/x509_cert_parser.c
@@ -8,6 +8,7 @@ 
 #define pr_fmt(fmt) "X.509: "fmt
 #include <log.h>
 #include <dm/devres.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #ifndef __UBOOT__
 #include <linux/export.h>
diff --git a/lib/efi/efi_app.c b/lib/efi/efi_app.c
index c1796f83a59..046ca411e42 100644
--- a/lib/efi/efi_app.c
+++ b/lib/efi/efi_app.c
@@ -18,6 +18,7 @@ 
 #include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <linux/types.h>
 #include <efi.h>
diff --git a/lib/efi/efi_info.c b/lib/efi/efi_info.c
index 4d78923c4d4..6ba042f6894 100644
--- a/lib/efi/efi_info.c
+++ b/lib/efi/efi_info.c
@@ -10,6 +10,7 @@ 
 #include <errno.h>
 #include <mapmem.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 
 int efi_info_get(enum efi_entry_t type, void **datap, int *sizep)
 {
diff --git a/lib/efi/efi_stub.c b/lib/efi/efi_stub.c
index 97a709904df..ef8b80a4625 100644
--- a/lib/efi/efi_stub.c
+++ b/lib/efi/efi_stub.c
@@ -20,6 +20,7 @@ 
 #include <asm/cpu.h>
 #include <asm/io.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <linux/types.h>
 
diff --git a/lib/efi_driver/efi_block_device.c b/lib/efi_driver/efi_block_device.c
index 5efd63ec93d..54f83eee596 100644
--- a/lib/efi_driver/efi_block_device.c
+++ b/lib/efi_driver/efi_block_device.c
@@ -35,6 +35,7 @@ 
 #include <vsprintf.h>
 #include <dm/device-internal.h>
 #include <dm/root.h>
+#include <linux/errno.h>
 
 /*
  * EFI attributes of the udevice handled by this driver.
diff --git a/lib/efi_loader/efi_variable_tee.c b/lib/efi_loader/efi_variable_tee.c
index df34bc5974d..9f0dbcd79e7 100644
--- a/lib/efi_loader/efi_variable_tee.c
+++ b/lib/efi_loader/efi_variable_tee.c
@@ -14,6 +14,7 @@ 
 #include <tee.h>
 #include <malloc.h>
 #include <mm_communication.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 static efi_uintn_t max_buffer_size;	/* comm + var + func + data */
diff --git a/lib/errno_str.c b/lib/errno_str.c
index 2e5f4a887d5..d342ed70b60 100644
--- a/lib/errno_str.c
+++ b/lib/errno_str.c
@@ -6,6 +6,7 @@ 
  */
 #include <common.h>
 #include <errno.h>
+#include <linux/errno.h>
 
 #define ERRNO_MSG(errno, msg)	msg
 #define SAME_AS(x)		(const char *)&errno_message[x]
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index faf7be634f3..3ac889ba730 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -23,6 +23,7 @@ 
 #include <fdt_support.h>
 #include <gzip.h>
 #include <mapmem.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <serial.h>
 #include <asm/global_data.h>
diff --git a/lib/hashtable.c b/lib/hashtable.c
index f3f99bf1dfc..c5581800d65 100644
--- a/lib/hashtable.c
+++ b/lib/hashtable.c
@@ -17,6 +17,7 @@ 
 #include <malloc.h>
 #include <sort.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 #ifdef USE_HOSTCC		/* HOST build */
diff --git a/lib/list_sort.c b/lib/list_sort.c
index 44d85ff43fe..0c060528504 100644
--- a/lib/list_sort.c
+++ b/lib/list_sort.c
@@ -8,6 +8,7 @@ 
 #include <linux/compat.h>
 #include <common.h>
 #include <malloc.h>
+#include <linux/errno.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #endif
diff --git a/lib/lz4_wrapper.c b/lib/lz4_wrapper.c
index edce13da6bd..c5ebe962461 100644
--- a/lib/lz4_wrapper.c
+++ b/lib/lz4_wrapper.c
@@ -7,6 +7,7 @@ 
 #include <compiler.h>
 #include <image.h>
 #include <lz4.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/types.h>
diff --git a/lib/membuff.c b/lib/membuff.c
index b0fc716a04b..6abac4114f9 100644
--- a/lib/membuff.c
+++ b/lib/membuff.c
@@ -10,6 +10,7 @@ 
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include "membuff.h"
 
diff --git a/lib/of_live.c b/lib/of_live.c
index c27a7a6e24f..fd83a6ba420 100644
--- a/lib/of_live.c
+++ b/lib/of_live.c
@@ -10,6 +10,7 @@ 
 
 #include <common.h>
 #include <log.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <of_live.h>
 #include <malloc.h>
diff --git a/lib/optee/optee.c b/lib/optee/optee.c
index c902eee3bc4..8493ca6c621 100644
--- a/lib/optee/optee.c
+++ b/lib/optee/optee.c
@@ -10,6 +10,7 @@ 
 #include <log.h>
 #include <malloc.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
 #include <tee/optee.h>
diff --git a/lib/rsa/rsa-keyprop.c b/lib/rsa/rsa-keyprop.c
index 4114e33d36e..e5ece615245 100644
--- a/lib/rsa/rsa-keyprop.c
+++ b/lib/rsa/rsa-keyprop.c
@@ -14,6 +14,7 @@ 
 #include <malloc.h>
 #include <asm/byteorder.h>
 #include <crypto/internal/rsa.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <u-boot/rsa-mod-exp.h>
 
diff --git a/lib/strto.c b/lib/strto.c
index e6f69b31e47..9636c797ea5 100644
--- a/lib/strto.c
+++ b/lib/strto.c
@@ -13,6 +13,7 @@ 
 #include <errno.h>
 #include <vsprintf.h>
 #include <linux/ctype.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /* from lib/kstrtox.c */
diff --git a/lib/trace.c b/lib/trace.c
index 37f53dad235..8ab4258b35a 100644
--- a/lib/trace.c
+++ b/lib/trace.c
@@ -12,6 +12,7 @@ 
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/sections.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/lib/uuid.c b/lib/uuid.c
index 91f99bcb5ff..3a6cd7e87fd 100644
--- a/lib/uuid.c
+++ b/lib/uuid.c
@@ -17,6 +17,7 @@ 
 #include <asm/io.h>
 #include <part_efi.h>
 #include <malloc.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /*
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 18d4bc5a27b..7be3127c2a1 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -24,6 +24,7 @@ 
 #include <vsprintf.h>
 #include <linux/ctype.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <linux/types.h>
 #include <linux/string.h>
 
diff --git a/net/eth-uclass.c b/net/eth-uclass.c
index 9af7971fc49..a20b896170c 100644
--- a/net/eth-uclass.c
+++ b/net/eth-uclass.c
@@ -16,6 +16,7 @@ 
 #include <asm/global_data.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <net/pcap.h>
 #include "eth_internal.h"
diff --git a/net/mdio-mux-uclass.c b/net/mdio-mux-uclass.c
index 6674eb6bee7..1325484e0d9 100644
--- a/net/mdio-mux-uclass.c
+++ b/net/mdio-mux-uclass.c
@@ -11,6 +11,7 @@ 
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
 #include <dm/lists.h>
+#include <linux/errno.h>
 
 #define MDIO_MUX_CHILD_DRV_NAME	"mdio-mux-bus-drv"
 
diff --git a/net/mdio-uclass.c b/net/mdio-uclass.c
index 1c9ce801dc8..3e39a9b74f8 100644
--- a/net/mdio-uclass.c
+++ b/net/mdio-uclass.c
@@ -13,6 +13,7 @@ 
 #include <dm/device_compat.h>
 #include <dm/uclass-internal.h>
 #include <linux/compat.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 
 /* DT node properties for MAC-PHY interface */
diff --git a/net/net.c b/net/net.c
index 3ead48c768f..8fb5c25c00d 100644
--- a/net/net.c
+++ b/net/net.c
@@ -100,6 +100,7 @@ 
 #include <stdio.h>
 #include <time.h>
 #include <vsprintf.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <net/fastboot.h>
 #include <net/tftp.h>
diff --git a/net/pcap.c b/net/pcap.c
index 31cfc1ca848..907aa1cda09 100644
--- a/net/pcap.c
+++ b/net/pcap.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <net.h>
 #include <stdio.h>
+#include <linux/errno.h>
 #include <linux/string.h>
 #include <net/pcap.h>
 #include <time.h>
diff --git a/test/bloblist.c b/test/bloblist.c
index b93e2713dfd..19b8f65b81b 100644
--- a/test/bloblist.c
+++ b/test/bloblist.c
@@ -8,6 +8,7 @@ 
 #include <log.h>
 #include <mapmem.h>
 #include <asm/global_data.h>
+#include <linux/errno.h>
 #include <test/suites.h>
 #include <test/test.h>
 #include <test/ut.h>
diff --git a/test/dm/acpi.c b/test/dm/acpi.c
index b6988f26739..6890c51859d 100644
--- a/test/dm/acpi.c
+++ b/test/dm/acpi.c
@@ -20,6 +20,7 @@ 
 #include <asm/global_data.h>
 #include <dm/acpi.h>
 #include <dm/test.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 #include "acpi.h"
 
diff --git a/test/dm/acpi_dp.c b/test/dm/acpi_dp.c
index 93604b87e18..8f4ec5fccb2 100644
--- a/test/dm/acpi_dp.c
+++ b/test/dm/acpi_dp.c
@@ -14,6 +14,7 @@ 
 #include <asm/unaligned.h>
 #include <dm/acpi.h>
 #include <dm/test.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 #include "acpi.h"
 
diff --git a/test/dm/acpigen.c b/test/dm/acpigen.c
index 14a758d08a3..094af174526 100644
--- a/test/dm/acpigen.c
+++ b/test/dm/acpigen.c
@@ -18,6 +18,7 @@ 
 #include <dm/acpi.h>
 #include <dm/test.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 #include "acpi.h"
 
diff --git a/test/dm/adc.c b/test/dm/adc.c
index da7bd4bf1f9..2b9dd4d8a13 100644
--- a/test/dm/adc.c
+++ b/test/dm/adc.c
@@ -14,6 +14,7 @@ 
 #include <dm/test.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <linux/errno.h>
 #include <power/regulator.h>
 #include <power/sandbox_pmic.h>
 #include <sandbox-adc.h>
diff --git a/test/dm/blk.c b/test/dm/blk.c
index ffc0fcd1491..57dc666b8b6 100644
--- a/test/dm/blk.c
+++ b/test/dm/blk.c
@@ -11,6 +11,7 @@ 
 #include <asm/global_data.h>
 #include <asm/state.h>
 #include <dm/test.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/test/dm/bus.c b/test/dm/bus.c
index 24c2b09d81c..ba9cd6a71fc 100644
--- a/test/dm/bus.c
+++ b/test/dm/bus.c
@@ -15,6 +15,7 @@ 
 #include <dm/test.h>
 #include <dm/uclass-internal.h>
 #include <dm/util.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/test/dm/button.c b/test/dm/button.c
index 890f470d97a..68baed50a4f 100644
--- a/test/dm/button.c
+++ b/test/dm/button.c
@@ -10,6 +10,7 @@ 
 #include <button.h>
 #include <asm/gpio.h>
 #include <dm/test.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 /* Base test of the button uclass */
diff --git a/test/dm/core.c b/test/dm/core.c
index 194dc130a16..c357e56efea 100644
--- a/test/dm/core.c
+++ b/test/dm/core.c
@@ -18,6 +18,7 @@ 
 #include <dm/util.h>
 #include <dm/test.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/test/dm/eth.c b/test/dm/eth.c
index b58c9640a27..5e24b87fca3 100644
--- a/test/dm/eth.c
+++ b/test/dm/eth.c
@@ -17,6 +17,7 @@ 
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
 #include <asm/eth.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 #define DM_TEST_ETH_NUM		4
diff --git a/test/dm/gpio.c b/test/dm/gpio.c
index b7ee8fc3cae..4bcd91a03a6 100644
--- a/test/dm/gpio.c
+++ b/test/dm/gpio.c
@@ -13,6 +13,7 @@ 
 #include <dm/test.h>
 #include <dm/util.h>
 #include <asm/gpio.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 /* Test that sandbox GPIOs work correctly */
diff --git a/test/dm/i2c.c b/test/dm/i2c.c
index 2025c4216d0..fc54c7323c3 100644
--- a/test/dm/i2c.c
+++ b/test/dm/i2c.c
@@ -16,6 +16,7 @@ 
 #include <dm/uclass-internal.h>
 #include <dm/util.h>
 #include <hexdump.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 static const int busnum;
diff --git a/test/dm/irq.c b/test/dm/irq.c
index 51bae31b0f8..0a495ea270e 100644
--- a/test/dm/irq.c
+++ b/test/dm/irq.c
@@ -11,6 +11,7 @@ 
 #include <acpi/acpi_device.h>
 #include <asm/test.h>
 #include <dm/test.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 /* Base test of the irq uclass */
diff --git a/test/dm/k210_pll.c b/test/dm/k210_pll.c
index 54764f269c5..94740ce0926 100644
--- a/test/dm/k210_pll.c
+++ b/test/dm/k210_pll.c
@@ -4,6 +4,7 @@ 
  */
 
 #include <common.h>
+#include <linux/errno.h>
 /* For DIV_ROUND_DOWN_ULL, defined in linux/kernel.h */
 #include <div64.h>
 #include <dm/test.h>
diff --git a/test/dm/led.c b/test/dm/led.c
index 00de7b3997c..76be0893de1 100644
--- a/test/dm/led.c
+++ b/test/dm/led.c
@@ -8,6 +8,7 @@ 
 #include <led.h>
 #include <asm/gpio.h>
 #include <dm/test.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 /* Base test of the led uclass */
diff --git a/test/dm/mailbox.c b/test/dm/mailbox.c
index e6c521b8b54..a511da04d1a 100644
--- a/test/dm/mailbox.c
+++ b/test/dm/mailbox.c
@@ -8,6 +8,7 @@ 
 #include <malloc.h>
 #include <dm/test.h>
 #include <asm/mbox.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 static int dm_test_mailbox(struct unit_test_state *uts)
diff --git a/test/dm/nop.c b/test/dm/nop.c
index 2df29f3d15b..d511249c5bb 100644
--- a/test/dm/nop.c
+++ b/test/dm/nop.c
@@ -13,6 +13,7 @@ 
 #include <dm/device.h>
 #include <dm/test.h>
 #include <misc.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 static int noptest_bind(struct udevice *parent)
diff --git a/test/dm/pch.c b/test/dm/pch.c
index 54e33d187b6..d054723627d 100644
--- a/test/dm/pch.c
+++ b/test/dm/pch.c
@@ -8,6 +8,7 @@ 
 #include <pch.h>
 #include <asm/test.h>
 #include <dm/test.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 /* Test that sandbox PCH works correctly */
diff --git a/test/dm/phy.c b/test/dm/phy.c
index 99f01195578..0e6aee7069b 100644
--- a/test/dm/phy.c
+++ b/test/dm/phy.c
@@ -9,6 +9,7 @@ 
 #include <generic-phy.h>
 #include <log.h>
 #include <dm/test.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 /* Base test of the phy uclass */
diff --git a/test/dm/pwm.c b/test/dm/pwm.c
index b52ee21a69e..cbc38bffa1f 100644
--- a/test/dm/pwm.c
+++ b/test/dm/pwm.c
@@ -7,6 +7,7 @@ 
 #include <dm.h>
 #include <pwm.h>
 #include <dm/test.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 /* Basic test of the pwm uclass */
diff --git a/test/dm/regmap.c b/test/dm/regmap.c
index 4082778a56a..92d6bf7be29 100644
--- a/test/dm/regmap.c
+++ b/test/dm/regmap.c
@@ -13,6 +13,7 @@ 
 #include <asm/test.h>
 #include <dm/test.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 /* Base test of register maps */
diff --git a/test/dm/regulator.c b/test/dm/regulator.c
index ca916eeebb6..2ba90755a7d 100644
--- a/test/dm/regulator.c
+++ b/test/dm/regulator.c
@@ -17,6 +17,7 @@ 
 #include <dm/util.h>
 #include <dm/test.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/sandbox_pmic.h>
diff --git a/test/dm/remoteproc.c b/test/dm/remoteproc.c
index 9511c7dd6f5..6b72fa0c2b9 100644
--- a/test/dm/remoteproc.c
+++ b/test/dm/remoteproc.c
@@ -10,6 +10,7 @@ 
 #include <remoteproc.h>
 #include <asm/io.h>
 #include <dm/test.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 /**
  * dm_test_remoteproc_base() - test the operations after initializations
diff --git a/test/dm/rtc.c b/test/dm/rtc.c
index cc91d91f398..d6f7ce6ae44 100644
--- a/test/dm/rtc.c
+++ b/test/dm/rtc.c
@@ -15,6 +15,7 @@ 
 #include <asm/rtc.h>
 #include <asm/test.h>
 #include <dm/test.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 /* Simple RTC sanity check */
diff --git a/test/dm/serial.c b/test/dm/serial.c
index 6237693cb80..a9ca9689ce8 100644
--- a/test/dm/serial.c
+++ b/test/dm/serial.c
@@ -8,6 +8,7 @@ 
 #include <serial.h>
 #include <dm.h>
 #include <dm/test.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 static int dm_test_serial(struct unit_test_state *uts)
diff --git a/test/dm/sound.c b/test/dm/sound.c
index aa5368f05b9..bac17db3354 100644
--- a/test/dm/sound.c
+++ b/test/dm/sound.c
@@ -8,6 +8,7 @@ 
 #include <dm.h>
 #include <sound.h>
 #include <dm/test.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 #include <asm/test.h>
 
diff --git a/test/dm/spi.c b/test/dm/spi.c
index ff2cddd2459..08009fb4fd2 100644
--- a/test/dm/spi.c
+++ b/test/dm/spi.c
@@ -13,6 +13,7 @@ 
 #include <dm/test.h>
 #include <dm/uclass-internal.h>
 #include <dm/util.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 /* Test that we can find buses and chip-selects */
diff --git a/test/dm/syscon-reset.c b/test/dm/syscon-reset.c
index edabdb2e781..85ac3d8ade0 100644
--- a/test/dm/syscon-reset.c
+++ b/test/dm/syscon-reset.c
@@ -9,6 +9,7 @@ 
 #include <regmap.h>
 #include <reset.h>
 #include <syscon.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 #include <asm/test.h>
 #include <linux/bitops.h>
diff --git a/test/dm/syscon.c b/test/dm/syscon.c
index 06a1c69ac5c..4b39651f332 100644
--- a/test/dm/syscon.c
+++ b/test/dm/syscon.c
@@ -11,6 +11,7 @@ 
 #include <asm/test.h>
 #include <dm/test.h>
 #include <linux/err.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 /* Base test of system controllers */
diff --git a/test/dm/sysreset.c b/test/dm/sysreset.c
index 5b2358ef674..1d58126ea80 100644
--- a/test/dm/sysreset.c
+++ b/test/dm/sysreset.c
@@ -9,6 +9,7 @@ 
 #include <asm/state.h>
 #include <asm/test.h>
 #include <dm/test.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 /* Test that we can use particular sysreset devices */
diff --git a/test/dm/tee.c b/test/dm/tee.c
index 632e9960b0b..4a55ab287c4 100644
--- a/test/dm/tee.c
+++ b/test/dm/tee.c
@@ -10,6 +10,7 @@ 
 #include <dm/test.h>
 #include <sandboxtee.h>
 #include <tee.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 #include <tee/optee_ta_avb.h>
 
diff --git a/test/dm/test-driver.c b/test/dm/test-driver.c
index ba85fa313e8..b8d8267097e 100644
--- a/test/dm/test-driver.c
+++ b/test/dm/test-driver.c
@@ -12,6 +12,7 @@ 
 #include <log.h>
 #include <malloc.h>
 #include <dm/test.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 #include <asm/io.h>
 
diff --git a/test/dm/test-fdt.c b/test/dm/test-fdt.c
index 12ec40c7b46..180a8c93f02 100644
--- a/test/dm/test-fdt.c
+++ b/test/dm/test-fdt.c
@@ -20,6 +20,7 @@ 
 #include <dm/util.h>
 #include <dm/lists.h>
 #include <dm/of_access.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/test/dm/test-uclass.c b/test/dm/test-uclass.c
index b6d629a285c..e6a0db0ec7f 100644
--- a/test/dm/test-uclass.c
+++ b/test/dm/test-uclass.c
@@ -13,6 +13,7 @@ 
 #include <errno.h>
 #include <asm/io.h>
 #include <dm/test.h>
+#include <linux/errno.h>
 #include <linux/list.h>
 #include <test/ut.h>
 
diff --git a/test/dm/usb.c b/test/dm/usb.c
index 293c0b43e5f..a4b39846983 100644
--- a/test/dm/usb.c
+++ b/test/dm/usb.c
@@ -15,6 +15,7 @@ 
 #include <dm/device-internal.h>
 #include <dm/test.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 struct keyboard_test_data {
diff --git a/test/dm/video.c b/test/dm/video.c
index 19f78b62390..1ab35482fea 100644
--- a/test/dm/video.c
+++ b/test/dm/video.c
@@ -15,6 +15,7 @@ 
 #include <video_console.h>
 #include <dm/test.h>
 #include <dm/uclass-internal.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 /*
diff --git a/test/dm/virtio.c b/test/dm/virtio.c
index 4a0c0b23b88..191229272be 100644
--- a/test/dm/virtio.c
+++ b/test/dm/virtio.c
@@ -12,6 +12,7 @@ 
 #include <dm/uclass-internal.h>
 #include <dm/root.h>
 #include <dm/test.h>
+#include <linux/errno.h>
 #include <test/ut.h>
 
 /* Basic test of the virtio uclass */
diff --git a/test/env/attr.c b/test/env/attr.c
index 8d5c0f1c3df..64eb14475e8 100644
--- a/test/env/attr.c
+++ b/test/env/attr.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <command.h>
 #include <env_attr.h>
+#include <linux/errno.h>
 #include <test/env.h>
 #include <test/ut.h>
 
diff --git a/test/lib/test_errno_str.c b/test/lib/test_errno_str.c
index 8a9f1fd9805..1a02e712048 100644
--- a/test/lib/test_errno_str.c
+++ b/test/lib/test_errno_str.c
@@ -12,6 +12,7 @@ 
 #include <common.h>
 #include <command.h>
 #include <errno.h>
+#include <linux/errno.h>
 #include <test/lib.h>
 #include <test/test.h>
 #include <test/ut.h>
diff --git a/test/optee/cmd_ut_optee.c b/test/optee/cmd_ut_optee.c
index 9fa4c91e0dd..9153d715918 100644
--- a/test/optee/cmd_ut_optee.c
+++ b/test/optee/cmd_ut_optee.c
@@ -9,6 +9,7 @@ 
 #include <fdt_support.h>
 #include <log.h>
 #include <malloc.h>
+#include <linux/errno.h>
 #include <tee/optee.h>
 
 #include <linux/sizes.h>
diff --git a/test/overlay/cmd_ut_overlay.c b/test/overlay/cmd_ut_overlay.c
index c001fb183fe..ee8c4944e40 100644
--- a/test/overlay/cmd_ut_overlay.c
+++ b/test/overlay/cmd_ut_overlay.c
@@ -11,6 +11,7 @@ 
 #include <image.h>
 #include <log.h>
 #include <malloc.h>
+#include <linux/errno.h>
 
 #include <linux/sizes.h>
 
diff --git a/test/time_ut.c b/test/time_ut.c
index 701b6cb4a7e..1670c5d2184 100644
--- a/test/time_ut.c
+++ b/test/time_ut.c
@@ -10,6 +10,7 @@ 
 #include <stdio.h>
 #include <time.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 
 static int test_get_timer(void)
 {