[RFCv2 12/16] common: Drop linux/kernel.h from common header
Tom Rini
trini at konsulko.com
Wed Aug 19 15:09:04 CEST 2020
From: Simon Glass <sjg at chromium.org>
Move this out of the common header and include it only where needed.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
arch/arc/lib/cpu.c | 1 +
arch/arm/cpu/arm1136/mx31/generic.c | 1 +
arch/arm/cpu/arm926ejs/mx25/generic.c | 1 +
arch/arm/cpu/arm926ejs/mx27/generic.c | 1 +
arch/arm/cpu/arm926ejs/mxs/spl_boot.c | 1 +
arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c | 1 +
arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 1 +
arch/arm/cpu/arm926ejs/spear/spear600.c | 1 +
arch/arm/cpu/armv7/bcm235xx/clk-bcm235xx.c | 1 +
arch/arm/cpu/armv7/bcm235xx/clk-core.c | 1 +
arch/arm/cpu/armv7/bcm235xx/clk-core.h | 1 +
arch/arm/cpu/armv7/bcm281xx/clk-bcm281xx.c | 1 +
arch/arm/cpu/armv7/bcm281xx/clk-core.c | 1 +
arch/arm/cpu/armv7/bcm281xx/clk-core.h | 1 +
arch/arm/cpu/armv7/exception_level.c | 1 +
arch/arm/cpu/armv7/kona-common/clk-stubs.c | 1 +
arch/arm/cpu/armv7/ls102xa/cpu.c | 1 +
arch/arm/cpu/armv7/ls102xa/fdt.c | 1 +
arch/arm/cpu/armv7/ls102xa/ls102xa_serdes.c | 1 +
arch/arm/cpu/armv7/ls102xa/soc.c | 1 +
arch/arm/cpu/armv7/sunxi/psci.c | 1 +
arch/arm/cpu/armv7/virt-v7.c | 1 +
arch/arm/cpu/armv8/cache_v8.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/icid.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/ls1012a_serdes.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/ls1028_ids.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/ls1028a_serdes.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/ls1043_ids.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/ls1043a_serdes.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/ls1046_ids.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/ls1046a_serdes.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/ls1088_ids.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/ls1088a_serdes.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/ls2080a_serdes.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/ls2088_ids.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/lx2160_ids.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/lx2160a_serdes.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/mp.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/ppa.c | 1 +
arch/arm/cpu/armv8/fsl-layerscape/soc.c | 1 +
arch/arm/cpu/armv8/fwcall.c | 1 +
arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h | 1 +
arch/arm/include/asm/arch-fsl-layerscape/soc.h | 1 +
arch/arm/include/asm/arch-imx8/sys_proto.h | 1 +
arch/arm/include/asm/arch-imx8m/clock.h | 1 +
arch/arm/include/asm/arch-mx25/clock.h | 1 +
arch/arm/include/asm/arch-mx5/clock.h | 1 +
arch/arm/include/asm/arch-mx6/clock.h | 1 +
arch/arm/include/asm/arch-mx7/clock_slice.h | 1 +
arch/arm/include/asm/arch-mx7ulp/pcc.h | 1 +
arch/arm/include/asm/arch-mx7ulp/scg.h | 1 +
arch/arm/include/asm/arch-rk3308/cru_rk3308.h | 1 +
arch/arm/include/asm/arch-rk3308/grf_rk3308.h | 1 +
arch/arm/include/asm/arch-rockchip/clock.h | 2 ++
arch/arm/include/asm/arch-rockchip/cpu_rk3288.h | 1 +
arch/arm/include/asm/arch-rockchip/cru_px30.h | 1 +
arch/arm/include/asm/arch-rockchip/cru_rk3036.h | 1 +
arch/arm/include/asm/arch-rockchip/cru_rk3128.h | 1 +
arch/arm/include/asm/arch-rockchip/cru_rk3188.h | 2 ++
arch/arm/include/asm/arch-rockchip/cru_rk322x.h | 1 +
arch/arm/include/asm/arch-rockchip/cru_rk3288.h | 1 +
arch/arm/include/asm/arch-rockchip/cru_rk3328.h | 1 +
arch/arm/include/asm/arch-rockchip/cru_rk3368.h | 1 +
arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 1 +
arch/arm/include/asm/arch-rockchip/cru_rv1108.h | 1 +
arch/arm/include/asm/arch-rockchip/ddr_rk3188.h | 1 +
arch/arm/include/asm/arch-rockchip/ddr_rk3288.h | 1 +
arch/arm/include/asm/arch-rockchip/ddr_rk3368.h | 1 +
arch/arm/include/asm/arch-rockchip/edp_rk3288.h | 1 +
arch/arm/include/asm/arch-rockchip/gpio.h | 1 +
arch/arm/include/asm/arch-rockchip/grf_px30.h | 1 +
arch/arm/include/asm/arch-rockchip/grf_rk3036.h | 1 +
arch/arm/include/asm/arch-rockchip/grf_rk3128.h | 1 +
arch/arm/include/asm/arch-rockchip/grf_rk3188.h | 1 +
arch/arm/include/asm/arch-rockchip/grf_rk322x.h | 1 +
arch/arm/include/asm/arch-rockchip/grf_rk3328.h | 1 +
arch/arm/include/asm/arch-rockchip/grf_rk3368.h | 1 +
arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 1 +
arch/arm/include/asm/arch-rockchip/grf_rv1108.h | 1 +
arch/arm/include/asm/arch-rockchip/pmu_rk3188.h | 1 +
arch/arm/include/asm/arch-rockchip/pmu_rk3288.h | 1 +
arch/arm/include/asm/arch-rockchip/pmu_rk3399.h | 1 +
arch/arm/include/asm/arch-rockchip/sdram_rk3036.h | 1 +
arch/arm/include/asm/arch-rockchip/sdram_rk322x.h | 1 +
arch/arm/include/asm/arch-rockchip/sdram_rk3288.h | 1 +
arch/arm/include/asm/arch-rockchip/vop_rk3288.h | 1 +
arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 1 +
arch/arm/include/asm/arch-sunxi/dram.h | 1 +
arch/arm/include/asm/arch-sunxi/dram_sun50i_h6.h | 1 +
arch/arm/include/asm/arch-sunxi/dram_sunxi_dw.h | 1 +
arch/arm/include/asm/arch-sunxi/lcdc.h | 1 +
arch/arm/include/asm/arch-tegra/ap.h | 1 +
arch/arm/include/asm/arch-tegra/clock.h | 1 +
arch/arm/include/asm/armv7.h | 1 +
arch/arm/include/asm/armv8/sec_firmware.h | 2 ++
arch/arm/include/asm/mach-imx/hab.h | 1 +
arch/arm/include/asm/mach-imx/iomux-v3.h | 1 +
arch/arm/lib/bootm.c | 1 +
arch/arm/lib/cache-cp15.c | 1 +
arch/arm/lib/cache.c | 1 +
arch/arm/lib/gic-v3-its.c | 1 +
arch/arm/lib/image.c | 1 +
arch/arm/mach-at91/atmel_sfr.c | 1 +
arch/arm/mach-at91/include/mach/at91_common.h | 1 +
arch/arm/mach-at91/include/mach/atmel_usba_udc.h | 1 +
arch/arm/mach-bcm283x/mbox.c | 1 +
arch/arm/mach-davinci/include/mach/davinci_misc.h | 1 +
arch/arm/mach-exynos/clock.c | 1 +
arch/arm/mach-exynos/clock_init_exynos5.c | 1 +
arch/arm/mach-exynos/dmc_init_ddr3.c | 2 ++
arch/arm/mach-exynos/pinmux.c | 1 +
arch/arm/mach-exynos/spl_boot.c | 1 +
arch/arm/mach-imx/cmd_bmode.c | 1 +
arch/arm/mach-imx/cmd_nandbcb.c | 1 +
arch/arm/mach-imx/ddrmc-vf610.c | 1 +
arch/arm/mach-imx/hab.c | 1 +
arch/arm/mach-imx/i2c-mxv7.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/imxrt/soc.c | 1 +
arch/arm/mach-imx/mac.c | 1 +
arch/arm/mach-imx/mx5/clock.c | 1 +
arch/arm/mach-imx/mx6/clock.c | 1 +
arch/arm/mach-imx/mx6/ddr.c | 1 +
arch/arm/mach-imx/mx6/litesom.c | 1 +
arch/arm/mach-imx/mx6/module_fuse.c | 1 +
arch/arm/mach-imx/mx6/soc.c | 1 +
arch/arm/mach-imx/mx7/clock_slice.c | 1 +
arch/arm/mach-imx/mx7/psci-mx7.c | 1 +
arch/arm/mach-imx/mx7/soc.c | 1 +
arch/arm/mach-imx/mx7ulp/pcc.c | 1 +
arch/arm/mach-imx/mx7ulp/scg.c | 1 +
arch/arm/mach-imx/mx7ulp/soc.c | 1 +
arch/arm/mach-imx/spl.c | 1 +
arch/arm/mach-imx/spl_imx_romapi.c | 1 +
arch/arm/mach-ipq40xx/pinctrl-snapdragon.c | 1 +
arch/arm/mach-k3/am6_init.c | 1 +
arch/arm/mach-k3/common.c | 1 +
arch/arm/mach-k3/j721e_init.c | 1 +
arch/arm/mach-k3/security.c | 1 +
arch/arm/mach-k3/sysfw-loader.c | 1 +
arch/arm/mach-keystone/include/mach/psc_defs.h | 1 +
arch/arm/mach-keystone/psc.c | 1 +
arch/arm/mach-kirkwood/cpu.c | 1 +
arch/arm/mach-mediatek/mt7623/init.c | 1 +
arch/arm/mach-mediatek/mt7629/init.c | 1 +
arch/arm/mach-mediatek/mt8516/init.c | 1 +
arch/arm/mach-meson/board-g12a.c | 1 +
arch/arm/mach-meson/board-info.c | 1 +
arch/arm/mach-mvebu/cpu.c | 1 +
arch/arm/mach-nexell/clock.c | 1 +
arch/arm/mach-nexell/nx_gpio.c | 1 +
arch/arm/mach-nexell/timer.c | 1 +
arch/arm/mach-omap2/abb.c | 1 +
arch/arm/mach-omap2/am33xx/sys_info.c | 1 +
arch/arm/mach-omap2/emif-common.c | 1 +
arch/arm/mach-omap2/omap5/fdt.c | 1 +
arch/arm/mach-omap2/omap5/sdram.c | 1 +
arch/arm/mach-omap2/sec-common.c | 1 +
arch/arm/mach-rmobile/cpu_info.c | 1 +
arch/arm/mach-rmobile/pfc-r8a7740.c | 1 +
arch/arm/mach-rmobile/pfc-sh73a0.c | 1 +
arch/arm/mach-rockchip/board.c | 1 +
arch/arm/mach-rockchip/boot_mode.c | 1 +
arch/arm/mach-rockchip/bootrom.c | 1 +
arch/arm/mach-rockchip/rk3288/rk3288.c | 1 +
arch/arm/mach-rockchip/rk3399/rk3399.c | 1 +
arch/arm/mach-rockchip/sdram.c | 1 +
arch/arm/mach-rockchip/spl.c | 1 +
arch/arm/mach-snapdragon/pinctrl-apq8016.c | 1 +
arch/arm/mach-snapdragon/pinctrl-apq8096.c | 1 +
arch/arm/mach-snapdragon/pinctrl-snapdragon.c | 1 +
arch/arm/mach-socfpga/clock_manager_arria10.c | 1 +
arch/arm/mach-socfpga/firewall.c | 1 +
arch/arm/mach-socfpga/freeze_controller.c | 1 +
arch/arm/mach-socfpga/include/mach/misc.h | 1 +
arch/arm/mach-socfpga/include/mach/reset_manager_gen5.h | 1 +
arch/arm/mach-socfpga/misc_gen5.c | 1 +
arch/arm/mach-socfpga/misc_s10.c | 1 +
arch/arm/mach-socfpga/reset_manager_arria10.c | 1 +
arch/arm/mach-socfpga/reset_manager_gen5.c | 1 +
arch/arm/mach-socfpga/wrap_pinmux_config.c | 1 +
arch/arm/mach-socfpga/wrap_pinmux_config_s10.c | 1 +
arch/arm/mach-socfpga/wrap_sdram_config.c | 1 +
arch/arm/mach-stm32/soc.c | 1 +
arch/arm/mach-stm32mp/bsec.c | 1 +
arch/arm/mach-stm32mp/cmd_stm32key.c | 1 +
arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c | 1 +
arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c | 1 +
arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h | 1 +
arch/arm/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/dram_init.c | 1 +
arch/arm/mach-stm32mp/fdt.c | 1 +
arch/arm/mach-stm32mp/include/mach/bsec.h | 1 +
arch/arm/mach-stm32mp/include/mach/stm32prog.h | 1 +
arch/arm/mach-sunxi/clock_sun4i.c | 1 +
arch/arm/mach-sunxi/clock_sun6i.c | 1 +
arch/arm/mach-sunxi/dram_helpers.c | 1 +
arch/arm/mach-sunxi/dram_sun4i.c | 1 +
arch/arm/mach-sunxi/dram_sun50i_h6.c | 1 +
arch/arm/mach-sunxi/dram_sun6i.c | 1 +
arch/arm/mach-sunxi/dram_sun8i_a33.c | 1 +
arch/arm/mach-sunxi/dram_sun8i_a83t.c | 1 +
arch/arm/mach-sunxi/dram_sunxi_dw.c | 1 +
arch/arm/mach-sunxi/dram_timings/ddr2_v3s.c | 1 +
arch/arm/mach-sunxi/dram_timings/ddr3_1333.c | 1 +
arch/arm/mach-sunxi/dram_timings/h6_ddr3_1333.c | 1 +
arch/arm/mach-sunxi/dram_timings/h6_lpddr3.c | 1 +
arch/arm/mach-sunxi/dram_timings/lpddr3_stock.c | 1 +
arch/arm/mach-sunxi/spl_spi_sunxi.c | 1 +
arch/arm/mach-tegra/board.c | 1 +
arch/arm/mach-tegra/cboot.c | 1 +
arch/arm/mach-tegra/clock.c | 1 +
arch/arm/mach-tegra/dt-setup.c | 1 +
arch/arm/mach-tegra/gpu.c | 1 +
arch/arm/mach-tegra/pmc.c | 1 +
arch/arm/mach-tegra/powergate.c | 1 +
arch/arm/mach-tegra/tegra114/cpu.c | 1 +
arch/arm/mach-tegra/tegra124/clock.c | 1 +
arch/arm/mach-tegra/tegra124/cpu.c | 1 +
arch/arm/mach-tegra/tegra124/xusb-padctl.c | 1 +
arch/arm/mach-tegra/tegra20/funcmux.c | 1 +
arch/arm/mach-tegra/tegra20/warmboot.c | 1 +
arch/arm/mach-tegra/tegra210/xusb-padctl.c | 1 +
arch/arm/mach-tegra/xusb-padctl-dummy.c | 1 +
arch/arm/mach-uniphier/dram/ddrphy-init.h | 1 +
arch/arm/mach-uniphier/dram/ddrphy-ld4.c | 1 +
arch/arm/mach-uniphier/dram/umc-ld4.c | 1 +
arch/arm/mach-uniphier/dram/umc-pro4.c | 1 +
arch/arm/mach-uniphier/dram/umc-pxs2.c | 1 +
arch/arm/mach-uniphier/dram/umc-sld8.c | 1 +
arch/arm/mach-uniphier/micro-support-card.c | 1 +
arch/arm/mach-uniphier/mmc-first-dev.c | 1 +
arch/arm/mach-versal/mp.c | 1 +
arch/arm/mach-zynq/slcr.c | 1 +
arch/arm/mach-zynqmp/include/mach/sys_proto.h | 1 +
arch/arm/mach-zynqmp/mp.c | 1 +
arch/m68k/lib/cache.c | 1 +
arch/m68k/lib/interrupts.c | 1 +
arch/microblaze/cpu/spl.c | 1 +
arch/microblaze/cpu/timer.c | 1 +
arch/mips/cpu/time.c | 1 +
arch/mips/lib/cache.c | 1 +
arch/mips/mach-ath79/ar934x/clk.c | 1 +
arch/mips/mach-ath79/cpu.c | 1 +
arch/mips/mach-jz47xx/jz4780/pll.c | 1 +
arch/mips/mach-mscc/include/mach/ddr.h | 1 +
arch/mips/mach-mtmips/ddr_cal.c | 1 +
arch/mips/mach-mtmips/mt7628/init.c | 1 +
arch/mips/mach-octeon/clock.c | 1 +
arch/nios2/cpu/traps.c | 1 +
arch/powerpc/cpu/mpc83xx/cpu.c | 1 +
arch/powerpc/cpu/mpc83xx/cpu_init.c | 1 +
arch/powerpc/cpu/mpc83xx/law.c | 1 +
arch/powerpc/cpu/mpc83xx/pcie.c | 1 +
arch/powerpc/cpu/mpc83xx/speed.c | 1 +
arch/powerpc/cpu/mpc85xx/b4860_ids.c | 1 +
arch/powerpc/cpu/mpc85xx/b4860_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/bsc9132_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/c29x_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/cmd_errata.c | 1 +
arch/powerpc/cpu/mpc85xx/cpu.c | 1 +
arch/powerpc/cpu/mpc85xx/cpu_init.c | 1 +
arch/powerpc/cpu/mpc85xx/ether_fcc.c | 1 +
arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/mpc8544_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/mpc8548_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/mpc8568_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/mpc8569_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/mpc8572_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/p1010_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/p1021_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/p1022_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/p1023_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/p2020_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/p2041_ids.c | 1 +
arch/powerpc/cpu/mpc85xx/p2041_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/p3041_ids.c | 1 +
arch/powerpc/cpu/mpc85xx/p3041_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/p4080_ids.c | 1 +
arch/powerpc/cpu/mpc85xx/p4080_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/p5020_ids.c | 1 +
arch/powerpc/cpu/mpc85xx/p5020_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/p5040_ids.c | 1 +
arch/powerpc/cpu/mpc85xx/p5040_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/t1024_ids.c | 1 +
arch/powerpc/cpu/mpc85xx/t1024_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/t1040_ids.c | 1 +
arch/powerpc/cpu/mpc85xx/t1040_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/t2080_ids.c | 1 +
arch/powerpc/cpu/mpc85xx/t2080_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/t4240_ids.c | 1 +
arch/powerpc/cpu/mpc85xx/t4240_serdes.c | 1 +
arch/powerpc/cpu/mpc85xx/tlb.c | 1 +
arch/powerpc/cpu/mpc86xx/cpu.c | 1 +
arch/powerpc/cpu/mpc86xx/mpc8610_serdes.c | 1 +
arch/powerpc/cpu/mpc86xx/mpc8641_serdes.c | 1 +
arch/powerpc/cpu/mpc8xxx/cpu.c | 1 +
arch/powerpc/cpu/mpc8xxx/law.c | 1 +
arch/powerpc/cpu/mpc8xxx/pamu_table.c | 1 +
arch/powerpc/include/asm/arch-mpc83xx/soc.h | 1 +
arch/powerpc/lib/bootm.c | 1 +
arch/riscv/cpu/cpu.c | 1 +
arch/riscv/lib/cache.c | 1 +
arch/riscv/lib/fdt_fixup.c | 1 +
arch/riscv/lib/image.c | 1 +
arch/riscv/lib/interrupts.c | 1 +
arch/sandbox/cpu/cpu.c | 1 +
arch/sandbox/cpu/os.c | 1 +
arch/sandbox/cpu/start.c | 1 +
arch/sandbox/cpu/state.c | 1 +
arch/sandbox/include/asm/eth.h | 1 +
arch/sandbox/include/asm/sdl.h | 1 +
arch/sandbox/include/asm/test.h | 1 +
arch/x86/cpu/apollolake/fsp_bindings.c | 1 +
arch/x86/cpu/apollolake/fsp_s.c | 1 +
arch/x86/cpu/apollolake/hostbridge.c | 1 +
arch/x86/cpu/apollolake/lpc.c | 1 +
arch/x86/cpu/apollolake/pch.c | 1 +
arch/x86/cpu/apollolake/pmc.c | 1 +
arch/x86/cpu/apollolake/spl.c | 1 +
arch/x86/cpu/broadwell/adsp.c | 1 +
arch/x86/cpu/broadwell/cpu_full.c | 1 +
arch/x86/cpu/broadwell/iobp.c | 1 +
arch/x86/cpu/broadwell/pch.c | 1 +
arch/x86/cpu/broadwell/pinctrl_broadwell.c | 1 +
arch/x86/cpu/coreboot/sdram.c | 1 +
arch/x86/cpu/cpu.c | 1 +
arch/x86/cpu/i386/cpu.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/me_status.c | 1 +
arch/x86/cpu/intel_common/mrc.c | 1 +
arch/x86/cpu/intel_common/p2sb.c | 1 +
arch/x86/cpu/intel_common/report_platform.c | 1 +
arch/x86/cpu/irq.c | 1 +
arch/x86/cpu/ivybridge/bd82x6x.c | 1 +
arch/x86/cpu/ivybridge/lpc.c | 1 +
arch/x86/cpu/ivybridge/model_206ax.c | 1 +
arch/x86/cpu/mp_init.c | 1 +
arch/x86/cpu/mtrr.c | 1 +
arch/x86/cpu/qemu/qemu.c | 1 +
arch/x86/cpu/quark/mrc.c | 1 +
arch/x86/cpu/quark/mrc_util.c | 1 +
arch/x86/cpu/quark/mrc_util.h | 1 +
arch/x86/cpu/quark/smc.c | 1 +
arch/x86/cpu/slimbootloader/sdram.c | 1 +
arch/x86/cpu/tangier/pinmux.c | 1 +
arch/x86/include/asm/arch-apollolake/fsp_bindings.h | 1 +
arch/x86/include/asm/arch-broadwell/gpio.h | 1 +
arch/x86/include/asm/arch-broadwell/pch.h | 2 ++
arch/x86/include/asm/arch-ivybridge/model_206ax.h | 1 +
arch/x86/include/asm/bootm.h | 1 +
arch/x86/include/asm/cpu_common.h | 2 ++
arch/x86/include/asm/fast_spi.h | 1 +
arch/x86/include/asm/fsp2/fsp_api.h | 1 +
arch/x86/include/asm/fsp2/fsp_internal.h | 1 +
arch/x86/include/asm/global_data.h | 1 +
arch/x86/include/asm/hob.h | 1 +
arch/x86/include/asm/intel_pinctrl.h | 1 +
arch/x86/include/asm/interrupt.h | 1 +
arch/x86/include/asm/irq.h | 1 +
arch/x86/include/asm/itss.h | 1 +
arch/x86/include/asm/lpc_common.h | 1 +
arch/x86/include/asm/mrc_common.h | 1 +
arch/x86/include/asm/mrccache.h | 2 ++
arch/x86/include/asm/mtrr.h | 1 +
arch/x86/include/asm/pirq_routing.h | 1 +
arch/x86/include/asm/pmu.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/coreboot_table.c | 1 +
arch/x86/lib/e820.c | 1 +
arch/x86/lib/fsp/fsp_dram.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/i8259.c | 1 +
arch/x86/lib/init_helpers.c | 1 +
arch/x86/lib/mpspec.c | 1 +
arch/x86/lib/mrccache.c | 1 +
arch/x86/lib/physmem.c | 1 +
arch/x86/lib/pinctrl_ich6.c | 1 +
arch/x86/lib/pirq_routing.c | 1 +
arch/x86/lib/pmu.c | 1 +
arch/x86/lib/sfi.c | 1 +
arch/x86/lib/tables.c | 1 +
arch/x86/lib/zimage.c | 1 +
board/AndesTech/ax25-ae350/ax25-ae350.c | 1 +
board/Arcturus/ucp1020/law.c | 1 +
board/Arcturus/ucp1020/tlb.c | 1 +
board/CZ.NIC/turris_mox/turris_mox.c | 1 +
board/CZ.NIC/turris_omnia/turris_omnia.c | 1 +
board/CarMediaLab/flea3/flea3.c | 1 +
board/LaCie/net2big_v2/net2big_v2.c | 1 +
board/Marvell/db-88f6820-amc/db-88f6820-amc.c | 1 +
board/Marvell/db-88f6820-gp/db-88f6820-gp.c | 1 +
board/Synology/ds414/ds414.c | 1 +
board/advantech/dms-ba16/dms-ba16.c | 1 +
board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c | 1 +
board/advantech/imx8qm_rom7720_a1/spl.c | 1 +
board/alliedtelesis/x530/x530.c | 1 +
board/aristainetos/aristainetos.c | 1 +
board/armadeus/apf27/apf27.c | 1 +
board/armltd/vexpress/vexpress_tc2.c | 1 +
board/avionic-design/common/tamonten-ng.c | 1 +
board/bachmann/ot1200/ot1200.c | 1 +
board/barco/platinum/platinum.c | 1 +
board/barco/platinum/platinum_picon.c | 1 +
board/barco/platinum/platinum_titanium.c | 1 +
board/barco/titanium/titanium.c | 1 +
board/beacon/imx8mm/spl.c | 1 +
board/beckhoff/mx53cx9020/mx53cx9020_video.c | 1 +
board/bluegiga/apx4devkit/spl_boot.c | 1 +
board/boundary/nitrogen6x/nitrogen6x.c | 1 +
board/ccv/xpress/xpress.c | 1 +
board/cei/cei-tk1-som/cei-tk1-som.c | 1 +
board/compulab/cl-som-imx7/mux.c | 1 +
board/compulab/cm_fx6/cm_fx6.c | 1 +
board/compulab/cm_fx6/spl.c | 1 +
board/compulab/cm_t43/spl.c | 1 +
board/compulab/common/omap3_display.c | 1 +
board/congatec/cgtqmx6eval/cgtqmx6eval.c | 1 +
board/corscience/tricorder/tricorder-eeprom.c | 1 +
board/creative/xfi3/spl_boot.c | 1 +
board/creative/xfi3/xfi3.c | 1 +
board/davinci/da8xxevm/da850evm.c | 1 +
board/davinci/da8xxevm/omapl138_lcdk.c | 1 +
board/dhelectronics/dh_stm32mp1/board.c | 1 +
board/ea/mx7ulp_com/mx7ulp_com.c | 1 +
board/el/el6x/el6x.c | 1 +
board/embest/mx6boards/mx6boards.c | 1 +
board/engicam/imx6q/imx6q.c | 1 +
board/firefly/roc-pc-rk3399/roc-pc-rk3399.c | 1 +
board/freescale/common/arm_sleep.c | 1 +
board/freescale/common/ics307_clk.c | 1 +
board/freescale/common/mpc85xx_sleep.c | 1 +
board/freescale/common/ns_access.c | 1 +
board/freescale/common/p_corenet/law.c | 1 +
board/freescale/common/p_corenet/tlb.c | 1 +
board/freescale/common/qixis.c | 1 +
board/freescale/common/sleep.h | 1 +
board/freescale/common/sys_eeprom.c | 1 +
board/freescale/common/vid.c | 1 +
board/freescale/imx8mm_evk/spl.c | 1 +
board/freescale/imx8mn_evk/spl.c | 1 +
board/freescale/imx8mp_evk/imx8mp_evk.c | 1 +
board/freescale/imx8mq_evk/imx8mq_evk.c | 1 +
board/freescale/imx8mq_evk/spl.c | 1 +
board/freescale/imx8qm_mek/imx8qm_mek.c | 1 +
board/freescale/imx8qxp_mek/imx8qxp_mek.c | 1 +
board/freescale/imx8qxp_mek/spl.c | 1 +
board/freescale/ls1012ardb/ls1012ardb.c | 1 +
board/freescale/ls1021aiot/ls1021aiot.c | 1 +
board/freescale/ls1021aqds/ls1021aqds.c | 1 +
board/freescale/ls1021atsn/ls1021atsn.c | 1 +
board/freescale/ls1021atwr/ls1021atwr.c | 1 +
board/freescale/ls1043aqds/ls1043aqds.c | 1 +
board/freescale/ls1046aqds/ls1046aqds.c | 1 +
board/freescale/ls1046ardb/cpld.c | 1 +
board/freescale/ls1046ardb/cpld.h | 1 +
board/freescale/ls1046ardb/ls1046ardb.c | 1 +
board/freescale/ls1088a/eth_ls1088aqds.c | 1 +
board/freescale/ls1088a/ls1088a.c | 1 +
board/freescale/ls2080aqds/eth.c | 1 +
board/freescale/ls2080aqds/ls2080aqds.c | 1 +
board/freescale/ls2080ardb/ls2080ardb.c | 1 +
board/freescale/lx2160a/eth_lx2160aqds.c | 1 +
board/freescale/lx2160a/eth_lx2160ardb.c | 1 +
board/freescale/lx2160a/lx2160a.c | 1 +
board/freescale/mpc8541cds/law.c | 1 +
board/freescale/mpc8541cds/tlb.c | 1 +
board/freescale/mpc8544ds/law.c | 1 +
board/freescale/mpc8544ds/tlb.c | 1 +
board/freescale/mpc8548cds/law.c | 1 +
board/freescale/mpc8548cds/tlb.c | 1 +
board/freescale/mpc8555cds/law.c | 1 +
board/freescale/mpc8555cds/tlb.c | 1 +
board/freescale/mpc8568mds/law.c | 1 +
board/freescale/mpc8568mds/tlb.c | 1 +
board/freescale/mpc8569mds/law.c | 1 +
board/freescale/mpc8569mds/tlb.c | 1 +
board/freescale/mpc8572ds/law.c | 1 +
board/freescale/mpc8572ds/tlb.c | 1 +
board/freescale/mpc8610hpcd/law.c | 1 +
board/freescale/mpc8641hpcn/law.c | 1 +
board/freescale/mx23evk/spl_boot.c | 1 +
board/freescale/mx25pdk/mx25pdk.c | 1 +
board/freescale/mx28evk/iomux.c | 1 +
board/freescale/mx35pdk/mx35pdk.c | 1 +
board/freescale/mx51evk/mx51evk.c | 1 +
board/freescale/mx53ard/mx53ard.c | 1 +
board/freescale/mx53evk/mx53evk.c | 1 +
board/freescale/mx53loco/mx53loco.c | 1 +
board/freescale/mx53loco/mx53loco_video.c | 1 +
board/freescale/mx53smd/mx53smd.c | 1 +
board/freescale/mx6qarm2/mx6qarm2.c | 1 +
board/freescale/mx6sabreauto/mx6sabreauto.c | 1 +
board/freescale/mx6sabresd/mx6sabresd.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/mx6ullevk/mx6ullevk.c | 1 +
board/freescale/mx7dsabresd/mx7dsabresd.c | 1 +
board/freescale/mx7ulp_evk/mx7ulp_evk.c | 1 +
board/freescale/p1010rdb/law.c | 1 +
board/freescale/p1010rdb/tlb.c | 1 +
board/freescale/p1023rdb/law.c | 1 +
board/freescale/p1023rdb/tlb.c | 1 +
board/freescale/p1_p2_rdb_pc/law.c | 1 +
board/freescale/p1_p2_rdb_pc/tlb.c | 1 +
board/freescale/t102xrdb/law.c | 1 +
board/freescale/t102xrdb/tlb.c | 1 +
board/freescale/t104xrdb/law.c | 1 +
board/freescale/t104xrdb/tlb.c | 1 +
board/freescale/t208xqds/law.c | 1 +
board/freescale/t208xqds/tlb.c | 1 +
board/freescale/t208xrdb/law.c | 1 +
board/freescale/t208xrdb/tlb.c | 1 +
board/freescale/t4rdb/law.c | 1 +
board/freescale/t4rdb/tlb.c | 1 +
board/freescale/vf610twr/vf610twr.c | 1 +
board/friendlyarm/nanopi2/board.c | 1 +
board/friendlyarm/nanopi2/lcds.c | 1 +
board/gardena/smart-gateway-mt7688/board.c | 1 +
board/gateworks/gw_ventana/common.c | 1 +
board/gateworks/gw_ventana/gw_ventana.c | 1 +
board/gdsys/a38x/controlcenterdc.c | 1 +
board/gdsys/a38x/dt_helpers.c | 1 +
board/gdsys/a38x/dt_helpers.h | 1 +
board/gdsys/a38x/hre.c | 1 +
board/gdsys/a38x/hre.h | 1 +
board/gdsys/a38x/ihs_phys.c | 1 +
board/gdsys/common/ch7301.h | 1 +
board/gdsys/common/dp501.c | 1 +
board/gdsys/common/dp501.h | 1 +
board/gdsys/common/ioep-fpga.c | 6 +++---
board/gdsys/common/ioep-fpga.h | 1 +
board/gdsys/common/osd.c | 1 +
board/gdsys/common/osd.h | 1 +
board/gdsys/common/phy.c | 1 +
board/gdsys/mpc8308/hrcon.c | 1 +
board/gdsys/mpc8308/strider.c | 1 +
board/gdsys/p1022/controlcenterd-id.c | 1 +
board/gdsys/p1022/law.c | 1 +
board/gdsys/p1022/tlb.c | 1 +
board/ge/bx50v3/bx50v3.c | 1 +
board/ge/mx53ppd/mx53ppd.c | 1 +
board/ge/mx53ppd/mx53ppd_video.c | 1 +
board/google/imx8mq_phanbell/imx8mq_phanbell.c | 1 +
board/google/imx8mq_phanbell/spl.c | 1 +
board/grinn/liteboard/board.c | 1 +
board/hisilicon/poplar/poplar.c | 1 +
board/imgtec/boston/ddr.c | 1 +
board/imgtec/boston/dt.c | 1 +
board/imgtec/malta/malta.c | 1 +
board/imgtec/malta/superio.c | 1 +
board/inversepath/usbarmory/usbarmory.c | 1 +
board/isee/igep003x/board.c | 1 +
board/isee/igep00x0/igep00x0.c | 1 +
board/keymile/common/ivm.c | 1 +
board/keymile/common/qrio.c | 1 +
board/keymile/common/qrio.h | 1 +
board/keymile/km_arm/km_arm.c | 1 +
board/keymile/kmp204x/kmp204x.c | 1 +
board/keymile/kmp204x/law.c | 1 +
board/keymile/kmp204x/pci.c | 1 +
board/keymile/kmp204x/tlb.c | 1 +
board/kobol/helios4/helios4.c | 1 +
board/kosagi/novena/novena_spl.c | 1 +
board/kosagi/novena/video.c | 1 +
board/lego/ev3/legoev3.c | 1 +
board/liebherr/display5/display5.c | 1 +
board/liebherr/xea/spl_xea.c | 1 +
board/logicpd/imx6/imx6logic.c | 1 +
board/menlo/m53menlo/m53menlo.c | 1 +
board/mscc/common/spi.c | 1 +
board/mscc/ocelot/ocelot.c | 1 +
board/novtech/meerkat96/meerkat96.c | 1 +
board/nvidia/cardhu/cardhu.c | 1 +
board/nvidia/dalmore/dalmore.c | 1 +
board/nvidia/jetson-tk1/jetson-tk1.c | 1 +
board/nvidia/nyan-big/nyan-big.c | 1 +
board/nvidia/p2371-2180/p2371-2180.c | 1 +
board/nvidia/p2771-0000/p2771-0000.c | 1 +
board/nvidia/p3450-0000/p3450-0000.c | 1 +
board/nvidia/venice2/venice2.c | 1 +
board/olimex/mx23_olinuxino/spl_boot.c | 1 +
board/phytec/pcl063/pcl063.c | 1 +
board/phytec/phycore_am335x_r2/board.c | 1 +
board/ppcag/bg0900/spl_boot.c | 1 +
board/qualcomm/dragonboard820c/dragonboard820c.c | 1 +
board/raspberrypi/rpi/rpi.c | 1 +
board/renesas/alt/alt_spl.c | 1 +
board/renesas/blanche/blanche.c | 1 +
board/renesas/gose/gose_spl.c | 1 +
board/renesas/koelsch/koelsch_spl.c | 1 +
board/renesas/lager/lager_spl.c | 1 +
board/renesas/porter/porter_spl.c | 1 +
board/renesas/silk/silk_spl.c | 1 +
board/renesas/stout/stout_spl.c | 1 +
board/rockchip/evb_rk3308/evb_rk3308.c | 1 +
board/samsung/common/exynos5-dt-types.c | 1 +
board/samsung/common/misc.c | 1 +
board/sandisk/sansa_fuze_plus/sfp.c | 1 +
board/sandisk/sansa_fuze_plus/spl_boot.c | 1 +
board/sbc8548/law.c | 1 +
board/sbc8548/tlb.c | 1 +
board/sbc8641d/law.c | 1 +
board/schulercontrol/sc_sps_1/spl_boot.c | 1 +
board/seco/common/mx6.c | 1 +
board/siemens/capricorn/board.c | 1 +
board/siemens/rut/board.c | 1 +
board/sipeed/maix/maix.c | 1 +
board/socrates/law.c | 1 +
board/socrates/tlb.c | 1 +
board/softing/vining_2000/vining_2000.c | 1 +
board/solidrun/clearfog/clearfog.c | 1 +
board/solidrun/common/tlv_data.c | 1 +
board/solidrun/common/tlv_data.h | 1 +
board/solidrun/mx6cuboxi/mx6cuboxi.c | 1 +
board/somlabs/visionsom-6ull/visionsom-6ull.c | 1 +
board/st/common/stm32mp_dfu.c | 1 +
board/st/common/stm32mp_mtdparts.c | 1 +
board/st/common/stpmic1.c | 1 +
board/st/stm32mp1/stm32mp1.c | 1 +
board/synopsys/emsdp/emsdp.c | 1 +
board/synopsys/hsdk/env-lib.h | 1 +
board/syteco/zmx25/zmx25.c | 1 +
board/tbs/tbs2910/tbs2910.c | 1 +
board/technexion/pico-imx6/pico-imx6.c | 1 +
board/technexion/pico-imx6ul/pico-imx6ul.c | 1 +
board/technexion/pico-imx6ul/spl.c | 1 +
board/technexion/pico-imx7d/pico-imx7d.c | 1 +
board/technexion/pico-imx7d/spl.c | 1 +
board/technexion/pico-imx8mq/pico-imx8mq.c | 1 +
board/technexion/pico-imx8mq/spl.c | 1 +
board/technologic/ts4600/iomux.c | 1 +
board/technologic/ts4800/ts4800.c | 1 +
board/theadorable/fpga.c | 1 +
board/ti/am335x/board.c | 1 +
board/ti/am43xx/board.c | 1 +
board/ti/am57xx/board.c | 1 +
board/ti/am65x/evm.c | 1 +
board/ti/beagle/beagle.c | 1 +
board/ti/common/board_detect.c | 1 +
board/ti/common/board_detect.h | 1 +
board/ti/dra7xx/evm.c | 1 +
board/ti/j721e/evm.c | 1 +
board/ti/ks2_evm/board.c | 1 +
board/ti/ks2_evm/board_k2g.c | 1 +
board/toradex/apalis-imx8/apalis-imx8.c | 1 +
board/toradex/apalis-tk1/apalis-tk1.c | 1 +
board/toradex/apalis_imx6/apalis_imx6.c | 1 +
board/toradex/apalis_imx6/pf0100.c | 1 +
board/toradex/apalis_t30/apalis_t30.c | 1 +
board/toradex/colibri-imx6ull/colibri-imx6ull.c | 1 +
board/toradex/colibri-imx8x/colibri-imx8x.c | 1 +
board/toradex/colibri_imx6/colibri_imx6.c | 1 +
board/toradex/colibri_imx6/pf0100.c | 1 +
board/toradex/colibri_imx7/colibri_imx7.c | 1 +
board/toradex/colibri_t30/colibri_t30.c | 1 +
board/toradex/colibri_vf/colibri_vf.c | 1 +
board/toradex/common/tdx-cfg-block.c | 1 +
board/toradex/verdin-imx8mm/spl.c | 1 +
board/tqc/tqma6/tqma6.c | 1 +
board/tqc/tqma6/tqma6_mba6.c | 1 +
board/tqc/tqma6/tqma6_wru4.c | 1 +
board/udoo/neo/neo.c | 1 +
board/variscite/dart_6ul/dart_6ul.c | 1 +
board/variscite/dart_6ul/spl.c | 1 +
board/varisys/common/sys_eeprom.c | 1 +
board/varisys/cyrus/law.c | 1 +
board/varisys/cyrus/tlb.c | 1 +
board/wandboard/wandboard.c | 1 +
board/warp/warp.c | 1 +
board/warp7/warp7.c | 1 +
board/xes/xpedite517x/ddr.c | 1 +
board/xes/xpedite517x/law.c | 1 +
board/xes/xpedite520x/law.c | 1 +
board/xes/xpedite520x/tlb.c | 1 +
board/xes/xpedite537x/ddr.c | 1 +
board/xes/xpedite537x/law.c | 1 +
board/xes/xpedite537x/tlb.c | 1 +
board/xes/xpedite550x/law.c | 1 +
board/xes/xpedite550x/tlb.c | 1 +
board/xilinx/common/board.c | 1 +
board/xilinx/microblaze-generic/microblaze-generic.c | 1 +
board/xilinx/zynq/cmds.c | 1 +
board/xilinx/zynqmp/cmds.c | 1 +
board/xilinx/zynqmp/zynqmp.c | 1 +
cmd/abootimg.c | 1 +
cmd/acpi.c | 1 +
cmd/adtimg.c | 1 +
cmd/aes.c | 1 +
cmd/avb.c | 1 +
cmd/axi.c | 1 +
cmd/bcb.c | 1 +
cmd/bind.c | 1 +
cmd/blkcache.c | 1 +
cmd/bmp.c | 1 +
cmd/bootcount.c | 1 +
cmd/bootm.c | 1 +
cmd/bootstage.c | 1 +
cmd/clk.c | 1 +
cmd/conitrace.c | 1 +
cmd/cpu.c | 1 +
cmd/cros_ec.c | 1 +
cmd/demo.c | 1 +
cmd/dm.c | 1 +
cmd/eeprom.c | 1 +
cmd/efi.c | 1 +
cmd/efidebug.c | 1 +
cmd/elf.c | 1 +
cmd/ethsw.c | 1 +
cmd/fdt.c | 1 +
cmd/fpga.c | 1 +
cmd/host.c | 1 +
cmd/i2c.c | 1 +
cmd/ini.c | 1 +
cmd/io.c | 1 +
cmd/itest.c | 1 +
cmd/load.c | 1 +
cmd/log.c | 1 +
cmd/mem.c | 1 +
cmd/mii.c | 1 +
cmd/mmc.c | 1 +
cmd/mtd.c | 1 +
cmd/mvebu/bubt.c | 1 +
cmd/nand.c | 1 +
cmd/nvedit.c | 1 +
cmd/onenand.c | 1 +
cmd/osd.c | 1 +
cmd/part.c | 1 +
cmd/pci.c | 1 +
cmd/pinmux.c | 1 +
cmd/pmc.c | 1 +
cmd/pmic.c | 1 +
cmd/pxe.c | 1 +
cmd/pxe_utils.c | 1 +
cmd/pxe_utils.h | 1 +
cmd/qfw.c | 1 +
cmd/regulator.c | 1 +
cmd/remoteproc.c | 1 +
cmd/rtc.c | 1 +
cmd/sb.c | 1 +
cmd/sf.c | 1 +
cmd/sound.c | 1 +
cmd/spl.c | 1 +
cmd/test.c | 1 +
cmd/tlv_eeprom.c | 1 +
cmd/tpm-v1.c | 1 +
cmd/tpm-v2.c | 1 +
cmd/tpm_test.c | 1 +
cmd/trace.c | 1 +
cmd/ubi.c | 1 +
cmd/x86/fsp.c | 1 +
cmd/x86/hob.c | 1 +
cmd/x86/mtrr.c | 1 +
cmd/ximg.c | 1 +
common/android_ab.c | 1 +
common/autoboot.c | 1 +
common/avb_verify.c | 1 +
common/bloblist.c | 1 +
common/board_f.c | 1 +
common/board_r.c | 1 +
common/bootm.c | 1 +
common/bootm_os.c | 1 +
common/bootstage.c | 1 +
common/bouncebuf.c | 1 +
common/cli.c | 1 +
common/cli_hush.c | 1 +
common/console.c | 1 +
common/dfu.c | 1 +
common/dlmalloc.c | 1 +
common/edid.c | 1 +
common/eeprom/eeprom_field.c | 1 +
common/fdt_support.c | 1 +
common/hash.c | 1 +
common/image-android-dt.c | 1 +
common/image-android.c | 1 +
common/image-cipher.c | 1 +
common/image-fit-sig.c | 1 +
common/image-fit.c | 1 +
common/image-sig.c | 1 +
common/image.c | 1 +
common/init/board_init.c | 1 +
common/iotrace.c | 1 +
common/lcd.c | 1 +
common/lcd_console.c | 1 +
common/log.c | 1 +
common/malloc_simple.c | 1 +
common/spl/spl.c | 1 +
common/spl/spl_fit.c | 1 +
common/spl/spl_sata.c | 1 +
common/spl/spl_spi.c | 1 +
common/splash.c | 1 +
common/splash_source.c | 1 +
common/update.c | 1 +
common/usb.c | 1 +
common/usb_hub.c | 1 +
common/usb_kbd.c | 1 +
common/xyzModem.c | 1 +
drivers/adc/adc-uclass.c | 1 +
drivers/adc/meson-saradc.c | 1 +
drivers/adc/stm32-adc-core.c | 1 +
drivers/adc/stm32-adc.c | 1 +
drivers/ata/ahci.c | 1 +
drivers/ata/fsl_sata.c | 1 +
drivers/ata/sata_mv.c | 1 +
drivers/axi/axi-emul-uclass.c | 1 +
drivers/axi/sandbox_store.c | 1 +
drivers/bios_emulator/atibios.c | 1 +
drivers/bios_emulator/x86emu/prim_ops.c | 1 +
drivers/board/board-uclass.c | 1 +
drivers/board/gazerbeam.c | 1 +
drivers/board/sandbox.c | 1 +
drivers/bootcount/bootcount.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-generated.c | 1 +
drivers/clk/at91/clk-usb.c | 1 +
drivers/clk/at91/pmc.c | 1 +
drivers/clk/clk-divider.c | 1 +
drivers/clk/clk-hsdk-cgu.c | 1 +
drivers/clk/clk-ti-sci.c | 1 +
drivers/clk/clk.c | 1 +
drivers/clk/clk_sandbox.c | 1 +
drivers/clk/clk_sandbox_ccf.c | 1 +
drivers/clk/clk_stm32f.c | 1 +
drivers/clk/clk_stm32mp1.c | 1 +
drivers/clk/clk_versal.c | 1 +
drivers/clk/clk_zynq.c | 1 +
drivers/clk/clk_zynqmp.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-imx8.h | 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/imx/clk.h | 1 +
drivers/clk/kendryte/clk.c | 1 +
drivers/clk/kendryte/pll.c | 1 +
drivers/clk/mediatek/clk-mtk.h | 1 +
drivers/clk/meson/axg.c | 1 +
drivers/clk/meson/gxbb.c | 1 +
drivers/clk/mpc83xx_clk.c | 1 +
drivers/clk/mtmips/clk-mt7628.c | 1 +
drivers/clk/mvebu/armada-37xx-periph.c | 1 +
drivers/clk/renesas/clk-rcar-gen3.c | 1 +
drivers/clk/renesas/r8a774a1-cpg-mssr.c | 1 +
drivers/clk/renesas/r8a7790-cpg-mssr.c | 1 +
drivers/clk/renesas/r8a7791-cpg-mssr.c | 1 +
drivers/clk/renesas/r8a7792-cpg-mssr.c | 1 +
drivers/clk/renesas/r8a7794-cpg-mssr.c | 1 +
drivers/clk/renesas/r8a7795-cpg-mssr.c | 1 +
drivers/clk/renesas/r8a7796-cpg-mssr.c | 1 +
drivers/clk/renesas/r8a77965-cpg-mssr.c | 1 +
drivers/clk/renesas/r8a77970-cpg-mssr.c | 1 +
drivers/clk/renesas/r8a77980-cpg-mssr.c | 1 +
drivers/clk/renesas/r8a77990-cpg-mssr.c | 1 +
drivers/clk/renesas/r8a77995-cpg-mssr.c | 1 +
drivers/clk/renesas/rcar-gen3-cpg.h | 1 +
drivers/clk/renesas/renesas-cpg-mssr.c | 1 +
drivers/clk/renesas/renesas-cpg-mssr.h | 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_a10.c | 1 +
drivers/clk/sunxi/clk_a10s.c | 1 +
drivers/clk/sunxi/clk_a23.c | 1 +
drivers/clk/sunxi/clk_a31.c | 1 +
drivers/clk/sunxi/clk_a64.c | 1 +
drivers/clk/sunxi/clk_a80.c | 1 +
drivers/clk/sunxi/clk_a83t.c | 1 +
drivers/clk/sunxi/clk_h3.c | 1 +
drivers/clk/sunxi/clk_h6.c | 1 +
drivers/clk/sunxi/clk_r40.c | 1 +
drivers/clk/sunxi/clk_v3s.c | 1 +
drivers/clk/uniphier/clk-uniphier-core.c | 1 +
drivers/core/device-remove.c | 1 +
drivers/core/device.c | 1 +
drivers/core/lists.c | 1 +
drivers/core/of_access.c | 1 +
drivers/core/of_addr.c | 1 +
drivers/core/read.c | 1 +
drivers/core/root.c | 1 +
drivers/core/simple-bus.c | 1 +
drivers/core/syscon-uclass.c | 1 +
drivers/core/uclass.c | 1 +
drivers/cpu/mpc83xx_cpu.c | 1 +
drivers/crypto/fsl/desc_constr.h | 1 +
drivers/crypto/fsl/error.c | 1 +
drivers/crypto/fsl/fsl_blob.c | 1 +
drivers/crypto/fsl/fsl_hash.c | 1 +
drivers/crypto/fsl/jobdesc.c | 1 +
drivers/crypto/fsl/sec.c | 1 +
drivers/crypto/rsa_mod_exp/mod_exp_uclass.c | 1 +
drivers/ddr/altera/sdram_gen5.c | 1 +
drivers/ddr/altera/sdram_s10.c | 1 +
drivers/ddr/altera/sdram_soc64.c | 1 +
drivers/ddr/altera/sequencer.c | 1 +
drivers/ddr/altera/sequencer.h | 1 +
drivers/ddr/fsl/ctrl_regs.c | 1 +
drivers/ddr/fsl/ddr1_dimm_params.c | 1 +
drivers/ddr/fsl/ddr2_dimm_params.c | 1 +
drivers/ddr/fsl/ddr4_dimm_params.c | 1 +
drivers/ddr/fsl/interactive.c | 1 +
drivers/ddr/fsl/lc_common_dimm_params.c | 1 +
drivers/ddr/fsl/main.c | 1 +
drivers/ddr/fsl/util.c | 1 +
drivers/ddr/imx/imx8m/helper.c | 1 +
drivers/ddr/marvell/axp/ddr3_spd.c | 1 +
drivers/demo/demo-shape.c | 1 +
drivers/dfu/dfu.c | 1 +
drivers/dfu/dfu_mmc.c | 1 +
drivers/dfu/dfu_mtd.c | 1 +
drivers/dma/apbh_dma.c | 1 +
drivers/dma/bcm6348-iudma.c | 1 +
drivers/dma/dma-uclass.c | 1 +
drivers/dma/fsl_dma.c | 1 +
drivers/dma/sandbox-dma-test.c | 1 +
drivers/dma/ti/k3-udma.c | 1 +
drivers/fastboot/fb_getvar.c | 1 +
drivers/fastboot/fb_mmc.c | 1 +
drivers/firmware/firmware-zynqmp.c | 1 +
drivers/firmware/ti_sci.c | 1 +
drivers/fpga/altera.c | 1 +
drivers/fpga/cyclon2.c | 1 +
drivers/fpga/socfpga.c | 1 +
drivers/fpga/socfpga_arria10.c | 1 +
drivers/fpga/spartan3.c | 2 ++
drivers/fpga/stratix10.c | 1 +
drivers/fpga/versalpl.c | 1 +
drivers/fpga/zynqmppl.c | 1 +
drivers/fpga/zynqpl.c | 1 +
drivers/gpio/at91_gpio.c | 1 +
drivers/gpio/bcm6345_gpio.c | 1 +
drivers/gpio/gpio-rcar.c | 1 +
drivers/gpio/gpio-rza1.c | 1 +
drivers/gpio/gpio-uclass.c | 1 +
drivers/gpio/intel_ich6_gpio.c | 1 +
drivers/gpio/iproc_gpio.c | 1 +
drivers/gpio/mscc_sgpio.c | 1 +
drivers/gpio/mxc_gpio.c | 1 +
drivers/gpio/mxs_gpio.c | 1 +
drivers/gpio/pca953x.c | 1 +
drivers/gpio/pca953x_gpio.c | 1 +
drivers/gpio/pm8916_gpio.c | 1 +
drivers/gpio/rk_gpio.c | 1 +
drivers/gpio/sh_pfc.c | 1 +
drivers/gpio/sifive-gpio.c | 1 +
drivers/gpio/tca642x.c | 1 +
drivers/gpio/tegra186_gpio.c | 1 +
drivers/i2c/at91_i2c.c | 1 +
drivers/i2c/cros_ec_ldo.c | 1 +
drivers/i2c/designware_i2c.c | 1 +
drivers/i2c/designware_i2c.h | 1 +
drivers/i2c/designware_i2c_pci.c | 1 +
drivers/i2c/exynos_hs_i2c.c | 1 +
drivers/i2c/fsl_i2c.c | 1 +
drivers/i2c/i2c-cdns.c | 1 +
drivers/i2c/i2c-gpio.c | 1 +
drivers/i2c/i2c-uclass.c | 1 +
drivers/i2c/i2c-uniphier-f.c | 1 +
drivers/i2c/i2c-uniphier.c | 1 +
drivers/i2c/ihs_i2c.c | 1 +
drivers/i2c/imx_lpi2c.c | 1 +
drivers/i2c/meson_i2c.c | 1 +
drivers/i2c/mxc_i2c.c | 1 +
drivers/i2c/nx_i2c.c | 1 +
drivers/i2c/rcar_iic.c | 1 +
drivers/i2c/rk_i2c.c | 1 +
drivers/i2c/s3c24x0_i2c.c | 1 +
drivers/i2c/s3c24x0_i2c.h | 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/input/cros_ec_keyb.c | 1 +
drivers/input/i8042.c | 1 +
drivers/input/input.c | 1 +
drivers/led/led_bcm6328.c | 1 +
drivers/led/led_bcm6358.c | 1 +
drivers/led/led_bcm6858.c | 1 +
drivers/mailbox/k3-sec-proxy.c | 1 +
drivers/mailbox/sandbox-mbox.c | 1 +
drivers/misc/atsha204a-i2c.c | 1 +
drivers/misc/cros_ec.c | 1 +
drivers/misc/cros_ec_i2c.c | 1 +
drivers/misc/cros_ec_sandbox.c | 1 +
drivers/misc/cros_ec_spi.c | 1 +
drivers/misc/ds4510.c | 1 +
drivers/misc/fsl_ifc.c | 1 +
drivers/misc/fsl_iim.c | 1 +
drivers/misc/gdsys_ioep.c | 1 +
drivers/misc/gdsys_rxaui_ctrl.c | 1 +
drivers/misc/gpio_led.c | 1 +
drivers/misc/i2c_eeprom_emul.c | 1 +
drivers/misc/ihs_fpga.c | 1 +
drivers/misc/irq-uclass.c | 1 +
drivers/misc/irq_sandbox.c | 1 +
drivers/misc/misc-uclass.c | 1 +
drivers/misc/misc_sandbox.c | 1 +
drivers/misc/mpc83xx_serdes.c | 1 +
drivers/misc/mxc_ocotp.c | 2 ++
drivers/misc/mxs_ocotp.c | 1 +
drivers/misc/p2sb-uclass.c | 1 +
drivers/misc/p2sb_emul.c | 1 +
drivers/misc/pwrseq-uclass.c | 1 +
drivers/misc/qfw.c | 1 +
drivers/misc/rockchip-efuse.c | 1 +
drivers/misc/rockchip-otp.c | 1 +
drivers/misc/spltest_sandbox.c | 1 +
drivers/misc/swap_case.c | 1 +
drivers/misc/tegra186_bpmp.c | 1 +
drivers/misc/vexpress_config.c | 1 +
drivers/mmc/bcm2835_sdhost.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/fsl_esdhc_spl.c | 1 +
drivers/mmc/ftsdc010_mci.h | 1 +
drivers/mmc/gen_atmel_mci.c | 1 +
drivers/mmc/hi6220_dw_mmc.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_spi.c | 1 +
drivers/mmc/mmc_write.c | 1 +
drivers/mmc/mtk-sd.c | 1 +
drivers/mmc/mxsmmc.c | 1 +
drivers/mmc/nexell_dw_mmc.c | 1 +
drivers/mmc/omap_hsmmc.c | 1 +
drivers/mmc/pxa_mmc_gen.c | 1 +
drivers/mmc/renesas-sdhi.c | 1 +
drivers/mmc/rpmb.c | 1 +
drivers/mmc/sandbox_mmc.c | 1 +
drivers/mmc/sdhci-cadence.c | 1 +
drivers/mmc/sdhci.c | 1 +
drivers/mmc/sh_mmcif.c | 1 +
drivers/mmc/snps_dw_mmc.c | 1 +
drivers/mmc/stm32_sdmmc2.c | 1 +
drivers/mmc/sunxi_mmc.c | 1 +
drivers/mmc/tmio-common.c | 1 +
drivers/mmc/tmio-common.h | 1 +
drivers/mmc/uniphier-sd.c | 1 +
drivers/mmc/xenon_sdhci.c | 1 +
drivers/mtd/cfi_flash.c | 1 +
drivers/mtd/hbmc-am654.c | 1 +
drivers/mtd/jedec_flash.c | 1 +
drivers/mtd/nand/bbt.c | 1 +
drivers/mtd/nand/core.c | 1 +
drivers/mtd/nand/raw/arasan_nfc.c | 1 +
drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c | 1 +
drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c | 1 +
drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c | 1 +
drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c | 1 +
drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c | 1 +
drivers/mtd/nand/raw/brcmnand/brcmnand.c | 1 +
drivers/mtd/nand/raw/brcmnand/brcmnand.h | 1 +
drivers/mtd/nand/raw/davinci_nand.c | 1 +
drivers/mtd/nand/raw/denali.c | 1 +
drivers/mtd/nand/raw/denali_spl.c | 1 +
drivers/mtd/nand/raw/fsl_elbc_nand.c | 1 +
drivers/mtd/nand/raw/fsl_ifc_nand.c | 1 +
drivers/mtd/nand/raw/fsmc_nand.c | 1 +
drivers/mtd/nand/raw/lpc32xx_nand_mlc.c | 1 +
drivers/mtd/nand/raw/lpc32xx_nand_slc.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.c | 1 +
drivers/mtd/nand/raw/nand_base.c | 1 +
drivers/mtd/nand/raw/nand_bbt.c | 1 +
drivers/mtd/nand/raw/nand_bch.c | 1 +
drivers/mtd/nand/raw/nand_spl_loaders.c | 1 +
drivers/mtd/nand/raw/nand_util.c | 1 +
drivers/mtd/nand/raw/pxa3xx_nand.c | 1 +
drivers/mtd/nand/raw/pxa3xx_nand.h | 1 +
drivers/mtd/nand/raw/stm32_fmc2_nand.c | 1 +
drivers/mtd/nand/raw/sunxi_nand_spl.c | 1 +
drivers/mtd/nand/raw/vf610_nfc.c | 1 +
drivers/mtd/nand/raw/zynq_nand.c | 1 +
drivers/mtd/onenand/onenand_base.c | 1 +
drivers/mtd/onenand/onenand_spl.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_mtd.c | 1 +
drivers/mtd/spi/spi-nor-core.c | 1 +
drivers/mtd/spi/spi-nor-tiny.c | 1 +
drivers/mtd/st_smi.c | 1 +
drivers/mtd/ubi/debug.c | 1 +
drivers/mtd/ubi/eba.c | 1 +
drivers/mtd/ubi/fastmap-wl.c | 1 +
drivers/mtd/ubi/fastmap.c | 1 +
drivers/mtd/ubi/io.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/ubispl/ubispl.c | 1 +
drivers/net/armada100_fec.h | 1 +
drivers/net/ax88180.c | 1 +
drivers/net/bcm-sf2-eth-gmac.c | 1 +
drivers/net/bcm-sf2-eth.h | 1 +
drivers/net/bcm6348-eth.c | 1 +
drivers/net/bcm6368-eth.c | 1 +
drivers/net/bcmgenet.c | 1 +
drivers/net/dc2114x.c | 1 +
drivers/net/dnet.c | 1 +
drivers/net/dwc_eth_qos.c | 1 +
drivers/net/e1000.c | 1 +
drivers/net/e1000.h | 1 +
drivers/net/e1000_spi.c | 1 +
drivers/net/eepro100.c | 1 +
drivers/net/fec_mxc.c | 1 +
drivers/net/fm/eth.c | 1 +
drivers/net/fm/init.c | 1 +
drivers/net/fsl-mc/dpio/qbman_private.h | 1 +
drivers/net/fsl-mc/mc.c | 1 +
drivers/net/fsl_enetc.c | 1 +
drivers/net/ftgmac100.c | 1 +
drivers/net/ftmac110.c | 1 +
drivers/net/gmac_rockchip.c | 1 +
drivers/net/ks8851_mll.c | 1 +
drivers/net/lan91c96.c | 1 +
drivers/net/ldpaa_eth/ldpaa_eth.c | 1 +
drivers/net/ldpaa_eth/ldpaa_eth.h | 1 +
drivers/net/lpc32xx_eth.c | 1 +
drivers/net/macb.c | 1 +
drivers/net/mcfmii.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_xfer.c | 1 +
drivers/net/mscc_eswitch/mscc_xfer.h | 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/mtk_eth.c | 1 +
drivers/net/mvgbe.h | 1 +
drivers/net/mvneta.c | 1 +
drivers/net/mvpp2.c | 1 +
drivers/net/ne2000.c | 1 +
drivers/net/ne2000_base.c | 1 +
drivers/net/ne2000_base.h | 1 +
drivers/net/netconsole.c | 1 +
drivers/net/pch_gbe.h | 1 +
drivers/net/pfe_eth/pfe_mdio.c | 1 +
drivers/net/phy/aquantia.c | 1 +
drivers/net/phy/atheros.c | 1 +
drivers/net/phy/dp83867.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/ravb.c | 1 +
drivers/net/rtl8139.c | 1 +
drivers/net/rtl8169.c | 1 +
drivers/net/sandbox.c | 1 +
drivers/net/sh_eth.c | 1 +
drivers/net/smc911x.c | 1 +
drivers/net/sni_ave.c | 1 +
drivers/net/sun8i_emac.c | 1 +
drivers/net/ti/am65-cpsw-nuss.c | 1 +
drivers/net/ti/cpsw.c | 1 +
drivers/net/ti/davinci_emac.c | 1 +
drivers/net/ti/davinci_emac.h | 1 +
drivers/net/ti/keystone_net.c | 1 +
drivers/net/tsec.c | 1 +
drivers/net/zynq_gem.c | 1 +
drivers/nvme/nvme.c | 1 +
drivers/nvme/nvme.h | 1 +
drivers/pch/pch-uclass.c | 1 +
drivers/pch/pch7.c | 1 +
drivers/pch/sandbox_pch.c | 1 +
drivers/pci/fsl_pci_init.c | 1 +
drivers/pci/pci-aardvark.c | 1 +
drivers/pci/pci-rcar-gen3.c | 1 +
drivers/pci/pci-uclass.c | 1 +
drivers/pci/pci.c | 1 +
drivers/pci/pci_auto.c | 1 +
drivers/pci/pci_auto_common.c | 1 +
drivers/pci/pci_auto_old.c | 1 +
drivers/pci/pci_gt64120.c | 1 +
drivers/pci/pci_msc01.c | 1 +
drivers/pci/pci_mvebu.c | 1 +
drivers/pci/pci_rom.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_ecam_generic.c | 1 +
drivers/pci/pcie_fsl.c | 1 +
drivers/pci/pcie_fsl.h | 1 +
drivers/pci/pcie_imx.c | 1 +
drivers/pci/pcie_intel_fpga.c | 1 +
drivers/pci/pcie_layerscape.h | 2 +-
drivers/pci/pcie_layerscape_ep.c | 1 +
drivers/pci/pcie_layerscape_fixup_common.c | 1 +
drivers/pci/pcie_layerscape_gen4.c | 1 +
drivers/pci/pcie_layerscape_gen4.h | 1 +
drivers/pci/pcie_xilinx.c | 1 +
drivers/pci_endpoint/pci_ep-uclass.c | 1 +
drivers/pci_endpoint/pcie-cadence-ep.c | 1 +
drivers/phy/marvell/comphy_a3700.c | 1 +
drivers/phy/marvell/comphy_cp110.c | 1 +
drivers/phy/phy-stm32-usbphyc.c | 1 +
drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 1 +
drivers/phy/rockchip/phy-rockchip-typec.c | 1 +
drivers/phy/sandbox-phy.c | 1 +
drivers/phy/sti_usb_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/exynos/pinctrl-exynos7420.c | 1 +
drivers/pinctrl/intel/pinctrl_apl.c | 1 +
drivers/pinctrl/mediatek/pinctrl-mt7622.c | 1 +
drivers/pinctrl/mediatek/pinctrl-mt7623.c | 1 +
drivers/pinctrl/mediatek/pinctrl-mt7629.c | 1 +
drivers/pinctrl/mediatek/pinctrl-mt8512.c | 1 +
drivers/pinctrl/mediatek/pinctrl-mt8516.c | 1 +
drivers/pinctrl/mediatek/pinctrl-mt8518.c | 1 +
drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 1 +
drivers/pinctrl/mediatek/pinctrl-mtk-common.h | 1 +
drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c | 1 +
drivers/pinctrl/meson/pinctrl-meson-axg.c | 1 +
drivers/pinctrl/meson/pinctrl-meson-g12a.c | 1 +
drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c | 1 +
drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 1 +
drivers/pinctrl/meson/pinctrl-meson-gxl.c | 1 +
drivers/pinctrl/meson/pinctrl-meson.h | 1 +
drivers/pinctrl/mscc/pinctrl-jr2.c | 1 +
drivers/pinctrl/mscc/pinctrl-luton.c | 1 +
drivers/pinctrl/mscc/pinctrl-ocelot.c | 1 +
drivers/pinctrl/mscc/pinctrl-serval.c | 1 +
drivers/pinctrl/mscc/pinctrl-servalt.c | 1 +
drivers/pinctrl/mtmips/pinctrl-mt7628.c | 1 +
drivers/pinctrl/mtmips/pinctrl-mtmips-common.h | 1 +
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 1 +
drivers/pinctrl/nexell/pinctrl-s5pxx18.c | 1 +
drivers/pinctrl/pinctrl-at91-pio4.c | 1 +
drivers/pinctrl/pinctrl-at91.c | 1 +
drivers/pinctrl/pinctrl-generic.c | 1 +
drivers/pinctrl/pinctrl-sandbox.c | 1 +
drivers/pinctrl/pinctrl-single.c | 1 +
drivers/pinctrl/pinctrl-sti.c | 1 +
drivers/pinctrl/pinctrl-stmfx.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.c | 1 +
drivers/pinctrl/renesas/sh_pfc.h | 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-rockchip.h | 1 +
drivers/pinctrl/rockchip/pinctrl-rv1108.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c | 1 +
drivers/power/acpi_pmc/acpi-pmc-uclass.c | 1 +
drivers/power/acpi_pmc/pmc_emul.c | 1 +
drivers/power/axp809.c | 1 +
drivers/power/axp818.c | 1 +
drivers/power/domain/imx8-power-domain-legacy.c | 1 +
drivers/power/domain/meson-ee-pwrc.c | 1 +
drivers/power/domain/power-domain-uclass.c | 1 +
drivers/power/domain/sandbox-power-domain.c | 1 +
drivers/power/domain/tegra186-power-domain.c | 1 +
drivers/power/fuel_gauge/fg_max17042.c | 1 +
drivers/power/pmic/da9063.c | 1 +
drivers/power/pmic/i2c_pmic_emul.c | 1 +
drivers/power/pmic/rk8xx.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/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/regulator_common.h | 2 ++
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/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-imx.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/qe/uec.c | 1 +
drivers/qe/uec_phy.c | 1 +
drivers/ram/k3-j721e/lpddr4_if.h | 1 +
drivers/ram/k3-j721e/lpddr4_sanity.h | 1 +
drivers/ram/k3-j721e/lpddr4_structs_if.h | 1 +
drivers/ram/rockchip/dmc-rk3368.c | 1 +
drivers/ram/rockchip/sdram_px30.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_rk3328.c | 1 +
drivers/ram/rockchip/sdram_rk3399.c | 1 +
drivers/ram/stm32mp1/stm32mp1_ddr.c | 1 +
drivers/ram/stm32mp1/stm32mp1_ddr.h | 1 +
drivers/ram/stm32mp1/stm32mp1_interactive.c | 1 +
drivers/ram/stm32mp1/stm32mp1_ram.c | 1 +
drivers/ram/stm32mp1/stm32mp1_tests.c | 1 +
drivers/ram/stm32mp1/stm32mp1_tuning.c | 1 +
drivers/remoteproc/rproc-elf-loader.c | 1 +
drivers/remoteproc/rproc-uclass.c | 1 +
drivers/remoteproc/ti_k3_dsp_rproc.c | 1 +
drivers/reset/ast2500-reset.c | 1 +
drivers/reset/reset-hsdk.c | 1 +
drivers/reset/reset-meson.c | 1 +
drivers/reset/reset-socfpga.c | 1 +
drivers/reset/sandbox-reset.c | 1 +
drivers/reset/sti-reset.c | 1 +
drivers/rng/rockchip_rng.c | 1 +
drivers/rtc/ds1374.c | 1 +
drivers/rtc/i2c_rtc_emul.c | 1 +
drivers/rtc/rv3029.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_arc.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_mpc8xx.c | 1 +
drivers/serial/serial_msm.c | 1 +
drivers/serial/serial_mtk.c | 1 +
drivers/serial/serial_mvebu_a3700.c | 1 +
drivers/serial/serial_mxc.c | 1 +
drivers/serial/serial_nulldev.c | 1 +
drivers/serial/serial_owl.c | 1 +
drivers/serial/serial_pic32.c | 1 +
drivers/serial/serial_pl01x.c | 1 +
drivers/serial/serial_pl01x_internal.h | 1 +
drivers/serial/serial_pxa.c | 1 +
drivers/serial/serial_s5p.c | 1 +
drivers/serial/serial_sh.c | 1 +
drivers/serial/serial_sti_asc.c | 1 +
drivers/serial/serial_stm32.c | 1 +
drivers/serial/serial_stm32.h | 1 +
drivers/serial/serial_uniphier.c | 1 +
drivers/serial/serial_xuartlite.c | 1 +
drivers/serial/usbtty.c | 1 +
drivers/smem/msm_smem.c | 1 +
drivers/soc/soc-uclass.c | 1 +
drivers/soc/ti/k3-navss-ringacc.c | 1 +
drivers/soc/ti/keystone_serdes.c | 1 +
drivers/sound/da7219.c | 1 +
drivers/sound/max98088.c | 1 +
drivers/sound/max98095.c | 1 +
drivers/sound/max98357a.c | 1 +
drivers/sound/rockchip_i2s.c | 1 +
drivers/sound/rt5677.c | 1 +
drivers/sound/sandbox.c | 1 +
drivers/sound/tegra_ahub.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/bcmstb_spi.c | 1 +
drivers/spi/cadence_qspi.h | 1 +
drivers/spi/cadence_qspi_apb.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/kirkwood_spi.c | 1 +
drivers/spi/meson_spifc.c | 1 +
drivers/spi/mpc8xxx_spi.c | 1 +
drivers/spi/mscc_bb_spi.c | 1 +
drivers/spi/mt7621_spi.c | 1 +
drivers/spi/mvebu_a3700_spi.c | 1 +
drivers/spi/mxc_spi.c | 1 +
drivers/spi/mxs_spi.c | 1 +
drivers/spi/pic32_spi.c | 1 +
drivers/spi/pl022_spi.c | 1 +
drivers/spi/renesas_rpc_spi.c | 1 +
drivers/spi/rk_spi.c | 1 +
drivers/spi/sh_qspi.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/uniphier_spi.c | 1 +
drivers/spi/zynqmp_gqspi.c | 1 +
drivers/spmi/spmi-msm.c | 1 +
drivers/spmi/spmi-sandbox.c | 1 +
drivers/sysreset/sysreset_mpc83xx.c | 1 +
drivers/tee/broadcom/chimp_optee.c | 1 +
drivers/tee/optee/core.c | 1 +
drivers/tee/optee/optee_smc.h | 1 +
drivers/tee/optee/rpmb.c | 1 +
drivers/tee/sandbox.c | 1 +
drivers/tee/tee-uclass.c | 1 +
drivers/thermal/imx_scu_thermal.c | 1 +
drivers/thermal/imx_tmu.c | 1 +
drivers/timer/sandbox_timer.c | 1 +
drivers/timer/timer-uclass.c | 1 +
drivers/timer/tsc_timer.c | 2 ++
drivers/tpm/cr50_i2c.c | 1 +
drivers/tpm/tpm2_tis_sandbox.c | 1 +
drivers/tpm/tpm2_tis_spi.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/ufs/ufs.h | 1 +
drivers/usb/cdns3/cdns3-ti.c | 1 +
drivers/usb/cdns3/core.h | 1 +
drivers/usb/cdns3/ep0.c | 1 +
drivers/usb/cdns3/gadget.c | 1 +
drivers/usb/cdns3/gadget.h | 1 +
drivers/usb/common/common.c | 1 +
drivers/usb/common/fsl-dt-fixup.c | 1 +
drivers/usb/common/fsl-errata.c | 1 +
drivers/usb/dwc3/core.c | 1 +
drivers/usb/dwc3/gadget.c | 1 +
drivers/usb/dwc3/gadget.h | 1 +
drivers/usb/dwc3/io.h | 1 +
drivers/usb/emul/sandbox_flash.c | 1 +
drivers/usb/emul/sandbox_keyb.c | 1 +
drivers/usb/emul/usb-emul-uclass.c | 1 +
drivers/usb/eth/lan7x.c | 1 +
drivers/usb/eth/lan7x.h | 1 +
drivers/usb/eth/mcs7830.c | 1 +
drivers/usb/eth/r8152.c | 1 +
drivers/usb/eth/r8152.h | 1 +
drivers/usb/eth/r8152_fw.c | 1 +
drivers/usb/eth/smsc95xx.c | 1 +
drivers/usb/eth/usb_ether.c | 1 +
drivers/usb/gadget/at91_udc.c | 1 +
drivers/usb/gadget/at91_udc.h | 1 +
drivers/usb/gadget/atmel_usba_udc.c | 1 +
drivers/usb/gadget/atmel_usba_udc.h | 1 +
drivers/usb/gadget/ci_udc.c | 1 +
drivers/usb/gadget/ci_udc.h | 1 +
drivers/usb/gadget/composite.c | 1 +
drivers/usb/gadget/designware_udc.c | 1 +
drivers/usb/gadget/dwc2_udc_otg.c | 1 +
drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c | 1 +
drivers/usb/gadget/ep0.c | 1 +
drivers/usb/gadget/ether.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/fotg210.c | 1 +
drivers/usb/gadget/g_dnl.c | 1 +
drivers/usb/gadget/pxa25x_udc.c | 1 +
drivers/usb/gadget/pxa27x_udc.c | 1 +
drivers/usb/gadget/rndis.c | 1 +
drivers/usb/gadget/udc/udc-core.c | 1 +
drivers/usb/gadget/udc/udc-uclass.c | 1 +
drivers/usb/gadget/usbstring.c | 1 +
drivers/usb/host/dwc2.c | 1 +
drivers/usb/host/dwc3-sti-glue.c | 1 +
drivers/usb/host/ehci-faraday.c | 1 +
drivers/usb/host/ehci-fsl.c | 1 +
drivers/usb/host/ehci-hcd.c | 1 +
drivers/usb/host/ehci-msm.c | 1 +
drivers/usb/host/ehci-mx6.c | 1 +
drivers/usb/host/ehci-mxs.c | 1 +
drivers/usb/host/ehci-rmobile.c | 1 +
drivers/usb/host/ehci-tegra.c | 1 +
drivers/usb/host/ehci-vf.c | 1 +
drivers/usb/host/ohci-hcd.c | 1 +
drivers/usb/host/r8a66597-hcd.c | 1 +
drivers/usb/host/sl811-hcd.c | 1 +
drivers/usb/host/usb-sandbox.c | 1 +
drivers/usb/host/usb-uclass.c | 1 +
drivers/usb/host/xhci-mem.c | 1 +
drivers/usb/host/xhci-rcar.c | 1 +
drivers/usb/host/xhci-ring.c | 1 +
drivers/usb/host/xhci.c | 1 +
drivers/usb/musb-new/mt85xx.c | 1 +
drivers/usb/musb-new/musb_core.h | 1 +
drivers/usb/musb-new/musb_dma.h | 1 +
drivers/usb/musb-new/musb_gadget.h | 1 +
drivers/usb/musb-new/pic32.c | 1 +
drivers/usb/musb-new/sunxi.c | 1 +
drivers/usb/musb/musb_hcd.c | 1 +
drivers/usb/musb/musb_udc.c | 1 +
drivers/usb/phy/rockchip_usb2_phy.c | 1 +
drivers/video/am335x-fb.c | 1 +
drivers/video/ati_radeon_fb.c | 1 +
drivers/video/atmel_hlcdfb.c | 1 +
drivers/video/atmel_lcdfb.c | 1 +
drivers/video/backlight_gpio.c | 1 +
drivers/video/bcm2835.c | 1 +
drivers/video/bridge/video-bridge-uclass.c | 1 +
drivers/video/broadwell_igd.c | 1 +
drivers/video/cfb_console.c | 1 +
drivers/video/console_truetype.c | 1 +
drivers/video/da8xx-fb.c | 1 +
drivers/video/display-uclass.c | 1 +
drivers/video/dw_hdmi.c | 1 +
drivers/video/dw_mipi_dsi.c | 1 +
drivers/video/exynos/exynos_fb.c | 1 +
drivers/video/exynos/exynos_mipi_dsi_common.c | 1 +
drivers/video/fsl_dcu_fb.c | 1 +
drivers/video/fsl_diu_fb.c | 1 +
drivers/video/hitachi_tx18d42vm_lcd.c | 1 +
drivers/video/ihs_video_out.c | 1 +
drivers/video/imx/ipu.h | 1 +
drivers/video/imx/mxc_ipuv3_fb.c | 1 +
drivers/video/ivybridge_igd.c | 1 +
drivers/video/ld9040.c | 1 +
drivers/video/lg4573.c | 1 +
drivers/video/logicore_dp_tx.c | 1 +
drivers/video/logicore_dp_tx.h | 1 +
drivers/video/mali_dp.c | 1 +
drivers/video/meson/meson_dw_hdmi.c | 1 +
drivers/video/meson/meson_plane.c | 1 +
drivers/video/meson/meson_vclk.c | 1 +
drivers/video/meson/meson_venc.c | 1 +
drivers/video/meson/meson_vpu.c | 1 +
drivers/video/meson/meson_vpu.h | 1 +
drivers/video/meson/meson_vpu_init.c | 1 +
drivers/video/mipi_dsi.c | 1 +
drivers/video/mvebu_lcd.c | 1 +
drivers/video/mxsfb.c | 1 +
drivers/video/nexell/s5pxx18_dp_lvds.c | 2 ++
drivers/video/nexell/s5pxx18_dp_mipi.c | 1 +
drivers/video/nexell/s5pxx18_dp_rgb.c | 2 ++
drivers/video/nexell/soc/s5pxx18_soc_disptop_clk.c | 1 +
drivers/video/nexell/soc/s5pxx18_soc_lvds.c | 1 +
drivers/video/orisetech_otm8009a.c | 1 +
drivers/video/pwm_backlight.c | 1 +
drivers/video/raydium-rm68200.c | 1 +
drivers/video/rockchip/rk3288_hdmi.c | 1 +
drivers/video/rockchip/rk3288_vop.c | 1 +
drivers/video/rockchip/rk3399_hdmi.c | 1 +
drivers/video/rockchip/rk3399_vop.c | 1 +
drivers/video/rockchip/rk_edp.c | 1 +
drivers/video/s6e8ax0.c | 1 +
drivers/video/scf0403_lcd.c | 1 +
drivers/video/ssd2828.c | 1 +
drivers/video/stm32/stm32_dsi.c | 1 +
drivers/video/stm32/stm32_ltdc.c | 1 +
drivers/video/sunxi/lcdc.c | 1 +
drivers/video/sunxi/sunxi_de2.c | 1 +
drivers/video/sunxi/sunxi_display.c | 1 +
drivers/video/sunxi/sunxi_dw_hdmi.c | 1 +
drivers/video/tegra.c | 1 +
drivers/video/tegra124/display.c | 1 +
drivers/video/tegra124/dp.c | 1 +
drivers/video/vidconsole-uclass.c | 1 +
drivers/video/video-uclass.c | 1 +
drivers/video/video_bmp.c | 1 +
drivers/virtio/virtio_net.c | 1 +
drivers/virtio/virtio_ring.c | 1 +
drivers/virtio/virtio_rng.c | 1 +
drivers/w1/mxc_w1.c | 1 +
drivers/w1/w1-gpio.c | 1 +
drivers/w1/w1-uclass.c | 1 +
drivers/watchdog/ast_wdt.c | 1 +
drivers/watchdog/at91sam9_wdt.c | 1 +
drivers/watchdog/cdns_wdt.c | 1 +
drivers/watchdog/designware_wdt.c | 1 +
drivers/watchdog/imx_watchdog.c | 1 +
drivers/watchdog/tangier_wdt.c | 1 +
drivers/watchdog/xilinx_wwdt.c | 1 +
env/common.c | 1 +
env/env.c | 1 +
env/flags.c | 1 +
env/mmc.c | 1 +
env/nand.c | 1 +
env/sata.c | 1 +
env/sf.c | 1 +
fs/btrfs/inode.c | 1 +
fs/btrfs/subvolume.c | 2 +-
fs/btrfs/super.c | 1 +
fs/cbfs/cbfs.c | 1 +
fs/ext4/ext4_common.c | 1 +
fs/ext4/ext4_write.c | 1 +
fs/fat/fat.c | 1 +
fs/fat/fat_write.c | 1 +
fs/fs.c | 1 +
fs/fs_internal.c | 1 +
fs/jffs2/compr_lzo.c | 1 +
fs/jffs2/jffs2_1pass.c | 1 +
fs/ubifs/debug.c | 1 +
fs/ubifs/io.c | 1 +
fs/ubifs/key.h | 1 +
fs/ubifs/log.c | 1 +
fs/ubifs/lprops.c | 1 +
fs/ubifs/lpt_commit.c | 1 +
fs/ubifs/misc.h | 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/ubifs.h | 1 +
fs/zfs/zfs.c | 1 +
include/acpi/acpi_device.h | 1 +
include/acpi/acpigen.h | 1 +
include/adc.h | 2 ++
include/ahci.h | 1 +
include/asm-generic/gpio.h | 1 +
include/atsha204a-i2c.h | 1 +
include/avb_verify.h | 1 +
include/bmp_layout.h | 2 ++
include/board.h | 1 +
include/bootstage.h | 2 ++
include/cli.h | 1 +
include/clk.h | 1 +
include/command.h | 2 ++
include/common.h | 1 -
include/cpsw.h | 1 +
include/cros_ec.h | 1 +
include/crypto/pkcs7_parser.h | 1 +
include/crypto/public_key.h | 1 +
include/crypto/x509_parser.h | 1 +
include/dfu.h | 1 +
include/display.h | 2 ++
include/display_options.h | 2 ++
include/div64.h | 1 +
include/dm/device-internal.h | 1 +
include/dm/device.h | 1 +
include/dm/devres.h | 1 +
include/dm/lists.h | 1 +
include/dm/of.h | 1 +
include/dm/of_access.h | 1 +
include/dm/ofnode.h | 1 +
include/dm/platform_data/serial_bcm283x_mu.h | 1 +
include/dm/platform_data/serial_mxc.h | 1 +
include/dm/platform_data/serial_pl01x.h | 1 +
include/dm/read.h | 1 +
include/dm/root.h | 1 +
include/dm/uclass-internal.h | 1 +
include/dw_hdmi.h | 1 +
include/dwmmc.h | 1 +
include/edid.h | 1 +
include/efi.h | 1 +
include/efi_api.h | 1 +
include/efi_selftest.h | 1 +
include/efi_variable.h | 1 +
include/exception.h | 1 +
include/fdtdec.h | 1 +
include/fsl-mc/fsl_dpaa_fd.h | 1 +
include/fsl_ddr_sdram.h | 1 +
include/fsl_errata.h | 1 +
include/fsl_usb.h | 1 +
include/g_dnl.h | 1 +
include/generic-phy.h | 1 +
include/hexdump.h | 1 +
include/i2c.h | 1 +
include/image-android-dt.h | 1 +
include/image-sparse.h | 1 +
include/input.h | 1 +
include/irq.h | 1 +
include/kendryte/bypass.h | 2 ++
include/kendryte/pll.h | 1 +
include/keys/asymmetric-type.h | 1 +
include/lcd.h | 1 +
include/linux/err.h | 2 +-
include/linux/list.h | 1 +
include/linux/log2.h | 1 +
include/linux/soc/ti/cppi5.h | 1 +
include/linux/soc/ti/ti_sci_protocol.h | 1 +
include/linux/types.h | 1 -
include/log.h | 1 +
include/memalign.h | 1 +
include/membuff.h | 2 ++
include/mipi_dsi.h | 1 +
include/misc.h | 1 +
include/mmc.h | 1 +
include/mvebu/comphy.h | 1 +
include/mxs_nand.h | 1 +
include/net.h | 1 +
include/net/ncsi.h | 1 +
include/net/pcap.h | 1 +
include/os.h | 1 +
include/p2sb.h | 1 +
include/pch.h | 1 +
include/pci.h | 2 ++
include/phy-sun4i-usb.h | 1 +
include/phy.h | 1 +
include/phy_interface.h | 2 ++
include/power/acpi_pmc.h | 1 +
include/power/regulator.h | 1 +
include/pwm.h | 1 +
include/pwrseq.h | 1 +
include/qfw.h | 1 +
include/remoteproc.h | 1 +
include/reset.h | 1 +
include/rtc.h | 1 +
include/samsung/exynos5-dt-types.h | 1 +
include/scsi.h | 1 +
include/sdhci.h | 1 +
include/serial.h | 1 +
include/spi-mem.h | 2 ++
include/spi_flash.h | 1 +
include/spl.h | 1 +
include/stm32_rcc.h | 1 +
include/tee.h | 1 +
include/test/ut.h | 1 +
include/tlv_eeprom.h | 1 +
include/usb.h | 1 +
include/usb/dwc2_udc.h | 1 +
include/usb/xhci.h | 2 ++
include/usb_defs.h | 1 +
include/vbe.h | 1 +
include/video.h | 1 +
include/video_bridge.h | 1 +
include/virtio.h | 1 +
include/virtio_ring.h | 1 +
include/w1.h | 2 ++
include/wait_bit.h | 1 +
include/xyzModem.h | 1 +
lib/acpi/acpi_device.c | 1 +
lib/acpi/acpi_table.c | 1 +
lib/acpi/acpigen.c | 1 +
lib/aes/aes-decrypt.c | 1 +
lib/bch.c | 1 +
lib/crypto/asymmetric_type.c | 1 +
lib/display_options.c | 1 +
lib/efi/efi_stub.c | 1 +
lib/efi_loader/efi_acpi.c | 1 +
lib/efi_loader/efi_boottime.c | 1 +
lib/efi_loader/efi_console.c | 1 +
lib/efi_loader/efi_device_path.c | 1 +
lib/efi_loader/efi_device_path_to_text.c | 1 +
lib/efi_loader/efi_device_path_utilities.c | 1 +
lib/efi_loader/efi_disk.c | 1 +
lib/efi_loader/efi_file.c | 1 +
lib/efi_loader/efi_gop.c | 1 +
lib/efi_loader/efi_hii.c | 1 +
lib/efi_loader/efi_image_loader.c | 1 +
lib/efi_loader/efi_load_initrd.c | 1 +
lib/efi_loader/efi_memory.c | 1 +
lib/efi_loader/efi_net.c | 1 +
lib/efi_loader/efi_runtime.c | 1 +
lib/efi_loader/efi_signature.c | 1 +
lib/efi_loader/efi_smbios.c | 1 +
lib/efi_loader/efi_unicode_collation.c | 1 +
lib/efi_loader/efi_var_common.c | 1 +
lib/efi_loader/efi_var_file.c | 1 +
lib/efi_loader/efi_var_mem.c | 1 +
lib/efi_loader/efi_variable.c | 1 +
lib/efi_loader/efi_variable_tee.c | 1 +
lib/efi_selftest/efi_selftest_loaded_image.c | 1 +
lib/efi_selftest/efi_selftest_memory.c | 1 +
lib/efi_selftest/efi_selftest_set_virtual_address_map.c | 1 +
lib/efi_selftest/efi_selftest_textinputex.c | 1 +
lib/efi_selftest/efi_selftest_unicode_collation.c | 1 +
lib/efi_selftest/efi_selftest_watchdog.c | 1 +
lib/elf.c | 1 +
lib/errno_str.c | 1 +
lib/fdtdec.c | 1 +
lib/fdtdec_test.c | 1 +
lib/hexdump.c | 1 +
lib/image-sparse.c | 1 +
lib/libavb/avb_sysdeps.h | 1 +
lib/lmb.c | 1 +
lib/lzma/LzmaTools.c | 1 +
lib/lzo/lzo1x_decompress.c | 2 ++
lib/membuff.c | 1 +
lib/of_live.c | 1 +
lib/smbios.c | 1 +
lib/time.c | 1 +
lib/tiny-printf.c | 1 +
lib/tpm-v1.c | 1 +
lib/tpm-v2.c | 1 +
lib/trace.c | 1 +
lib/uuid.c | 1 +
lib/vsprintf.c | 1 +
net/arp.c | 1 +
net/bootp.c | 1 +
net/eth-uclass.c | 1 +
net/eth_legacy.c | 1 +
net/fastboot.c | 1 +
net/mdio-mux-uclass.c | 1 +
net/net.c | 1 +
net/pcap.c | 1 +
net/tftp.c | 1 +
post/drivers/memory.c | 1 +
post/lib_powerpc/andi.c | 1 +
post/lib_powerpc/cmp.c | 1 +
post/lib_powerpc/cmpi.c | 1 +
post/lib_powerpc/cr.c | 1 +
post/lib_powerpc/fpu/mul-subnormal-single-1.c | 1 +
post/lib_powerpc/load.c | 1 +
post/lib_powerpc/multi.c | 1 +
post/lib_powerpc/rlwimi.c | 1 +
post/lib_powerpc/rlwinm.c | 1 +
post/lib_powerpc/rlwnm.c | 1 +
post/lib_powerpc/srawi.c | 1 +
post/lib_powerpc/store.c | 1 +
post/lib_powerpc/three.c | 1 +
post/lib_powerpc/threei.c | 1 +
post/lib_powerpc/threex.c | 1 +
post/lib_powerpc/two.c | 1 +
post/lib_powerpc/twox.c | 1 +
post/post.c | 1 +
post/tests.c | 1 +
test/bloblist.c | 1 +
test/cmd_ut.c | 1 +
test/dm/acpi.c | 1 +
test/dm/acpi_dp.c | 1 +
test/dm/acpigen.c | 1 +
test/dm/axi.c | 1 +
test/dm/board.c | 1 +
test/dm/core.c | 1 +
test/dm/gpio.c | 1 +
test/dm/i2s.c | 1 +
test/dm/k210_pll.c | 1 +
test/dm/misc.c | 1 +
test/dm/panel.c | 1 +
test/dm/regulator.c | 1 +
test/dm/remoteproc.c | 1 +
test/dm/rtc.c | 1 +
test/dm/test-main.c | 1 +
test/lib/test_aes.c | 1 +
test/optee/cmd_ut_optee.c | 1 +
test/str_ut.c | 1 +
test/time_ut.c | 1 +
test/unicode_ut.c | 1 +
1924 files changed, 1951 insertions(+), 8 deletions(-)
diff --git a/arch/arc/lib/cpu.c b/arch/arc/lib/cpu.c
index 903824615131..11b2e828088a 100644
--- a/arch/arc/lib/cpu.c
+++ b/arch/arc/lib/cpu.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <init.h>
#include <malloc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/arcregs.h>
diff --git a/arch/arm/cpu/arm1136/mx31/generic.c b/arch/arm/cpu/arm1136/mx31/generic.c
index ef738d6cd845..c6814a82d769 100644
--- a/arch/arm/cpu/arm1136/mx31/generic.c
+++ b/arch/arm/cpu/arm1136/mx31/generic.c
@@ -12,6 +12,7 @@
#include <asm/arch/clock.h>
#include <asm/io.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
static u32 mx31_decode_pll(u32 reg, u32 infreq)
{
diff --git a/arch/arm/cpu/arm926ejs/mx25/generic.c b/arch/arm/cpu/arm926ejs/mx25/generic.c
index 8b74650b3647..71e143b8a929 100644
--- a/arch/arm/cpu/arm926ejs/mx25/generic.c
+++ b/arch/arm/cpu/arm926ejs/mx25/generic.c
@@ -14,6 +14,7 @@
#include <init.h>
#include <net.h>
#include <netdev.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/global_data.h>
diff --git a/arch/arm/cpu/arm926ejs/mx27/generic.c b/arch/arm/cpu/arm926ejs/mx27/generic.c
index ec5f5e12e1e7..376ab2eaeac1 100644
--- a/arch/arm/cpu/arm926ejs/mx27/generic.c
+++ b/arch/arm/cpu/arm926ejs/mx27/generic.c
@@ -19,6 +19,7 @@
#include <asm/arch/mxcmmc.h>
#endif
#include <asm/u-boot.h>
+#include <linux/kernel.h>
/*
* get the system pll clock in Hz
diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_boot.c b/arch/arm/cpu/arm926ejs/mxs/spl_boot.c
index f24378305fc3..88386dbb20f7 100644
--- a/arch/arm/cpu/arm926ejs/mxs/spl_boot.c
+++ b/arch/arm/cpu/arm926ejs/mxs/spl_boot.c
@@ -18,6 +18,7 @@
#include <asm/gpio.h>
#include <asm/u-boot.h>
#include <linux/compiler.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "mxs_init.h"
diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c b/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c
index a94803ee93d9..4d2d988c287e 100644
--- a/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c
+++ b/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c
@@ -14,6 +14,7 @@
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
#include <linux/compiler.h>
+#include <linux/kernel.h>
#include "mxs_init.h"
diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c b/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c
index 35ea71a5ba89..f57e1bb96c85 100644
--- a/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c
+++ b/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c
@@ -12,6 +12,7 @@
#include <log.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
+#include <linux/kernel.h>
#include "mxs_init.h"
diff --git a/arch/arm/cpu/arm926ejs/spear/spear600.c b/arch/arm/cpu/arm926ejs/spear/spear600.c
index b31ede5eb948..2b036215d1c1 100644
--- a/arch/arm/cpu/arm926ejs/spear/spear600.c
+++ b/arch/arm/cpu/arm926ejs/spear/spear600.c
@@ -6,6 +6,7 @@
*/
#include <common.h>
+#include <stdbool.h>
#include <asm/hardware.h>
#include <asm/io.h>
#include <asm/arch/spr_misc.h>
diff --git a/arch/arm/cpu/armv7/bcm235xx/clk-bcm235xx.c b/arch/arm/cpu/armv7/bcm235xx/clk-bcm235xx.c
index abdbcb068ee9..3c6cba611de6 100644
--- a/arch/arm/cpu/armv7/bcm235xx/clk-bcm235xx.c
+++ b/arch/arm/cpu/armv7/bcm235xx/clk-bcm235xx.c
@@ -14,6 +14,7 @@
#include <linux/errno.h>
#include <asm/arch/sysmap.h>
#include <asm/kona-common/clk.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "clk-core.h"
diff --git a/arch/arm/cpu/armv7/bcm235xx/clk-core.c b/arch/arm/cpu/armv7/bcm235xx/clk-core.c
index 8c718bf5f0bd..098c5afb7313 100644
--- a/arch/arm/cpu/armv7/bcm235xx/clk-core.c
+++ b/arch/arm/cpu/armv7/bcm235xx/clk-core.c
@@ -18,6 +18,7 @@
#include <bitfield.h>
#include <asm/arch/sysmap.h>
#include <asm/kona-common/clk.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "clk-core.h"
diff --git a/arch/arm/cpu/armv7/bcm235xx/clk-core.h b/arch/arm/cpu/armv7/bcm235xx/clk-core.h
index 91d38703fa77..6dfc4afb0067 100644
--- a/arch/arm/cpu/armv7/bcm235xx/clk-core.h
+++ b/arch/arm/cpu/armv7/bcm235xx/clk-core.h
@@ -4,6 +4,7 @@
*/
#include <stdio.h>
+#include <linux/kernel.h>
#include <linux/stddef.h>
#include <linux/stringify.h>
diff --git a/arch/arm/cpu/armv7/bcm281xx/clk-bcm281xx.c b/arch/arm/cpu/armv7/bcm281xx/clk-bcm281xx.c
index ee0e75304807..96ce2333cdea 100644
--- a/arch/arm/cpu/armv7/bcm281xx/clk-bcm281xx.c
+++ b/arch/arm/cpu/armv7/bcm281xx/clk-bcm281xx.c
@@ -14,6 +14,7 @@
#include <linux/errno.h>
#include <asm/arch/sysmap.h>
#include <asm/kona-common/clk.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "clk-core.h"
diff --git a/arch/arm/cpu/armv7/bcm281xx/clk-core.c b/arch/arm/cpu/armv7/bcm281xx/clk-core.c
index d1828d6234a9..2fb195bf8f9c 100644
--- a/arch/arm/cpu/armv7/bcm281xx/clk-core.c
+++ b/arch/arm/cpu/armv7/bcm281xx/clk-core.c
@@ -18,6 +18,7 @@
#include <bitfield.h>
#include <asm/arch/sysmap.h>
#include <asm/kona-common/clk.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "clk-core.h"
diff --git a/arch/arm/cpu/armv7/bcm281xx/clk-core.h b/arch/arm/cpu/armv7/bcm281xx/clk-core.h
index 531d9a4f3eb7..74780012e24a 100644
--- a/arch/arm/cpu/armv7/bcm281xx/clk-core.h
+++ b/arch/arm/cpu/armv7/bcm281xx/clk-core.h
@@ -4,6 +4,7 @@
*/
#include <stdio.h>
+#include <linux/kernel.h>
#include <linux/stddef.h>
#include <linux/stringify.h>
diff --git a/arch/arm/cpu/armv7/exception_level.c b/arch/arm/cpu/armv7/exception_level.c
index f6d25bb682c7..5845cca9a335 100644
--- a/arch/arm/cpu/armv7/exception_level.c
+++ b/arch/arm/cpu/armv7/exception_level.c
@@ -12,6 +12,7 @@
#include <bootm.h>
#include <cpu_func.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/armv7.h>
#include <asm/secure.h>
#include <asm/setjmp.h>
diff --git a/arch/arm/cpu/armv7/kona-common/clk-stubs.c b/arch/arm/cpu/armv7/kona-common/clk-stubs.c
index 2dfa3f7e7314..19aa6c07358f 100644
--- a/arch/arm/cpu/armv7/kona-common/clk-stubs.c
+++ b/arch/arm/cpu/armv7/kona-common/clk-stubs.c
@@ -4,6 +4,7 @@
*/
#include <common.h>
+#include <compiler.h>
/*
* These weak functions are available to kona architectures that don't
diff --git a/arch/arm/cpu/armv7/ls102xa/cpu.c b/arch/arm/cpu/armv7/ls102xa/cpu.c
index b7ec5ccdd267..5e922953c960 100644
--- a/arch/arm/cpu/armv7/ls102xa/cpu.c
+++ b/arch/arm/cpu/armv7/ls102xa/cpu.c
@@ -22,6 +22,7 @@
#include <fsl_wdog.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "fsl_epu.h"
diff --git a/arch/arm/cpu/armv7/ls102xa/fdt.c b/arch/arm/cpu/armv7/ls102xa/fdt.c
index 684c0c91ef5c..aef54ebf3c86 100644
--- a/arch/arm/cpu/armv7/ls102xa/fdt.c
+++ b/arch/arm/cpu/armv7/ls102xa/fdt.c
@@ -10,6 +10,7 @@
#include <vsprintf.h>
#include <asm/global_data.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
#include <asm/io.h>
diff --git a/arch/arm/cpu/armv7/ls102xa/ls102xa_serdes.c b/arch/arm/cpu/armv7/ls102xa/ls102xa_serdes.c
index 8c030be8b36f..3d313b1ad762 100644
--- a/arch/arm/cpu/armv7/ls102xa/ls102xa_serdes.c
+++ b/arch/arm/cpu/armv7/ls102xa/ls102xa_serdes.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/immap_ls102xa.h>
+#include <linux/kernel.h>
static u8 serdes_cfg_tbl[][SRDS_MAX_LANES] = {
[0x00] = {PCIE1, PCIE1, PCIE1, PCIE1},
diff --git a/arch/arm/cpu/armv7/ls102xa/soc.c b/arch/arm/cpu/armv7/ls102xa/soc.c
index 8a95ee86a9b7..bcee1c545d0a 100644
--- a/arch/arm/cpu/armv7/ls102xa/soc.c
+++ b/arch/arm/cpu/armv7/ls102xa/soc.c
@@ -13,6 +13,7 @@
#include <asm/arch/ls102xa_stream_id.h>
#include <fsl_csu.h>
#include <fsl_ddr_sdram.h>
+#include <linux/kernel.h>
struct liodn_id_table sec_liodn_tbl[] = {
SET_SEC_JR_LIODN_ENTRY(0, 0x10, 0x10),
diff --git a/arch/arm/cpu/armv7/sunxi/psci.c b/arch/arm/cpu/armv7/sunxi/psci.c
index 1ac50f558a40..5f21529bf2e0 100644
--- a/arch/arm/cpu/armv7/sunxi/psci.c
+++ b/arch/arm/cpu/armv7/sunxi/psci.c
@@ -8,6 +8,7 @@
*/
#include <config.h>
#include <common.h>
+#include <stdbool.h>
#include <asm/cache.h>
#include <asm/arch/cpu.h>
diff --git a/arch/arm/cpu/armv7/virt-v7.c b/arch/arm/cpu/armv7/virt-v7.c
index 0031bf859754..cf0954cb9b3b 100644
--- a/arch/arm/cpu/armv7/virt-v7.c
+++ b/arch/arm/cpu/armv7/virt-v7.c
@@ -16,6 +16,7 @@
#include <asm/gic.h>
#include <asm/io.h>
#include <asm/secure.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static unsigned int read_id_pfr1(void)
diff --git a/arch/arm/cpu/armv8/cache_v8.c b/arch/arm/cpu/armv8/cache_v8.c
index 052ba4d5407d..8add6ac333b2 100644
--- a/arch/arm/cpu/armv8/cache_v8.c
+++ b/arch/arm/cpu/armv8/cache_v8.c
@@ -17,6 +17,7 @@
#include <asm/global_data.h>
#include <asm/system.h>
#include <asm/armv8/mmu.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
index bf38eacb8eb9..38ff2ce207d1 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
@@ -42,6 +42,7 @@
#include <asm/arch/clock.h>
#include <hwconfig.h>
#include <fsl_qbman.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#ifdef CONFIG_TFABOOT
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c
index 917ae991a525..f79328394c90 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <env.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/io.h>
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/icid.c b/arch/arm/cpu/armv8/fsl-layerscape/icid.c
index 84ca91a0cc8e..5c378da0636c 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/icid.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/icid.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <stdio.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ls1012a_serdes.c b/arch/arm/cpu/armv8/fsl-layerscape/ls1012a_serdes.c
index 8d7beca7db38..33d9a64e6800 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/ls1012a_serdes.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/ls1012a_serdes.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/immap_lsch2.h>
+#include <linux/kernel.h>
struct serdes_config {
u32 protocol;
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ls1028_ids.c b/arch/arm/cpu/armv8/fsl-layerscape/ls1028_ids.c
index 2d25c92c6ee1..4d12ffae1bd0 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/ls1028_ids.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/ls1028_ids.c
@@ -9,6 +9,7 @@
#include <asm/arch-fsl-layerscape/immap_lsch3.h>
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
+#include <linux/kernel.h>
#include <linux/string.h>
struct icid_id_table icid_tbl[] = {
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ls1028a_serdes.c b/arch/arm/cpu/armv8/fsl-layerscape/ls1028a_serdes.c
index 80d2910f679f..1079dd8b95fb 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/ls1028a_serdes.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/ls1028a_serdes.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <asm/arch/fsl_serdes.h>
+#include <linux/kernel.h>
struct serdes_config {
u32 protocol;
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ls1043_ids.c b/arch/arm/cpu/armv8/fsl-layerscape/ls1043_ids.c
index 3bd993bebfbc..780b11aff319 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/ls1043_ids.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/ls1043_ids.c
@@ -8,6 +8,7 @@
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
#include <fsl_sec.h>
+#include <linux/kernel.h>
#ifdef CONFIG_SYS_DPAA_QBMAN
struct qportal_info qp_info[CONFIG_SYS_QMAN_NUM_PORTALS] = {
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ls1043a_serdes.c b/arch/arm/cpu/armv8/fsl-layerscape/ls1043a_serdes.c
index 6c5e52ebaa69..8a9ef8fef937 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/ls1043a_serdes.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/ls1043a_serdes.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/immap_lsch2.h>
+#include <linux/kernel.h>
struct serdes_config {
u32 protocol;
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ls1046_ids.c b/arch/arm/cpu/armv8/fsl-layerscape/ls1046_ids.c
index abd847b5be02..bb0814162e28 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/ls1046_ids.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/ls1046_ids.c
@@ -7,6 +7,7 @@
#include <asm/arch-fsl-layerscape/immap_lsch2.h>
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
+#include <linux/kernel.h>
#ifdef CONFIG_SYS_DPAA_QBMAN
struct qportal_info qp_info[CONFIG_SYS_QMAN_NUM_PORTALS] = {
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ls1046a_serdes.c b/arch/arm/cpu/armv8/fsl-layerscape/ls1046a_serdes.c
index 9347e516bf69..0c1c40d04b39 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/ls1046a_serdes.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/ls1046a_serdes.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/immap_lsch2.h>
+#include <linux/kernel.h>
struct serdes_config {
u32 protocol;
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ls1088_ids.c b/arch/arm/cpu/armv8/fsl-layerscape/ls1088_ids.c
index 23743ae10cff..0fb0699768d5 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/ls1088_ids.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/ls1088_ids.c
@@ -7,6 +7,7 @@
#include <asm/arch-fsl-layerscape/immap_lsch3.h>
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
+#include <linux/kernel.h>
struct icid_id_table icid_tbl[] = {
SET_SDHC_ICID(1, FSL_SDMMC_STREAM_ID),
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ls1088a_serdes.c b/arch/arm/cpu/armv8/fsl-layerscape/ls1088a_serdes.c
index 280afbbf98f7..fb7680fdc5f4 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/ls1088a_serdes.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/ls1088a_serdes.c
@@ -7,6 +7,7 @@
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/soc.h>
#include <asm/io.h>
+#include <linux/kernel.h>
struct serdes_config {
u8 ip_protocol;
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ls2080a_serdes.c b/arch/arm/cpu/armv8/fsl-layerscape/ls2080a_serdes.c
index 7997422840f2..b21da530dcfc 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/ls2080a_serdes.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/ls2080a_serdes.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <asm/arch/fsl_serdes.h>
+#include <linux/kernel.h>
struct serdes_config {
u8 protocol;
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ls2088_ids.c b/arch/arm/cpu/armv8/fsl-layerscape/ls2088_ids.c
index e6403b795263..f4af82abd862 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/ls2088_ids.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/ls2088_ids.c
@@ -7,6 +7,7 @@
#include <asm/arch-fsl-layerscape/immap_lsch3.h>
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
+#include <linux/kernel.h>
struct icid_id_table icid_tbl[] = {
SET_SDHC_ICID(1, FSL_SDMMC_STREAM_ID),
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/lx2160_ids.c b/arch/arm/cpu/armv8/fsl-layerscape/lx2160_ids.c
index 3a0ed1fa550c..90fe6889b9d6 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/lx2160_ids.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/lx2160_ids.c
@@ -7,6 +7,7 @@
#include <asm/arch-fsl-layerscape/immap_lsch3.h>
#include <asm/arch-fsl-layerscape/fsl_icid.h>
#include <asm/arch-fsl-layerscape/fsl_portals.h>
+#include <linux/kernel.h>
struct icid_id_table icid_tbl[] = {
SET_SDHC_ICID(1, FSL_SDMMC_STREAM_ID),
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/lx2160a_serdes.c b/arch/arm/cpu/armv8/fsl-layerscape/lx2160a_serdes.c
index a04a370268b1..67c8f6651466 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/lx2160a_serdes.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/lx2160a_serdes.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <asm/arch/fsl_serdes.h>
+#include <linux/kernel.h>
struct serdes_config {
u8 protocol;
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/mp.c b/arch/arm/cpu/armv8/fsl-layerscape/mp.c
index a85fa358765f..f032f49279a1 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/mp.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/mp.c
@@ -16,6 +16,7 @@
#include <asm/arch/mp.h>
#include <asm/arch/soc.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "cpu.h"
#include <asm/arch-fsl-layerscape/soc.h>
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ppa.c b/arch/arm/cpu/armv8/fsl-layerscape/ppa.c
index 60f2a4b002d4..4aaeda367bf2 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/ppa.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/ppa.c
@@ -25,6 +25,7 @@
#include <fsl_validate.h>
#endif
#include <linux/errno.h>
+#include <linux/kernel.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 aaf0bb6440c8..85ae0c49df54 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/soc.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/soc.c
@@ -11,6 +11,7 @@
#include <fsl_immap.h>
#include <fsl_ifc.h>
#include <init.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <linux/errno.h>
diff --git a/arch/arm/cpu/armv8/fwcall.c b/arch/arm/cpu/armv8/fwcall.c
index b29bc30fc253..8085a0351f3a 100644
--- a/arch/arm/cpu/armv8/fwcall.c
+++ b/arch/arm/cpu/armv8/fwcall.c
@@ -7,6 +7,7 @@
#include <asm-offsets.h>
#include <config.h>
+#include <stdbool.h>
#include <version.h>
#include <asm/cache.h>
#include <asm/macro.h>
diff --git a/arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h b/arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h
index 3c06a55cb853..24b249b0683d 100644
--- a/arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h
+++ b/arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h
@@ -6,6 +6,7 @@
#ifndef _FSL_ICID_H_
#define _FSL_ICID_H_
+#include <stdbool.h>
#include <asm/types.h>
#include <fsl_qbman.h>
#include <fsl_sec.h>
diff --git a/arch/arm/include/asm/arch-fsl-layerscape/soc.h b/arch/arm/include/asm/arch-fsl-layerscape/soc.h
index 020548ac6ce6..52f0452cded9 100644
--- a/arch/arm/include/asm/arch-fsl-layerscape/soc.h
+++ b/arch/arm/include/asm/arch-fsl-layerscape/soc.h
@@ -8,6 +8,7 @@
#define _ASM_ARMV8_FSL_LAYERSCAPE_SOC_H_
#ifndef __ASSEMBLY__
+#include <stdbool.h>
#include <linux/types.h>
#ifdef CONFIG_FSL_LSCH2
#include <asm/arch/immap_lsch2.h>
diff --git a/arch/arm/include/asm/arch-imx8/sys_proto.h b/arch/arm/include/asm/arch-imx8/sys_proto.h
index 6f1fc8f999d1..12f657186208 100644
--- a/arch/arm/include/asm/arch-imx8/sys_proto.h
+++ b/arch/arm/include/asm/arch-imx8/sys_proto.h
@@ -3,6 +3,7 @@
* Copyright 2018 NXP
*/
+#include <stdbool.h>
#include <asm/arch/sci/sci.h>
#include <asm/mach-imx/sys_proto.h>
#include <asm/arch/power-domain.h>
diff --git a/arch/arm/include/asm/arch-imx8m/clock.h b/arch/arm/include/asm/arch-imx8m/clock.h
index 87cc4d3b2b71..848a93ec3f20 100644
--- a/arch/arm/include/asm/arch-imx8m/clock.h
+++ b/arch/arm/include/asm/arch-imx8m/clock.h
@@ -5,6 +5,7 @@
* Peng Fan <peng.fan at nxp.com>
*/
+#include <stdbool.h>
#include <linux/bitops.h>
#ifdef CONFIG_IMX8MQ
diff --git a/arch/arm/include/asm/arch-mx25/clock.h b/arch/arm/include/asm/arch-mx25/clock.h
index 3045b78d08f4..7baee4821149 100644
--- a/arch/arm/include/asm/arch-mx25/clock.h
+++ b/arch/arm/include/asm/arch-mx25/clock.h
@@ -21,6 +21,7 @@
#define MXC_CLK32 32768
#endif
+#include <stdbool.h>
enum mxc_clock {
/* PER clocks (do not change order) */
MXC_CSI_CLK,
diff --git a/arch/arm/include/asm/arch-mx5/clock.h b/arch/arm/include/asm/arch-mx5/clock.h
index 63a51042e1eb..86aeb5d56103 100644
--- a/arch/arm/include/asm/arch-mx5/clock.h
+++ b/arch/arm/include/asm/arch-mx5/clock.h
@@ -19,6 +19,7 @@
#define MXC_CLK32 32768
#endif
+#include <stdbool.h>
enum mxc_clock {
MXC_ARM_CLK = 0,
MXC_AHB_CLK,
diff --git a/arch/arm/include/asm/arch-mx6/clock.h b/arch/arm/include/asm/arch-mx6/clock.h
index 8ae49715789c..4bdb11a5b96b 100644
--- a/arch/arm/include/asm/arch-mx6/clock.h
+++ b/arch/arm/include/asm/arch-mx6/clock.h
@@ -7,6 +7,7 @@
#ifndef __ASM_ARCH_CLOCK_H
#define __ASM_ARCH_CLOCK_H
+#include <stdbool.h>
#include <linux/types.h>
#ifdef CONFIG_SYS_MX6_HCLK
diff --git a/arch/arm/include/asm/arch-mx7/clock_slice.h b/arch/arm/include/asm/arch-mx7/clock_slice.h
index 9a7c1f8237a8..1eac3bec5cb1 100644
--- a/arch/arm/include/asm/arch-mx7/clock_slice.h
+++ b/arch/arm/include/asm/arch-mx7/clock_slice.h
@@ -9,6 +9,7 @@
#ifndef _ASM_ARCH_CLOCK_SLICE_H
#define _ASM_ARCH_CLOCK_SLICE_H
+#include <stdbool.h>
enum root_pre_div {
CLK_ROOT_PRE_DIV1 = 0,
CLK_ROOT_PRE_DIV2,
diff --git a/arch/arm/include/asm/arch-mx7ulp/pcc.h b/arch/arm/include/asm/arch-mx7ulp/pcc.h
index 8f0d7006286d..25d10fb7d1a9 100644
--- a/arch/arm/include/asm/arch-mx7ulp/pcc.h
+++ b/arch/arm/include/asm/arch-mx7ulp/pcc.h
@@ -6,6 +6,7 @@
#ifndef _ASM_ARCH_PCC_H
#define _ASM_ARCH_PCC_H
+#include <stdbool.h>
#include <asm/arch/scg.h>
/* PCC2 */
diff --git a/arch/arm/include/asm/arch-mx7ulp/scg.h b/arch/arm/include/asm/arch-mx7ulp/scg.h
index 71e241db288f..b4d92d1ed44f 100644
--- a/arch/arm/include/asm/arch-mx7ulp/scg.h
+++ b/arch/arm/include/asm/arch-mx7ulp/scg.h
@@ -6,6 +6,7 @@
#ifndef _ASM_ARCH_SCG_H
#define _ASM_ARCH_SCG_H
+#include <stdbool.h>
#include <stdio.h>
#ifdef CONFIG_CLK_DEBUG
diff --git a/arch/arm/include/asm/arch-rk3308/cru_rk3308.h b/arch/arm/include/asm/arch-rk3308/cru_rk3308.h
index 86c906bb0edd..08af4f547dd3 100644
--- a/arch/arm/include/asm/arch-rk3308/cru_rk3308.h
+++ b/arch/arm/include/asm/arch-rk3308/cru_rk3308.h
@@ -5,6 +5,7 @@
#ifndef _ASM_ARCH_CRU_RK3308_H
#define _ASM_ARCH_CRU_RK3308_H
+#include <linux/kernel.h>
#define MHz 1000000
#define OSC_HZ (24 * MHz)
diff --git a/arch/arm/include/asm/arch-rk3308/grf_rk3308.h b/arch/arm/include/asm/arch-rk3308/grf_rk3308.h
index a995bb950d97..b268e4565725 100644
--- a/arch/arm/include/asm/arch-rk3308/grf_rk3308.h
+++ b/arch/arm/include/asm/arch-rk3308/grf_rk3308.h
@@ -5,6 +5,7 @@
#ifndef _ASM_ARCH_GRF_rk3308_H
#define _ASM_ARCH_GRF_rk3308_H
+#include <linux/kernel.h>
struct rk3308_grf {
unsigned int gpio0a_iomux;
unsigned int reserved0;
diff --git a/arch/arm/include/asm/arch-rockchip/clock.h b/arch/arm/include/asm/arch-rockchip/clock.h
index 5108180ea77f..2b47b7a9d266 100644
--- a/arch/arm/include/asm/arch-rockchip/clock.h
+++ b/arch/arm/include/asm/arch-rockchip/clock.h
@@ -6,6 +6,8 @@
#ifndef _ASM_ARCH_CLOCK_H
#define _ASM_ARCH_CLOCK_H
+#include <linux/kernel.h>
+
struct udevice;
/* define pll mode */
diff --git a/arch/arm/include/asm/arch-rockchip/cpu_rk3288.h b/arch/arm/include/asm/arch-rockchip/cpu_rk3288.h
index 7445e64b8c72..3536f4449468 100644
--- a/arch/arm/include/asm/arch-rockchip/cpu_rk3288.h
+++ b/arch/arm/include/asm/arch-rockchip/cpu_rk3288.h
@@ -6,6 +6,7 @@
#ifndef __ASM_ARCH_CPU_RK3288_H
#define __ASM_ARCH_CPU_RK3288_H
+#include <stdbool.h>
#include <asm/io.h>
#define ROCKCHIP_CPU_MASK 0xffff0000
diff --git a/arch/arm/include/asm/arch-rockchip/cru_px30.h b/arch/arm/include/asm/arch-rockchip/cru_px30.h
index 732ca3704034..c76d5751ef53 100644
--- a/arch/arm/include/asm/arch-rockchip/cru_px30.h
+++ b/arch/arm/include/asm/arch-rockchip/cru_px30.h
@@ -5,6 +5,7 @@
#ifndef _ASM_ARCH_CRU_PX30_H
#define _ASM_ARCH_CRU_PX30_H
+#include <linux/kernel.h>
#define MHz 1000000
#define KHz 1000
#define OSC_HZ (24 * MHz)
diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3036.h b/arch/arm/include/asm/arch-rockchip/cru_rk3036.h
index 5db0407baa75..c580bf12034e 100644
--- a/arch/arm/include/asm/arch-rockchip/cru_rk3036.h
+++ b/arch/arm/include/asm/arch-rockchip/cru_rk3036.h
@@ -5,6 +5,7 @@
#ifndef _ASM_ARCH_CRU_RK3036_H
#define _ASM_ARCH_CRU_RK3036_H
+#include <linux/kernel.h>
#define OSC_HZ (24 * 1000 * 1000)
#define APLL_HZ (600 * 1000000)
diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3128.h b/arch/arm/include/asm/arch-rockchip/cru_rk3128.h
index cca812d29e40..e7dec3c7c9e4 100644
--- a/arch/arm/include/asm/arch-rockchip/cru_rk3128.h
+++ b/arch/arm/include/asm/arch-rockchip/cru_rk3128.h
@@ -8,6 +8,7 @@
#ifndef __ASSEMBLY__
#include <linux/bitops.h>
+#include <linux/kernel.h>
#endif
#define MHz 1000000
diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3188.h b/arch/arm/include/asm/arch-rockchip/cru_rk3188.h
index eec4815bbc06..97268b8777ef 100644
--- a/arch/arm/include/asm/arch-rockchip/cru_rk3188.h
+++ b/arch/arm/include/asm/arch-rockchip/cru_rk3188.h
@@ -5,6 +5,8 @@
#ifndef _ASM_ARCH_CRU_RK3188_H
#define _ASM_ARCH_CRU_RK3188_H
+#include <stdbool.h>
+#include <linux/kernel.h>
#define OSC_HZ (24 * 1000 * 1000)
#define APLL_HZ (1608 * 1000000)
diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk322x.h b/arch/arm/include/asm/arch-rockchip/cru_rk322x.h
index ee12fa831f28..ca4d727a6a70 100644
--- a/arch/arm/include/asm/arch-rockchip/cru_rk322x.h
+++ b/arch/arm/include/asm/arch-rockchip/cru_rk322x.h
@@ -5,6 +5,7 @@
#ifndef _ASM_ARCH_CRU_RK322X_H
#define _ASM_ARCH_CRU_RK322X_H
+#include <linux/kernel.h>
#define MHz 1000000
#define OSC_HZ (24 * MHz)
diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3288.h b/arch/arm/include/asm/arch-rockchip/cru_rk3288.h
index 412b73e55fa1..7affb2f06448 100644
--- a/arch/arm/include/asm/arch-rockchip/cru_rk3288.h
+++ b/arch/arm/include/asm/arch-rockchip/cru_rk3288.h
@@ -8,6 +8,7 @@
#ifndef _ASM_ARCH_CRU_RK3288_H
#define _ASM_ARCH_CRU_RK3288_H
+#include <linux/kernel.h>
#define OSC_HZ (24 * 1000 * 1000)
#define APLL_HZ (1800 * 1000000)
diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3328.h b/arch/arm/include/asm/arch-rockchip/cru_rk3328.h
index 226744d67d9f..2cd984ad0098 100644
--- a/arch/arm/include/asm/arch-rockchip/cru_rk3328.h
+++ b/arch/arm/include/asm/arch-rockchip/cru_rk3328.h
@@ -6,6 +6,7 @@
#ifndef __ASM_ARCH_CRU_RK3328_H_
#define __ASM_ARCH_CRU_RK3328_H_
+#include <linux/kernel.h>
struct rk3328_clk_priv {
struct rk3328_cru *cru;
ulong rate;
diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3368.h b/arch/arm/include/asm/arch-rockchip/cru_rk3368.h
index 316c67c62f9d..2db4e92301e2 100644
--- a/arch/arm/include/asm/arch-rockchip/cru_rk3368.h
+++ b/arch/arm/include/asm/arch-rockchip/cru_rk3368.h
@@ -8,6 +8,7 @@
#ifndef __ASSEMBLY__
#include <linux/bitops.h>
+#include <linux/kernel.h>
#endif
/* RK3368 clock numbers */
diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3399.h b/arch/arm/include/asm/arch-rockchip/cru_rk3399.h
index d941a129f3e5..fdeb3735770a 100644
--- a/arch/arm/include/asm/arch-rockchip/cru_rk3399.h
+++ b/arch/arm/include/asm/arch-rockchip/cru_rk3399.h
@@ -7,6 +7,7 @@
#define __ASM_ARCH_CRU_RK3399_H_
/* Private data for the clock driver - used by rockchip_get_cru() */
+#include <linux/kernel.h>
struct rk3399_clk_priv {
struct rockchip_cru *cru;
};
diff --git a/arch/arm/include/asm/arch-rockchip/cru_rv1108.h b/arch/arm/include/asm/arch-rockchip/cru_rv1108.h
index 0ba5ff6a04f2..4499b453b684 100644
--- a/arch/arm/include/asm/arch-rockchip/cru_rv1108.h
+++ b/arch/arm/include/asm/arch-rockchip/cru_rv1108.h
@@ -8,6 +8,7 @@
#ifndef __ASSEMBLY__
#include <linux/bitops.h>
+#include <linux/kernel.h>
#endif
#define OSC_HZ (24 * 1000 * 1000)
diff --git a/arch/arm/include/asm/arch-rockchip/ddr_rk3188.h b/arch/arm/include/asm/arch-rockchip/ddr_rk3188.h
index db83d0e7d3ba..c60655fcae01 100644
--- a/arch/arm/include/asm/arch-rockchip/ddr_rk3188.h
+++ b/arch/arm/include/asm/arch-rockchip/ddr_rk3188.h
@@ -7,6 +7,7 @@
#define _ASM_ARCH_DDR_RK3188_H
#include <asm/arch-rockchip/ddr_rk3288.h>
+#include <linux/kernel.h>
/*
* RK3188 Memory scheduler register map.
diff --git a/arch/arm/include/asm/arch-rockchip/ddr_rk3288.h b/arch/arm/include/asm/arch-rockchip/ddr_rk3288.h
index 979d5470e7a2..ea3b6f48d907 100644
--- a/arch/arm/include/asm/arch-rockchip/ddr_rk3288.h
+++ b/arch/arm/include/asm/arch-rockchip/ddr_rk3288.h
@@ -6,6 +6,7 @@
#ifndef _ASM_ARCH_DDR_RK3288_H
#define _ASM_ARCH_DDR_RK3288_H
+#include <linux/kernel.h>
struct rk3288_ddr_pctl {
u32 scfg;
u32 sctl;
diff --git a/arch/arm/include/asm/arch-rockchip/ddr_rk3368.h b/arch/arm/include/asm/arch-rockchip/ddr_rk3368.h
index 40cdcf4a45a0..a03d3318e020 100644
--- a/arch/arm/include/asm/arch-rockchip/ddr_rk3368.h
+++ b/arch/arm/include/asm/arch-rockchip/ddr_rk3368.h
@@ -8,6 +8,7 @@
#ifndef __ASSEMBLY__
#include <linux/bitops.h>
+#include <linux/kernel.h>
#endif
/*
diff --git a/arch/arm/include/asm/arch-rockchip/edp_rk3288.h b/arch/arm/include/asm/arch-rockchip/edp_rk3288.h
index 105a335dabac..97383fce1904 100644
--- a/arch/arm/include/asm/arch-rockchip/edp_rk3288.h
+++ b/arch/arm/include/asm/arch-rockchip/edp_rk3288.h
@@ -7,6 +7,7 @@
#ifndef _ASM_ARCH_EDP_H
#define _ASM_ARCH_EDP_H
+#include <linux/kernel.h>
struct rk3288_edp {
u8 res0[0x10];
u32 dp_tx_version;
diff --git a/arch/arm/include/asm/arch-rockchip/gpio.h b/arch/arm/include/asm/arch-rockchip/gpio.h
index 1aaec5faecc6..0ec09d40b4ea 100644
--- a/arch/arm/include/asm/arch-rockchip/gpio.h
+++ b/arch/arm/include/asm/arch-rockchip/gpio.h
@@ -6,6 +6,7 @@
#ifndef _ASM_ARCH_GPIO_H
#define _ASM_ARCH_GPIO_H
+#include <linux/kernel.h>
struct rockchip_gpio_regs {
u32 swport_dr;
u32 swport_ddr;
diff --git a/arch/arm/include/asm/arch-rockchip/grf_px30.h b/arch/arm/include/asm/arch-rockchip/grf_px30.h
index d51e29b19eea..0834ae673c28 100644
--- a/arch/arm/include/asm/arch-rockchip/grf_px30.h
+++ b/arch/arm/include/asm/arch-rockchip/grf_px30.h
@@ -5,6 +5,7 @@
#ifndef _ASM_ARCH_GRF_px30_H
#define _ASM_ARCH_GRF_px30_H
+#include <linux/kernel.h>
struct px30_grf {
unsigned int gpio1al_iomux;
unsigned int gpio1ah_iomux;
diff --git a/arch/arm/include/asm/arch-rockchip/grf_rk3036.h b/arch/arm/include/asm/arch-rockchip/grf_rk3036.h
index 08348d8228a1..e540f390d9a6 100644
--- a/arch/arm/include/asm/arch-rockchip/grf_rk3036.h
+++ b/arch/arm/include/asm/arch-rockchip/grf_rk3036.h
@@ -5,6 +5,7 @@
#ifndef _ASM_ARCH_GRF_RK3036_H
#define _ASM_ARCH_GRF_RK3036_H
+#include <linux/kernel.h>
struct rk3036_grf {
unsigned int reserved[0x2a];
unsigned int gpio0a_iomux;
diff --git a/arch/arm/include/asm/arch-rockchip/grf_rk3128.h b/arch/arm/include/asm/arch-rockchip/grf_rk3128.h
index fe07d69b4280..71eb99246c19 100644
--- a/arch/arm/include/asm/arch-rockchip/grf_rk3128.h
+++ b/arch/arm/include/asm/arch-rockchip/grf_rk3128.h
@@ -5,6 +5,7 @@
#ifndef _ASM_ARCH_GRF_RK3128_H
#define _ASM_ARCH_GRF_RK3128_H
+#include <linux/kernel.h>
struct rk3128_grf {
unsigned int reserved[0x2a];
unsigned int gpio0a_iomux;
diff --git a/arch/arm/include/asm/arch-rockchip/grf_rk3188.h b/arch/arm/include/asm/arch-rockchip/grf_rk3188.h
index d05197670d39..8e80749a76e8 100644
--- a/arch/arm/include/asm/arch-rockchip/grf_rk3188.h
+++ b/arch/arm/include/asm/arch-rockchip/grf_rk3188.h
@@ -6,6 +6,7 @@
#ifndef _ASM_ARCH_GRF_RK3188_H
#define _ASM_ARCH_GRF_RK3188_H
+#include <linux/kernel.h>
struct rk3188_grf_gpio_lh {
u32 l;
u32 h;
diff --git a/arch/arm/include/asm/arch-rockchip/grf_rk322x.h b/arch/arm/include/asm/arch-rockchip/grf_rk322x.h
index 5f4d9d822495..9e0b9105924b 100644
--- a/arch/arm/include/asm/arch-rockchip/grf_rk322x.h
+++ b/arch/arm/include/asm/arch-rockchip/grf_rk322x.h
@@ -5,6 +5,7 @@
#ifndef _ASM_ARCH_GRF_RK322X_H
#define _ASM_ARCH_GRF_RK322X_H
+#include <linux/kernel.h>
struct rk322x_grf {
unsigned int gpio0a_iomux;
unsigned int gpio0b_iomux;
diff --git a/arch/arm/include/asm/arch-rockchip/grf_rk3328.h b/arch/arm/include/asm/arch-rockchip/grf_rk3328.h
index d8a46800fd9d..663a3fa52e31 100644
--- a/arch/arm/include/asm/arch-rockchip/grf_rk3328.h
+++ b/arch/arm/include/asm/arch-rockchip/grf_rk3328.h
@@ -6,6 +6,7 @@
#ifndef __SOC_ROCKCHIP_RK3328_GRF_H__
#define __SOC_ROCKCHIP_RK3328_GRF_H__
+#include <linux/kernel.h>
struct rk3328_grf_regs {
u32 gpio0a_iomux;
u32 gpio0b_iomux;
diff --git a/arch/arm/include/asm/arch-rockchip/grf_rk3368.h b/arch/arm/include/asm/arch-rockchip/grf_rk3368.h
index 0079d2007804..8e4b3ec481ca 100644
--- a/arch/arm/include/asm/arch-rockchip/grf_rk3368.h
+++ b/arch/arm/include/asm/arch-rockchip/grf_rk3368.h
@@ -8,6 +8,7 @@
#ifndef __ASSEMBLY__
#include <linux/bitops.h>
+#include <linux/kernel.h>
#endif
struct rk3368_grf {
diff --git a/arch/arm/include/asm/arch-rockchip/grf_rk3399.h b/arch/arm/include/asm/arch-rockchip/grf_rk3399.h
index dd89cd205056..0a7249560f26 100644
--- a/arch/arm/include/asm/arch-rockchip/grf_rk3399.h
+++ b/arch/arm/include/asm/arch-rockchip/grf_rk3399.h
@@ -6,6 +6,7 @@
#ifndef __SOC_ROCKCHIP_RK3399_GRF_H__
#define __SOC_ROCKCHIP_RK3399_GRF_H__
+#include <linux/kernel.h>
struct rk3399_grf_regs {
u32 reserved[0x800];
u32 usb3_perf_con0;
diff --git a/arch/arm/include/asm/arch-rockchip/grf_rv1108.h b/arch/arm/include/asm/arch-rockchip/grf_rv1108.h
index 92bbe34af68c..aefbe9b56e19 100644
--- a/arch/arm/include/asm/arch-rockchip/grf_rv1108.h
+++ b/arch/arm/include/asm/arch-rockchip/grf_rv1108.h
@@ -5,6 +5,7 @@
#ifndef _ASM_ARCH_GRF_RV1108_H
#define _ASM_ARCH_GRF_RV1108_H
+#include <linux/kernel.h>
struct rv1108_grf {
u32 reserved[4];
u32 gpio1a_iomux;
diff --git a/arch/arm/include/asm/arch-rockchip/pmu_rk3188.h b/arch/arm/include/asm/arch-rockchip/pmu_rk3188.h
index f7b9a0674c1b..6227dc0ed5ab 100644
--- a/arch/arm/include/asm/arch-rockchip/pmu_rk3188.h
+++ b/arch/arm/include/asm/arch-rockchip/pmu_rk3188.h
@@ -6,6 +6,7 @@
#ifndef _ASM_ARCH_PMU_RK3188_H
#define _ASM_ARCH_PMU_RK3188_H
+#include <linux/kernel.h>
struct rk3188_pmu {
u32 wakeup_cfg[2];
u32 pwrdn_con;
diff --git a/arch/arm/include/asm/arch-rockchip/pmu_rk3288.h b/arch/arm/include/asm/arch-rockchip/pmu_rk3288.h
index 8553d2eee4c2..1b50cd5326e2 100644
--- a/arch/arm/include/asm/arch-rockchip/pmu_rk3288.h
+++ b/arch/arm/include/asm/arch-rockchip/pmu_rk3288.h
@@ -8,6 +8,7 @@
#ifndef _ASM_ARCH_PMU_RK3288_H
#define _ASM_ARCH_PMU_RK3288_H
+#include <linux/kernel.h>
struct rk3288_pmu {
u32 wakeup_cfg[2];
u32 pwrdn_con;
diff --git a/arch/arm/include/asm/arch-rockchip/pmu_rk3399.h b/arch/arm/include/asm/arch-rockchip/pmu_rk3399.h
index f1096dccced6..350559d5054c 100644
--- a/arch/arm/include/asm/arch-rockchip/pmu_rk3399.h
+++ b/arch/arm/include/asm/arch-rockchip/pmu_rk3399.h
@@ -7,6 +7,7 @@
#ifndef __SOC_ROCKCHIP_RK3399_PMU_H__
#define __SOC_ROCKCHIP_RK3399_PMU_H__
+#include <linux/kernel.h>
struct rk3399_pmu_regs {
u32 pmu_wakeup_cfg[5];
u32 pmu_pwrdn_con;
diff --git a/arch/arm/include/asm/arch-rockchip/sdram_rk3036.h b/arch/arm/include/asm/arch-rockchip/sdram_rk3036.h
index 46298165fbcc..7f89d7f92116 100644
--- a/arch/arm/include/asm/arch-rockchip/sdram_rk3036.h
+++ b/arch/arm/include/asm/arch-rockchip/sdram_rk3036.h
@@ -5,6 +5,7 @@
#ifndef _ASM_ARCH_SDRAM_RK3036_H
#define _ASM_ARCH_SDRAM_RK3036_H
+#include <linux/kernel.h>
struct rk3036_ddr_pctl {
u32 scfg;
u32 sctl;
diff --git a/arch/arm/include/asm/arch-rockchip/sdram_rk322x.h b/arch/arm/include/asm/arch-rockchip/sdram_rk322x.h
index 6f6c5c9954fb..2aaf66c1ab0c 100644
--- a/arch/arm/include/asm/arch-rockchip/sdram_rk322x.h
+++ b/arch/arm/include/asm/arch-rockchip/sdram_rk322x.h
@@ -7,6 +7,7 @@
#ifndef __ASSEMBLY__
#include <linux/bitops.h>
+#include <linux/kernel.h>
#endif
struct rk322x_sdram_channel {
diff --git a/arch/arm/include/asm/arch-rockchip/sdram_rk3288.h b/arch/arm/include/asm/arch-rockchip/sdram_rk3288.h
index 9220763fa7fe..9dede8068439 100644
--- a/arch/arm/include/asm/arch-rockchip/sdram_rk3288.h
+++ b/arch/arm/include/asm/arch-rockchip/sdram_rk3288.h
@@ -8,6 +8,7 @@
#ifndef _ASM_ARCH_RK3288_SDRAM_H__
#define _ASM_ARCH_RK3288_SDRAM_H__
+#include <linux/kernel.h>
struct rk3288_sdram_channel {
/*
* bit width in address, eg:
diff --git a/arch/arm/include/asm/arch-rockchip/vop_rk3288.h b/arch/arm/include/asm/arch-rockchip/vop_rk3288.h
index 872a158b714b..c1aab4219e4c 100644
--- a/arch/arm/include/asm/arch-rockchip/vop_rk3288.h
+++ b/arch/arm/include/asm/arch-rockchip/vop_rk3288.h
@@ -7,6 +7,7 @@
#ifndef _ASM_ARCH_VOP_RK3288_H
#define _ASM_ARCH_VOP_RK3288_H
+#include <linux/kernel.h>
struct rk3288_vop {
u32 reg_cfg_done;
u32 version_info;
diff --git a/arch/arm/include/asm/arch-sunxi/clock_sun6i.h b/arch/arm/include/asm/arch-sunxi/clock_sun6i.h
index ee387127f37e..3c3ebfd3a201 100644
--- a/arch/arm/include/asm/arch-sunxi/clock_sun6i.h
+++ b/arch/arm/include/asm/arch-sunxi/clock_sun6i.h
@@ -10,6 +10,7 @@
#ifndef _SUNXI_CLOCK_SUN6I_H
#define _SUNXI_CLOCK_SUN6I_H
+#include <stdbool.h>
struct sunxi_ccm_reg {
u32 pll1_cfg; /* 0x00 pll1 control */
u32 reserved0;
diff --git a/arch/arm/include/asm/arch-sunxi/dram.h b/arch/arm/include/asm/arch-sunxi/dram.h
index 8002b7efdc19..51c3139a6f90 100644
--- a/arch/arm/include/asm/arch-sunxi/dram.h
+++ b/arch/arm/include/asm/arch-sunxi/dram.h
@@ -11,6 +11,7 @@
#ifndef _SUNXI_DRAM_H
#define _SUNXI_DRAM_H
+#include <stdbool.h>
#include <asm/io.h>
#include <linux/types.h>
diff --git a/arch/arm/include/asm/arch-sunxi/dram_sun50i_h6.h b/arch/arm/include/asm/arch-sunxi/dram_sun50i_h6.h
index be02655cdd52..ddaa238c279f 100644
--- a/arch/arm/include/asm/arch-sunxi/dram_sun50i_h6.h
+++ b/arch/arm/include/asm/arch-sunxi/dram_sun50i_h6.h
@@ -12,6 +12,7 @@
#include <stdbool.h>
#ifndef __ASSEMBLY__
#include <linux/bitops.h>
+#include <linux/kernel.h>
#endif
enum sunxi_dram_type {
diff --git a/arch/arm/include/asm/arch-sunxi/dram_sunxi_dw.h b/arch/arm/include/asm/arch-sunxi/dram_sunxi_dw.h
index a5a7ebde44ee..3420f939f243 100644
--- a/arch/arm/include/asm/arch-sunxi/dram_sunxi_dw.h
+++ b/arch/arm/include/asm/arch-sunxi/dram_sunxi_dw.h
@@ -13,6 +13,7 @@
#define _SUNXI_DRAM_SUN8I_H3_H
#include <linux/bitops.h>
+#include <linux/kernel.h>
struct sunxi_mctl_com_reg {
u32 cr; /* 0x00 control register */
diff --git a/arch/arm/include/asm/arch-sunxi/lcdc.h b/arch/arm/include/asm/arch-sunxi/lcdc.h
index 90216bcfd518..7fca301df964 100644
--- a/arch/arm/include/asm/arch-sunxi/lcdc.h
+++ b/arch/arm/include/asm/arch-sunxi/lcdc.h
@@ -10,6 +10,7 @@
#define _LCDC_H
#include <fdtdec.h>
+#include <stdbool.h>
struct sunxi_lcdc_reg {
u32 ctrl; /* 0x00 */
diff --git a/arch/arm/include/asm/arch-tegra/ap.h b/arch/arm/include/asm/arch-tegra/ap.h
index de21dffa55ab..9f0f92a38361 100644
--- a/arch/arm/include/asm/arch-tegra/ap.h
+++ b/arch/arm/include/asm/arch-tegra/ap.h
@@ -3,6 +3,7 @@
* (C) Copyright 2010-2015
* NVIDIA Corporation <www.nvidia.com>
*/
+#include <stdbool.h>
#include <asm/types.h>
/* Stabilization delays, in usec */
diff --git a/arch/arm/include/asm/arch-tegra/clock.h b/arch/arm/include/asm/arch-tegra/clock.h
index 1d80d9e94617..630287c1b780 100644
--- a/arch/arm/include/asm/arch-tegra/clock.h
+++ b/arch/arm/include/asm/arch-tegra/clock.h
@@ -38,6 +38,7 @@ enum {
MASK_BITS_31_28,
};
+#include <stdbool.h>
#include <asm/arch/clock-tables.h>
/* PLL stabilization delay in usec */
#define CLOCK_PLL_STABLE_DELAY_US 300
diff --git a/arch/arm/include/asm/armv7.h b/arch/arm/include/asm/armv7.h
index 2fb824b69e26..751f492a085d 100644
--- a/arch/arm/include/asm/armv7.h
+++ b/arch/arm/include/asm/armv7.h
@@ -56,6 +56,7 @@
#define ARMV7_CLIDR_CTYPE_UNIFIED 4
#ifndef __ASSEMBLY__
+#include <stdbool.h>
#include <linux/types.h>
#include <asm/io.h>
#include <asm/barriers.h>
diff --git a/arch/arm/include/asm/armv8/sec_firmware.h b/arch/arm/include/asm/armv8/sec_firmware.h
index 0f86c72b24d3..9c010953f5f2 100644
--- a/arch/arm/include/asm/armv8/sec_firmware.h
+++ b/arch/arm/include/asm/armv8/sec_firmware.h
@@ -6,6 +6,8 @@
#ifndef __SEC_FIRMWARE_H_
#define __SEC_FIRMWARE_H_
+#include <stdbool.h>
+
#define PSCI_INVALID_VER 0xffffffff
#define SEC_JR3_OFFSET 0x40000
#define WORD_MASK 0xffffffff
diff --git a/arch/arm/include/asm/mach-imx/hab.h b/arch/arm/include/asm/mach-imx/hab.h
index d8bd77075ae6..f89f750169b7 100644
--- a/arch/arm/include/asm/mach-imx/hab.h
+++ b/arch/arm/include/asm/mach-imx/hab.h
@@ -7,6 +7,7 @@
#ifndef __SECURE_MX6Q_H__
#define __SECURE_MX6Q_H__
+#include <stdbool.h>
#include <linux/types.h>
#include <linux/compiler.h>
diff --git a/arch/arm/include/asm/mach-imx/iomux-v3.h b/arch/arm/include/asm/mach-imx/iomux-v3.h
index 1de70933550f..f6c0044caff1 100644
--- a/arch/arm/include/asm/mach-imx/iomux-v3.h
+++ b/arch/arm/include/asm/mach-imx/iomux-v3.h
@@ -10,6 +10,7 @@
#ifndef __MACH_IOMUX_V3_H__
#define __MACH_IOMUX_V3_H__
+#include <linux/kernel.h>
#include <linux/types.h>
/*
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index c9efede771e4..a11fe7ed31eb 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -19,6 +19,7 @@
#include <hang.h>
#include <lmb.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/global_data.h>
diff --git a/arch/arm/lib/cache-cp15.c b/arch/arm/lib/cache-cp15.c
index e0e273495b30..39d51859ed76 100644
--- a/arch/arm/lib/cache-cp15.c
+++ b/arch/arm/lib/cache-cp15.c
@@ -14,6 +14,7 @@
#include <asm/u-boot.h>
#include <linux/compiler.h>
#include <asm/armv7_mpu.h>
+#include <linux/kernel.h>
#if !(CONFIG_IS_ENABLED(SYS_ICACHE_OFF) && CONFIG_IS_ENABLED(SYS_DCACHE_OFF))
diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c
index 4956942002da..6509052ddcf3 100644
--- a/arch/arm/lib/cache.c
+++ b/arch/arm/lib/cache.c
@@ -13,6 +13,7 @@
#include <stdio.h>
#include <asm/cache.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/lib/gic-v3-its.c b/arch/arm/lib/gic-v3-its.c
index 45c8ae093507..4fc9f9b78334 100644
--- a/arch/arm/lib/gic-v3-its.c
+++ b/arch/arm/lib/gic-v3-its.c
@@ -11,6 +11,7 @@
#include <asm/io.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/sizes.h>
diff --git a/arch/arm/lib/image.c b/arch/arm/lib/image.c
index 044fe573c127..6a8591488439 100644
--- a/arch/arm/lib/image.c
+++ b/arch/arm/lib/image.c
@@ -10,6 +10,7 @@
#include <stdio.h>
#include <asm/global_data.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-at91/atmel_sfr.c b/arch/arm/mach-at91/atmel_sfr.c
index b14222460f3a..c2677c51c0ce 100644
--- a/arch/arm/mach-at91/atmel_sfr.c
+++ b/arch/arm/mach-at91/atmel_sfr.c
@@ -5,6 +5,7 @@
*/
#include <common.h>
+#include <stdbool.h>
#include <asm/hardware.h>
#include <asm/io.h>
#include <asm/arch/at91_sfr.h>
diff --git a/arch/arm/mach-at91/include/mach/at91_common.h b/arch/arm/mach-at91/include/mach/at91_common.h
index 01e00c508a8a..f3551832f3aa 100644
--- a/arch/arm/mach-at91/include/mach/at91_common.h
+++ b/arch/arm/mach-at91/include/mach/at91_common.h
@@ -8,6 +8,7 @@
#ifndef AT91_COMMON_H
#define AT91_COMMON_H
+#include <stdbool.h>
void at91_can_hw_init(void);
void at91_gmac_hw_init(void);
void at91_macb_hw_init(void);
diff --git a/arch/arm/mach-at91/include/mach/atmel_usba_udc.h b/arch/arm/mach-at91/include/mach/atmel_usba_udc.h
index 835b47d91bab..24ccea93df3b 100644
--- a/arch/arm/mach-at91/include/mach/atmel_usba_udc.h
+++ b/arch/arm/mach-at91/include/mach/atmel_usba_udc.h
@@ -7,6 +7,7 @@
#ifndef __ATMEL_USBA_UDC_H__
#define __ATMEL_USBA_UDC_H__
+#include <linux/kernel.h>
#include <linux/usb/atmel_usba_udc.h>
#define EP(nam, idx, maxpkt, maxbk, dma, isoc) \
diff --git a/arch/arm/mach-bcm283x/mbox.c b/arch/arm/mach-bcm283x/mbox.c
index ed724497b0c5..0c8cf78c1888 100644
--- a/arch/arm/mach-bcm283x/mbox.c
+++ b/arch/arm/mach-bcm283x/mbox.c
@@ -13,6 +13,7 @@
#include <asm/arch/base.h>
#include <asm/arch/mbox.h>
#include <phys2bus.h>
+#include <linux/kernel.h>
#define TIMEOUT 1000 /* ms */
diff --git a/arch/arm/mach-davinci/include/mach/davinci_misc.h b/arch/arm/mach-davinci/include/mach/davinci_misc.h
index 48b11f7a5c82..41b2c6648ecc 100644
--- a/arch/arm/mach-davinci/include/mach/davinci_misc.h
+++ b/arch/arm/mach-davinci/include/mach/davinci_misc.h
@@ -7,6 +7,7 @@
#define __MISC_H
#include <asm/arch/hardware.h>
+#include <linux/kernel.h>
/* pin muxer definitions */
#define PIN_MUX_NUM_FIELDS 8 /* Per register */
diff --git a/arch/arm/mach-exynos/clock.c b/arch/arm/mach-exynos/clock.c
index 76bb97e37325..33995ff4ec6a 100644
--- a/arch/arm/mach-exynos/clock.c
+++ b/arch/arm/mach-exynos/clock.c
@@ -12,6 +12,7 @@
#include <asm/arch/clock.h>
#include <asm/arch/clk.h>
#include <asm/arch/periph.h>
+#include <linux/kernel.h>
#define PLL_DIV_1024 1024
#define PLL_DIV_65535 65535
diff --git a/arch/arm/mach-exynos/clock_init_exynos5.c b/arch/arm/mach-exynos/clock_init_exynos5.c
index 1cb8d391e7c9..cf83ef9391a5 100644
--- a/arch/arm/mach-exynos/clock_init_exynos5.c
+++ b/arch/arm/mach-exynos/clock_init_exynos5.c
@@ -12,6 +12,7 @@
#include <asm/arch/clock.h>
#include <asm/arch/spl.h>
#include <asm/arch/dwmmc.h>
+#include <linux/kernel.h>
#include "clock_init.h"
#include "common_setup.h"
diff --git a/arch/arm/mach-exynos/dmc_init_ddr3.c b/arch/arm/mach-exynos/dmc_init_ddr3.c
index 18c558f92a98..2cf3c2fa06a4 100644
--- a/arch/arm/mach-exynos/dmc_init_ddr3.c
+++ b/arch/arm/mach-exynos/dmc_init_ddr3.c
@@ -7,11 +7,13 @@
#include <common.h>
#include <config.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/cpu.h>
#include <asm/arch/dmc.h>
#include <asm/arch/power.h>
+#include <linux/kernel.h>
#include "common_setup.h"
#include "exynos5_setup.h"
#include "clock_init.h"
diff --git a/arch/arm/mach-exynos/pinmux.c b/arch/arm/mach-exynos/pinmux.c
index ad3fbf2da7a8..5d7738ae5ba6 100644
--- a/arch/arm/mach-exynos/pinmux.c
+++ b/arch/arm/mach-exynos/pinmux.c
@@ -10,6 +10,7 @@
#include <asm/gpio.h>
#include <asm/arch/pinmux.h>
#include <asm/arch/sromc.h>
+#include <linux/kernel.h>
static void exynos5_uart_config(int peripheral)
{
diff --git a/arch/arm/mach-exynos/spl_boot.c b/arch/arm/mach-exynos/spl_boot.c
index 27f0dac182d3..3ed5d10f1ae5 100644
--- a/arch/arm/mach-exynos/spl_boot.c
+++ b/arch/arm/mach-exynos/spl_boot.c
@@ -8,6 +8,7 @@
#include <init.h>
#include <log.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <asm/cache.h>
#include <asm/arch/clock.h>
diff --git a/arch/arm/mach-imx/cmd_bmode.c b/arch/arm/mach-imx/cmd_bmode.c
index 2ad9e6c5f2b9..9058127b2a5f 100644
--- a/arch/arm/mach-imx/cmd_bmode.c
+++ b/arch/arm/mach-imx/cmd_bmode.c
@@ -8,6 +8,7 @@
#include <asm/mach-imx/boot_mode.h>
#include <malloc.h>
#include <command.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static const struct boot_mode *modes[2];
diff --git a/arch/arm/mach-imx/cmd_nandbcb.c b/arch/arm/mach-imx/cmd_nandbcb.c
index beb538677d95..9165140e494f 100644
--- a/arch/arm/mach-imx/cmd_nandbcb.c
+++ b/arch/arm/mach-imx/cmd_nandbcb.c
@@ -21,6 +21,7 @@
#include <dm/devres.h>
#include <linux/bug.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <asm/io.h>
diff --git a/arch/arm/mach-imx/ddrmc-vf610.c b/arch/arm/mach-imx/ddrmc-vf610.c
index 7895ee66f8a8..95fdf1cd4368 100644
--- a/arch/arm/mach-imx/ddrmc-vf610.c
+++ b/arch/arm/mach-imx/ddrmc-vf610.c
@@ -12,6 +12,7 @@
#include <asm/arch/iomux-vf610.h>
#include <asm/arch/ddrmc-vf610.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "ddrmc-vf610-calibration.h"
void ddrmc_setup_iomux(const iomux_v3_cfg_t *pads, int pads_count)
diff --git a/arch/arm/mach-imx/hab.c b/arch/arm/mach-imx/hab.c
index 3f3d47c13005..b576b032ec6e 100644
--- a/arch/arm/mach-imx/hab.c
+++ b/arch/arm/mach-imx/hab.c
@@ -10,6 +10,7 @@
#include <fuse.h>
#include <mapmem.h>
#include <image.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/io.h>
diff --git a/arch/arm/mach-imx/i2c-mxv7.c b/arch/arm/mach-imx/i2c-mxv7.c
index bf0742e57e3d..1e1b14c1272c 100644
--- a/arch/arm/mach-imx/i2c-mxv7.c
+++ b/arch/arm/mach-imx/i2c-mxv7.c
@@ -14,6 +14,7 @@
#include <asm/gpio.h>
#include <asm/mach-imx/mxc_i2c.h>
#include <watchdog.h>
+#include <linux/kernel.h>
int force_idle_bus(void *priv)
{
diff --git a/arch/arm/mach-imx/imx8/ahab.c b/arch/arm/mach-imx/imx8/ahab.c
index fb1d067f9c56..f3c370914c6f 100644
--- a/arch/arm/mach-imx/imx8/ahab.c
+++ b/arch/arm/mach-imx/imx8/ahab.c
@@ -19,6 +19,7 @@
#include <console.h>
#include <asm/u-boot.h>
#include <linux/errno.h>
+#include <linux/kernel.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 8ae43f00bcb8..cdfc135904de 100644
--- a/arch/arm/mach-imx/imx8/cpu.c
+++ b/arch/arm/mach-imx/imx8/cpu.c
@@ -28,6 +28,7 @@
#include <asm/mach-imx/boot_mode.h>
#include <spl.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-imx/imx8/fdt.c b/arch/arm/mach-imx/imx8/fdt.c
index 239adfc2e5cd..eee6e529cdca 100644
--- a/arch/arm/mach-imx/imx8/fdt.c
+++ b/arch/arm/mach-imx/imx8/fdt.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/arch/sci/sci.h>
#include <asm/arch/sys_proto.h>
diff --git a/arch/arm/mach-imx/imx8/image.c b/arch/arm/mach-imx/imx8/image.c
index 528a42a5996e..4258abecd080 100644
--- a/arch/arm/mach-imx/imx8/image.c
+++ b/arch/arm/mach-imx/imx8/image.c
@@ -16,6 +16,7 @@
#include <asm/arch/sys_proto.h>
#include <asm/mach-imx/boot_mode.h>
#include <linux/errno.h>
+#include <linux/kernel.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 6a3a4eaa7c79..a5332358ca55 100644
--- a/arch/arm/mach-imx/imx8/parse-container.c
+++ b/arch/arm/mach-imx/imx8/parse-container.c
@@ -11,6 +11,7 @@
#include <asm/arch/image.h>
#include <asm/arch/sci/sci.h>
#include <linux/errno.h>
+#include <linux/kernel.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 391d2d0e4b17..086e89b0e5c5 100644
--- a/arch/arm/mach-imx/imx8/snvs_security_sc.c
+++ b/arch/arm/mach-imx/imx8/snvs_security_sc.c
@@ -22,6 +22,7 @@
#include <asm/arch-imx8/snvs_security_sc.h>
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.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 170e6c20853a..ac4d0766dab6 100644
--- a/arch/arm/mach-imx/imx8m/clock_imx8mm.c
+++ b/arch/arm/mach-imx/imx8m/clock_imx8mm.c
@@ -17,6 +17,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 0c74f99f440f..95a1dbb71800 100644
--- a/arch/arm/mach-imx/imx8m/clock_imx8mq.c
+++ b/arch/arm/mach-imx/imx8m/clock_imx8mq.c
@@ -16,6 +16,7 @@
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/iopoll.h>
+#include <linux/kernel.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 ad0d553c1cf7..4074e1e4c52f 100644
--- a/arch/arm/mach-imx/imx8m/clock_slice.c
+++ b/arch/arm/mach-imx/imx8m/clock_slice.c
@@ -11,6 +11,7 @@
#include <asm/io.h>
#include <errno.h>
#include <linux/errno.h>
+#include <linux/kernel.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 4e3d12f9b3c7..99e268fa3fb0 100644
--- a/arch/arm/mach-imx/imx8m/soc.c
+++ b/arch/arm/mach-imx/imx8m/soc.c
@@ -33,6 +33,7 @@
#include <linux/arm-smccc.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-imx/imxrt/soc.c b/arch/arm/mach-imx/imxrt/soc.c
index 8e7d15160dac..7928b45210d8 100644
--- a/arch/arm/mach-imx/imxrt/soc.c
+++ b/arch/arm/mach-imx/imxrt/soc.c
@@ -9,6 +9,7 @@
#include <asm/io.h>
#include <asm/armv7_mpu.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
int arch_cpu_init(void)
{
diff --git a/arch/arm/mach-imx/mac.c b/arch/arm/mach-imx/mac.c
index 3b1496b20383..b23315cf90e8 100644
--- a/arch/arm/mach-imx/mac.c
+++ b/arch/arm/mach-imx/mac.c
@@ -6,6 +6,7 @@
*/
#include <common.h>
+#include <stdbool.h>
#include <asm/arch/imx-regs.h>
#include <asm/io.h>
#include <asm/arch/sys_proto.h>
diff --git a/arch/arm/mach-imx/mx5/clock.c b/arch/arm/mach-imx/mx5/clock.c
index c6a14a6a7ec9..adc7dbee7d36 100644
--- a/arch/arm/mach-imx/mx5/clock.c
+++ b/arch/arm/mach-imx/mx5/clock.c
@@ -17,6 +17,7 @@
#include <asm/arch/clock.h>
#include <div64.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
#include <linux/string.h>
enum pll_clocks {
diff --git a/arch/arm/mach-imx/mx6/clock.c b/arch/arm/mach-imx/mx6/clock.c
index c91259f4bec3..7e066d39b2d5 100644
--- a/arch/arm/mach-imx/mx6/clock.c
+++ b/arch/arm/mach-imx/mx6/clock.c
@@ -7,6 +7,7 @@
#include <command.h>
#include <div64.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <time.h>
#include <asm/io.h>
diff --git a/arch/arm/mach-imx/mx6/ddr.c b/arch/arm/mach-imx/mx6/ddr.c
index fc1479629396..d5230d516a12 100644
--- a/arch/arm/mach-imx/mx6/ddr.c
+++ b/arch/arm/mach-imx/mx6/ddr.c
@@ -9,6 +9,7 @@
#include <log.h>
#include <stdio.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/types.h>
#include <asm/arch/clock.h>
#include <asm/arch/mx6-ddr.h>
diff --git a/arch/arm/mach-imx/mx6/litesom.c b/arch/arm/mach-imx/mx6/litesom.c
index 5514389ca2af..1e817233dfc5 100644
--- a/arch/arm/mach-imx/mx6/litesom.c
+++ b/arch/arm/mach-imx/mx6/litesom.c
@@ -22,6 +22,7 @@
#include <fsl_esdhc_imx.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <mmc.h>
diff --git a/arch/arm/mach-imx/mx6/module_fuse.c b/arch/arm/mach-imx/mx6/module_fuse.c
index 569c8dc0b139..c1731a828562 100644
--- a/arch/arm/mach-imx/mx6/module_fuse.c
+++ b/arch/arm/mach-imx/mx6/module_fuse.c
@@ -12,6 +12,7 @@
#include <asm/mach-imx/module_fuse.h>
#include <asm/u-boot.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static struct fuse_entry_desc mx6_fuse_descs[] = {
diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c
index e12928606560..2cdf576f25c5 100644
--- a/arch/arm/mach-imx/mx6/soc.c
+++ b/arch/arm/mach-imx/mx6/soc.c
@@ -25,6 +25,7 @@
#include <fsl_sec.h>
#include <imx_thermal.h>
#include <mmc.h>
+#include <linux/kernel.h>
struct scu_regs {
u32 ctrl;
diff --git a/arch/arm/mach-imx/mx7/clock_slice.c b/arch/arm/mach-imx/mx7/clock_slice.c
index ce2f59cd098e..c5aea2bffd65 100644
--- a/arch/arm/mach-imx/mx7/clock_slice.c
+++ b/arch/arm/mach-imx/mx7/clock_slice.c
@@ -15,6 +15,7 @@
#include <asm/arch/crm_regs.h>
#include <asm/arch/clock.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
struct mxc_ccm_reg *imx_ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR;
diff --git a/arch/arm/mach-imx/mx7/psci-mx7.c b/arch/arm/mach-imx/mx7/psci-mx7.c
index f32945ea3712..214e4043f449 100644
--- a/arch/arm/mach-imx/mx7/psci-mx7.c
+++ b/arch/arm/mach-imx/mx7/psci-mx7.c
@@ -5,6 +5,7 @@
*/
#include <cpu_func.h>
+#include <stdbool.h>
#include <asm/cache.h>
#include <asm/io.h>
#include <asm/psci.h>
diff --git a/arch/arm/mach-imx/mx7/soc.c b/arch/arm/mach-imx/mx7/soc.c
index 9cb61f5c3491..bc267d101fb0 100644
--- a/arch/arm/mach-imx/mx7/soc.c
+++ b/arch/arm/mach-imx/mx7/soc.c
@@ -20,6 +20,7 @@
#include <fsl_sec.h>
#include <asm/setup.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#define IOMUXC_GPR1 0x4
#define BM_IOMUXC_GPR1_IRQ 0x1000
diff --git a/arch/arm/mach-imx/mx7ulp/pcc.c b/arch/arm/mach-imx/mx7ulp/pcc.c
index 1fd8b0a540f7..9d06260bdfa5 100644
--- a/arch/arm/mach-imx/mx7ulp/pcc.c
+++ b/arch/arm/mach-imx/mx7ulp/pcc.c
@@ -13,6 +13,7 @@
#include <asm/arch/pcc.h>
#include <asm/arch/sys_proto.h>
#include <linux/errno.h>
+#include <linux/kernel.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 58bc3df1e78f..bc837aae33a3 100644
--- a/arch/arm/mach-imx/mx7ulp/scg.c
+++ b/arch/arm/mach-imx/mx7ulp/scg.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <div64.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/io.h>
#include <errno.h>
diff --git a/arch/arm/mach-imx/mx7ulp/soc.c b/arch/arm/mach-imx/mx7ulp/soc.c
index c0feac134f23..e0717226f777 100644
--- a/arch/arm/mach-imx/mx7ulp/soc.c
+++ b/arch/arm/mach-imx/mx7ulp/soc.c
@@ -7,6 +7,7 @@
#include <cpu_func.h>
#include <init.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/io.h>
diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c
index e78d2515e2bf..4c7614e9b719 100644
--- a/arch/arm/mach-imx/spl.c
+++ b/arch/arm/mach-imx/spl.c
@@ -20,6 +20,7 @@
#include <asm/mach-imx/hab.h>
#include <asm/mach-imx/boot_mode.h>
#include <g_dnl.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-imx/spl_imx_romapi.c b/arch/arm/mach-imx/spl_imx_romapi.c
index 8750fbdaf4e9..336b3da62644 100644
--- a/arch/arm/mach-imx/spl_imx_romapi.c
+++ b/arch/arm/mach-imx/spl_imx_romapi.c
@@ -9,6 +9,7 @@
#include <log.h>
#include <stdio.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <spl.h>
#include <linux/string.h>
diff --git a/arch/arm/mach-ipq40xx/pinctrl-snapdragon.c b/arch/arm/mach-ipq40xx/pinctrl-snapdragon.c
index 08001da66f1b..9f73a62d7a1d 100644
--- a/arch/arm/mach-ipq40xx/pinctrl-snapdragon.c
+++ b/arch/arm/mach-ipq40xx/pinctrl-snapdragon.c
@@ -17,6 +17,7 @@
#include <dm/pinctrl.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "pinctrl-snapdragon.h"
struct msm_pinctrl_priv {
diff --git a/arch/arm/mach-k3/am6_init.c b/arch/arm/mach-k3/am6_init.c
index 2e4bb59c4a26..2ffa383aa26c 100644
--- a/arch/arm/mach-k3/am6_init.c
+++ b/arch/arm/mach-k3/am6_init.c
@@ -16,6 +16,7 @@
#include <asm/arch/hardware.h>
#include <asm/arch/sysfw-loader.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
#include "common.h"
#include <dm.h>
#include <dm/uclass-internal.h>
diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c
index 359dee5af86c..f063518acaf3 100644
--- a/arch/arm/mach-k3/common.c
+++ b/arch/arm/mach-k3/common.c
@@ -15,6 +15,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include "common.h"
diff --git a/arch/arm/mach-k3/j721e_init.c b/arch/arm/mach-k3/j721e_init.c
index 5c1f248b13bc..d9941580acfb 100644
--- a/arch/arm/mach-k3/j721e_init.c
+++ b/arch/arm/mach-k3/j721e_init.c
@@ -15,6 +15,7 @@
#include <asm/armv7_mpu.h>
#include <asm/arch/hardware.h>
#include <asm/arch/sysfw-loader.h>
+#include <linux/kernel.h>
#include "common.h"
#include <asm/arch/sys_proto.h>
#include <linux/soc/ti/ti_sci_protocol.h>
diff --git a/arch/arm/mach-k3/security.c b/arch/arm/mach-k3/security.c
index 484884819b4d..f4aef0a025b0 100644
--- a/arch/arm/mach-k3/security.c
+++ b/arch/arm/mach-k3/security.c
@@ -14,6 +14,7 @@
#include <log.h>
#include <stdio.h>
#include <asm/cache.h>
+#include <linux/kernel.h>
#include <linux/soc/ti/ti_sci_protocol.h>
#include <mach/spl.h>
#include <spl.h>
diff --git a/arch/arm/mach-k3/sysfw-loader.c b/arch/arm/mach-k3/sysfw-loader.c
index 3e76b26dc756..4f269db8e5ab 100644
--- a/arch/arm/mach-k3/sysfw-loader.c
+++ b/arch/arm/mach-k3/sysfw-loader.c
@@ -13,6 +13,7 @@
#include <spl.h>
#include <malloc.h>
#include <remoteproc.h>
+#include <stdbool.h>
#include <vsprintf.h>
#include <asm/cache.h>
#include <asm/global_data.h>
diff --git a/arch/arm/mach-keystone/include/mach/psc_defs.h b/arch/arm/mach-keystone/include/mach/psc_defs.h
index f164f95bf244..0864b37a5318 100644
--- a/arch/arm/mach-keystone/include/mach/psc_defs.h
+++ b/arch/arm/mach-keystone/include/mach/psc_defs.h
@@ -6,6 +6,7 @@
#ifndef _PSC_DEFS_H_
#define _PSC_DEFS_H_
+#include <stdbool.h>
#include <asm/arch/hardware.h>
/*
diff --git a/arch/arm/mach-keystone/psc.c b/arch/arm/mach-keystone/psc.c
index 6d68ecba4f8c..6005cbaeca8f 100644
--- a/arch/arm/mach-keystone/psc.c
+++ b/arch/arm/mach-keystone/psc.c
@@ -7,6 +7,7 @@
*/
#include <common.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/delay.h>
#include <linux/errno.h>
diff --git a/arch/arm/mach-kirkwood/cpu.c b/arch/arm/mach-kirkwood/cpu.c
index a202e83b08fe..48d4327be764 100644
--- a/arch/arm/mach-kirkwood/cpu.c
+++ b/arch/arm/mach-kirkwood/cpu.c
@@ -21,6 +21,7 @@
#include <asm/arch/soc.h>
#include <mvebu_mmc.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
void reset_cpu(unsigned long ignored)
{
diff --git a/arch/arm/mach-mediatek/mt7623/init.c b/arch/arm/mach-mediatek/mt7623/init.c
index 7db7336494e3..fa7a05291bc9 100644
--- a/arch/arm/mach-mediatek/mt7623/init.c
+++ b/arch/arm/mach-mediatek/mt7623/init.c
@@ -8,6 +8,7 @@
#include <stdio.h>
#include <asm/global_data.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <asm/arch/misc.h>
diff --git a/arch/arm/mach-mediatek/mt7629/init.c b/arch/arm/mach-mediatek/mt7629/init.c
index 5cee055f94c1..a643810d2450 100644
--- a/arch/arm/mach-mediatek/mt7629/init.c
+++ b/arch/arm/mach-mediatek/mt7629/init.c
@@ -18,6 +18,7 @@
#include <dm/uclass.h>
#include <linux/bitops.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <dt-bindings/clock/mt7629-clk.h>
diff --git a/arch/arm/mach-mediatek/mt8516/init.c b/arch/arm/mach-mediatek/mt8516/init.c
index a09874280a91..64b8f5fbcb65 100644
--- a/arch/arm/mach-mediatek/mt8516/init.c
+++ b/arch/arm/mach-mediatek/mt8516/init.c
@@ -20,6 +20,7 @@
#include <asm/sections.h>
#include <dm/uclass.h>
#include <dt-bindings/clock/mt8516-clk.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-meson/board-g12a.c b/arch/arm/mach-meson/board-g12a.c
index cdaed763b426..250a9617c0d5 100644
--- a/arch/arm/mach-meson/board-g12a.c
+++ b/arch/arm/mach-meson/board-g12a.c
@@ -18,6 +18,7 @@
#include <asm/io.h>
#include <asm/armv8/mmu.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <usb.h>
#include <linux/usb/otg.h>
diff --git a/arch/arm/mach-meson/board-info.c b/arch/arm/mach-meson/board-info.c
index fdc8df595568..94c523c17fda 100644
--- a/arch/arm/mach-meson/board-info.c
+++ b/arch/arm/mach-meson/board-info.c
@@ -15,6 +15,7 @@
#include <syscon.h>
#include <linux/bitops.h>
#include <linux/err.h>
+#include <linux/kernel.h>
#define AO_SEC_SD_CFG8 0xe0
#define AO_SEC_SOCINFO_OFFSET AO_SEC_SD_CFG8
diff --git a/arch/arm/mach-mvebu/cpu.c b/arch/arm/mach-mvebu/cpu.c
index d529407987e9..53c44ede7db6 100644
--- a/arch/arm/mach-mvebu/cpu.c
+++ b/arch/arm/mach-mvebu/cpu.c
@@ -11,6 +11,7 @@
#include <asm/u-boot.h>
#include <linux/bitops.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/mbus.h>
#include <asm/io.h>
#include <asm/pl310.h>
diff --git a/arch/arm/mach-nexell/clock.c b/arch/arm/mach-nexell/clock.c
index 38f6b1fc9010..cd66248cd65b 100644
--- a/arch/arm/mach-nexell/clock.c
+++ b/arch/arm/mach-nexell/clock.c
@@ -12,6 +12,7 @@
#include <asm/arch/nexell.h>
#include <asm/arch/clk.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
/*
* clock generator macros
diff --git a/arch/arm/mach-nexell/nx_gpio.c b/arch/arm/mach-nexell/nx_gpio.c
index dfba3a2374cb..d7fdc968847c 100644
--- a/arch/arm/mach-nexell/nx_gpio.c
+++ b/arch/arm/mach-nexell/nx_gpio.c
@@ -7,6 +7,7 @@
/*
* FIXME : will be remove after support pinctrl
*/
+#include <stdbool.h>
#include <linux/types.h>
#include <asm/io.h>
#include <asm/arch/nexell.h>
diff --git a/arch/arm/mach-nexell/timer.c b/arch/arm/mach-nexell/timer.c
index fecee67265cb..2f98bd7fa4a1 100644
--- a/arch/arm/mach-nexell/timer.c
+++ b/arch/arm/mach-nexell/timer.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <log.h>
+#include <linux/kernel.h>
#include <asm/io.h>
#include <asm/arch/nexell.h>
diff --git a/arch/arm/mach-omap2/abb.c b/arch/arm/mach-omap2/abb.c
index c8c455fef1e0..24775bdc41ce 100644
--- a/arch/arm/mach-omap2/abb.c
+++ b/arch/arm/mach-omap2/abb.c
@@ -15,6 +15,7 @@
#include <asm/io.h>
#include <asm/arch/sys_proto.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
__weak s8 abb_setup_ldovbb(u32 fuse, u32 ldovbb)
{
diff --git a/arch/arm/mach-omap2/am33xx/sys_info.c b/arch/arm/mach-omap2/am33xx/sys_info.c
index 0809664b7ecd..86078f856edc 100644
--- a/arch/arm/mach-omap2/am33xx/sys_info.c
+++ b/arch/arm/mach-omap2/am33xx/sys_info.c
@@ -18,6 +18,7 @@
#include <asm/arch/sys_proto.h>
#include <asm/arch/cpu.h>
#include <asm/arch/clock.h>
+#include <linux/kernel.h>
#include <power/tps65910.h>
#include <linux/compiler.h>
diff --git a/arch/arm/mach-omap2/emif-common.c b/arch/arm/mach-omap2/emif-common.c
index a6428a23db41..15c13463f905 100644
--- a/arch/arm/mach-omap2/emif-common.c
+++ b/arch/arm/mach-omap2/emif-common.c
@@ -24,6 +24,7 @@
#include <linux/compiler.h>
#include <asm/ti-common/ti-edma3.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static int emif1_enabled = -1, emif2_enabled = -1;
diff --git a/arch/arm/mach-omap2/omap5/fdt.c b/arch/arm/mach-omap2/omap5/fdt.c
index d6259434a235..af9717801e44 100644
--- a/arch/arm/mach-omap2/omap5/fdt.c
+++ b/arch/arm/mach-omap2/omap5/fdt.c
@@ -8,6 +8,7 @@
#include <log.h>
#include <stdio.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
#include <malloc.h>
diff --git a/arch/arm/mach-omap2/omap5/sdram.c b/arch/arm/mach-omap2/omap5/sdram.c
index a35218ae600f..f6c8eb9f1bdd 100644
--- a/arch/arm/mach-omap2/omap5/sdram.c
+++ b/arch/arm/mach-omap2/omap5/sdram.c
@@ -14,6 +14,7 @@
#include <stdio.h>
#include <asm/emif.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
/*
* This file provides details of the LPDDR2 SDRAM parts used on OMAP5
diff --git a/arch/arm/mach-omap2/sec-common.c b/arch/arm/mach-omap2/sec-common.c
index f24e0ad6366d..8dcaa1ac6c9e 100644
--- a/arch/arm/mach-omap2/sec-common.c
+++ b/arch/arm/mach-omap2/sec-common.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <asm/arch/sys_proto.h>
diff --git a/arch/arm/mach-rmobile/cpu_info.c b/arch/arm/mach-rmobile/cpu_info.c
index afecb6388c95..4d7fc0d9c71f 100644
--- a/arch/arm/mach-rmobile/cpu_info.c
+++ b/arch/arm/mach-rmobile/cpu_info.c
@@ -11,6 +11,7 @@
#include <asm/io.h>
#include <env.h>
#include <linux/ctype.h>
+#include <linux/kernel.h>
#ifdef CONFIG_ARCH_CPU_INIT
int arch_cpu_init(void)
diff --git a/arch/arm/mach-rmobile/pfc-r8a7740.c b/arch/arm/mach-rmobile/pfc-r8a7740.c
index 5d42a68266b1..1bc72ee992e4 100644
--- a/arch/arm/mach-rmobile/pfc-r8a7740.c
+++ b/arch/arm/mach-rmobile/pfc-r8a7740.c
@@ -22,6 +22,7 @@
#include <sh_pfc.h>
#include <asm/gpio.h>
#include <asm/arch/irqs.h>
+#include <linux/kernel.h>
#define CPU_ALL_PORT(fn, pfx, sfx) \
PORT_10(fn, pfx, sfx), PORT_90(fn, pfx, sfx), \
diff --git a/arch/arm/mach-rmobile/pfc-sh73a0.c b/arch/arm/mach-rmobile/pfc-sh73a0.c
index 55dab7c13894..11b91e3c79e5 100644
--- a/arch/arm/mach-rmobile/pfc-sh73a0.c
+++ b/arch/arm/mach-rmobile/pfc-sh73a0.c
@@ -22,6 +22,7 @@
#include <common.h>
#include <sh_pfc.h>
#include <asm/arch/sh73a0-gpio.h>
+#include <linux/kernel.h>
#define CPU_ALL_PORT(fn, pfx, sfx) \
PORT_10(fn, pfx, sfx), PORT_10(fn, pfx##1, sfx), \
diff --git a/arch/arm/mach-rockchip/board.c b/arch/arm/mach-rockchip/board.c
index aaa7127d1abd..117aa030938c 100644
--- a/arch/arm/mach-rockchip/board.c
+++ b/arch/arm/mach-rockchip/board.c
@@ -9,6 +9,7 @@
#include <init.h>
#include <log.h>
#include <ram.h>
+#include <stdbool.h>
#include <stdio.h>
#include <syscon.h>
#include <asm/cache.h>
diff --git a/arch/arm/mach-rockchip/boot_mode.c b/arch/arm/mach-rockchip/boot_mode.c
index 20d44d424be7..69e64fb39c38 100644
--- a/arch/arm/mach-rockchip/boot_mode.c
+++ b/arch/arm/mach-rockchip/boot_mode.c
@@ -8,6 +8,7 @@
#include <command.h>
#include <env.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/io.h>
#include <asm/arch-rockchip/boot_mode.h>
diff --git a/arch/arm/mach-rockchip/bootrom.c b/arch/arm/mach-rockchip/bootrom.c
index 71ac29ee435a..24ba39537cd2 100644
--- a/arch/arm/mach-rockchip/bootrom.c
+++ b/arch/arm/mach-rockchip/bootrom.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <hang.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/arch-rockchip/bootrom.h>
#include <asm/arch-rockchip/boot_mode.h>
diff --git a/arch/arm/mach-rockchip/rk3288/rk3288.c b/arch/arm/mach-rockchip/rk3288/rk3288.c
index 97900fb3a311..1589ab1b2c70 100644
--- a/arch/arm/mach-rockchip/rk3288/rk3288.c
+++ b/arch/arm/mach-rockchip/rk3288/rk3288.c
@@ -24,6 +24,7 @@
#include <asm/arch-rockchip/sdram.h>
#include <asm/u-boot.h>
#include <linux/err.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3399/rk3399.c
index f8f6799a7fde..69eb741292a3 100644
--- a/arch/arm/mach-rockchip/rk3399/rk3399.c
+++ b/arch/arm/mach-rockchip/rk3399/rk3399.c
@@ -19,6 +19,7 @@
#include <asm/arch-rockchip/grf_rk3399.h>
#include <asm/arch-rockchip/hardware.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <power/regulator.h>
diff --git a/arch/arm/mach-rockchip/sdram.c b/arch/arm/mach-rockchip/sdram.c
index ed07ece15a4d..39c2ee2eedfa 100644
--- a/arch/arm/mach-rockchip/sdram.c
+++ b/arch/arm/mach-rockchip/sdram.c
@@ -12,6 +12,7 @@
#include <asm/io.h>
#include <asm/arch-rockchip/sdram.h>
#include <dm/uclass-internal.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-rockchip/spl.c b/arch/arm/mach-rockchip/spl.c
index 6addcf4d962c..e20b83a490db 100644
--- a/arch/arm/mach-rockchip/spl.c
+++ b/arch/arm/mach-rockchip/spl.c
@@ -17,6 +17,7 @@
#include <asm/global_data.h>
#include <asm/io.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-snapdragon/pinctrl-apq8016.c b/arch/arm/mach-snapdragon/pinctrl-apq8016.c
index d261129a4dd4..42ac25a467a8 100644
--- a/arch/arm/mach-snapdragon/pinctrl-apq8016.c
+++ b/arch/arm/mach-snapdragon/pinctrl-apq8016.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include "pinctrl-snapdragon.h"
#define MAX_PIN_NAME_LEN 32
diff --git a/arch/arm/mach-snapdragon/pinctrl-apq8096.c b/arch/arm/mach-snapdragon/pinctrl-apq8096.c
index da4a2d3901c5..9cd3e1f03a83 100644
--- a/arch/arm/mach-snapdragon/pinctrl-apq8096.c
+++ b/arch/arm/mach-snapdragon/pinctrl-apq8096.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include "pinctrl-snapdragon.h"
#define MAX_PIN_NAME_LEN 32
diff --git a/arch/arm/mach-snapdragon/pinctrl-snapdragon.c b/arch/arm/mach-snapdragon/pinctrl-snapdragon.c
index b1c075a44ac7..1587d38cbfb6 100644
--- a/arch/arm/mach-snapdragon/pinctrl-snapdragon.c
+++ b/arch/arm/mach-snapdragon/pinctrl-snapdragon.c
@@ -13,6 +13,7 @@
#include <dm/pinctrl.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "pinctrl-snapdragon.h"
struct msm_pinctrl_priv {
diff --git a/arch/arm/mach-socfpga/clock_manager_arria10.c b/arch/arm/mach-socfpga/clock_manager_arria10.c
index 82c90fb526c1..9d84871d4639 100644
--- a/arch/arm/mach-socfpga/clock_manager_arria10.c
+++ b/arch/arm/mach-socfpga/clock_manager_arria10.c
@@ -14,6 +14,7 @@
#include <asm/arch/clock_manager.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#ifdef CONFIG_SPL_BUILD
diff --git a/arch/arm/mach-socfpga/firewall.c b/arch/arm/mach-socfpga/firewall.c
index 69229dc651e4..ed411c62c9c2 100644
--- a/arch/arm/mach-socfpga/firewall.c
+++ b/arch/arm/mach-socfpga/firewall.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <asm/arch/firewall.h>
#include <asm/arch/system_manager.h>
+#include <linux/kernel.h>
static void firewall_l4_per_disable(void)
{
diff --git a/arch/arm/mach-socfpga/freeze_controller.c b/arch/arm/mach-socfpga/freeze_controller.c
index 561d3408cd8f..e994d38ba623 100644
--- a/arch/arm/mach-socfpga/freeze_controller.c
+++ b/arch/arm/mach-socfpga/freeze_controller.c
@@ -10,6 +10,7 @@
#include <asm/arch/freeze_controller.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
static const struct socfpga_freeze_controller *freeze_controller_base =
(void *)(SOCFPGA_SYSMGR_ADDRESS + SYSMGR_FRZCTRL_ADDRESS);
diff --git a/arch/arm/mach-socfpga/include/mach/misc.h b/arch/arm/mach-socfpga/include/mach/misc.h
index a85c5aeef955..32bca6775e2c 100644
--- a/arch/arm/mach-socfpga/include/mach/misc.h
+++ b/arch/arm/mach-socfpga/include/mach/misc.h
@@ -6,6 +6,7 @@
#ifndef _SOCFPGA_MISC_H_
#define _SOCFPGA_MISC_H_
+#include <stdbool.h>
#include <asm/sections.h>
void dwmac_deassert_reset(const unsigned int of_reset_id, const u32 phymode);
diff --git a/arch/arm/mach-socfpga/include/mach/reset_manager_gen5.h b/arch/arm/mach-socfpga/include/mach/reset_manager_gen5.h
index d108eac1e21a..e46b48fdbb4c 100644
--- a/arch/arm/mach-socfpga/include/mach/reset_manager_gen5.h
+++ b/arch/arm/mach-socfpga/include/mach/reset_manager_gen5.h
@@ -6,6 +6,7 @@
#ifndef _RESET_MANAGER_GEN5_H_
#define _RESET_MANAGER_GEN5_H_
+#include <stdbool.h>
#include <dt-bindings/reset/altr,rst-mgr.h>
void socfpga_bridges_set_handoff_regs(bool h2f, bool lwh2f, bool f2h);
diff --git a/arch/arm/mach-socfpga/misc_gen5.c b/arch/arm/mach-socfpga/misc_gen5.c
index 22f113048149..c8c8c64476b4 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 <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.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 0addd436c2ba..107a873c1208 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 <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <asm/arch/mailbox_s10.h>
#include <linux/string.h>
diff --git a/arch/arm/mach-socfpga/reset_manager_arria10.c b/arch/arm/mach-socfpga/reset_manager_arria10.c
index 27c030801134..461c45928002 100644
--- a/arch/arm/mach-socfpga/reset_manager_arria10.c
+++ b/arch/arm/mach-socfpga/reset_manager_arria10.c
@@ -13,6 +13,7 @@
#include <errno.h>
#include <fdtdec.h>
#include <wait_bit.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-socfpga/reset_manager_gen5.c b/arch/arm/mach-socfpga/reset_manager_gen5.c
index 090567e9d8ab..e37325f2ac50 100644
--- a/arch/arm/mach-socfpga/reset_manager_gen5.c
+++ b/arch/arm/mach-socfpga/reset_manager_gen5.c
@@ -5,6 +5,7 @@
#include <common.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/io.h>
#include <asm/arch/fpga_manager.h>
diff --git a/arch/arm/mach-socfpga/wrap_pinmux_config.c b/arch/arm/mach-socfpga/wrap_pinmux_config.c
index 33ca14c9dc76..f5a425db5592 100644
--- a/arch/arm/mach-socfpga/wrap_pinmux_config.c
+++ b/arch/arm/mach-socfpga/wrap_pinmux_config.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <errno.h>
+#include <linux/kernel.h>
/* Board-specific header. */
#include <qts/pinmux_config.h>
diff --git a/arch/arm/mach-socfpga/wrap_pinmux_config_s10.c b/arch/arm/mach-socfpga/wrap_pinmux_config_s10.c
index 0b497ec30c5d..8f3688dd19fa 100644
--- a/arch/arm/mach-socfpga/wrap_pinmux_config_s10.c
+++ b/arch/arm/mach-socfpga/wrap_pinmux_config_s10.c
@@ -8,6 +8,7 @@
#include <errno.h>
#include <asm/io.h>
#include <asm/arch/handoff_s10.h>
+#include <linux/kernel.h>
static void sysmgr_pinmux_handoff_read(void *handoff_address,
const u32 **table,
diff --git a/arch/arm/mach-socfpga/wrap_sdram_config.c b/arch/arm/mach-socfpga/wrap_sdram_config.c
index 4ea32e72c7c9..50fec073b481 100644
--- a/arch/arm/mach-socfpga/wrap_sdram_config.c
+++ b/arch/arm/mach-socfpga/wrap_sdram_config.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <errno.h>
#include <asm/arch/sdram.h>
+#include <linux/kernel.h>
/* Board-specific header. */
#include <qts/sdram_config.h>
diff --git a/arch/arm/mach-stm32/soc.c b/arch/arm/mach-stm32/soc.c
index 1f12da401c10..97d6318792a2 100644
--- a/arch/arm/mach-stm32/soc.c
+++ b/arch/arm/mach-stm32/soc.c
@@ -8,6 +8,7 @@
#include <init.h>
#include <asm/io.h>
#include <asm/armv7_mpu.h>
+#include <linux/kernel.h>
int arch_cpu_init(void)
{
diff --git a/arch/arm/mach-stm32mp/bsec.c b/arch/arm/mach-stm32mp/bsec.c
index d41382409c30..ed1a13b0a3a0 100644
--- a/arch/arm/mach-stm32mp/bsec.c
+++ b/arch/arm/mach-stm32mp/bsec.c
@@ -7,6 +7,7 @@
#include <dm.h>
#include <log.h>
#include <misc.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <asm/arch/bsec.h>
#include <asm/arch/stm32mp1_smc.h>
diff --git a/arch/arm/mach-stm32mp/cmd_stm32key.c b/arch/arm/mach-stm32mp/cmd_stm32key.c
index 7ce8a9dee69e..a5c94d331e65 100644
--- a/arch/arm/mach-stm32mp/cmd_stm32key.c
+++ b/arch/arm/mach-stm32mp/cmd_stm32key.c
@@ -7,6 +7,7 @@
#include <command.h>
#include <console.h>
#include <misc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <dm/device.h>
diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c b/arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c
index 89baa9885a84..bc9767c8ccf4 100644
--- a/arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c
+++ b/arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c
@@ -7,6 +7,7 @@
#include <command.h>
#include <dfu.h>
#include <image.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/arch/stm32prog.h>
diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
index 0589cfcb31c7..f75050a0b4df 100644
--- a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
+++ b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
@@ -17,6 +17,7 @@
#include <dm/uclass.h>
#include <jffs2/load_kernel.h>
#include <linux/errno.h>
+#include <linux/kernel.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.h b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h
index de1361d9841d..46f014cb77f8 100644
--- a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h
+++ b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h
@@ -6,6 +6,7 @@
#ifndef _STM32PROG_H_
#define _STM32PROG_H_
+#include <stdbool.h>
#include <vsprintf.h>
#include <linux/printk.h>
diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c
index be3eb230f1e9..1419d0f20e76 100644
--- a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c
+++ b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c
@@ -9,6 +9,7 @@
#include <dfu.h>
#include <malloc.h>
#include <serial.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <watchdog.h>
diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c
index 15ca72043a33..a170fdfee94c 100644
--- a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c
+++ b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <dfu.h>
#include <g_dnl.h>
+#include <stdbool.h>
#include <stdio.h>
#include <usb.h>
#include <vsprintf.h>
diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm32mp/cpu.c
index 8dcf4d4f8531..e275df5905c8 100644
--- a/arch/arm/mach-stm32mp/cpu.c
+++ b/arch/arm/mach-stm32mp/cpu.c
@@ -22,6 +22,7 @@
#include <dm/uclass.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
/* RCC register */
diff --git a/arch/arm/mach-stm32mp/dram_init.c b/arch/arm/mach-stm32mp/dram_init.c
index 611e0ff0eb70..8685df3d06d1 100644
--- a/arch/arm/mach-stm32mp/dram_init.c
+++ b/arch/arm/mach-stm32mp/dram_init.c
@@ -11,6 +11,7 @@
#include <log.h>
#include <ram.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-stm32mp/fdt.c b/arch/arm/mach-stm32mp/fdt.c
index 1bfa19207d11..e83885440b46 100644
--- a/arch/arm/mach-stm32mp/fdt.c
+++ b/arch/arm/mach-stm32mp/fdt.c
@@ -13,6 +13,7 @@
#include <asm/u-boot.h>
#include <dt-bindings/pinctrl/stm32-pinfunc.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define ETZPC_DECPROT(n) (STM32_ETZPC_BASE + 0x10 + 4 * (n))
diff --git a/arch/arm/mach-stm32mp/include/mach/bsec.h b/arch/arm/mach-stm32mp/include/mach/bsec.h
index 252eac3946a4..8a98312e126d 100644
--- a/arch/arm/mach-stm32mp/include/mach/bsec.h
+++ b/arch/arm/mach-stm32mp/include/mach/bsec.h
@@ -4,4 +4,5 @@
*/
/* check self hosted debug status = BSEC_DENABLE.DBGSWENABLE */
+#include <stdbool.h>
bool bsec_dbgswenable(void);
diff --git a/arch/arm/mach-stm32mp/include/mach/stm32prog.h b/arch/arm/mach-stm32mp/include/mach/stm32prog.h
index c080b9cc42ad..7d59c8a9f24b 100644
--- a/arch/arm/mach-stm32mp/include/mach/stm32prog.h
+++ b/arch/arm/mach-stm32mp/include/mach/stm32prog.h
@@ -3,6 +3,7 @@
* Copyright (C) 2020, STMicroelectronics - All Rights Reserved
*/
+#include <stdbool.h>
#define STM32PROG_VIRT_FIRST_DEV_NUM 0xF1
int stm32prog_write_medium_virt(struct dfu_entity *dfu, u64 offset,
diff --git a/arch/arm/mach-sunxi/clock_sun4i.c b/arch/arm/mach-sunxi/clock_sun4i.c
index bd9f476543d8..7799c5750d34 100644
--- a/arch/arm/mach-sunxi/clock_sun4i.c
+++ b/arch/arm/mach-sunxi/clock_sun4i.c
@@ -15,6 +15,7 @@
#include <asm/arch/clock.h>
#include <asm/arch/gpio.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
#ifdef CONFIG_SPL_BUILD
void clock_init_safe(void)
diff --git a/arch/arm/mach-sunxi/clock_sun6i.c b/arch/arm/mach-sunxi/clock_sun6i.c
index 8e84062bd7c6..529fdd7754e2 100644
--- a/arch/arm/mach-sunxi/clock_sun6i.c
+++ b/arch/arm/mach-sunxi/clock_sun6i.c
@@ -10,6 +10,7 @@
*/
#include <common.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/prcm.h>
diff --git a/arch/arm/mach-sunxi/dram_helpers.c b/arch/arm/mach-sunxi/dram_helpers.c
index de04e9d84282..ffadaa425703 100644
--- a/arch/arm/mach-sunxi/dram_helpers.c
+++ b/arch/arm/mach-sunxi/dram_helpers.c
@@ -6,6 +6,7 @@
*/
#include <common.h>
+#include <stdbool.h>
#include <time.h>
#include <vsprintf.h>
#include <asm/barriers.h>
diff --git a/arch/arm/mach-sunxi/dram_sun4i.c b/arch/arm/mach-sunxi/dram_sun4i.c
index f85f52898d12..6c406f111565 100644
--- a/arch/arm/mach-sunxi/dram_sun4i.c
+++ b/arch/arm/mach-sunxi/dram_sun4i.c
@@ -29,6 +29,7 @@
#include <asm/arch/timer.h>
#include <asm/arch/sys_proto.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#define CPU_CFG_CHIP_VER(n) ((n) << 6)
#define CPU_CFG_CHIP_VER_MASK CPU_CFG_CHIP_VER(0x3)
diff --git a/arch/arm/mach-sunxi/dram_sun50i_h6.c b/arch/arm/mach-sunxi/dram_sun50i_h6.c
index a877d655d86b..ea47fa86478c 100644
--- a/arch/arm/mach-sunxi/dram_sun50i_h6.c
+++ b/arch/arm/mach-sunxi/dram_sun50i_h6.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <init.h>
#include <log.h>
+#include <stdbool.h>
#include <vsprintf.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
diff --git a/arch/arm/mach-sunxi/dram_sun6i.c b/arch/arm/mach-sunxi/dram_sun6i.c
index 9d1620c97588..53f8ac068ae6 100644
--- a/arch/arm/mach-sunxi/dram_sun6i.c
+++ b/arch/arm/mach-sunxi/dram_sun6i.c
@@ -12,6 +12,7 @@
#include <common.h>
#include <errno.h>
#include <init.h>
+#include <stdbool.h>
#include <vsprintf.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
diff --git a/arch/arm/mach-sunxi/dram_sun8i_a33.c b/arch/arm/mach-sunxi/dram_sun8i_a33.c
index d5d324860e3f..5b993afe3efe 100644
--- a/arch/arm/mach-sunxi/dram_sun8i_a33.c
+++ b/arch/arm/mach-sunxi/dram_sun8i_a33.c
@@ -16,6 +16,7 @@
#include <asm/arch/prcm.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 8a32ea4f0a17..bf6279214408 100644
--- a/arch/arm/mach-sunxi/dram_sun8i_a83t.c
+++ b/arch/arm/mach-sunxi/dram_sun8i_a83t.c
@@ -16,6 +16,7 @@
#include <asm/arch/prcm.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#define DRAM_CLK_MUL 2
#define DRAM_CLK_DIV 1
diff --git a/arch/arm/mach-sunxi/dram_sunxi_dw.c b/arch/arm/mach-sunxi/dram_sunxi_dw.c
index e3e40aaa5e6d..3fa8509efb9b 100644
--- a/arch/arm/mach-sunxi/dram_sunxi_dw.c
+++ b/arch/arm/mach-sunxi/dram_sunxi_dw.c
@@ -18,6 +18,7 @@
#include <asm/arch/cpu.h>
#include <linux/delay.h>
#include <linux/kconfig.h>
+#include <linux/kernel.h>
static void mctl_phy_init(u32 val)
{
diff --git a/arch/arm/mach-sunxi/dram_timings/ddr2_v3s.c b/arch/arm/mach-sunxi/dram_timings/ddr2_v3s.c
index 9077f86a8b4c..14ee586e147a 100644
--- a/arch/arm/mach-sunxi/dram_timings/ddr2_v3s.c
+++ b/arch/arm/mach-sunxi/dram_timings/ddr2_v3s.c
@@ -1,6 +1,7 @@
#include <common.h>
#include <asm/arch/dram.h>
#include <asm/arch/cpu.h>
+#include <linux/kernel.h>
void mctl_set_timing_params(uint16_t socid, struct dram_para *para)
{
diff --git a/arch/arm/mach-sunxi/dram_timings/ddr3_1333.c b/arch/arm/mach-sunxi/dram_timings/ddr3_1333.c
index 0471e8a49e58..a297d469a90e 100644
--- a/arch/arm/mach-sunxi/dram_timings/ddr3_1333.c
+++ b/arch/arm/mach-sunxi/dram_timings/ddr3_1333.c
@@ -1,6 +1,7 @@
#include <common.h>
#include <asm/arch/dram.h>
#include <asm/arch/cpu.h>
+#include <linux/kernel.h>
void mctl_set_timing_params(uint16_t socid, struct dram_para *para)
{
diff --git a/arch/arm/mach-sunxi/dram_timings/h6_ddr3_1333.c b/arch/arm/mach-sunxi/dram_timings/h6_ddr3_1333.c
index 611eaa3024c4..6160518efee3 100644
--- a/arch/arm/mach-sunxi/dram_timings/h6_ddr3_1333.c
+++ b/arch/arm/mach-sunxi/dram_timings/h6_ddr3_1333.c
@@ -22,6 +22,7 @@
#include <common.h>
#include <asm/arch/dram.h>
#include <asm/arch/cpu.h>
+#include <linux/kernel.h>
/*
* Only the first four are used for DDR3(?)
diff --git a/arch/arm/mach-sunxi/dram_timings/h6_lpddr3.c b/arch/arm/mach-sunxi/dram_timings/h6_lpddr3.c
index 10008601134a..497c59d8ae2b 100644
--- a/arch/arm/mach-sunxi/dram_timings/h6_lpddr3.c
+++ b/arch/arm/mach-sunxi/dram_timings/h6_lpddr3.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <asm/arch/dram.h>
#include <asm/arch/cpu.h>
+#include <linux/kernel.h>
static u32 mr_lpddr3[12] = {
0x00000000, 0x00000043, 0x0000001a, 0x00000001,
diff --git a/arch/arm/mach-sunxi/dram_timings/lpddr3_stock.c b/arch/arm/mach-sunxi/dram_timings/lpddr3_stock.c
index bd57e2f6aac2..6378bbc22a31 100644
--- a/arch/arm/mach-sunxi/dram_timings/lpddr3_stock.c
+++ b/arch/arm/mach-sunxi/dram_timings/lpddr3_stock.c
@@ -1,6 +1,7 @@
#include <common.h>
#include <asm/arch/dram.h>
#include <asm/arch/cpu.h>
+#include <linux/kernel.h>
void mctl_set_timing_params(uint16_t socid, struct dram_para *para)
{
diff --git a/arch/arm/mach-sunxi/spl_spi_sunxi.c b/arch/arm/mach-sunxi/spl_spi_sunxi.c
index 15e86cbac8f4..f9e1f27363fc 100644
--- a/arch/arm/mach-sunxi/spl_spi_sunxi.c
+++ b/arch/arm/mach-sunxi/spl_spi_sunxi.c
@@ -7,6 +7,7 @@
#include <image.h>
#include <log.h>
#include <spl.h>
+#include <stdbool.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <linux/bitops.h>
diff --git a/arch/arm/mach-tegra/board.c b/arch/arm/mach-tegra/board.c
index ecdfcdde921a..cd0eb258bf93 100644
--- a/arch/arm/mach-tegra/board.c
+++ b/arch/arm/mach-tegra/board.c
@@ -30,6 +30,7 @@
#include <asm/arch-tegra/pmc.h>
#include <asm/arch-tegra/sys_proto.h>
#include <asm/arch-tegra/warmboot.h>
+#include <linux/kernel.h>
void save_boot_params_ret(void);
diff --git a/arch/arm/mach-tegra/cboot.c b/arch/arm/mach-tegra/cboot.c
index 832a0ba1ca08..353fb49616ac 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 <linux/errno.h>
+#include <linux/kernel.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 9056fe0dd31c..567ba52ee88e 100644
--- a/arch/arm/mach-tegra/clock.c
+++ b/arch/arm/mach-tegra/clock.c
@@ -21,6 +21,7 @@
#include <asm/arch-tegra/timer.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
/*
* This is our record of the current clock rate of each clock. We don't
diff --git a/arch/arm/mach-tegra/dt-setup.c b/arch/arm/mach-tegra/dt-setup.c
index 237f184b7514..d3848f14985a 100644
--- a/arch/arm/mach-tegra/dt-setup.c
+++ b/arch/arm/mach-tegra/dt-setup.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/arch-tegra/gpu.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
/*
* This function is called right before the kernel is booted. "blob" is the
diff --git a/arch/arm/mach-tegra/gpu.c b/arch/arm/mach-tegra/gpu.c
index 13ffade0408e..928a00f222cc 100644
--- a/arch/arm/mach-tegra/gpu.c
+++ b/arch/arm/mach-tegra/gpu.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <asm/arch/tegra.h>
#include <asm/arch/mc.h>
diff --git a/arch/arm/mach-tegra/pmc.c b/arch/arm/mach-tegra/pmc.c
index 0d4063ad1a27..f4747484f29f 100644
--- a/arch/arm/mach-tegra/pmc.c
+++ b/arch/arm/mach-tegra/pmc.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <cpu_func.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
diff --git a/arch/arm/mach-tegra/powergate.c b/arch/arm/mach-tegra/powergate.c
index 5b3e3d8f56e8..3a96708c3045 100644
--- a/arch/arm/mach-tegra/powergate.c
+++ b/arch/arm/mach-tegra/powergate.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <errno.h>
+#include <stdbool.h>
#include <time.h>
#include <linux/delay.h>
#include <linux/errno.h>
diff --git a/arch/arm/mach-tegra/tegra114/cpu.c b/arch/arm/mach-tegra/tegra114/cpu.c
index 62c10536306b..7e529130ad51 100644
--- a/arch/arm/mach-tegra/tegra114/cpu.c
+++ b/arch/arm/mach-tegra/tegra114/cpu.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/flow.h>
diff --git a/arch/arm/mach-tegra/tegra124/clock.c b/arch/arm/mach-tegra/tegra124/clock.c
index 8dfdd2bc8add..edca9c3fdc38 100644
--- a/arch/arm/mach-tegra/tegra124/clock.c
+++ b/arch/arm/mach-tegra/tegra124/clock.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <init.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
diff --git a/arch/arm/mach-tegra/tegra124/cpu.c b/arch/arm/mach-tegra/tegra124/cpu.c
index d5f2683b266c..2fce060037a6 100644
--- a/arch/arm/mach-tegra/tegra124/cpu.c
+++ b/arch/arm/mach-tegra/tegra124/cpu.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <asm/arch/ahb.h>
#include <asm/arch/clock.h>
diff --git a/arch/arm/mach-tegra/tegra124/xusb-padctl.c b/arch/arm/mach-tegra/tegra124/xusb-padctl.c
index 6985515499f1..52398eba3fab 100644
--- a/arch/arm/mach-tegra/tegra124/xusb-padctl.c
+++ b/arch/arm/mach-tegra/tegra124/xusb-padctl.c
@@ -14,6 +14,7 @@
#include <dm/ofnode.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include "../xusb-padctl-common.h"
diff --git a/arch/arm/mach-tegra/tegra20/funcmux.c b/arch/arm/mach-tegra/tegra20/funcmux.c
index 90fe0cba8ea4..827ae4b748bf 100644
--- a/arch/arm/mach-tegra/tegra20/funcmux.c
+++ b/arch/arm/mach-tegra/tegra20/funcmux.c
@@ -9,6 +9,7 @@
#include <asm/arch/clock.h>
#include <asm/arch/funcmux.h>
#include <asm/arch/pinmux.h>
+#include <linux/kernel.h>
/*
* The PINMUX macro is used to set up pinmux tables.
diff --git a/arch/arm/mach-tegra/tegra20/warmboot.c b/arch/arm/mach-tegra/tegra20/warmboot.c
index 215cf5ae5613..f0050a4f8212 100644
--- a/arch/arm/mach-tegra/tegra20/warmboot.c
+++ b/arch/arm/mach-tegra/tegra20/warmboot.c
@@ -21,6 +21,7 @@
#include <asm/arch-tegra/pmc.h>
#include <asm/arch-tegra/fuse.h>
#include <asm/arch-tegra/warmboot.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/arm/mach-tegra/tegra210/xusb-padctl.c b/arch/arm/mach-tegra/tegra210/xusb-padctl.c
index 572ba95d5b07..78cea2b9193f 100644
--- a/arch/arm/mach-tegra/tegra210/xusb-padctl.c
+++ b/arch/arm/mach-tegra/tegra210/xusb-padctl.c
@@ -14,6 +14,7 @@
#include <dm/ofnode.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include "../xusb-padctl-common.h"
diff --git a/arch/arm/mach-tegra/xusb-padctl-dummy.c b/arch/arm/mach-tegra/xusb-padctl-dummy.c
index b3c5c9453b24..d04069993c69 100644
--- a/arch/arm/mach-tegra/xusb-padctl-dummy.c
+++ b/arch/arm/mach-tegra/xusb-padctl-dummy.c
@@ -4,6 +4,7 @@
*/
#include <common.h>
+#include <compiler.h>
#include <errno.h>
#include <linux/errno.h>
diff --git a/arch/arm/mach-uniphier/dram/ddrphy-init.h b/arch/arm/mach-uniphier/dram/ddrphy-init.h
index 09981f6e06f5..40a8523eb8e7 100644
--- a/arch/arm/mach-uniphier/dram/ddrphy-init.h
+++ b/arch/arm/mach-uniphier/dram/ddrphy-init.h
@@ -6,6 +6,7 @@
#ifndef ARCH_DDRPHY_INIT_H
#define ARCH_DDRPHY_INTT_H
+#include <stdbool.h>
#include <linux/compiler.h>
#include <linux/types.h>
diff --git a/arch/arm/mach-uniphier/dram/ddrphy-ld4.c b/arch/arm/mach-uniphier/dram/ddrphy-ld4.c
index 26f3ba9d5773..747bc64403db 100644
--- a/arch/arm/mach-uniphier/dram/ddrphy-ld4.c
+++ b/arch/arm/mach-uniphier/dram/ddrphy-ld4.c
@@ -4,6 +4,7 @@
* Copyright (C) 2015-2016 Socionext Inc.
*/
+#include <stdbool.h>
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/io.h>
diff --git a/arch/arm/mach-uniphier/dram/umc-ld4.c b/arch/arm/mach-uniphier/dram/umc-ld4.c
index 1eb15b611fd3..1109607abfda 100644
--- a/arch/arm/mach-uniphier/dram/umc-ld4.c
+++ b/arch/arm/mach-uniphier/dram/umc-ld4.c
@@ -5,6 +5,7 @@
* Author: Masahiro Yamada <yamada.masahiro at socionext.com>
*/
+#include <stdbool.h>
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/printk.h>
diff --git a/arch/arm/mach-uniphier/dram/umc-pro4.c b/arch/arm/mach-uniphier/dram/umc-pro4.c
index 0114df782b4f..b2666ef82492 100644
--- a/arch/arm/mach-uniphier/dram/umc-pro4.c
+++ b/arch/arm/mach-uniphier/dram/umc-pro4.c
@@ -5,6 +5,7 @@
* Author: Masahiro Yamada <yamada.masahiro at socionext.com>
*/
+#include <stdbool.h>
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/printk.h>
diff --git a/arch/arm/mach-uniphier/dram/umc-pxs2.c b/arch/arm/mach-uniphier/dram/umc-pxs2.c
index 73574201e31b..b39f3d79cdd5 100644
--- a/arch/arm/mach-uniphier/dram/umc-pxs2.c
+++ b/arch/arm/mach-uniphier/dram/umc-pxs2.c
@@ -11,6 +11,7 @@
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/sizes.h>
#include <asm/processor.h>
diff --git a/arch/arm/mach-uniphier/dram/umc-sld8.c b/arch/arm/mach-uniphier/dram/umc-sld8.c
index 583a1bad8b74..d60f70e9e031 100644
--- a/arch/arm/mach-uniphier/dram/umc-sld8.c
+++ b/arch/arm/mach-uniphier/dram/umc-sld8.c
@@ -5,6 +5,7 @@
* Author: Masahiro Yamada <yamada.masahiro at socionext.com>
*/
+#include <stdbool.h>
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/printk.h>
diff --git a/arch/arm/mach-uniphier/micro-support-card.c b/arch/arm/mach-uniphier/micro-support-card.c
index f3abb8554125..07ce46bd9ddb 100644
--- a/arch/arm/mach-uniphier/micro-support-card.c
+++ b/arch/arm/mach-uniphier/micro-support-card.c
@@ -7,6 +7,7 @@
#include <dm.h>
#include <fdt_support.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/ctype.h>
#include <linux/delay.h>
diff --git a/arch/arm/mach-uniphier/mmc-first-dev.c b/arch/arm/mach-uniphier/mmc-first-dev.c
index 45bb10f8eb1f..a70a00c7494e 100644
--- a/arch/arm/mach-uniphier/mmc-first-dev.c
+++ b/arch/arm/mach-uniphier/mmc-first-dev.c
@@ -7,6 +7,7 @@
#include <command.h>
#include <env.h>
#include <mmc.h>
+#include <stdbool.h>
#include <linux/errno.h>
static int find_first_mmc_device(bool is_sd)
diff --git a/arch/arm/mach-versal/mp.c b/arch/arm/mach-versal/mp.c
index df196460dd55..001c3e9518ab 100644
--- a/arch/arm/mach-versal/mp.c
+++ b/arch/arm/mach-versal/mp.c
@@ -5,6 +5,7 @@
*/
#include <common.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/arch/arm/mach-zynq/slcr.c b/arch/arm/mach-zynq/slcr.c
index d7c879dc82dc..67df265ba967 100644
--- a/arch/arm/mach-zynq/slcr.c
+++ b/arch/arm/mach-zynq/slcr.c
@@ -8,6 +8,7 @@
#include <malloc.h>
#include <asm/arch/hardware.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define SLCR_LOCK_MAGIC 0x767B
diff --git a/arch/arm/mach-zynqmp/include/mach/sys_proto.h b/arch/arm/mach-zynqmp/include/mach/sys_proto.h
index 2974ffbc2f56..05c81769d63d 100644
--- a/arch/arm/mach-zynqmp/include/mach/sys_proto.h
+++ b/arch/arm/mach-zynqmp/include/mach/sys_proto.h
@@ -7,6 +7,7 @@
#ifndef _ASM_ARCH_SYS_PROTO_H
#define _ASM_ARCH_SYS_PROTO_H
+#include <stdbool.h>
#define PAYLOAD_ARG_CNT 5
#define ZYNQMP_CSU_SILICON_VER_MASK 0xF
diff --git a/arch/arm/mach-zynqmp/mp.c b/arch/arm/mach-zynqmp/mp.c
index 589f9ec9ab22..b31da25933ed 100644
--- a/arch/arm/mach-zynqmp/mp.c
+++ b/arch/arm/mach-zynqmp/mp.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <cpu_func.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/arch/hardware.h>
diff --git a/arch/m68k/lib/cache.c b/arch/m68k/lib/cache.c
index 68f2eef584b7..22048d12d707 100644
--- a/arch/m68k/lib/cache.c
+++ b/arch/m68k/lib/cache.c
@@ -8,6 +8,7 @@
#include <cpu_func.h>
#include <asm/immap.h>
#include <asm/cache.h>
+#include <linux/kernel.h>
volatile int *cf_icache_status = (int *)ICACHE_STATUS;
volatile int *cf_dcache_status = (int *)DCACHE_STATUS;
diff --git a/arch/m68k/lib/interrupts.c b/arch/m68k/lib/interrupts.c
index 1caef61d20e9..a5b808fbe20c 100644
--- a/arch/m68k/lib/interrupts.c
+++ b/arch/m68k/lib/interrupts.c
@@ -10,6 +10,7 @@
#include <common.h>
#include <irq_func.h>
#include <watchdog.h>
+#include <stdio.h>
#include <asm/processor.h>
#include <asm/immap.h>
#include <asm/ptrace.h>
diff --git a/arch/microblaze/cpu/spl.c b/arch/microblaze/cpu/spl.c
index 86522f844794..9f25c2f39529 100644
--- a/arch/microblaze/cpu/spl.c
+++ b/arch/microblaze/cpu/spl.c
@@ -10,6 +10,7 @@
#include <image.h>
#include <log.h>
#include <spl.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <asm/u-boot.h>
diff --git a/arch/microblaze/cpu/timer.c b/arch/microblaze/cpu/timer.c
index 05ab0e1b1570..3e6750ea7f44 100644
--- a/arch/microblaze/cpu/timer.c
+++ b/arch/microblaze/cpu/timer.c
@@ -14,6 +14,7 @@
#include <asm/microblaze_timer.h>
#include <asm/microblaze_intc.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/mips/cpu/time.c b/arch/mips/cpu/time.c
index 5e7a7144d027..aab92ec859bb 100644
--- a/arch/mips/cpu/time.c
+++ b/arch/mips/cpu/time.c
@@ -5,6 +5,7 @@
*/
#include <common.h>
+#include <compiler.h>
#include <time.h>
#include <asm/mipsregs.h>
diff --git a/arch/mips/lib/cache.c b/arch/mips/lib/cache.c
index 1eb1459184cb..7be0b559561f 100644
--- a/arch/mips/lib/cache.c
+++ b/arch/mips/lib/cache.c
@@ -15,6 +15,7 @@
#include <asm/mipsregs.h>
#include <asm/system.h>
#include <linux/bug.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/mips/mach-ath79/ar934x/clk.c b/arch/mips/mach-ath79/ar934x/clk.c
index c2ccd35e8bb2..c2c594a32273 100644
--- a/arch/mips/mach-ath79/ar934x/clk.c
+++ b/arch/mips/mach-ath79/ar934x/clk.c
@@ -14,6 +14,7 @@
#include <asm/types.h>
#include <linux/bitops.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <mach/ar71xx_regs.h>
#include <mach/ath79.h>
#include <wait_bit.h>
diff --git a/arch/mips/mach-ath79/cpu.c b/arch/mips/mach-ath79/cpu.c
index 709fa7a9c3b0..55d051f8cb93 100644
--- a/arch/mips/mach-ath79/cpu.c
+++ b/arch/mips/mach-ath79/cpu.c
@@ -10,6 +10,7 @@
#include <asm/io.h>
#include <asm/addrspace.h>
#include <asm/types.h>
+#include <linux/kernel.h>
#include <mach/ath79.h>
#include <mach/ar71xx_regs.h>
diff --git a/arch/mips/mach-jz47xx/jz4780/pll.c b/arch/mips/mach-jz47xx/jz4780/pll.c
index 9aada2ef15b9..ac76a507355e 100644
--- a/arch/mips/mach-jz47xx/jz4780/pll.c
+++ b/arch/mips/mach-jz47xx/jz4780/pll.c
@@ -12,6 +12,7 @@
#include <asm/io.h>
#include <linux/bitops.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <mach/jz4780.h>
#define CPM_CPCCR 0x00
diff --git a/arch/mips/mach-mscc/include/mach/ddr.h b/arch/mips/mach-mscc/include/mach/ddr.h
index d52eabbd2b1f..8c1f14773ecc 100644
--- a/arch/mips/mach-mscc/include/mach/ddr.h
+++ b/arch/mips/mach-mscc/include/mach/ddr.h
@@ -6,6 +6,7 @@
#ifndef __ASM_MACH_DDR_H
#define __ASM_MACH_DDR_H
+#include <stdbool.h>
#include <asm/cacheops.h>
#include <asm/io.h>
#include <asm/reboot.h>
diff --git a/arch/mips/mach-mtmips/ddr_cal.c b/arch/mips/mach-mtmips/ddr_cal.c
index 762619a960f3..1f2f12879b2c 100644
--- a/arch/mips/mach-mtmips/ddr_cal.c
+++ b/arch/mips/mach-mtmips/ddr_cal.c
@@ -11,6 +11,7 @@
#include <asm/global_data.h>
#include <linux/bitops.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <mach/mc.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/mips/mach-mtmips/mt7628/init.c b/arch/mips/mach-mtmips/mt7628/init.c
index c0b4387585fa..8bf918b3f259 100644
--- a/arch/mips/mach-mtmips/mt7628/init.c
+++ b/arch/mips/mach-mtmips/mt7628/init.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <clk.h>
+#include <compiler.h>
#include <dm.h>
#include <stdio.h>
#include <time.h>
diff --git a/arch/mips/mach-octeon/clock.c b/arch/mips/mach-octeon/clock.c
index 8984bfd74458..05a312b22985 100644
--- a/arch/mips/mach-octeon/clock.c
+++ b/arch/mips/mach-octeon/clock.c
@@ -3,6 +3,7 @@
* Copyright (C) 2018, 2019 Marvell International Ltd.
*/
+#include <compiler.h>
#include <time.h>
#include <asm/global_data.h>
#include <mach/clock.h>
diff --git a/arch/nios2/cpu/traps.c b/arch/nios2/cpu/traps.c
index 087a05097d9e..d87b8a4bb2ff 100644
--- a/arch/nios2/cpu/traps.c
+++ b/arch/nios2/cpu/traps.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <hang.h>
+#include <stdio.h>
#include <asm/ptrace.h>
void trap_handler (struct pt_regs *regs)
diff --git a/arch/powerpc/cpu/mpc83xx/cpu.c b/arch/powerpc/cpu/mpc83xx/cpu.c
index 5d3ff0e4d372..0954553d65b7 100644
--- a/arch/powerpc/cpu/mpc83xx/cpu.c
+++ b/arch/powerpc/cpu/mpc83xx/cpu.c
@@ -23,6 +23,7 @@
#include <asm/ppc.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <tsec.h>
#include <netdev.h>
diff --git a/arch/powerpc/cpu/mpc83xx/cpu_init.c b/arch/powerpc/cpu/mpc83xx/cpu_init.c
index b23647e91729..b9e5a90cfbd3 100644
--- a/arch/powerpc/cpu/mpc83xx/cpu_init.c
+++ b/arch/powerpc/cpu/mpc83xx/cpu_init.c
@@ -15,6 +15,7 @@
#include <usb/ehci-ci.h>
#endif
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "lblaw/lblaw.h"
#include "elbc/elbc.h"
diff --git a/arch/powerpc/cpu/mpc83xx/law.c b/arch/powerpc/cpu/mpc83xx/law.c
index 891a0d7727ef..ea338bcfe1cd 100644
--- a/arch/powerpc/cpu/mpc83xx/law.c
+++ b/arch/powerpc/cpu/mpc83xx/law.c
@@ -8,6 +8,7 @@
#include <asm/fsl_law.h>
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
#include <linux/log2.h>
int set_ddr_laws(u64 start, u64 sz, enum law_trgt_if id)
diff --git a/arch/powerpc/cpu/mpc83xx/pcie.c b/arch/powerpc/cpu/mpc83xx/pcie.c
index 5b8322fadb87..38871cc0569f 100644
--- a/arch/powerpc/cpu/mpc83xx/pcie.c
+++ b/arch/powerpc/cpu/mpc83xx/pcie.c
@@ -15,6 +15,7 @@
#include <asm/io.h>
#include <asm/ppc.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/powerpc/cpu/mpc83xx/speed.c b/arch/powerpc/cpu/mpc83xx/speed.c
index a595c58e5bf8..d718a9a30730 100644
--- a/arch/powerpc/cpu/mpc83xx/speed.c
+++ b/arch/powerpc/cpu/mpc83xx/speed.c
@@ -603,4 +603,5 @@ U_BOOT_CMD(clocks, 1, 0, do_clocks,
);
#include <stdio.h>
+#include <linux/kernel.h>
#endif
diff --git a/arch/powerpc/cpu/mpc85xx/b4860_ids.c b/arch/powerpc/cpu/mpc85xx/b4860_ids.c
index 3dccc0e1068e..dec9438ee8b8 100644
--- a/arch/powerpc/cpu/mpc85xx/b4860_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/b4860_ids.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
+#include <linux/kernel.h>
#ifdef CONFIG_SYS_DPAA_QBMAN
struct qportal_info qp_info[CONFIG_SYS_QMAN_NUM_PORTALS] = {
diff --git a/arch/powerpc/cpu/mpc85xx/b4860_serdes.c b/arch/powerpc/cpu/mpc85xx/b4860_serdes.c
index dae5bb83b922..eb28b08239db 100644
--- a/arch/powerpc/cpu/mpc85xx/b4860_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/b4860_serdes.c
@@ -7,6 +7,7 @@
#include <asm/fsl_serdes.h>
#include <asm/ppc.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include "fsl_corenet2_serdes.h"
struct serdes_config {
diff --git a/arch/powerpc/cpu/mpc85xx/bsc9132_serdes.c b/arch/powerpc/cpu/mpc85xx/bsc9132_serdes.c
index e08484324d0e..f5c9d1d81755 100644
--- a/arch/powerpc/cpu/mpc85xx/bsc9132_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/bsc9132_serdes.c
@@ -11,6 +11,7 @@
#include <asm/io.h>
#include <asm/immap_85xx.h>
#include <asm/fsl_serdes.h>
+#include <linux/kernel.h>
#define SRDS1_MAX_LANES 4
diff --git a/arch/powerpc/cpu/mpc85xx/c29x_serdes.c b/arch/powerpc/cpu/mpc85xx/c29x_serdes.c
index 10bc15c45ca8..8c61fd471bc7 100644
--- a/arch/powerpc/cpu/mpc85xx/c29x_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/c29x_serdes.c
@@ -10,6 +10,7 @@
#include <asm/io.h>
#include <asm/immap_85xx.h>
#include <asm/fsl_serdes.h>
+#include <linux/kernel.h>
#define SRDS1_MAX_LANES 4
diff --git a/arch/powerpc/cpu/mpc85xx/cmd_errata.c b/arch/powerpc/cpu/mpc85xx/cmd_errata.c
index 42fcfb249966..1a3df5bff48b 100644
--- a/arch/powerpc/cpu/mpc85xx/cmd_errata.c
+++ b/arch/powerpc/cpu/mpc85xx/cmd_errata.c
@@ -12,6 +12,7 @@
#include <asm/immap_85xx.h>
#include <asm/ppc.h>
#include <fsl_usb.h>
+#include <linux/kernel.h>
#include "fsl_corenet_serdes.h"
#ifdef CONFIG_SYS_FSL_ERRATUM_A004849
diff --git a/arch/powerpc/cpu/mpc85xx/cpu.c b/arch/powerpc/cpu/mpc85xx/cpu.c
index afcfc47554df..da578d6c9005 100644
--- a/arch/powerpc/cpu/mpc85xx/cpu.c
+++ b/arch/powerpc/cpu/mpc85xx/cpu.c
@@ -34,6 +34,7 @@
#include <asm/ppc.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init.c b/arch/powerpc/cpu/mpc85xx/cpu_init.c
index be5381b47a50..7d52b2acc650 100644
--- a/arch/powerpc/cpu/mpc85xx/cpu_init.c
+++ b/arch/powerpc/cpu/mpc85xx/cpu_init.c
@@ -14,6 +14,7 @@
#include <env.h>
#include <init.h>
#include <net.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <watchdog.h>
diff --git a/arch/powerpc/cpu/mpc85xx/ether_fcc.c b/arch/powerpc/cpu/mpc85xx/ether_fcc.c
index 5504ded9e059..df1981cc7aeb 100644
--- a/arch/powerpc/cpu/mpc85xx/ether_fcc.c
+++ b/arch/powerpc/cpu/mpc85xx/ether_fcc.c
@@ -34,6 +34,7 @@
#include <net.h>
#include <asm/u-boot.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
diff --git a/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c b/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c
index 61eba2e99355..0173fab44498 100644
--- a/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c
@@ -18,6 +18,7 @@
#include <asm/fsl_law.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "fsl_corenet_serdes.h"
/*
diff --git a/arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c b/arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c
index 433d5cb136bb..763f452b069e 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c
@@ -11,6 +11,7 @@
#include <asm/io.h>
#include <asm/immap_85xx.h>
#include <asm/fsl_serdes.h>
+#include <linux/kernel.h>
/* PORDEVSR register */
#define GUTS_PORDEVSR_OFFS 0xc
diff --git a/arch/powerpc/cpu/mpc85xx/mpc8544_serdes.c b/arch/powerpc/cpu/mpc85xx/mpc8544_serdes.c
index 1eb446eef182..cbbd6f3522cb 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8544_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8544_serdes.c
@@ -10,6 +10,7 @@
#include <asm/io.h>
#include <asm/immap_85xx.h>
#include <asm/fsl_serdes.h>
+#include <linux/kernel.h>
#define SRDS1_MAX_LANES 8
#define SRDS2_MAX_LANES 4
diff --git a/arch/powerpc/cpu/mpc85xx/mpc8548_serdes.c b/arch/powerpc/cpu/mpc85xx/mpc8548_serdes.c
index 2e21f69e5ad1..fad7afff88bb 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8548_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8548_serdes.c
@@ -10,6 +10,7 @@
#include <asm/io.h>
#include <asm/immap_85xx.h>
#include <asm/fsl_serdes.h>
+#include <linux/kernel.h>
#define SRDS1_MAX_LANES 8
diff --git a/arch/powerpc/cpu/mpc85xx/mpc8568_serdes.c b/arch/powerpc/cpu/mpc85xx/mpc8568_serdes.c
index dd6231a47b9d..1f88d0e34682 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8568_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8568_serdes.c
@@ -10,6 +10,7 @@
#include <asm/io.h>
#include <asm/immap_85xx.h>
#include <asm/fsl_serdes.h>
+#include <linux/kernel.h>
#define SRDS1_MAX_LANES 8
diff --git a/arch/powerpc/cpu/mpc85xx/mpc8569_serdes.c b/arch/powerpc/cpu/mpc85xx/mpc8569_serdes.c
index 148b4cd98192..88b8300f58c0 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8569_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8569_serdes.c
@@ -10,6 +10,7 @@
#include <asm/io.h>
#include <asm/immap_85xx.h>
#include <asm/fsl_serdes.h>
+#include <linux/kernel.h>
#define SRDS1_MAX_LANES 4
diff --git a/arch/powerpc/cpu/mpc85xx/mpc8572_serdes.c b/arch/powerpc/cpu/mpc85xx/mpc8572_serdes.c
index d625f9041e98..d6bf5f314f6a 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8572_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8572_serdes.c
@@ -10,6 +10,7 @@
#include <asm/io.h>
#include <asm/immap_85xx.h>
#include <asm/fsl_serdes.h>
+#include <linux/kernel.h>
#define SRDS1_MAX_LANES 8
diff --git a/arch/powerpc/cpu/mpc85xx/p1010_serdes.c b/arch/powerpc/cpu/mpc85xx/p1010_serdes.c
index 185445e46b93..7dc3512364de 100644
--- a/arch/powerpc/cpu/mpc85xx/p1010_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p1010_serdes.c
@@ -11,6 +11,7 @@
#include <asm/io.h>
#include <asm/immap_85xx.h>
#include <asm/fsl_serdes.h>
+#include <linux/kernel.h>
#define SRDS1_MAX_LANES 4
#define SRDS2_MAX_LANES 2
diff --git a/arch/powerpc/cpu/mpc85xx/p1021_serdes.c b/arch/powerpc/cpu/mpc85xx/p1021_serdes.c
index 62e76c0c70ec..5bb06705829f 100644
--- a/arch/powerpc/cpu/mpc85xx/p1021_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p1021_serdes.c
@@ -11,6 +11,7 @@
#include <asm/immap_85xx.h>
#include <asm/fsl_serdes.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
typedef struct serdes_85xx {
u32 srdscr0; /* 0x00 - SRDS Control Register 0 */
diff --git a/arch/powerpc/cpu/mpc85xx/p1022_serdes.c b/arch/powerpc/cpu/mpc85xx/p1022_serdes.c
index 9fe4eb57cea4..368b5eaea4dc 100644
--- a/arch/powerpc/cpu/mpc85xx/p1022_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p1022_serdes.c
@@ -11,6 +11,7 @@
#include <asm/io.h>
#include <asm/immap_85xx.h>
#include <asm/fsl_serdes.h>
+#include <linux/kernel.h>
#define SRDS1_MAX_LANES 4
#define SRDS2_MAX_LANES 2
diff --git a/arch/powerpc/cpu/mpc85xx/p1023_serdes.c b/arch/powerpc/cpu/mpc85xx/p1023_serdes.c
index 591637e2cfd6..b976b40e3339 100644
--- a/arch/powerpc/cpu/mpc85xx/p1023_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p1023_serdes.c
@@ -11,6 +11,7 @@
#include <asm/io.h>
#include <asm/immap_85xx.h>
#include <asm/fsl_serdes.h>
+#include <linux/kernel.h>
#define SRDS1_MAX_LANES 4
diff --git a/arch/powerpc/cpu/mpc85xx/p2020_serdes.c b/arch/powerpc/cpu/mpc85xx/p2020_serdes.c
index eb2324887537..3ff5715245d1 100644
--- a/arch/powerpc/cpu/mpc85xx/p2020_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p2020_serdes.c
@@ -10,6 +10,7 @@
#include <asm/io.h>
#include <asm/immap_85xx.h>
#include <asm/fsl_serdes.h>
+#include <linux/kernel.h>
#define SRDS1_MAX_LANES 4
diff --git a/arch/powerpc/cpu/mpc85xx/p2041_ids.c b/arch/powerpc/cpu/mpc85xx/p2041_ids.c
index 8a8334667824..b003e5037fa2 100644
--- a/arch/powerpc/cpu/mpc85xx/p2041_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/p2041_ids.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
+#include <linux/kernel.h>
#ifdef CONFIG_SYS_DPAA_QBMAN
struct qportal_info qp_info[CONFIG_SYS_QMAN_NUM_PORTALS] = {
diff --git a/arch/powerpc/cpu/mpc85xx/p2041_serdes.c b/arch/powerpc/cpu/mpc85xx/p2041_serdes.c
index 4461b3848442..c491d3d014f7 100644
--- a/arch/powerpc/cpu/mpc85xx/p2041_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p2041_serdes.c
@@ -6,6 +6,7 @@
#include <asm/fsl_serdes.h>
#include <asm/ppc.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include "fsl_corenet_serdes.h"
static u8 serdes_cfg_tbl[][SRDS_MAX_LANES] = {
diff --git a/arch/powerpc/cpu/mpc85xx/p3041_ids.c b/arch/powerpc/cpu/mpc85xx/p3041_ids.c
index 7db05d9672b8..c111fb584970 100644
--- a/arch/powerpc/cpu/mpc85xx/p3041_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/p3041_ids.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
+#include <linux/kernel.h>
#ifdef CONFIG_SYS_DPAA_QBMAN
struct qportal_info qp_info[CONFIG_SYS_QMAN_NUM_PORTALS] = {
diff --git a/arch/powerpc/cpu/mpc85xx/p3041_serdes.c b/arch/powerpc/cpu/mpc85xx/p3041_serdes.c
index 5fa3eb405698..53b6ee1927fb 100644
--- a/arch/powerpc/cpu/mpc85xx/p3041_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p3041_serdes.c
@@ -6,6 +6,7 @@
#include <asm/fsl_serdes.h>
#include <asm/ppc.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include "fsl_corenet_serdes.h"
static u8 serdes_cfg_tbl[][SRDS_MAX_LANES] = {
diff --git a/arch/powerpc/cpu/mpc85xx/p4080_ids.c b/arch/powerpc/cpu/mpc85xx/p4080_ids.c
index 5b766f1d5171..227d755cf460 100644
--- a/arch/powerpc/cpu/mpc85xx/p4080_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/p4080_ids.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
+#include <linux/kernel.h>
#ifdef CONFIG_SYS_DPAA_QBMAN
struct qportal_info qp_info[CONFIG_SYS_QMAN_NUM_PORTALS] = {
diff --git a/arch/powerpc/cpu/mpc85xx/p4080_serdes.c b/arch/powerpc/cpu/mpc85xx/p4080_serdes.c
index 7d3cb6cdefb8..6432b1973845 100644
--- a/arch/powerpc/cpu/mpc85xx/p4080_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p4080_serdes.c
@@ -7,6 +7,7 @@
#include <asm/fsl_serdes.h>
#include <asm/ppc.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include "fsl_corenet_serdes.h"
static u8 serdes_cfg_tbl[][SRDS_MAX_LANES] = {
diff --git a/arch/powerpc/cpu/mpc85xx/p5020_ids.c b/arch/powerpc/cpu/mpc85xx/p5020_ids.c
index 575b604c2115..fe274d3f102e 100644
--- a/arch/powerpc/cpu/mpc85xx/p5020_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/p5020_ids.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
+#include <linux/kernel.h>
#ifdef CONFIG_SYS_DPAA_QBMAN
struct qportal_info qp_info[CONFIG_SYS_QMAN_NUM_PORTALS] = {
diff --git a/arch/powerpc/cpu/mpc85xx/p5020_serdes.c b/arch/powerpc/cpu/mpc85xx/p5020_serdes.c
index 5fa3eb405698..53b6ee1927fb 100644
--- a/arch/powerpc/cpu/mpc85xx/p5020_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p5020_serdes.c
@@ -6,6 +6,7 @@
#include <asm/fsl_serdes.h>
#include <asm/ppc.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include "fsl_corenet_serdes.h"
static u8 serdes_cfg_tbl[][SRDS_MAX_LANES] = {
diff --git a/arch/powerpc/cpu/mpc85xx/p5040_ids.c b/arch/powerpc/cpu/mpc85xx/p5040_ids.c
index e3d163af9eb9..916f1b3a29a6 100644
--- a/arch/powerpc/cpu/mpc85xx/p5040_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/p5040_ids.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
+#include <linux/kernel.h>
#ifdef CONFIG_SYS_DPAA_QBMAN
struct qportal_info qp_info[CONFIG_SYS_QMAN_NUM_PORTALS] = {
diff --git a/arch/powerpc/cpu/mpc85xx/p5040_serdes.c b/arch/powerpc/cpu/mpc85xx/p5040_serdes.c
index 61d97f5e0453..5b02643ab5f8 100644
--- a/arch/powerpc/cpu/mpc85xx/p5040_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p5040_serdes.c
@@ -6,6 +6,7 @@
#include <asm/fsl_serdes.h>
#include <asm/ppc.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include "fsl_corenet_serdes.h"
/*
diff --git a/arch/powerpc/cpu/mpc85xx/t1024_ids.c b/arch/powerpc/cpu/mpc85xx/t1024_ids.c
index d2744bb9f82b..b0679aa3458a 100644
--- a/arch/powerpc/cpu/mpc85xx/t1024_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/t1024_ids.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
+#include <linux/kernel.h>
#ifdef CONFIG_SYS_DPAA_QBMAN
struct qportal_info qp_info[CONFIG_SYS_QMAN_NUM_PORTALS] = {
diff --git a/arch/powerpc/cpu/mpc85xx/t1024_serdes.c b/arch/powerpc/cpu/mpc85xx/t1024_serdes.c
index 3dfcf67ceba6..6530302e70cb 100644
--- a/arch/powerpc/cpu/mpc85xx/t1024_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/t1024_serdes.c
@@ -6,6 +6,7 @@
#include <asm/fsl_serdes.h>
#include <asm/ppc.h>
#include <asm/io.h>
+#include <linux/kernel.h>
static u8 serdes_cfg_tbl[][SRDS_MAX_LANES] = {
[0x40] = {PCIE1, PCIE1, PCIE1, PCIE1},
diff --git a/arch/powerpc/cpu/mpc85xx/t1040_ids.c b/arch/powerpc/cpu/mpc85xx/t1040_ids.c
index 99b52bacdad6..8c427c6ba6df 100644
--- a/arch/powerpc/cpu/mpc85xx/t1040_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/t1040_ids.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
+#include <linux/kernel.h>
#ifdef CONFIG_SYS_DPAA_QBMAN
struct qportal_info qp_info[CONFIG_SYS_QMAN_NUM_PORTALS] = {
diff --git a/arch/powerpc/cpu/mpc85xx/t1040_serdes.c b/arch/powerpc/cpu/mpc85xx/t1040_serdes.c
index a50397b4b3ac..299b01218913 100644
--- a/arch/powerpc/cpu/mpc85xx/t1040_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/t1040_serdes.c
@@ -6,6 +6,7 @@
#include <asm/fsl_serdes.h>
#include <asm/ppc.h>
#include <asm/io.h>
+#include <linux/kernel.h>
static u8 serdes_cfg_tbl[][SRDS_MAX_LANES] = {
diff --git a/arch/powerpc/cpu/mpc85xx/t2080_ids.c b/arch/powerpc/cpu/mpc85xx/t2080_ids.c
index 17521dc3a4a8..f9cebd94fd0f 100644
--- a/arch/powerpc/cpu/mpc85xx/t2080_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/t2080_ids.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
+#include <linux/kernel.h>
#ifdef CONFIG_SYS_DPAA_QBMAN
struct qportal_info qp_info[CONFIG_SYS_QMAN_NUM_PORTALS] = {
diff --git a/arch/powerpc/cpu/mpc85xx/t2080_serdes.c b/arch/powerpc/cpu/mpc85xx/t2080_serdes.c
index ecf4f6e1a877..1e60b039efd3 100644
--- a/arch/powerpc/cpu/mpc85xx/t2080_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/t2080_serdes.c
@@ -7,6 +7,7 @@
#include <asm/fsl_serdes.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
#include "fsl_corenet2_serdes.h"
struct serdes_config {
diff --git a/arch/powerpc/cpu/mpc85xx/t4240_ids.c b/arch/powerpc/cpu/mpc85xx/t4240_ids.c
index 172dbdbe4649..75a017fe7745 100644
--- a/arch/powerpc/cpu/mpc85xx/t4240_ids.c
+++ b/arch/powerpc/cpu/mpc85xx/t4240_ids.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
+#include <linux/kernel.h>
#ifdef CONFIG_SYS_DPAA_QBMAN
struct qportal_info qp_info[CONFIG_SYS_QMAN_NUM_PORTALS] = {
diff --git a/arch/powerpc/cpu/mpc85xx/t4240_serdes.c b/arch/powerpc/cpu/mpc85xx/t4240_serdes.c
index 59f3e2285441..3eae06720070 100644
--- a/arch/powerpc/cpu/mpc85xx/t4240_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/t4240_serdes.c
@@ -6,6 +6,7 @@
#include <asm/fsl_serdes.h>
#include <asm/ppc.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include "fsl_corenet2_serdes.h"
struct serdes_config {
diff --git a/arch/powerpc/cpu/mpc85xx/tlb.c b/arch/powerpc/cpu/mpc85xx/tlb.c
index 522454631300..54b55248c14f 100644
--- a/arch/powerpc/cpu/mpc85xx/tlb.c
+++ b/arch/powerpc/cpu/mpc85xx/tlb.c
@@ -16,6 +16,7 @@
#ifdef CONFIG_ADDR_MAP
#include <addr_map.h>
#endif
+#include <linux/kernel.h>
#include <linux/log2.h>
diff --git a/arch/powerpc/cpu/mpc86xx/cpu.c b/arch/powerpc/cpu/mpc86xx/cpu.c
index a14214ecb868..498469750f95 100644
--- a/arch/powerpc/cpu/mpc86xx/cpu.c
+++ b/arch/powerpc/cpu/mpc86xx/cpu.c
@@ -20,6 +20,7 @@
#include <mpc86xx.h>
#include <asm/fsl_law.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/powerpc/cpu/mpc86xx/mpc8610_serdes.c b/arch/powerpc/cpu/mpc86xx/mpc8610_serdes.c
index 2f755ac2012a..e91ebe4b1db0 100644
--- a/arch/powerpc/cpu/mpc86xx/mpc8610_serdes.c
+++ b/arch/powerpc/cpu/mpc86xx/mpc8610_serdes.c
@@ -10,6 +10,7 @@
#include <asm/io.h>
#include <asm/immap_86xx.h>
#include <asm/fsl_serdes.h>
+#include <linux/kernel.h>
#define SRDS1_MAX_LANES 4
#define SRDS2_MAX_LANES 4
diff --git a/arch/powerpc/cpu/mpc86xx/mpc8641_serdes.c b/arch/powerpc/cpu/mpc86xx/mpc8641_serdes.c
index 1621fd116ddd..232f85c2ad9a 100644
--- a/arch/powerpc/cpu/mpc86xx/mpc8641_serdes.c
+++ b/arch/powerpc/cpu/mpc86xx/mpc8641_serdes.c
@@ -10,6 +10,7 @@
#include <asm/io.h>
#include <asm/immap_86xx.h>
#include <asm/fsl_serdes.h>
+#include <linux/kernel.h>
#define SRDS1_MAX_LANES 4
#define SRDS2_MAX_LANES 4
diff --git a/arch/powerpc/cpu/mpc8xxx/cpu.c b/arch/powerpc/cpu/mpc8xxx/cpu.c
index 4c9da0293045..e9ff1d2aaf9f 100644
--- a/arch/powerpc/cpu/mpc8xxx/cpu.c
+++ b/arch/powerpc/cpu/mpc8xxx/cpu.c
@@ -21,6 +21,7 @@
#include <asm/io.h>
#include <vsc9953.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/powerpc/cpu/mpc8xxx/law.c b/arch/powerpc/cpu/mpc8xxx/law.c
index 0fba380cd40e..91b736456070 100644
--- a/arch/powerpc/cpu/mpc8xxx/law.c
+++ b/arch/powerpc/cpu/mpc8xxx/law.c
@@ -14,6 +14,7 @@
#include <linux/compiler.h>
#include <asm/fsl_law.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include <linux/log2.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/powerpc/cpu/mpc8xxx/pamu_table.c b/arch/powerpc/cpu/mpc8xxx/pamu_table.c
index d917e9dfb62f..bf559d0f833c 100644
--- a/arch/powerpc/cpu/mpc8xxx/pamu_table.c
+++ b/arch/powerpc/cpu/mpc8xxx/pamu_table.c
@@ -7,6 +7,7 @@
#include <log.h>
#include <asm/fsl_pamu.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/powerpc/include/asm/arch-mpc83xx/soc.h b/arch/powerpc/include/asm/arch-mpc83xx/soc.h
index 39bf7d5a7f9d..7064d1f9d61a 100644
--- a/arch/powerpc/include/asm/arch-mpc83xx/soc.h
+++ b/arch/powerpc/include/asm/arch-mpc83xx/soc.h
@@ -7,6 +7,7 @@
#ifndef _MPC83XX_SOC_H_
#define _MPC83XX_SOC_H_
+#include <stdbool.h>
enum soc_type {
SOC_MPC8308,
SOC_MPC8309,
diff --git a/arch/powerpc/lib/bootm.c b/arch/powerpc/lib/bootm.c
index d72da1da2d28..f283c1a9a47d 100644
--- a/arch/powerpc/lib/bootm.c
+++ b/arch/powerpc/lib/bootm.c
@@ -21,6 +21,7 @@
#include <malloc.h>
#include <asm/global_data.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <u-boot/zlib.h>
#include <bzlib.h>
#include <asm/byteorder.h>
diff --git a/arch/riscv/cpu/cpu.c b/arch/riscv/cpu/cpu.c
index 53fc9455f75d..487329fa2f0f 100644
--- a/arch/riscv/cpu/cpu.c
+++ b/arch/riscv/cpu/cpu.c
@@ -8,6 +8,7 @@
#include <dm.h>
#include <init.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/encoding.h>
#include <dm/uclass-internal.h>
#include <linux/bitops.h>
diff --git a/arch/riscv/lib/cache.c b/arch/riscv/lib/cache.c
index b1d42bcc2bb8..4de634b4fbd5 100644
--- a/arch/riscv/lib/cache.c
+++ b/arch/riscv/lib/cache.c
@@ -5,6 +5,7 @@
*/
#include <common.h>
+#include <compiler.h>
#include <cpu_func.h>
void invalidate_icache_all(void)
diff --git a/arch/riscv/lib/fdt_fixup.c b/arch/riscv/lib/fdt_fixup.c
index f83f49c67762..1ed86a38c728 100644
--- a/arch/riscv/lib/fdt_fixup.c
+++ b/arch/riscv/lib/fdt_fixup.c
@@ -10,6 +10,7 @@
#include <fdt_support.h>
#include <log.h>
#include <mapmem.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <linux/string.h>
diff --git a/arch/riscv/lib/image.c b/arch/riscv/lib/image.c
index 88563331b33b..2f78b25807a4 100644
--- a/arch/riscv/lib/image.c
+++ b/arch/riscv/lib/image.c
@@ -10,6 +10,7 @@
#include <image.h>
#include <mapmem.h>
#include <errno.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <linux/errno.h>
diff --git a/arch/riscv/lib/interrupts.c b/arch/riscv/lib/interrupts.c
index 7a961f937aec..b510e7aea8f8 100644
--- a/arch/riscv/lib/interrupts.c
+++ b/arch/riscv/lib/interrupts.c
@@ -18,6 +18,7 @@
#include <asm/ptrace.h>
#include <asm/system.h>
#include <asm/encoding.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c
index e606d56f0121..f4cc363927d1 100644
--- a/arch/sandbox/cpu/cpu.c
+++ b/arch/sandbox/cpu/cpu.c
@@ -9,6 +9,7 @@
#include <dm.h>
#include <errno.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <linux/delay.h>
diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c
index 581a48ea9edb..cce8e911cc3e 100644
--- a/arch/sandbox/cpu/os.c
+++ b/arch/sandbox/cpu/os.c
@@ -9,6 +9,7 @@
#include <getopt.h>
#include <setjmp.h>
#include <signal.h>
+#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c
index 4cacd23d0cd8..c9e626100c60 100644
--- a/arch/sandbox/cpu/start.c
+++ b/arch/sandbox/cpu/start.c
@@ -20,6 +20,7 @@
#include <asm/state.h>
#include <linux/ctype.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/sandbox/cpu/state.c b/arch/sandbox/cpu/state.c
index 35bc7586fa57..849dfbd1d669 100644
--- a/arch/sandbox/cpu/state.c
+++ b/arch/sandbox/cpu/state.c
@@ -8,6 +8,7 @@
#include <fdtdec.h>
#include <log.h>
#include <os.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/malloc.h>
#include <asm/state.h>
diff --git a/arch/sandbox/include/asm/eth.h b/arch/sandbox/include/asm/eth.h
index b313bf57c63d..8c3c957b56fc 100644
--- a/arch/sandbox/include/asm/eth.h
+++ b/arch/sandbox/include/asm/eth.h
@@ -10,6 +10,7 @@
#define __ETH_H
#include <net.h>
+#include <stdbool.h>
void sandbox_eth_disable_response(int index, bool disable);
diff --git a/arch/sandbox/include/asm/sdl.h b/arch/sandbox/include/asm/sdl.h
index 2a98a7f49b2a..a14e0a8f8a21 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 <stdbool.h>
#include <linux/errno.h>
#ifdef CONFIG_SANDBOX_SDL
diff --git a/arch/sandbox/include/asm/test.h b/arch/sandbox/include/asm/test.h
index 7f99d07c47fc..6ac8c1a8288d 100644
--- a/arch/sandbox/include/asm/test.h
+++ b/arch/sandbox/include/asm/test.h
@@ -9,6 +9,7 @@
#define __ASM_TEST_H
/* The sandbox driver always permits an I2C device with this address */
+#include <stdbool.h>
#define SANDBOX_I2C_TEST_ADDR 0x59
#define SANDBOX_PCI_VENDOR_ID 0x1234
diff --git a/arch/x86/cpu/apollolake/fsp_bindings.c b/arch/x86/cpu/apollolake/fsp_bindings.c
index b9880b56a8b3..db9290f5312d 100644
--- a/arch/x86/cpu/apollolake/fsp_bindings.c
+++ b/arch/x86/cpu/apollolake/fsp_bindings.c
@@ -8,6 +8,7 @@
#include <log.h>
#include <asm/arch/fsp_bindings.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/**
diff --git a/arch/x86/cpu/apollolake/fsp_s.c b/arch/x86/cpu/apollolake/fsp_s.c
index c6da4bbfce64..433dcf08c778 100644
--- a/arch/x86/cpu/apollolake/fsp_s.c
+++ b/arch/x86/cpu/apollolake/fsp_s.c
@@ -29,6 +29,7 @@
#include <dm/uclass-internal.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#define PCH_P2SB_E0 0xe0
#define HIDE_BIT BIT(0)
diff --git a/arch/x86/cpu/apollolake/hostbridge.c b/arch/x86/cpu/apollolake/hostbridge.c
index cb46ec6c0bb8..99f1b441312c 100644
--- a/arch/x86/cpu/apollolake/hostbridge.c
+++ b/arch/x86/cpu/apollolake/hostbridge.c
@@ -12,6 +12,7 @@
#include <asm/intel_regs.h>
#include <asm/pci.h>
#include <asm/arch/systemagent.h>
+#include <linux/kernel.h>
/**
* struct apl_hostbridge_platdata - platform data for hostbridge
diff --git a/arch/x86/cpu/apollolake/lpc.c b/arch/x86/cpu/apollolake/lpc.c
index 1de8c4a98044..07a64502061a 100644
--- a/arch/x86/cpu/apollolake/lpc.c
+++ b/arch/x86/cpu/apollolake/lpc.c
@@ -14,6 +14,7 @@
#include <asm/arch/iomap.h>
#include <asm/arch/lpc.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/log2.h>
void lpc_enable_fixed_io_ranges(uint io_enables)
diff --git a/arch/x86/cpu/apollolake/pch.c b/arch/x86/cpu/apollolake/pch.c
index 1a5a985221f1..29ec955e19b5 100644
--- a/arch/x86/cpu/apollolake/pch.c
+++ b/arch/x86/cpu/apollolake/pch.c
@@ -7,6 +7,7 @@
#include <dm.h>
#include <pch.h>
#include <spl.h>
+#include <stdbool.h>
#include <asm/lpc_common.h>
#define BIOS_CTRL 0xdc
diff --git a/arch/x86/cpu/apollolake/pmc.c b/arch/x86/cpu/apollolake/pmc.c
index 83d165c0d9b0..8adc33bfd30e 100644
--- a/arch/x86/cpu/apollolake/pmc.c
+++ b/arch/x86/cpu/apollolake/pmc.c
@@ -17,6 +17,7 @@
#include <asm/io.h>
#include <asm/pci.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <power/acpi_pmc.h>
diff --git a/arch/x86/cpu/apollolake/spl.c b/arch/x86/cpu/apollolake/spl.c
index 44cbe4590a71..618b20add162 100644
--- a/arch/x86/cpu/apollolake/spl.c
+++ b/arch/x86/cpu/apollolake/spl.c
@@ -13,6 +13,7 @@
#include <spi.h>
#include <spl.h>
#include <spi_flash.h>
+#include <stdbool.h>
#include <asm/fast_spi.h>
#include <asm/spl.h>
#include <asm/arch/cpu.h>
diff --git a/arch/x86/cpu/broadwell/adsp.c b/arch/x86/cpu/broadwell/adsp.c
index f5ae97c88ce0..beab06dee95d 100644
--- a/arch/x86/cpu/broadwell/adsp.c
+++ b/arch/x86/cpu/broadwell/adsp.c
@@ -13,6 +13,7 @@
#include <dm.h>
#include <log.h>
#include <pci.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <asm/cpu.h>
#include <asm/intel_regs.h>
diff --git a/arch/x86/cpu/broadwell/cpu_full.c b/arch/x86/cpu/broadwell/cpu_full.c
index 5fb6af3a3872..daf17af3b151 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 <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 9805f8dbed48..68c57f4f18a4 100644
--- a/arch/x86/cpu/broadwell/iobp.c
+++ b/arch/x86/cpu/broadwell/iobp.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <errno.h>
#include <stdio.h>
+#include <stdbool.h>
#include <asm/intel_regs.h>
#include <asm/io.h>
#include <asm/arch/pch.h>
diff --git a/arch/x86/cpu/broadwell/pch.c b/arch/x86/cpu/broadwell/pch.c
index 6a5d9dc345e9..f7f975983e6b 100644
--- a/arch/x86/cpu/broadwell/pch.c
+++ b/arch/x86/cpu/broadwell/pch.c
@@ -27,6 +27,7 @@
#include <dm/uclass-internal.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#define BIOS_CTRL 0xdc
diff --git a/arch/x86/cpu/broadwell/pinctrl_broadwell.c b/arch/x86/cpu/broadwell/pinctrl_broadwell.c
index 332d45fd088a..0bb28739fdc6 100644
--- a/arch/x86/cpu/broadwell/pinctrl_broadwell.c
+++ b/arch/x86/cpu/broadwell/pinctrl_broadwell.c
@@ -20,6 +20,7 @@
#include <dm/pinctrl.h>
#include <dm/uclass-internal.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/cpu/coreboot/sdram.c b/arch/x86/cpu/coreboot/sdram.c
index cd8500827374..b8b803f643d7 100644
--- a/arch/x86/cpu/coreboot/sdram.c
+++ b/arch/x86/cpu/coreboot/sdram.c
@@ -12,6 +12,7 @@
#include <asm/e820.h>
#include <asm/arch/sysinfo.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index cd1a6832cb2d..ff4916431b4c 100644
--- a/arch/x86/cpu/cpu.c
+++ b/arch/x86/cpu/cpu.c
@@ -50,6 +50,7 @@
#include <asm/tables.h>
#include <linux/compiler.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/cpu/i386/cpu.c b/arch/x86/cpu/i386/cpu.c
index 6ac70c9ec9a8..ddb656f0fda5 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 <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/cpu/intel_common/cpu.c b/arch/x86/cpu/intel_common/cpu.c
index a292dd72a888..b5d907126af9 100644
--- a/arch/x86/cpu/intel_common/cpu.c
+++ b/arch/x86/cpu/intel_common/cpu.c
@@ -12,6 +12,7 @@
#include <dm.h>
#include <errno.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/cpu.h>
#include <asm/cpu_common.h>
diff --git a/arch/x86/cpu/intel_common/itss.c b/arch/x86/cpu/intel_common/itss.c
index cc9111d7fc5a..732a4b4c4f43 100644
--- a/arch/x86/cpu/intel_common/itss.c
+++ b/arch/x86/cpu/intel_common/itss.c
@@ -20,6 +20,7 @@
#include <asm/global_data.h>
#include <asm/itss.h>
#include <linux/errno.h>
+#include <linux/kernel.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 eda4e58d608f..7eaea5c77c82 100644
--- a/arch/x86/cpu/intel_common/lpc.c
+++ b/arch/x86/cpu/intel_common/lpc.c
@@ -15,6 +15,7 @@
#include <asm/lpc_common.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/cpu/intel_common/me_status.c b/arch/x86/cpu/intel_common/me_status.c
index abc5f6fbc77b..2557a9b26659 100644
--- a/arch/x86/cpu/intel_common/me_status.c
+++ b/arch/x86/cpu/intel_common/me_status.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <log.h>
#include <asm/arch/me.h>
+#include <linux/kernel.h>
/* HFS1[3:0] Current Working State Values */
static const char *const me_cws_values[] = {
diff --git a/arch/x86/cpu/intel_common/mrc.c b/arch/x86/cpu/intel_common/mrc.c
index f9380015139b..a6e099f6e14b 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 <linux/errno.h>
+#include <linux/kernel.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 8b62cc5d7be0..53e2f21df965 100644
--- a/arch/x86/cpu/intel_common/p2sb.c
+++ b/arch/x86/cpu/intel_common/p2sb.c
@@ -16,6 +16,7 @@
#include <asm/pci.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#define PCH_P2SB_E0 0xe0
#define HIDE_BIT BIT(0)
diff --git a/arch/x86/cpu/intel_common/report_platform.c b/arch/x86/cpu/intel_common/report_platform.c
index 2de29bbbe25e..9502b145490d 100644
--- a/arch/x86/cpu/intel_common/report_platform.c
+++ b/arch/x86/cpu/intel_common/report_platform.c
@@ -11,6 +11,7 @@
#include <asm/pci.h>
#include <asm/report_platform.h>
#include <asm/arch/pch.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static void report_cpu_info(void)
diff --git a/arch/x86/cpu/irq.c b/arch/x86/cpu/irq.c
index 547eedfbb859..920a799ec8e9 100644
--- a/arch/x86/cpu/irq.c
+++ b/arch/x86/cpu/irq.c
@@ -10,6 +10,7 @@
#include <irq.h>
#include <log.h>
#include <malloc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/arch/x86/cpu/ivybridge/bd82x6x.c b/arch/x86/cpu/ivybridge/bd82x6x.c
index fefea448ade0..7df278ddbc43 100644
--- a/arch/x86/cpu/ivybridge/bd82x6x.c
+++ b/arch/x86/cpu/ivybridge/bd82x6x.c
@@ -9,6 +9,7 @@
#include <log.h>
#include <malloc.h>
#include <pch.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/cpu.h>
#include <asm/global_data.h>
diff --git a/arch/x86/cpu/ivybridge/lpc.c b/arch/x86/cpu/ivybridge/lpc.c
index a579eb3b38e2..57c844359822 100644
--- a/arch/x86/cpu/ivybridge/lpc.c
+++ b/arch/x86/cpu/ivybridge/lpc.c
@@ -22,6 +22,7 @@
#include <asm/pci.h>
#include <asm/arch/pch.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/cpu/ivybridge/model_206ax.c b/arch/x86/cpu/ivybridge/model_206ax.c
index e11aa0001c48..087754a1dd99 100644
--- a/arch/x86/cpu/ivybridge/model_206ax.c
+++ b/arch/x86/cpu/ivybridge/model_206ax.c
@@ -24,6 +24,7 @@
#include <asm/turbo.h>
#include <asm/arch/model_206ax.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c
index 1a34c2f03756..7bf3935ba94a 100644
--- a/arch/x86/cpu/mp_init.c
+++ b/arch/x86/cpu/mp_init.c
@@ -32,6 +32,7 @@
#include <dm/root.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/linkage.h>
#include <linux/string.h>
diff --git a/arch/x86/cpu/mtrr.c b/arch/x86/cpu/mtrr.c
index fd86a4e105b2..da1f08eff819 100644
--- a/arch/x86/cpu/mtrr.c
+++ b/arch/x86/cpu/mtrr.c
@@ -19,6 +19,7 @@
#include <common.h>
#include <cpu_func.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/cache.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/arch/x86/cpu/qemu/qemu.c b/arch/x86/cpu/qemu/qemu.c
index 044a429c13fb..5e431f21976d 100644
--- a/arch/x86/cpu/qemu/qemu.c
+++ b/arch/x86/cpu/qemu/qemu.c
@@ -8,6 +8,7 @@
#include <init.h>
#include <pci.h>
#include <qfw.h>
+#include <stdbool.h>
#include <asm/irq.h>
#include <asm/post.h>
#include <asm/processor.h>
diff --git a/arch/x86/cpu/quark/mrc.c b/arch/x86/cpu/quark/mrc.c
index b55933ff9e55..7e8f31fb6b7c 100644
--- a/arch/x86/cpu/quark/mrc.c
+++ b/arch/x86/cpu/quark/mrc.c
@@ -37,6 +37,7 @@
#include <asm/u-boot-x86.h>
#include <asm/arch/mrc.h>
#include <asm/arch/msg_port.h>
+#include <linux/kernel.h>
#include "mrc_util.h"
#include "smc.h"
diff --git a/arch/x86/cpu/quark/mrc_util.c b/arch/x86/cpu/quark/mrc_util.c
index ce56c54279e9..50fcd977bb41 100644
--- a/arch/x86/cpu/quark/mrc_util.c
+++ b/arch/x86/cpu/quark/mrc_util.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <hang.h>
+#include <stdbool.h>
#include <asm/u-boot-x86.h>
#include <asm/arch/device.h>
#include <asm/arch/mrc.h>
diff --git a/arch/x86/cpu/quark/mrc_util.h b/arch/x86/cpu/quark/mrc_util.h
index e6e69c49d094..f4e3e87b6c37 100644
--- a/arch/x86/cpu/quark/mrc_util.h
+++ b/arch/x86/cpu/quark/mrc_util.h
@@ -11,6 +11,7 @@
#define _MRC_UTIL_H_
#include <log.h>
+#include <stdbool.h>
/* Turn on this macro to enable MRC debugging output */
#undef MRC_DEBUG
diff --git a/arch/x86/cpu/quark/smc.c b/arch/x86/cpu/quark/smc.c
index b6167e934aa5..c95c09a67bad 100644
--- a/arch/x86/cpu/quark/smc.c
+++ b/arch/x86/cpu/quark/smc.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <pci.h>
+#include <stdbool.h>
#include <asm/u-boot-x86.h>
#include <asm/arch/device.h>
#include <asm/arch/mrc.h>
diff --git a/arch/x86/cpu/slimbootloader/sdram.c b/arch/x86/cpu/slimbootloader/sdram.c
index 94d117e516ea..2c7be397adbb 100644
--- a/arch/x86/cpu/slimbootloader/sdram.c
+++ b/arch/x86/cpu/slimbootloader/sdram.c
@@ -7,6 +7,7 @@
#include <init.h>
#include <vsprintf.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <asm/e820.h>
#include <asm/arch/slimbootloader.h>
diff --git a/arch/x86/cpu/tangier/pinmux.c b/arch/x86/cpu/tangier/pinmux.c
index aba74a083d7f..41ad198a0609 100644
--- a/arch/x86/cpu/tangier/pinmux.c
+++ b/arch/x86/cpu/tangier/pinmux.c
@@ -14,6 +14,7 @@
#include <asm/scu.h>
#include <linux/errno.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#define BUFCFG_OFFSET 0x100
diff --git a/arch/x86/include/asm/arch-apollolake/fsp_bindings.h b/arch/x86/include/asm/arch-apollolake/fsp_bindings.h
index a80e66bbfa64..7a3060d4b46d 100644
--- a/arch/x86/include/asm/arch-apollolake/fsp_bindings.h
+++ b/arch/x86/include/asm/arch-apollolake/fsp_bindings.h
@@ -9,6 +9,7 @@
#include <asm/arch/fsp/fsp_m_upd.h>
#include <asm/arch/fsp/fsp_s_upd.h>
+#include <linux/kernel.h>
#define ARRAY_SIZE_OF_MEMBER(s, m) (ARRAY_SIZE((((s *)0)->m)))
#define SIZE_OF_MEMBER(s, m) (sizeof((((s *)0)->m)))
diff --git a/arch/x86/include/asm/arch-broadwell/gpio.h b/arch/x86/include/asm/arch-broadwell/gpio.h
index a32e2db47e16..b5dd5ab4e7f8 100644
--- a/arch/x86/include/asm/arch-broadwell/gpio.h
+++ b/arch/x86/include/asm/arch-broadwell/gpio.h
@@ -8,6 +8,7 @@
#ifndef __ASM_ARCH_GPIO
#define __ASM_ARCH_GPIO
+#include <linux/kernel.h>
#define GPIO_PER_BANK 32
#define GPIO_BANKS 3
diff --git a/arch/x86/include/asm/arch-broadwell/pch.h b/arch/x86/include/asm/arch-broadwell/pch.h
index ecdf6d16f942..6b6f10ec6c86 100644
--- a/arch/x86/include/asm/arch-broadwell/pch.h
+++ b/arch/x86/include/asm/arch-broadwell/pch.h
@@ -6,6 +6,8 @@
#ifndef __ASM_ARCH_PCH_H
#define __ASM_ARCH_PCH_H
+#include <stdbool.h>
+
#define PMBASE 0x40
#define ACPI_CNTL 0x44
#define ACPI_EN (1 << 7)
diff --git a/arch/x86/include/asm/arch-ivybridge/model_206ax.h b/arch/x86/include/asm/arch-ivybridge/model_206ax.h
index 5c066294bc23..d2d28746974f 100644
--- a/arch/x86/include/asm/arch-ivybridge/model_206ax.h
+++ b/arch/x86/include/asm/arch-ivybridge/model_206ax.h
@@ -8,6 +8,7 @@
#ifndef _ASM_ARCH_MODEL_206AX_H
#define _ASM_ARCH_MODEL_206AX_H
+#include <stdbool.h>
#define CPUID_VMX (1 << 5)
#define CPUID_SMX (1 << 6)
#define MSR_FEATURE_CONFIG 0x13c
diff --git a/arch/x86/include/asm/bootm.h b/arch/x86/include/asm/bootm.h
index bd8ce55729c0..231d11340caf 100644
--- a/arch/x86/include/asm/bootm.h
+++ b/arch/x86/include/asm/bootm.h
@@ -6,6 +6,7 @@
#ifndef ARM_BOOTM_H
#define ARM_BOOTM_H
+#include <stdbool.h>
void bootm_announce_and_cleanup(void);
/**
diff --git a/arch/x86/include/asm/cpu_common.h b/arch/x86/include/asm/cpu_common.h
index 4a782a22956d..67d150b8d915 100644
--- a/arch/x86/include/asm/cpu_common.h
+++ b/arch/x86/include/asm/cpu_common.h
@@ -8,6 +8,8 @@
#ifndef __ASM_CPU_COMMON_H
#define __ASM_CPU_COMMON_H
+#include <stdbool.h>
+
/* Standard Intel bus clock is fixed at 100MHz */
enum {
INTEL_BCLK_MHZ = 100
diff --git a/arch/x86/include/asm/fast_spi.h b/arch/x86/include/asm/fast_spi.h
index 82e3d8f63ef1..ed436a891135 100644
--- a/arch/x86/include/asm/fast_spi.h
+++ b/arch/x86/include/asm/fast_spi.h
@@ -8,6 +8,7 @@
#include <pci.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
/* Register offsets from the MMIO region base (PCI_BASE_ADDRESS_0) */
struct fast_spi_regs {
diff --git a/arch/x86/include/asm/fsp2/fsp_api.h b/arch/x86/include/asm/fsp2/fsp_api.h
index af1e8857b97d..16ffb1922cda 100644
--- a/arch/x86/include/asm/fsp2/fsp_api.h
+++ b/arch/x86/include/asm/fsp2/fsp_api.h
@@ -9,6 +9,7 @@
#ifndef __ASM_FSP2_API_H
#define __ASM_FSP2_API_H
+#include <stdbool.h>
#include <asm/fsp/fsp_api.h>
struct fspm_upd;
diff --git a/arch/x86/include/asm/fsp2/fsp_internal.h b/arch/x86/include/asm/fsp2/fsp_internal.h
index b4a4fbbd84d2..720d677c05d5 100644
--- a/arch/x86/include/asm/fsp2/fsp_internal.h
+++ b/arch/x86/include/asm/fsp2/fsp_internal.h
@@ -8,6 +8,7 @@
#ifndef __ASM_FSP_INTERNAL_H
#define __ASM_FSP_INTERNAL_H
+#include <stdbool.h>
struct binman_entry;
struct fsp_header;
struct fspm_upd;
diff --git a/arch/x86/include/asm/global_data.h b/arch/x86/include/asm/global_data.h
index 3e4044593c87..7fcd21ee2d53 100644
--- a/arch/x86/include/asm/global_data.h
+++ b/arch/x86/include/asm/global_data.h
@@ -9,6 +9,7 @@
#ifndef __ASSEMBLY__
+#include <stdbool.h>
#include <asm/processor.h>
#include <asm/mrccache.h>
diff --git a/arch/x86/include/asm/hob.h b/arch/x86/include/asm/hob.h
index 56e11dbb28f0..a58f422de72d 100644
--- a/arch/x86/include/asm/hob.h
+++ b/arch/x86/include/asm/hob.h
@@ -9,6 +9,7 @@
#include <efi.h>
#include <efi_loader.h>
+#include <stdbool.h>
/* Type of HOB Header */
#define HOB_TYPE_MEM_ALLOC 0x0002
diff --git a/arch/x86/include/asm/intel_pinctrl.h b/arch/x86/include/asm/intel_pinctrl.h
index 00868d17258e..bae5d22b8838 100644
--- a/arch/x86/include/asm/intel_pinctrl.h
+++ b/arch/x86/include/asm/intel_pinctrl.h
@@ -9,6 +9,7 @@
#ifndef __ASM_INTEL_PINCTRL_H
#define __ASM_INTEL_PINCTRL_H
+#include <stdbool.h>
#include <dm/pinctrl.h>
#include <linux/bitops.h>
diff --git a/arch/x86/include/asm/interrupt.h b/arch/x86/include/asm/interrupt.h
index fdeb85711323..d54295989e4b 100644
--- a/arch/x86/include/asm/interrupt.h
+++ b/arch/x86/include/asm/interrupt.h
@@ -10,6 +10,7 @@
#ifndef __ASM_INTERRUPT_H_
#define __ASM_INTERRUPT_H_ 1
+#include <stdbool.h>
#include <asm/types.h>
#define SYS_NUM_IRQS 16
diff --git a/arch/x86/include/asm/irq.h b/arch/x86/include/asm/irq.h
index bee0760c2d28..e7533925f29c 100644
--- a/arch/x86/include/asm/irq.h
+++ b/arch/x86/include/asm/irq.h
@@ -6,6 +6,7 @@
#ifndef _ARCH_IRQ_H_
#define _ARCH_IRQ_H_
+#include <stdbool.h>
#include <dt-bindings/interrupt-router/intel-irq.h>
/**
diff --git a/arch/x86/include/asm/itss.h b/arch/x86/include/asm/itss.h
index f7d32403849f..7b63b8435fe3 100644
--- a/arch/x86/include/asm/itss.h
+++ b/arch/x86/include/asm/itss.h
@@ -11,6 +11,7 @@
#ifndef _ASM_ARCH_ITSS_H
#define _ASM_ARCH_ITSS_H
+#include <linux/kernel.h>
#define GPIO_IRQ_START 50
#define GPIO_IRQ_END ITSS_MAX_IRQ
diff --git a/arch/x86/include/asm/lpc_common.h b/arch/x86/include/asm/lpc_common.h
index d462c2ec6100..2dd19a3d6cfc 100644
--- a/arch/x86/include/asm/lpc_common.h
+++ b/arch/x86/include/asm/lpc_common.h
@@ -6,6 +6,7 @@
#ifndef __ASM_LPC_COMMON_H
#define __ASM_LPC_COMMON_H
+#include <stdbool.h>
#define PCH_RCBA_BASE 0xf0
#define RC 0x3400 /* 32bit */
diff --git a/arch/x86/include/asm/mrc_common.h b/arch/x86/include/asm/mrc_common.h
index d4e56bf37c1f..f060389f7890 100644
--- a/arch/x86/include/asm/mrc_common.h
+++ b/arch/x86/include/asm/mrc_common.h
@@ -6,6 +6,7 @@
#ifndef __ASM_MRC_COMMON_H
#define __ASM_MRC_COMMON_H
+#include <stdbool.h>
#include <linux/linkage.h>
/**
diff --git a/arch/x86/include/asm/mrccache.h b/arch/x86/include/asm/mrccache.h
index b60d1171f771..8b104a2f0b8e 100644
--- a/arch/x86/include/asm/mrccache.h
+++ b/arch/x86/include/asm/mrccache.h
@@ -7,6 +7,8 @@
#ifndef _ASM_MRCCACHE_H
#define _ASM_MRCCACHE_H
+#include <compiler.h>
+
#define MRC_DATA_ALIGN 0x100
#define MRC_DATA_SIGNATURE (('M' << 0) | ('R' << 8) | \
('C' << 16) | ('D'<<24))
diff --git a/arch/x86/include/asm/mtrr.h b/arch/x86/include/asm/mtrr.h
index 48db1dd82f73..73edb4d86d32 100644
--- a/arch/x86/include/asm/mtrr.h
+++ b/arch/x86/include/asm/mtrr.h
@@ -9,6 +9,7 @@
#define _ASM_MTRR_H
/* MTRR region types */
+#include <stdbool.h>
#define MTRR_TYPE_UNCACHEABLE 0
#define MTRR_TYPE_WRCOMB 1
#define MTRR_TYPE_WRTHROUGH 4
diff --git a/arch/x86/include/asm/pirq_routing.h b/arch/x86/include/asm/pirq_routing.h
index 67e5c447ab95..895fa793ef4d 100644
--- a/arch/x86/include/asm/pirq_routing.h
+++ b/arch/x86/include/asm/pirq_routing.h
@@ -18,6 +18,7 @@
*
* CAUTION: If you change this, PIRQ routing will not work correctly.
*/
+#include <stdbool.h>
#define MAX_INTX_ENTRIES 4
#define PIRQ_SIGNATURE \
diff --git a/arch/x86/include/asm/pmu.h b/arch/x86/include/asm/pmu.h
index b76bdf64a309..13052771492b 100644
--- a/arch/x86/include/asm/pmu.h
+++ b/arch/x86/include/asm/pmu.h
@@ -5,6 +5,7 @@
#ifndef _X86_ASM_PMU_IPC_H_
#define _X86_ASM_PMU_IPC_H_
+#include <stdbool.h>
int pmu_turn_power(unsigned int lss, bool on);
#endif /* _X86_ASM_PMU_IPC_H_ */
diff --git a/arch/x86/lib/acpi_nhlt.c b/arch/x86/lib/acpi_nhlt.c
index 83f110ebba80..f21d3e32b579 100644
--- a/arch/x86/lib/acpi_nhlt.c
+++ b/arch/x86/lib/acpi_nhlt.c
@@ -18,6 +18,7 @@
#include <asm/unaligned.h>
#include <dm/acpi.h>
#include <linux/errno.h>
+#include <linux/kernel.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 2de8ad0d6f45..db1840068302 100644
--- a/arch/x86/lib/acpi_table.c
+++ b/arch/x86/lib/acpi_table.c
@@ -27,6 +27,7 @@
#include <dm/acpi.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/*
diff --git a/arch/x86/lib/bootm.c b/arch/x86/lib/bootm.c
index 66fc8a69aaa4..0b20cdc16aba 100644
--- a/arch/x86/lib/bootm.c
+++ b/arch/x86/lib/bootm.c
@@ -12,6 +12,7 @@
#include <command.h>
#include <hang.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/u-boot.h>
diff --git a/arch/x86/lib/coreboot_table.c b/arch/x86/lib/coreboot_table.c
index b0377dcee177..f4736ecfc45a 100644
--- a/arch/x86/lib/coreboot_table.c
+++ b/arch/x86/lib/coreboot_table.c
@@ -11,6 +11,7 @@
#include <asm/coreboot_tables.h>
#include <asm/e820.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/lib/e820.c b/arch/x86/lib/e820.c
index 12fcff123805..066bf9b154ba 100644
--- a/arch/x86/lib/e820.c
+++ b/arch/x86/lib/e820.c
@@ -7,6 +7,7 @@
#include <efi_loader.h>
#include <asm/e820.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/lib/fsp/fsp_dram.c b/arch/x86/lib/fsp/fsp_dram.c
index 9b796ba4f4ea..e73597567a48 100644
--- a/arch/x86/lib/fsp/fsp_dram.c
+++ b/arch/x86/lib/fsp/fsp_dram.c
@@ -13,6 +13,7 @@
#include <asm/mrccache.h>
#include <asm/mtrr.h>
#include <asm/post.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/lib/fsp2/fsp_dram.c b/arch/x86/lib/fsp2/fsp_dram.c
index e81b35d8d72e..aae75ea1573d 100644
--- a/arch/x86/lib/fsp2/fsp_dram.c
+++ b/arch/x86/lib/fsp2/fsp_dram.c
@@ -9,6 +9,7 @@
#include <init.h>
#include <log.h>
#include <spl.h>
+#include <stdbool.h>
#include <acpi/acpi_s3.h>
#include <asm/arch/cpu.h>
#include <asm/fsp/fsp_support.h>
diff --git a/arch/x86/lib/fsp2/fsp_init.c b/arch/x86/lib/fsp2/fsp_init.c
index 31702b90fd74..eef321d62086 100644
--- a/arch/x86/lib/fsp2/fsp_init.c
+++ b/arch/x86/lib/fsp2/fsp_init.c
@@ -14,6 +14,7 @@
#include <spi.h>
#include <spl.h>
#include <spi_flash.h>
+#include <stdbool.h>
#include <asm/intel_pinctrl.h>
#include <dm/uclass-internal.h>
#include <asm/fsp2/fsp_internal.h>
diff --git a/arch/x86/lib/fsp2/fsp_meminit.c b/arch/x86/lib/fsp2/fsp_meminit.c
index 5dfaf73b12a8..dd3569895ff3 100644
--- a/arch/x86/lib/fsp2/fsp_meminit.c
+++ b/arch/x86/lib/fsp2/fsp_meminit.c
@@ -11,6 +11,7 @@
#include <bootstage.h>
#include <dm.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/mrccache.h>
diff --git a/arch/x86/lib/fsp2/fsp_silicon_init.c b/arch/x86/lib/fsp2/fsp_silicon_init.c
index 7d83ae2a1cb7..4ab49c5fe6fe 100644
--- a/arch/x86/lib/fsp2/fsp_silicon_init.c
+++ b/arch/x86/lib/fsp2/fsp_silicon_init.c
@@ -13,6 +13,7 @@
#include <bootstage.h>
#include <dm.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/arch/fsp/fsp_configs.h>
#include <asm/arch/fsp/fsp_s_upd.h>
#include <asm/fsp/fsp_infoheader.h>
diff --git a/arch/x86/lib/fsp2/fsp_support.c b/arch/x86/lib/fsp2/fsp_support.c
index b962487418b9..f597f7522136 100644
--- a/arch/x86/lib/fsp2/fsp_support.c
+++ b/arch/x86/lib/fsp2/fsp_support.c
@@ -12,6 +12,7 @@
#include <asm/fsp2/fsp_internal.h>
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/* The amount of the FSP header to probe to obtain what we need */
diff --git a/arch/x86/lib/i8259.c b/arch/x86/lib/i8259.c
index a0e3c0925738..c002d103aef3 100644
--- a/arch/x86/lib/i8259.c
+++ b/arch/x86/lib/i8259.c
@@ -15,6 +15,7 @@
#include <common.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <asm/i8259.h>
#include <asm/ibmpc.h>
diff --git a/arch/x86/lib/init_helpers.c b/arch/x86/lib/init_helpers.c
index 066dc404a2d8..6d61077f177b 100644
--- a/arch/x86/lib/init_helpers.c
+++ b/arch/x86/lib/init_helpers.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <init.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <linux/errno.h>
#include <asm/mtrr.h>
diff --git a/arch/x86/lib/mpspec.c b/arch/x86/lib/mpspec.c
index bda9b7f1a112..17568a03d5c8 100644
--- a/arch/x86/lib/mpspec.c
+++ b/arch/x86/lib/mpspec.c
@@ -20,6 +20,7 @@
#include <asm/tables.h>
#include <dm/uclass-internal.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/lib/mrccache.c b/arch/x86/lib/mrccache.c
index 0488a261c654..63aace5d4fb8 100644
--- a/arch/x86/lib/mrccache.c
+++ b/arch/x86/lib/mrccache.c
@@ -21,6 +21,7 @@
#include <dm/device-internal.h>
#include <dm/uclass-internal.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/lib/physmem.c b/arch/x86/lib/physmem.c
index 1589a8873506..71039589dfdf 100644
--- a/arch/x86/lib/physmem.c
+++ b/arch/x86/lib/physmem.c
@@ -14,6 +14,7 @@
#include <asm/cpu.h>
#include <asm/global_data.h>
#include <linux/compiler.h>
+#include <linux/kernel.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 82de4cbdc431..53228cd2848b 100644
--- a/arch/x86/lib/pinctrl_ich6.c
+++ b/arch/x86/lib/pinctrl_ich6.c
@@ -10,6 +10,7 @@
#include <log.h>
#include <pch.h>
#include <pci.h>
+#include <stdbool.h>
#include <asm/cpu.h>
#include <asm/global_data.h>
#include <asm/gpio.h>
diff --git a/arch/x86/lib/pirq_routing.c b/arch/x86/lib/pirq_routing.c
index d99a90fb8269..3b5ee3837f84 100644
--- a/arch/x86/lib/pirq_routing.c
+++ b/arch/x86/lib/pirq_routing.c
@@ -12,6 +12,7 @@
#include <asm/global_data.h>
#include <asm/pci.h>
#include <asm/pirq_routing.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/arch/x86/lib/pmu.c b/arch/x86/lib/pmu.c
index 8f2649d9829b..314d9f0ecee5 100644
--- a/arch/x86/lib/pmu.c
+++ b/arch/x86/lib/pmu.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <dm.h>
#include <regmap.h>
+#include <stdbool.h>
#include <stdio.h>
#include <syscon.h>
#include <asm/cpu.h>
diff --git a/arch/x86/lib/sfi.c b/arch/x86/lib/sfi.c
index 13029fc08cbd..b85a1b17e84b 100644
--- a/arch/x86/lib/sfi.c
+++ b/arch/x86/lib/sfi.c
@@ -21,6 +21,7 @@
#include <asm/tables.h>
#include <dm/uclass-internal.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
struct table_info {
diff --git a/arch/x86/lib/tables.c b/arch/x86/lib/tables.c
index 6c1464f4fa4e..6fd0ded397d0 100644
--- a/arch/x86/lib/tables.c
+++ b/arch/x86/lib/tables.c
@@ -14,6 +14,7 @@
#include <asm/mpspec.h>
#include <asm/tables.h>
#include <asm/coreboot_tables.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/**
diff --git a/arch/x86/lib/zimage.c b/arch/x86/lib/zimage.c
index a13eb78e2224..5e413200268f 100644
--- a/arch/x86/lib/zimage.c
+++ b/arch/x86/lib/zimage.c
@@ -31,6 +31,7 @@
#endif
#include <linux/compiler.h>
#include <linux/errno.h>
+#include <linux/kernel.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 4e546adfc68a..b75e968ee1dc 100644
--- a/board/AndesTech/ax25-ae350/ax25-ae350.c
+++ b/board/AndesTech/ax25-ae350/ax25-ae350.c
@@ -20,6 +20,7 @@
#include <fdtdec.h>
#include <dm.h>
#include <spl.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/Arcturus/ucp1020/law.c b/board/Arcturus/ucp1020/law.c
index cb53692a32be..b2b4618b2275 100644
--- a/board/Arcturus/ucp1020/law.c
+++ b/board/Arcturus/ucp1020/law.c
@@ -10,6 +10,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
struct law_entry law_table[] = {
#ifdef CONFIG_VSC7385_ENET
diff --git a/board/Arcturus/ucp1020/tlb.c b/board/Arcturus/ucp1020/tlb.c
index 48035ff80270..0ae952f59293 100644
--- a/board/Arcturus/ucp1020/tlb.c
+++ b/board/Arcturus/ucp1020/tlb.c
@@ -9,6 +9,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/CZ.NIC/turris_mox/turris_mox.c b/board/CZ.NIC/turris_mox/turris_mox.c
index 9429806b673e..0c7926b5624e 100644
--- a/board/CZ.NIC/turris_mox/turris_mox.c
+++ b/board/CZ.NIC/turris_mox/turris_mox.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <stdarg.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/arch/cpu.h>
diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c
index a466c8e9f86f..6e950f45f05b 100644
--- a/board/CZ.NIC/turris_omnia/turris_omnia.c
+++ b/board/CZ.NIC/turris_omnia/turris_omnia.c
@@ -25,6 +25,7 @@
#include <time.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/crc.h>
# include <atsha204a-i2c.h>
diff --git a/board/CarMediaLab/flea3/flea3.c b/board/CarMediaLab/flea3/flea3.c
index a0322219d438..1be57c844c80 100644
--- a/board/CarMediaLab/flea3/flea3.c
+++ b/board/CarMediaLab/flea3/flea3.c
@@ -20,6 +20,7 @@
#include <asm/arch/crm_regs.h>
#include <asm/arch/iomux-mx35.h>
#include <i2c.h>
+#include <linux/kernel.h>
#include <linux/types.h>
#include <asm/gpio.h>
#include <asm/arch/sys_proto.h>
diff --git a/board/LaCie/net2big_v2/net2big_v2.c b/board/LaCie/net2big_v2/net2big_v2.c
index f3710681e51c..93de669f89d0 100644
--- a/board/LaCie/net2big_v2/net2big_v2.c
+++ b/board/LaCie/net2big_v2/net2big_v2.c
@@ -21,6 +21,7 @@
#include <asm/arch/soc.h>
#include <asm/arch/mpp.h>
#include <asm/arch/gpio.h>
+#include <linux/kernel.h>
#include "net2big_v2.h"
#include "../common/common.h"
diff --git a/board/Marvell/db-88f6820-amc/db-88f6820-amc.c b/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
index 62f59ecb7280..0fa0820d7be7 100644
--- a/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
+++ b/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
@@ -16,6 +16,7 @@
#include <asm/arch/soc.h>
#include <asm/u-boot.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include "../drivers/ddr/marvell/a38x/ddr3_init.h"
#include <../serdes/a38x/high_speed_env_spec.h>
diff --git a/board/Marvell/db-88f6820-gp/db-88f6820-gp.c b/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
index 8fbf78e6d8b6..b18ac9c2d0bc 100644
--- a/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
+++ b/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
@@ -16,6 +16,7 @@
#include <asm/arch/soc.h>
#include <asm/u-boot.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include "../drivers/ddr/marvell/a38x/ddr3_init.h"
#include <../serdes/a38x/high_speed_env_spec.h>
diff --git a/board/Synology/ds414/ds414.c b/board/Synology/ds414/ds414.c
index f4a940676e8a..1ca2e300e085 100644
--- a/board/Synology/ds414/ds414.c
+++ b/board/Synology/ds414/ds414.c
@@ -13,6 +13,7 @@
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <linux/mbus.h>
#include "../drivers/ddr/marvell/axp/ddr3_hw_training.h"
diff --git a/board/advantech/dms-ba16/dms-ba16.c b/board/advantech/dms-ba16/dms-ba16.c
index b59f42c6dafa..42bfa740f1b9 100644
--- a/board/advantech/dms-ba16/dms-ba16.c
+++ b/board/advantech/dms-ba16/dms-ba16.c
@@ -32,6 +32,7 @@
#include <i2c.h>
#include <input.h>
#include <pwm.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
#define NC_PAD_CTRL (PAD_CTL_PUS_100K_UP | \
diff --git a/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c b/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c
index 8cd1a1642497..430c7d3745d2 100644
--- a/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c
+++ b/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c
@@ -12,6 +12,7 @@
#include <stdio.h>
#include <asm/global_data.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <asm/io.h>
#include <asm/gpio.h>
diff --git a/board/advantech/imx8qm_rom7720_a1/spl.c b/board/advantech/imx8qm_rom7720_a1/spl.c
index 4d2f692b2940..8776a94ff079 100644
--- a/board/advantech/imx8qm_rom7720_a1/spl.c
+++ b/board/advantech/imx8qm_rom7720_a1/spl.c
@@ -12,6 +12,7 @@
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <asm/io.h>
diff --git a/board/alliedtelesis/x530/x530.c b/board/alliedtelesis/x530/x530.c
index dff8a6b886c3..f4ff0b960d32 100644
--- a/board/alliedtelesis/x530/x530.c
+++ b/board/alliedtelesis/x530/x530.c
@@ -15,6 +15,7 @@
#include <asm/gpio.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/mbus.h>
#include <linux/io.h>
#include <asm/arch/cpu.h>
diff --git a/board/aristainetos/aristainetos.c b/board/aristainetos/aristainetos.c
index f0c0b5d821c9..4451bed8a7dc 100644
--- a/board/aristainetos/aristainetos.c
+++ b/board/aristainetos/aristainetos.c
@@ -36,6 +36,7 @@
#include <miiphy.h>
#include <lcd.h>
#include <led.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <power/pmic.h>
#include <power/regulator.h>
diff --git a/board/armadeus/apf27/apf27.c b/board/armadeus/apf27/apf27.c
index 6536dd5fe9de..c78512ee5465 100644
--- a/board/armadeus/apf27/apf27.c
+++ b/board/armadeus/apf27/apf27.c
@@ -19,6 +19,7 @@
#include <asm/arch/gpio.h>
#include <asm/gpio.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <u-boot/crc.h>
#include "apf27.h"
#include "fpga.h"
diff --git a/board/armltd/vexpress/vexpress_tc2.c b/board/armltd/vexpress/vexpress_tc2.c
index f0bedda24a53..75f9d8203495 100644
--- a/board/armltd/vexpress/vexpress_tc2.c
+++ b/board/armltd/vexpress/vexpress_tc2.c
@@ -6,6 +6,7 @@
* TC2 specific code for Versatile Express.
*/
+#include <stdbool.h>
#include <stdio.h>
#include <asm/armv7.h>
#include <asm/io.h>
diff --git a/board/avionic-design/common/tamonten-ng.c b/board/avionic-design/common/tamonten-ng.c
index 29bde60228f9..1b509835d76a 100644
--- a/board/avionic-design/common/tamonten-ng.c
+++ b/board/avionic-design/common/tamonten-ng.c
@@ -11,6 +11,7 @@
#include <asm/arch/gp_padctrl.h>
#include <asm/arch/gpio.h>
#include <asm/gpio.h>
+#include <linux/kernel.h>
#include "pinmux-config-tamonten-ng.h"
#include <i2c.h>
diff --git a/board/bachmann/ot1200/ot1200.c b/board/bachmann/ot1200/ot1200.c
index ac9eba85180c..47b592117d5b 100644
--- a/board/bachmann/ot1200/ot1200.c
+++ b/board/bachmann/ot1200/ot1200.c
@@ -31,6 +31,7 @@
#include <phy.h>
#include <asm/u-boot.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/barco/platinum/platinum.c b/board/barco/platinum/platinum.c
index b98c577fbbac..03720a97d7d5 100644
--- a/board/barco/platinum/platinum.c
+++ b/board/barco/platinum/platinum.c
@@ -24,6 +24,7 @@
#include <asm/mach-imx/iomux-v3.h>
#include <asm/mach-imx/boot_mode.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include "platinum.h"
diff --git a/board/barco/platinum/platinum_picon.c b/board/barco/platinum/platinum_picon.c
index 3fc29f9e08c4..1eae9355bae0 100644
--- a/board/barco/platinum/platinum_picon.c
+++ b/board/barco/platinum/platinum_picon.c
@@ -15,6 +15,7 @@
#include <i2c.h>
#include <miiphy.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "platinum.h"
diff --git a/board/barco/platinum/platinum_titanium.c b/board/barco/platinum/platinum_titanium.c
index 9f7c93b4d540..b7d7c4e828b6 100644
--- a/board/barco/platinum/platinum_titanium.c
+++ b/board/barco/platinum/platinum_titanium.c
@@ -13,6 +13,7 @@
#include <miiphy.h>
#include <micrel.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "platinum.h"
diff --git a/board/barco/titanium/titanium.c b/board/barco/titanium/titanium.c
index 9cd88e2a72de..ae293ff42dcc 100644
--- a/board/barco/titanium/titanium.c
+++ b/board/barco/titanium/titanium.c
@@ -26,6 +26,7 @@
#include <netdev.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/beacon/imx8mm/spl.c b/board/beacon/imx8mm/spl.c
index 6307d689ab58..2895ca24a3a6 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 <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <dm/uclass.h>
diff --git a/board/beckhoff/mx53cx9020/mx53cx9020_video.c b/board/beckhoff/mx53cx9020/mx53cx9020_video.c
index bf4729025622..3be2cd5f0ff4 100644
--- a/board/beckhoff/mx53cx9020/mx53cx9020_video.c
+++ b/board/beckhoff/mx53cx9020/mx53cx9020_video.c
@@ -11,6 +11,7 @@
#include <asm/arch/iomux-mx53.h>
#include <asm/gpio.h>
#include <asm/mach-imx/video.h>
+#include <linux/kernel.h>
#define CX9020_DVI_PWD IMX_GPIO_NR(6, 1)
diff --git a/board/bluegiga/apx4devkit/spl_boot.c b/board/bluegiga/apx4devkit/spl_boot.c
index e5d5c4637b0c..d8ee1d0a63ec 100644
--- a/board/bluegiga/apx4devkit/spl_boot.c
+++ b/board/bluegiga/apx4devkit/spl_boot.c
@@ -20,6 +20,7 @@
#include <asm/arch/iomux-mx28.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
#define MUX_CONFIG_SSP0 (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP)
#define MUX_CONFIG_GPMI (MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_NOPULL)
diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c
index 79ba375cd2bc..c5a522aea256 100644
--- a/board/boundary/nitrogen6x/nitrogen6x.c
+++ b/board/boundary/nitrogen6x/nitrogen6x.c
@@ -38,6 +38,7 @@
#include <i2c.h>
#include <input.h>
#include <netdev.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <usb/ehci-ci.h>
diff --git a/board/ccv/xpress/xpress.c b/board/ccv/xpress/xpress.c
index c7476ba197c7..dfc71ba91bed 100644
--- a/board/ccv/xpress/xpress.c
+++ b/board/ccv/xpress/xpress.c
@@ -30,6 +30,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <usb/ehci-ci.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/cei/cei-tk1-som/cei-tk1-som.c b/board/cei/cei-tk1-som/cei-tk1-som.c
index 95ee7bbfe29a..c0b9a1e5db4d 100644
--- a/board/cei/cei-tk1-som/cei-tk1-som.c
+++ b/board/cei/cei-tk1-som/cei-tk1-som.c
@@ -5,6 +5,7 @@
*/
#include <common.h>
+#include <linux/kernel.h>
#include <power/as3722.h>
#include <asm/arch/gpio.h>
diff --git a/board/compulab/cl-som-imx7/mux.c b/board/compulab/cl-som-imx7/mux.c
index 18f16a48738c..4f316fe8b1d7 100644
--- a/board/compulab/cl-som-imx7/mux.c
+++ b/board/compulab/cl-som-imx7/mux.c
@@ -10,6 +10,7 @@
#include <common.h>
#include <asm/mach-imx/iomux-v3.h>
#include <asm/arch-mx7/mx7-pins.h>
+#include <linux/kernel.h>
#define PADS_SET(pads_array) \
void cl_som_imx7_##pads_array##_set(void) \
diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c
index e39768378f90..b3862fcf3a73 100644
--- a/board/compulab/cm_fx6/cm_fx6.c
+++ b/board/compulab/cm_fx6/cm_fx6.c
@@ -40,6 +40,7 @@
#include <jffs2/load_kernel.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "common.h"
#include "../common/eeprom.h"
diff --git a/board/compulab/cm_fx6/spl.c b/board/compulab/cm_fx6/spl.c
index 0dab1cbd60aa..a66e60162377 100644
--- a/board/compulab/cm_fx6/spl.c
+++ b/board/compulab/cm_fx6/spl.c
@@ -12,6 +12,7 @@
#include <hang.h>
#include <init.h>
#include <spl.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/io.h>
#include <asm/gpio.h>
diff --git a/board/compulab/cm_t43/spl.c b/board/compulab/cm_t43/spl.c
index 016c63a509a5..14a37b0f5689 100644
--- a/board/compulab/cm_t43/spl.c
+++ b/board/compulab/cm_t43/spl.c
@@ -11,6 +11,7 @@
#include <asm/arch/clock.h>
#include <asm/arch/ddr_defs.h>
#include <asm/gpio.h>
+#include <linux/kernel.h>
#include <power/pmic.h>
#include <power/tps65218.h>
#include "board.h"
diff --git a/board/compulab/common/omap3_display.c b/board/compulab/common/omap3_display.c
index 4b580b70fbec..61641aa83755 100644
--- a/board/compulab/common/omap3_display.c
+++ b/board/compulab/common/omap3_display.c
@@ -18,6 +18,7 @@
#include <lcd.h>
#include <scf0403_lcd.h>
#include <asm/arch-omap3/dss.h>
+#include <linux/kernel.h>
#include <linux/string.h>
enum display_type {
diff --git a/board/congatec/cgtqmx6eval/cgtqmx6eval.c b/board/congatec/cgtqmx6eval/cgtqmx6eval.c
index c857a73df742..6b37c27fabcd 100644
--- a/board/congatec/cgtqmx6eval/cgtqmx6eval.c
+++ b/board/congatec/cgtqmx6eval/cgtqmx6eval.c
@@ -32,6 +32,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <power/pmic.h>
#include <power/pfuze100_pmic.h>
diff --git a/board/corscience/tricorder/tricorder-eeprom.c b/board/corscience/tricorder/tricorder-eeprom.c
index 1a878397007f..e239eeea1457 100644
--- a/board/corscience/tricorder/tricorder-eeprom.c
+++ b/board/corscience/tricorder/tricorder-eeprom.c
@@ -11,6 +11,7 @@
#include <i2c.h>
#include <stdio.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/crc.h>
diff --git a/board/creative/xfi3/spl_boot.c b/board/creative/xfi3/spl_boot.c
index 64a13cef305c..dd31156e445f 100644
--- a/board/creative/xfi3/spl_boot.c
+++ b/board/creative/xfi3/spl_boot.c
@@ -11,6 +11,7 @@
#include <asm/arch/iomux-mx23.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define MUX_CONFIG_EMI (MXS_PAD_1V8 | MXS_PAD_12MA | MXS_PAD_PULLUP)
diff --git a/board/creative/xfi3/xfi3.c b/board/creative/xfi3/xfi3.c
index 3e7f7e6e1735..825a613aee4b 100644
--- a/board/creative/xfi3/xfi3.c
+++ b/board/creative/xfi3/xfi3.c
@@ -23,6 +23,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c
index 14f8f4d89a2f..8cc118cde5a4 100644
--- a/board/davinci/da8xxevm/da850evm.c
+++ b/board/davinci/da8xxevm/da850evm.c
@@ -30,6 +30,7 @@
#include <hwconfig.h>
#include <asm/mach-types.h>
#include <asm/gpio.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#ifdef CONFIG_MMC_DAVINCI
diff --git a/board/davinci/da8xxevm/omapl138_lcdk.c b/board/davinci/da8xxevm/omapl138_lcdk.c
index 3694a034b73a..30182d02805f 100644
--- a/board/davinci/da8xxevm/omapl138_lcdk.c
+++ b/board/davinci/da8xxevm/omapl138_lcdk.c
@@ -29,6 +29,7 @@
#include <mmc.h>
#include <asm/arch/sdmmc_defs.h>
#endif
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/dhelectronics/dh_stm32mp1/board.c b/board/dhelectronics/dh_stm32mp1/board.c
index 571168570e1a..3fdf69d14685 100644
--- a/board/dhelectronics/dh_stm32mp1/board.c
+++ b/board/dhelectronics/dh_stm32mp1/board.c
@@ -39,6 +39,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include <power/regulator.h>
diff --git a/board/ea/mx7ulp_com/mx7ulp_com.c b/board/ea/mx7ulp_com/mx7ulp_com.c
index 5b2d444366c7..61503a73bb00 100644
--- a/board/ea/mx7ulp_com/mx7ulp_com.c
+++ b/board/ea/mx7ulp_com/mx7ulp_com.c
@@ -11,6 +11,7 @@
#include <asm/arch/mx7ulp-pins.h>
#include <asm/arch/iomux.h>
#include <asm/gpio.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/el/el6x/el6x.c b/board/el/el6x/el6x.c
index 8272e1459d2a..952ec9dae101 100644
--- a/board/el/el6x/el6x.c
+++ b/board/el/el6x/el6x.c
@@ -33,6 +33,7 @@
#include <asm/arch/sys_proto.h>
#include <i2c.h>
#include <input.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <power/pmic.h>
#include <power/pfuze100_pmic.h>
diff --git a/board/embest/mx6boards/mx6boards.c b/board/embest/mx6boards/mx6boards.c
index 6bd0b10a9e1b..b6d29adc5f40 100644
--- a/board/embest/mx6boards/mx6boards.c
+++ b/board/embest/mx6boards/mx6boards.c
@@ -42,6 +42,7 @@
#include <linux/fb.h>
#include <ipu_pixfmt.h>
#include <asm/io.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/engicam/imx6q/imx6q.c b/board/engicam/imx6q/imx6q.c
index e6c888fcfde1..3405c7a09e41 100644
--- a/board/engicam/imx6q/imx6q.c
+++ b/board/engicam/imx6q/imx6q.c
@@ -6,6 +6,7 @@
*/
#include <common.h>
+#include <linux/kernel.h>
#include <asm/io.h>
#include <asm/gpio.h>
diff --git a/board/firefly/roc-pc-rk3399/roc-pc-rk3399.c b/board/firefly/roc-pc-rk3399/roc-pc-rk3399.c
index 7029bf7bf869..e0d90f5f0e62 100644
--- a/board/firefly/roc-pc-rk3399/roc-pc-rk3399.c
+++ b/board/firefly/roc-pc-rk3399/roc-pc-rk3399.c
@@ -8,6 +8,7 @@
#include <env.h>
#include <log.h>
#include <spl_gpio.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <linux/string.h>
#include <power/regulator.h>
diff --git a/board/freescale/common/arm_sleep.c b/board/freescale/common/arm_sleep.c
index 733940860f55..ddcab9f9eef9 100644
--- a/board/freescale/common/arm_sleep.c
+++ b/board/freescale/common/arm_sleep.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <asm/io.h>
#ifndef CONFIG_ARMV7_NONSEC
diff --git a/board/freescale/common/ics307_clk.c b/board/freescale/common/ics307_clk.c
index 2143395781a1..7a74239fb3a4 100644
--- a/board/freescale/common/ics307_clk.c
+++ b/board/freescale/common/ics307_clk.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <log.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include "ics307_clk.h"
diff --git a/board/freescale/common/mpc85xx_sleep.c b/board/freescale/common/mpc85xx_sleep.c
index d2bb173c1833..bfaf8eb2d6fd 100644
--- a/board/freescale/common/mpc85xx_sleep.c
+++ b/board/freescale/common/mpc85xx_sleep.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <asm/immap_85xx.h>
#include "sleep.h"
diff --git a/board/freescale/common/ns_access.c b/board/freescale/common/ns_access.c
index ee8ed616cb51..64eeb1159e76 100644
--- a/board/freescale/common/ns_access.c
+++ b/board/freescale/common/ns_access.c
@@ -10,6 +10,7 @@
#include <fsl_csu.h>
#include <asm/arch/ns_access.h>
#include <asm/arch/fsl_serdes.h>
+#include <linux/kernel.h>
#ifdef CONFIG_ARCH_LS1021A
static struct csu_ns_dev ns_dev[] = {
diff --git a/board/freescale/common/p_corenet/law.c b/board/freescale/common/p_corenet/law.c
index 603384ac4f9f..82de7c6f7e30 100644
--- a/board/freescale/common/p_corenet/law.c
+++ b/board/freescale/common/p_corenet/law.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
struct law_entry law_table[] = {
SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
diff --git a/board/freescale/common/p_corenet/tlb.c b/board/freescale/common/p_corenet/tlb.c
index 6ca3758b0691..9ceca01b1e54 100644
--- a/board/freescale/common/p_corenet/tlb.c
+++ b/board/freescale/common/p_corenet/tlb.c
@@ -8,6 +8,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/common/qixis.c b/board/freescale/common/qixis.c
index e1716676a4ab..ee42a53dae16 100644
--- a/board/freescale/common/qixis.c
+++ b/board/freescale/common/qixis.c
@@ -12,6 +12,7 @@
#include <stdio.h>
#include <asm/io.h>
#include <linux/compiler.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/time.h>
#include <i2c.h>
diff --git a/board/freescale/common/sleep.h b/board/freescale/common/sleep.h
index 1450baa07255..276b06101dd2 100644
--- a/board/freescale/common/sleep.h
+++ b/board/freescale/common/sleep.h
@@ -6,6 +6,7 @@
#ifndef __SLEEP_H
#define __SLEEP_H
+#include <stdbool.h>
#define DCFG_CCSR_CRSTSR_WDRFR (1 << 3)
#define DDR_BUFF_LEN 128
diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c
index 5f07d28e8ec4..f04bec05a419 100644
--- a/board/freescale/common/sys_eeprom.c
+++ b/board/freescale/common/sys_eeprom.c
@@ -15,6 +15,7 @@
#include <vsprintf.h>
#include <linux/ctype.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/crc.h>
diff --git a/board/freescale/common/vid.c b/board/freescale/common/vid.c
index 6b68d03cecef..f1ef3142c0c2 100644
--- a/board/freescale/common/vid.c
+++ b/board/freescale/common/vid.c
@@ -20,6 +20,7 @@
#include <asm/immap_85xx.h>
#endif
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "vid.h"
int __weak i2c_multiplexer_select_vid_channel(u8 channel)
diff --git a/board/freescale/imx8mm_evk/spl.c b/board/freescale/imx8mm_evk/spl.c
index c3224c66192b..ef4526a7dca3 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 <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <dm/uclass.h>
diff --git a/board/freescale/imx8mn_evk/spl.c b/board/freescale/imx8mn_evk/spl.c
index 1d5e95e62d85..bd732c226be5 100644
--- a/board/freescale/imx8mn_evk/spl.c
+++ b/board/freescale/imx8mn_evk/spl.c
@@ -21,6 +21,7 @@
#include <asm/arch/sys_proto.h>
#include <asm/mach-imx/boot_mode.h>
#include <asm/arch/ddr.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <dm/uclass.h>
diff --git a/board/freescale/imx8mp_evk/imx8mp_evk.c b/board/freescale/imx8mp_evk/imx8mp_evk.c
index 56da4d4c6a31..b9db31cd2bdf 100644
--- a/board/freescale/imx8mp_evk/imx8mp_evk.c
+++ b/board/freescale/imx8mp_evk/imx8mp_evk.c
@@ -13,6 +13,7 @@
#include <asm/arch/imx8mp_pins.h>
#include <asm/arch/sys_proto.h>
#include <asm/mach-imx/gpio.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/freescale/imx8mq_evk/imx8mq_evk.c b/board/freescale/imx8mq_evk/imx8mq_evk.c
index 93da67d77983..ecec63902904 100644
--- a/board/freescale/imx8mq_evk/imx8mq_evk.c
+++ b/board/freescale/imx8mq_evk/imx8mq_evk.c
@@ -23,6 +23,7 @@
#include <asm/arch/clock.h>
#include <spl.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <power/pmic.h>
#include <power/pfuze100_pmic.h>
#include "../common/pfuze.h"
diff --git a/board/freescale/imx8mq_evk/spl.c b/board/freescale/imx8mq_evk/spl.c
index 6a37467314cc..ccb8f44f115c 100644
--- a/board/freescale/imx8mq_evk/spl.c
+++ b/board/freescale/imx8mq_evk/spl.c
@@ -27,6 +27,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <power/pmic.h>
#include <power/pfuze100_pmic.h>
diff --git a/board/freescale/imx8qm_mek/imx8qm_mek.c b/board/freescale/imx8qm_mek/imx8qm_mek.c
index 4f0b0467da00..3aa6c2d7a23a 100644
--- a/board/freescale/imx8qm_mek/imx8qm_mek.c
+++ b/board/freescale/imx8qm_mek/imx8qm_mek.c
@@ -11,6 +11,7 @@
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
#include <asm/io.h>
diff --git a/board/freescale/imx8qxp_mek/imx8qxp_mek.c b/board/freescale/imx8qxp_mek/imx8qxp_mek.c
index 9b70813281be..f0220b131009 100644
--- a/board/freescale/imx8qxp_mek/imx8qxp_mek.c
+++ b/board/freescale/imx8qxp_mek/imx8qxp_mek.c
@@ -12,6 +12,7 @@
#include <asm/global_data.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <fsl_esdhc_imx.h>
#include <fdt_support.h>
diff --git a/board/freescale/imx8qxp_mek/spl.c b/board/freescale/imx8qxp_mek/spl.c
index 78d2856e3b43..5b3e87c25610 100644
--- a/board/freescale/imx8qxp_mek/spl.c
+++ b/board/freescale/imx8qxp_mek/spl.c
@@ -23,6 +23,7 @@
#include <asm/arch/imx8-pins.h>
#include <asm/arch/iomux.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/freescale/ls1012ardb/ls1012ardb.c b/board/freescale/ls1012ardb/ls1012ardb.c
index 1ca23aef0ebf..8cc986ab01af 100644
--- a/board/freescale/ls1012ardb/ls1012ardb.c
+++ b/board/freescale/ls1012ardb/ls1012ardb.c
@@ -8,6 +8,7 @@
#include <fdt_support.h>
#include <hang.h>
#include <i2c.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/cache.h>
#include <init.h>
diff --git a/board/freescale/ls1021aiot/ls1021aiot.c b/board/freescale/ls1021aiot/ls1021aiot.c
index 09ef96e6bb4f..66c701e1e35d 100644
--- a/board/freescale/ls1021aiot/ls1021aiot.c
+++ b/board/freescale/ls1021aiot/ls1021aiot.c
@@ -16,6 +16,7 @@
#include <asm/global_data.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <asm/arch/ls102xa_devdis.h>
diff --git a/board/freescale/ls1021aqds/ls1021aqds.c b/board/freescale/ls1021aqds/ls1021aqds.c
index 1b7dcf2d33d0..c13ec4127003 100644
--- a/board/freescale/ls1021aqds/ls1021aqds.c
+++ b/board/freescale/ls1021aqds/ls1021aqds.c
@@ -27,6 +27,7 @@
#include <fsl_validate.h>
#include <fsl_ddr.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "../common/sleep.h"
#include "../common/qixis.h"
diff --git a/board/freescale/ls1021atsn/ls1021atsn.c b/board/freescale/ls1021atsn/ls1021atsn.c
index 16d9df1b7044..4ad4f1eb07a0 100644
--- a/board/freescale/ls1021atsn/ls1021atsn.c
+++ b/board/freescale/ls1021atsn/ls1021atsn.c
@@ -14,6 +14,7 @@
#include <asm/global_data.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "../common/sleep.h"
#include <fsl_validate.h>
diff --git a/board/freescale/ls1021atwr/ls1021atwr.c b/board/freescale/ls1021atwr/ls1021atwr.c
index cf9c171889e2..8c21393a6e5f 100644
--- a/board/freescale/ls1021atwr/ls1021atwr.c
+++ b/board/freescale/ls1021atwr/ls1021atwr.c
@@ -32,6 +32,7 @@
#include <spl.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "../common/sleep.h"
#ifdef CONFIG_U_QE
diff --git a/board/freescale/ls1043aqds/ls1043aqds.c b/board/freescale/ls1043aqds/ls1043aqds.c
index 183fdcf12c37..6b377d0d997e 100644
--- a/board/freescale/ls1043aqds/ls1043aqds.c
+++ b/board/freescale/ls1043aqds/ls1043aqds.c
@@ -10,6 +10,7 @@
#include <fsl_ddr_sdram.h>
#include <init.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/board/freescale/ls1046aqds/ls1046aqds.c b/board/freescale/ls1046aqds/ls1046aqds.c
index 52266a594367..1d06c3038a6c 100644
--- a/board/freescale/ls1046aqds/ls1046aqds.c
+++ b/board/freescale/ls1046aqds/ls1046aqds.c
@@ -9,6 +9,7 @@
#include <fdt_support.h>
#include <fsl_ddr_sdram.h>
#include <init.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/board/freescale/ls1046ardb/cpld.c b/board/freescale/ls1046ardb/cpld.c
index 4182baa4975e..1f6fcc116e54 100644
--- a/board/freescale/ls1046ardb/cpld.c
+++ b/board/freescale/ls1046ardb/cpld.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <command.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/io.h>
#include <linux/string.h>
diff --git a/board/freescale/ls1046ardb/cpld.h b/board/freescale/ls1046ardb/cpld.h
index e87044f5c0dc..765962c89ae1 100644
--- a/board/freescale/ls1046ardb/cpld.h
+++ b/board/freescale/ls1046ardb/cpld.h
@@ -10,6 +10,7 @@
* CPLD register set of LS1046ARDB board-specific.
* CPLD Revision: V2.1
*/
+#include <stdbool.h>
struct cpld_data {
u8 cpld_ver; /* 0x0 - CPLD Major Revision Register */
u8 cpld_ver_sub; /* 0x1 - CPLD Minor Revision Register */
diff --git a/board/freescale/ls1046ardb/ls1046ardb.c b/board/freescale/ls1046ardb/ls1046ardb.c
index ad4caaa5044f..d2f88ea9d064 100644
--- a/board/freescale/ls1046ardb/ls1046ardb.c
+++ b/board/freescale/ls1046ardb/ls1046ardb.c
@@ -7,6 +7,7 @@
#include <i2c.h>
#include <fdt_support.h>
#include <init.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/board/freescale/ls1088a/eth_ls1088aqds.c b/board/freescale/ls1088a/eth_ls1088aqds.c
index d5a1752c055b..fe0a890bb0c7 100644
--- a/board/freescale/ls1088a/eth_ls1088aqds.c
+++ b/board/freescale/ls1088a/eth_ls1088aqds.c
@@ -24,6 +24,7 @@
#include <fsl-mc/fsl_mc.h>
#include <fsl-mc/ldpaa_wriop.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "../common/qixis.h"
diff --git a/board/freescale/ls1088a/ls1088a.c b/board/freescale/ls1088a/ls1088a.c
index 8d33151cdad9..b35266de231d 100644
--- a/board/freescale/ls1088a/ls1088a.c
+++ b/board/freescale/ls1088a/ls1088a.c
@@ -20,6 +20,7 @@
#include <fdt_support.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <fsl-mc/fsl_mc.h>
#include <env_internal.h>
diff --git a/board/freescale/ls2080aqds/eth.c b/board/freescale/ls2080aqds/eth.c
index 7756620bdfde..167bd1475c91 100644
--- a/board/freescale/ls2080aqds/eth.c
+++ b/board/freescale/ls2080aqds/eth.c
@@ -22,6 +22,7 @@
#include <fsl-mc/fsl_mc.h>
#include <fsl-mc/ldpaa_wriop.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "../common/qixis.h"
diff --git a/board/freescale/ls2080aqds/ls2080aqds.c b/board/freescale/ls2080aqds/ls2080aqds.c
index 39724dcbcbab..8a44ea36003f 100644
--- a/board/freescale/ls2080aqds/ls2080aqds.c
+++ b/board/freescale/ls2080aqds/ls2080aqds.c
@@ -16,6 +16,7 @@
#include <asm/io.h>
#include <fdt_support.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <fsl-mc/fsl_mc.h>
#include <env_internal.h>
diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb/ls2080ardb.c
index 3a154564f3fe..a69f207c2130 100644
--- a/board/freescale/ls2080ardb/ls2080ardb.c
+++ b/board/freescale/ls2080ardb/ls2080ardb.c
@@ -12,6 +12,7 @@
#include <netdev.h>
#include <fsl_ifc.h>
#include <fsl_ddr.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/board/freescale/lx2160a/eth_lx2160aqds.c b/board/freescale/lx2160a/eth_lx2160aqds.c
index e592ca12927a..74b31f9a8771 100644
--- a/board/freescale/lx2160a/eth_lx2160aqds.c
+++ b/board/freescale/lx2160a/eth_lx2160aqds.c
@@ -26,6 +26,7 @@
#include <asm/u-boot.h>
#include <fsl-mc/fsl_mc.h>
#include <fsl-mc/ldpaa_wriop.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <linux/string.h>
diff --git a/board/freescale/lx2160a/eth_lx2160ardb.c b/board/freescale/lx2160a/eth_lx2160ardb.c
index ea2c8c5647a7..6c25108c8e3d 100644
--- a/board/freescale/lx2160a/eth_lx2160ardb.c
+++ b/board/freescale/lx2160a/eth_lx2160ardb.c
@@ -14,6 +14,7 @@
#include <miiphy.h>
#include <phy.h>
#include <fm_eth.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c
index 313085256418..55a7e9b6f0be 100644
--- a/board/freescale/lx2160a/lx2160a.c
+++ b/board/freescale/lx2160a/lx2160a.c
@@ -21,6 +21,7 @@
#include <asm/io.h>
#include <fdt_support.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <linux/delay.h>
#include <fsl-mc/fsl_mc.h>
diff --git a/board/freescale/mpc8541cds/law.c b/board/freescale/mpc8541cds/law.c
index 69f151b61513..c040449882b6 100644
--- a/board/freescale/mpc8541cds/law.c
+++ b/board/freescale/mpc8541cds/law.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
/*
* LAW(Local Access Window) configuration:
diff --git a/board/freescale/mpc8541cds/tlb.c b/board/freescale/mpc8541cds/tlb.c
index cde80667e9c7..e323cccb7769 100644
--- a/board/freescale/mpc8541cds/tlb.c
+++ b/board/freescale/mpc8541cds/tlb.c
@@ -8,6 +8,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/mpc8544ds/law.c b/board/freescale/mpc8544ds/law.c
index 52cec7fbb598..64254902a840 100644
--- a/board/freescale/mpc8544ds/law.c
+++ b/board/freescale/mpc8544ds/law.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
struct law_entry law_table[] = {
SET_LAW(CONFIG_SYS_LBC_NONCACHE_BASE, LAW_SIZE_128M, LAW_TRGT_IF_LBC),
diff --git a/board/freescale/mpc8544ds/tlb.c b/board/freescale/mpc8544ds/tlb.c
index 05250d64849b..cc4180f38d57 100644
--- a/board/freescale/mpc8544ds/tlb.c
+++ b/board/freescale/mpc8544ds/tlb.c
@@ -8,6 +8,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/mpc8548cds/law.c b/board/freescale/mpc8548cds/law.c
index d19438899152..6f61ed95e8b3 100644
--- a/board/freescale/mpc8548cds/law.c
+++ b/board/freescale/mpc8548cds/law.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
struct law_entry law_table[] = {
/* LBC window - maps 256M */
diff --git a/board/freescale/mpc8548cds/tlb.c b/board/freescale/mpc8548cds/tlb.c
index 59fea79d0ced..946359bb588a 100644
--- a/board/freescale/mpc8548cds/tlb.c
+++ b/board/freescale/mpc8548cds/tlb.c
@@ -8,6 +8,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/mpc8555cds/law.c b/board/freescale/mpc8555cds/law.c
index 69f151b61513..c040449882b6 100644
--- a/board/freescale/mpc8555cds/law.c
+++ b/board/freescale/mpc8555cds/law.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
/*
* LAW(Local Access Window) configuration:
diff --git a/board/freescale/mpc8555cds/tlb.c b/board/freescale/mpc8555cds/tlb.c
index cd72f9f110d3..6ea7021bd9f6 100644
--- a/board/freescale/mpc8555cds/tlb.c
+++ b/board/freescale/mpc8555cds/tlb.c
@@ -8,6 +8,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/mpc8568mds/law.c b/board/freescale/mpc8568mds/law.c
index c04c36b5d82c..01371480828c 100644
--- a/board/freescale/mpc8568mds/law.c
+++ b/board/freescale/mpc8568mds/law.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
/*
* LAW(Local Access Window) configuration:
diff --git a/board/freescale/mpc8568mds/tlb.c b/board/freescale/mpc8568mds/tlb.c
index ec22acfddf0a..dc0da95a3461 100644
--- a/board/freescale/mpc8568mds/tlb.c
+++ b/board/freescale/mpc8568mds/tlb.c
@@ -8,6 +8,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/mpc8569mds/law.c b/board/freescale/mpc8569mds/law.c
index 35cdd75d6e6a..a733dbee2d12 100644
--- a/board/freescale/mpc8569mds/law.c
+++ b/board/freescale/mpc8569mds/law.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
/*
* LAW(Local Access Window) configuration:
diff --git a/board/freescale/mpc8569mds/tlb.c b/board/freescale/mpc8569mds/tlb.c
index 21713f2f9da5..22fab6663328 100644
--- a/board/freescale/mpc8569mds/tlb.c
+++ b/board/freescale/mpc8569mds/tlb.c
@@ -8,6 +8,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/mpc8572ds/law.c b/board/freescale/mpc8572ds/law.c
index 10d1572c5de6..e2f35d87d23d 100644
--- a/board/freescale/mpc8572ds/law.c
+++ b/board/freescale/mpc8572ds/law.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
struct law_entry law_table[] = {
SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
diff --git a/board/freescale/mpc8572ds/tlb.c b/board/freescale/mpc8572ds/tlb.c
index 9558f3d1f7a2..f2fb4bfd2e36 100644
--- a/board/freescale/mpc8572ds/tlb.c
+++ b/board/freescale/mpc8572ds/tlb.c
@@ -8,6 +8,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/mpc8610hpcd/law.c b/board/freescale/mpc8610hpcd/law.c
index 7bf5e6815d7b..ddd875bb4890 100644
--- a/board/freescale/mpc8610hpcd/law.c
+++ b/board/freescale/mpc8610hpcd/law.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
struct law_entry law_table[] = {
#if !defined(CONFIG_SPD_EEPROM)
diff --git a/board/freescale/mpc8641hpcn/law.c b/board/freescale/mpc8641hpcn/law.c
index b73d66088318..2cd404080e66 100644
--- a/board/freescale/mpc8641hpcn/law.c
+++ b/board/freescale/mpc8641hpcn/law.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
/*
* LAW(Local Access Window) configuration:
diff --git a/board/freescale/mx23evk/spl_boot.c b/board/freescale/mx23evk/spl_boot.c
index 14e9b4a8634f..b7c67cc68831 100644
--- a/board/freescale/mx23evk/spl_boot.c
+++ b/board/freescale/mx23evk/spl_boot.c
@@ -12,6 +12,7 @@
#include <asm/arch/iomux-mx23.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
#define MUX_CONFIG_SSP1 (MXS_PAD_8MA | MXS_PAD_PULLUP)
#define MUX_CONFIG_EMI (MXS_PAD_3V3 | MXS_PAD_12MA | MXS_PAD_PULLUP)
diff --git a/board/freescale/mx25pdk/mx25pdk.c b/board/freescale/mx25pdk/mx25pdk.c
index f20087328b3e..1532003ba0aa 100644
--- a/board/freescale/mx25pdk/mx25pdk.c
+++ b/board/freescale/mx25pdk/mx25pdk.c
@@ -20,6 +20,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <power/pmic.h>
#include <fsl_pmic.h>
#include <mc34704.h>
diff --git a/board/freescale/mx28evk/iomux.c b/board/freescale/mx28evk/iomux.c
index cc0c85885446..9a3f88abd36f 100644
--- a/board/freescale/mx28evk/iomux.c
+++ b/board/freescale/mx28evk/iomux.c
@@ -12,6 +12,7 @@
#include <asm/arch/iomux-mx28.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
#define MUX_CONFIG_SSP0 (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP)
#define MUX_CONFIG_GPMI (MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_NOPULL)
diff --git a/board/freescale/mx35pdk/mx35pdk.c b/board/freescale/mx35pdk/mx35pdk.c
index 940ada7b1675..3ef1c781c169 100644
--- a/board/freescale/mx35pdk/mx35pdk.c
+++ b/board/freescale/mx35pdk/mx35pdk.c
@@ -19,6 +19,7 @@
#include <asm/arch/clock.h>
#include <asm/arch/iomux-mx35.h>
#include <i2c.h>
+#include <linux/kernel.h>
#include <power/pmic.h>
#include <fsl_pmic.h>
#include <mmc.h>
diff --git a/board/freescale/mx51evk/mx51evk.c b/board/freescale/mx51evk/mx51evk.c
index 0a6561799014..d096948d4d3f 100644
--- a/board/freescale/mx51evk/mx51evk.c
+++ b/board/freescale/mx51evk/mx51evk.c
@@ -22,6 +22,7 @@
#include <input.h>
#include <mmc.h>
#include <fsl_esdhc_imx.h>
+#include <linux/kernel.h>
#include <power/pmic.h>
#include <fsl_pmic.h>
#include <mc13892.h>
diff --git a/board/freescale/mx53ard/mx53ard.c b/board/freescale/mx53ard/mx53ard.c
index cb4f063e95ae..325f17639760 100644
--- a/board/freescale/mx53ard/mx53ard.c
+++ b/board/freescale/mx53ard/mx53ard.c
@@ -20,6 +20,7 @@
#include <mmc.h>
#include <fsl_esdhc_imx.h>
#include <asm/gpio.h>
+#include <linux/kernel.h>
#define ETHERNET_INT IMX_GPIO_NR(2, 31)
diff --git a/board/freescale/mx53evk/mx53evk.c b/board/freescale/mx53evk/mx53evk.c
index 37a946054082..1e43ea9cece4 100644
--- a/board/freescale/mx53evk/mx53evk.c
+++ b/board/freescale/mx53evk/mx53evk.c
@@ -20,6 +20,7 @@
#include <i2c.h>
#include <mmc.h>
#include <fsl_esdhc_imx.h>
+#include <linux/kernel.h>
#include <power/pmic.h>
#include <fsl_pmic.h>
#include <asm/gpio.h>
diff --git a/board/freescale/mx53loco/mx53loco.c b/board/freescale/mx53loco/mx53loco.c
index 67bb279104d3..02c6f76d3ab9 100644
--- a/board/freescale/mx53loco/mx53loco.c
+++ b/board/freescale/mx53loco/mx53loco.c
@@ -26,6 +26,7 @@
#include <mmc.h>
#include <fsl_esdhc_imx.h>
#include <asm/gpio.h>
+#include <linux/kernel.h>
#include <power/pmic.h>
#include <dialog_pmic.h>
#include <fsl_pmic.h>
diff --git a/board/freescale/mx53loco/mx53loco_video.c b/board/freescale/mx53loco/mx53loco_video.c
index 45a40a8959c9..475dc3e934fe 100644
--- a/board/freescale/mx53loco/mx53loco_video.c
+++ b/board/freescale/mx53loco/mx53loco_video.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <env.h>
#include <stdio.h>
+#include <linux/kernel.h>
#include <linux/list.h>
#include <asm/gpio.h>
#include <asm/arch/iomux-mx53.h>
diff --git a/board/freescale/mx53smd/mx53smd.c b/board/freescale/mx53smd/mx53smd.c
index 6a6549341407..24807f629167 100644
--- a/board/freescale/mx53smd/mx53smd.c
+++ b/board/freescale/mx53smd/mx53smd.c
@@ -19,6 +19,7 @@
#include <mmc.h>
#include <fsl_esdhc_imx.h>
#include <asm/gpio.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/freescale/mx6qarm2/mx6qarm2.c b/board/freescale/mx6qarm2/mx6qarm2.c
index bdc2e2a146b3..d2f659d57329 100644
--- a/board/freescale/mx6qarm2/mx6qarm2.c
+++ b/board/freescale/mx6qarm2/mx6qarm2.c
@@ -21,6 +21,7 @@
#include <miiphy.h>
#include <netdev.h>
#include <usb.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/freescale/mx6sabreauto/mx6sabreauto.c b/board/freescale/mx6sabreauto/mx6sabreauto.c
index 359f5bca17c6..2944220a9369 100644
--- a/board/freescale/mx6sabreauto/mx6sabreauto.c
+++ b/board/freescale/mx6sabreauto/mx6sabreauto.c
@@ -34,6 +34,7 @@
#include <asm/mach-imx/video.h>
#include <asm/arch/crm_regs.h>
#include <pca953x.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <power/pmic.h>
#include <power/pfuze100_pmic.h>
diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c
index 01d6340c624c..6f85ba277243 100644
--- a/board/freescale/mx6sabresd/mx6sabresd.c
+++ b/board/freescale/mx6sabresd/mx6sabresd.c
@@ -32,6 +32,7 @@
#include <asm/arch/sys_proto.h>
#include <i2c.h>
#include <input.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <power/pmic.h>
#include <power/pfuze100_pmic.h>
diff --git a/board/freescale/mx6slevk/mx6slevk.c b/board/freescale/mx6slevk/mx6slevk.c
index 9e7a81d4bb52..da48f7cd6749 100644
--- a/board/freescale/mx6slevk/mx6slevk.c
+++ b/board/freescale/mx6slevk/mx6slevk.c
@@ -22,6 +22,7 @@
#include <asm/io.h>
#include <asm/u-boot.h>
#include <linux/errno.h>
+#include <linux/kernel.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 3887ec62848e..bd52d10b0ec9 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 <linux/errno.h>
+#include <linux/kernel.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 aefc1ab2bd86..3e0e733bde3e 100644
--- a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
+++ b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
@@ -22,6 +22,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 ad3461c6661f..965a3808e737 100644
--- a/board/freescale/mx6sxsabresd/mx6sxsabresd.c
+++ b/board/freescale/mx6sxsabresd/mx6sxsabresd.c
@@ -23,6 +23,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 cb903798df54..044d1e97457f 100644
--- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
+++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
@@ -27,6 +27,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <mmc.h>
#include <netdev.h>
diff --git a/board/freescale/mx6ullevk/mx6ullevk.c b/board/freescale/mx6ullevk/mx6ullevk.c
index fbd14920519f..1d3628255475 100644
--- a/board/freescale/mx6ullevk/mx6ullevk.c
+++ b/board/freescale/mx6ullevk/mx6ullevk.c
@@ -19,6 +19,7 @@
#include <common.h>
#include <env.h>
#include <fsl_esdhc_imx.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <mmc.h>
#include <miiphy.h>
diff --git a/board/freescale/mx7dsabresd/mx7dsabresd.c b/board/freescale/mx7dsabresd/mx7dsabresd.c
index d0f2e5f99184..81c3ffd9f59f 100644
--- a/board/freescale/mx7dsabresd/mx7dsabresd.c
+++ b/board/freescale/mx7dsabresd/mx7dsabresd.c
@@ -16,6 +16,7 @@
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <common.h>
#include <fsl_esdhc_imx.h>
diff --git a/board/freescale/mx7ulp_evk/mx7ulp_evk.c b/board/freescale/mx7ulp_evk/mx7ulp_evk.c
index da3f9e72d615..9cbb35424996 100644
--- a/board/freescale/mx7ulp_evk/mx7ulp_evk.c
+++ b/board/freescale/mx7ulp_evk/mx7ulp_evk.c
@@ -14,6 +14,7 @@
#include <asm/arch/iomux.h>
#include <asm/mach-imx/boot_mode.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/freescale/p1010rdb/law.c b/board/freescale/p1010rdb/law.c
index debf571482ba..3c7a936d9416 100644
--- a/board/freescale/p1010rdb/law.c
+++ b/board/freescale/p1010rdb/law.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
struct law_entry law_table[] = {
SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_32M, LAW_TRGT_IF_IFC),
diff --git a/board/freescale/p1010rdb/tlb.c b/board/freescale/p1010rdb/tlb.c
index 057ab4eb9be0..5304bf37670c 100644
--- a/board/freescale/p1010rdb/tlb.c
+++ b/board/freescale/p1010rdb/tlb.c
@@ -5,6 +5,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/p1023rdb/law.c b/board/freescale/p1023rdb/law.c
index 405fcd7b4902..c795fcd07eb0 100644
--- a/board/freescale/p1023rdb/law.c
+++ b/board/freescale/p1023rdb/law.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
struct law_entry law_table[] = {
SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC),
diff --git a/board/freescale/p1023rdb/tlb.c b/board/freescale/p1023rdb/tlb.c
index be93c2c1bf30..f20d81f2e3cc 100644
--- a/board/freescale/p1023rdb/tlb.c
+++ b/board/freescale/p1023rdb/tlb.c
@@ -5,6 +5,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/p1_p2_rdb_pc/law.c b/board/freescale/p1_p2_rdb_pc/law.c
index 5f4d713ca569..181c09097398 100644
--- a/board/freescale/p1_p2_rdb_pc/law.c
+++ b/board/freescale/p1_p2_rdb_pc/law.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
struct law_entry law_table[] = {
SET_LAW(CONFIG_SYS_CPLD_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC),
diff --git a/board/freescale/p1_p2_rdb_pc/tlb.c b/board/freescale/p1_p2_rdb_pc/tlb.c
index 8b7ae118b3f1..fb1e5eaab467 100644
--- a/board/freescale/p1_p2_rdb_pc/tlb.c
+++ b/board/freescale/p1_p2_rdb_pc/tlb.c
@@ -5,6 +5,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/t102xrdb/law.c b/board/freescale/t102xrdb/law.c
index 04a4239797c5..ecae4bf98283 100644
--- a/board/freescale/t102xrdb/law.c
+++ b/board/freescale/t102xrdb/law.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
struct law_entry law_table[] = {
#ifdef CONFIG_MTD_NOR_FLASH
diff --git a/board/freescale/t102xrdb/tlb.c b/board/freescale/t102xrdb/tlb.c
index 404033feeb17..10d07b69ef86 100644
--- a/board/freescale/t102xrdb/tlb.c
+++ b/board/freescale/t102xrdb/tlb.c
@@ -5,6 +5,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/t104xrdb/law.c b/board/freescale/t104xrdb/law.c
index 0f6b71a8c22f..519ed9c77cc8 100644
--- a/board/freescale/t104xrdb/law.c
+++ b/board/freescale/t104xrdb/law.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
struct law_entry law_table[] = {
#ifdef CONFIG_MTD_NOR_FLASH
diff --git a/board/freescale/t104xrdb/tlb.c b/board/freescale/t104xrdb/tlb.c
index 9661a8645852..6e954ebbefb7 100644
--- a/board/freescale/t104xrdb/tlb.c
+++ b/board/freescale/t104xrdb/tlb.c
@@ -5,6 +5,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/t208xqds/law.c b/board/freescale/t208xqds/law.c
index 40fdcf61c057..3040346c4e1b 100644
--- a/board/freescale/t208xqds/law.c
+++ b/board/freescale/t208xqds/law.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
struct law_entry law_table[] = {
SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_IFC),
diff --git a/board/freescale/t208xqds/tlb.c b/board/freescale/t208xqds/tlb.c
index 884315373e1a..65e33201ab37 100644
--- a/board/freescale/t208xqds/tlb.c
+++ b/board/freescale/t208xqds/tlb.c
@@ -8,6 +8,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/t208xrdb/law.c b/board/freescale/t208xrdb/law.c
index d3b263f59d9d..a602170dd490 100644
--- a/board/freescale/t208xrdb/law.c
+++ b/board/freescale/t208xrdb/law.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
struct law_entry law_table[] = {
SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_IFC),
diff --git a/board/freescale/t208xrdb/tlb.c b/board/freescale/t208xrdb/tlb.c
index 2cfe3b8ec9cc..d748aa98a04c 100644
--- a/board/freescale/t208xrdb/tlb.c
+++ b/board/freescale/t208xrdb/tlb.c
@@ -8,6 +8,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/t4rdb/law.c b/board/freescale/t4rdb/law.c
index 038f60565f7e..c52a5ff2e8a9 100644
--- a/board/freescale/t4rdb/law.c
+++ b/board/freescale/t4rdb/law.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
struct law_entry law_table[] = {
SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_IFC),
diff --git a/board/freescale/t4rdb/tlb.c b/board/freescale/t4rdb/tlb.c
index bd27201140ac..b0460d8ce59b 100644
--- a/board/freescale/t4rdb/tlb.c
+++ b/board/freescale/t4rdb/tlb.c
@@ -5,6 +5,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/freescale/vf610twr/vf610twr.c b/board/freescale/vf610twr/vf610twr.c
index 342feb42d17a..3970f4b87a19 100644
--- a/board/freescale/vf610twr/vf610twr.c
+++ b/board/freescale/vf610twr/vf610twr.c
@@ -19,6 +19,7 @@
#include <netdev.h>
#include <i2c.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/friendlyarm/nanopi2/board.c b/board/friendlyarm/nanopi2/board.c
index c0fe2d546f63..c9c9beb86c78 100644
--- a/board/friendlyarm/nanopi2/board.c
+++ b/board/friendlyarm/nanopi2/board.c
@@ -14,6 +14,7 @@
#endif
#include <asm/global_data.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include <asm/arch/nexell.h>
#include <asm/arch/nx_gpio.h>
diff --git a/board/friendlyarm/nanopi2/lcds.c b/board/friendlyarm/nanopi2/lcds.c
index 7303e53af925..5bec0684ad6a 100644
--- a/board/friendlyarm/nanopi2/lcds.c
+++ b/board/friendlyarm/nanopi2/lcds.c
@@ -9,6 +9,7 @@
#include <fdtdec.h>
#include <fdt_support.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include <asm/arch/nexell.h>
#include <asm/arch/display.h>
diff --git a/board/gardena/smart-gateway-mt7688/board.c b/board/gardena/smart-gateway-mt7688/board.c
index 2e446f86753a..75677b11dd2d 100644
--- a/board/gardena/smart-gateway-mt7688/board.c
+++ b/board/gardena/smart-gateway-mt7688/board.c
@@ -15,6 +15,7 @@
#include <net.h>
#include <spi.h>
#include <spi_flash.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <linux/delay.h>
diff --git a/board/gateworks/gw_ventana/common.c b/board/gateworks/gw_ventana/common.c
index 299f92f68262..8e3c3e1ad7a8 100644
--- a/board/gateworks/gw_ventana/common.c
+++ b/board/gateworks/gw_ventana/common.c
@@ -19,6 +19,7 @@
#include <hwconfig.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <power/pmic.h>
#include <power/ltc3676_pmic.h>
#include <power/pfuze100_pmic.h>
diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c
index 800d9e76d38c..fe6a7efe3e32 100644
--- a/board/gateworks/gw_ventana/gw_ventana.c
+++ b/board/gateworks/gw_ventana/gw_ventana.c
@@ -41,6 +41,7 @@
#include <pci.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <linux/string.h>
#include <power/pmic.h>
diff --git a/board/gdsys/a38x/controlcenterdc.c b/board/gdsys/a38x/controlcenterdc.c
index 20c1a4fe3cce..8b16259adbef 100644
--- a/board/gdsys/a38x/controlcenterdc.c
+++ b/board/gdsys/a38x/controlcenterdc.c
@@ -18,6 +18,7 @@
#include <asm/arch/cpu.h>
#include <asm-generic/gpio.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "../drivers/ddr/marvell/a38x/ddr3_init.h"
#include "../arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.h"
diff --git a/board/gdsys/a38x/dt_helpers.c b/board/gdsys/a38x/dt_helpers.c
index c859024a28bb..23525b7ed52e 100644
--- a/board/gdsys/a38x/dt_helpers.c
+++ b/board/gdsys/a38x/dt_helpers.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <i2c.h>
#include <fdt_support.h>
+#include <stdbool.h>
#include <asm-generic/gpio.h>
#include <dm.h>
diff --git a/board/gdsys/a38x/dt_helpers.h b/board/gdsys/a38x/dt_helpers.h
index 245fadd0d791..30dbf298b69d 100644
--- a/board/gdsys/a38x/dt_helpers.h
+++ b/board/gdsys/a38x/dt_helpers.h
@@ -7,6 +7,7 @@
#ifndef __DT_HELPERS_H
#define __DT_HELPERS_H
+#include <stdbool.h>
int fdt_disable_by_ofname(void *rw_fdt_blob, char *ofname);
bool dm_i2c_simple_probe(struct udevice *bus, uint chip_addr);
int request_gpio_by_name(struct gpio_desc *gpio, const char *gpio_dev_name,
diff --git a/board/gdsys/a38x/hre.c b/board/gdsys/a38x/hre.c
index 1e7d7e71f12e..93d8045d53b4 100644
--- a/board/gdsys/a38x/hre.c
+++ b/board/gdsys/a38x/hre.c
@@ -12,6 +12,7 @@
#include <mmc.h>
#include <stdio.h>
#include <tpm-v1.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/crc.h>
#include <u-boot/sha1.h>
diff --git a/board/gdsys/a38x/hre.h b/board/gdsys/a38x/hre.h
index da983aa452a9..154a02761dcb 100644
--- a/board/gdsys/a38x/hre.h
+++ b/board/gdsys/a38x/hre.h
@@ -7,6 +7,7 @@
#ifndef __HRE_H
#define __HRE_H
+#include <stdbool.h>
struct key_program {
uint32_t magic;
uint32_t code_crc;
diff --git a/board/gdsys/a38x/ihs_phys.c b/board/gdsys/a38x/ihs_phys.c
index c4017a25af35..c784421a7018 100644
--- a/board/gdsys/a38x/ihs_phys.c
+++ b/board/gdsys/a38x/ihs_phys.c
@@ -7,6 +7,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "ihs_phys.h"
diff --git a/board/gdsys/common/ch7301.h b/board/gdsys/common/ch7301.h
index e0e8a9e9d4db..c0f8fdf39366 100644
--- a/board/gdsys/common/ch7301.h
+++ b/board/gdsys/common/ch7301.h
@@ -7,6 +7,7 @@
#ifndef _CH7301_H_
#define _CH7301_H_
+#include <stdbool.h>
int ch7301_probe(unsigned screen, bool power);
#endif
diff --git a/board/gdsys/common/dp501.c b/board/gdsys/common/dp501.c
index ae82274a896f..55be6bc29577 100644
--- a/board/gdsys/common/dp501.c
+++ b/board/gdsys/common/dp501.c
@@ -158,5 +158,6 @@ int dp501_probe(unsigned screen, bool power)
return 0;
}
+#include <stdbool.h>
#include <stdio.h>
#endif /* CONFIG_GDSYS_LEGACY_DRIVERS */
diff --git a/board/gdsys/common/dp501.h b/board/gdsys/common/dp501.h
index b98b54edc52d..9f3238638f1b 100644
--- a/board/gdsys/common/dp501.h
+++ b/board/gdsys/common/dp501.h
@@ -24,6 +24,7 @@
#ifndef _DP501_H_
#define _DP501_H_
+#include <stdbool.h>
void dp501_powerup(u8 addr);
void dp501_powerdown(u8 addr);
int dp501_probe(unsigned screen, bool power);
diff --git a/board/gdsys/common/ioep-fpga.c b/board/gdsys/common/ioep-fpga.c
index a75de339b7a8..115f10c30c71 100644
--- a/board/gdsys/common/ioep-fpga.c
+++ b/board/gdsys/common/ioep-fpga.c
@@ -7,9 +7,12 @@
#ifdef CONFIG_GDSYS_LEGACY_DRIVERS
#include <common.h>
+#include <stdbool.h>
+#include <stdio.h>
#include <string.h>
#include <gdsys_fpga.h>
#include <linux/bitops.h>
+#include <linux/string.h>
enum pcb_video_type {
PCB_DVI_SL,
@@ -444,9 +447,6 @@ static int get_features(unsigned int fpga, struct fpga_features *features)
return 0;
}
-#include <stdio.h>
-#include <linux/bitops.h>
-#include <linux/string.h>
#endif
bool ioep_fpga_has_osd(unsigned int fpga)
diff --git a/board/gdsys/common/ioep-fpga.h b/board/gdsys/common/ioep-fpga.h
index 53570b936a8e..947cdc450326 100644
--- a/board/gdsys/common/ioep-fpga.h
+++ b/board/gdsys/common/ioep-fpga.h
@@ -7,6 +7,7 @@
#ifndef _IOEP_FPGA_H_
#define _IOEP_FPGA_H_
+#include <stdbool.h>
void ioep_fpga_print_info(unsigned int fpga);
bool ioep_fpga_has_osd(unsigned int fpga);
diff --git a/board/gdsys/common/osd.c b/board/gdsys/common/osd.c
index fb9c7b8a6eca..a43031d513dd 100644
--- a/board/gdsys/common/osd.c
+++ b/board/gdsys/common/osd.c
@@ -504,6 +504,7 @@ U_BOOT_CMD(
") size_y(max. " __stringify(MAX_Y_CHARS) ")\n"
);
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <linux/string.h>
diff --git a/board/gdsys/common/osd.h b/board/gdsys/common/osd.h
index 4e8e53ab43cd..0367c59ef6b4 100644
--- a/board/gdsys/common/osd.h
+++ b/board/gdsys/common/osd.h
@@ -7,6 +7,7 @@
#ifndef _OSD_H_
#define _OSD_H_
+#include <stdbool.h>
int ch7301_probe(unsigned screen, bool power);
int osd_probe(unsigned screen);
diff --git a/board/gdsys/common/phy.c b/board/gdsys/common/phy.c
index 7b969853b3c0..cfa681c2e19e 100644
--- a/board/gdsys/common/phy.c
+++ b/board/gdsys/common/phy.c
@@ -8,6 +8,7 @@
#include <log.h>
#include <stdio.h>
#include <time.h>
+#include <linux/kernel.h>
#include <miiphy.h>
diff --git a/board/gdsys/mpc8308/hrcon.c b/board/gdsys/mpc8308/hrcon.c
index ad231cace750..f0d01c1210d1 100644
--- a/board/gdsys/mpc8308/hrcon.c
+++ b/board/gdsys/mpc8308/hrcon.c
@@ -16,6 +16,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
#include <pci.h>
diff --git a/board/gdsys/mpc8308/strider.c b/board/gdsys/mpc8308/strider.c
index 9fedf79eaa94..327e070aff22 100644
--- a/board/gdsys/mpc8308/strider.c
+++ b/board/gdsys/mpc8308/strider.c
@@ -16,6 +16,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
#include <pci.h>
diff --git a/board/gdsys/p1022/controlcenterd-id.c b/board/gdsys/p1022/controlcenterd-id.c
index ddf419edab4c..713cb6456e80 100644
--- a/board/gdsys/p1022/controlcenterd-id.c
+++ b/board/gdsys/p1022/controlcenterd-id.c
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <tpm-v1.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/crc.h>
#include <u-boot/sha1.h>
diff --git a/board/gdsys/p1022/law.c b/board/gdsys/p1022/law.c
index 5214109943ab..e51934e4d8ba 100644
--- a/board/gdsys/p1022/law.c
+++ b/board/gdsys/p1022/law.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
struct law_entry law_table[] = {
SET_LAW(CONFIG_SYS_ELBC_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC),
diff --git a/board/gdsys/p1022/tlb.c b/board/gdsys/p1022/tlb.c
index 10074d0df2f0..63b661ffe247 100644
--- a/board/gdsys/p1022/tlb.c
+++ b/board/gdsys/p1022/tlb.c
@@ -7,6 +7,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c
index 36489db79adb..a4ade1a9419e 100644
--- a/board/ge/bx50v3/bx50v3.c
+++ b/board/ge/bx50v3/bx50v3.c
@@ -18,6 +18,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <asm/gpio.h>
#include <asm/mach-imx/iomux-v3.h>
diff --git a/board/ge/mx53ppd/mx53ppd.c b/board/ge/mx53ppd/mx53ppd.c
index a02c8a4de80f..bf813303ed41 100644
--- a/board/ge/mx53ppd/mx53ppd.c
+++ b/board/ge/mx53ppd/mx53ppd.c
@@ -22,6 +22,7 @@
#include <env.h>
#include <asm/u-boot.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <asm/mach-imx/mxc_i2c.h>
#include <asm/mach-imx/mx5_video.h>
diff --git a/board/ge/mx53ppd/mx53ppd_video.c b/board/ge/mx53ppd/mx53ppd_video.c
index 3c56120c0323..cf56983925f7 100644
--- a/board/ge/mx53ppd/mx53ppd_video.c
+++ b/board/ge/mx53ppd/mx53ppd_video.c
@@ -11,6 +11,7 @@
#include <common.h>
#include <dm.h>
#include <stdio.h>
+#include <linux/kernel.h>
#include <linux/list.h>
#include <asm/arch/iomux-mx53.h>
#include <asm/mach-imx/video.h>
diff --git a/board/google/imx8mq_phanbell/imx8mq_phanbell.c b/board/google/imx8mq_phanbell/imx8mq_phanbell.c
index d0a740dd3f40..d78d2dced368 100644
--- a/board/google/imx8mq_phanbell/imx8mq_phanbell.c
+++ b/board/google/imx8mq_phanbell/imx8mq_phanbell.c
@@ -21,6 +21,7 @@
#include <asm/mach-imx/gpio.h>
#include <asm/arch/clock.h>
#include <spl.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/google/imx8mq_phanbell/spl.c b/board/google/imx8mq_phanbell/spl.c
index 38045791f131..d309a72a52da 100644
--- a/board/google/imx8mq_phanbell/spl.c
+++ b/board/google/imx8mq_phanbell/spl.c
@@ -27,6 +27,7 @@
#include <mmc.h>
#include <spl.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/grinn/liteboard/board.c b/board/grinn/liteboard/board.c
index e6bcb08aadf1..986fbd6ef372 100644
--- a/board/grinn/liteboard/board.c
+++ b/board/grinn/liteboard/board.c
@@ -26,6 +26,7 @@
#include <env.h>
#include <fsl_esdhc_imx.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <linux/fb.h>
#include <miiphy.h>
diff --git a/board/hisilicon/poplar/poplar.c b/board/hisilicon/poplar/poplar.c
index d0d8fa81b3bf..36c6c9292cc5 100644
--- a/board/hisilicon/poplar/poplar.c
+++ b/board/hisilicon/poplar/poplar.c
@@ -17,6 +17,7 @@
#include <asm/armv8/mmu.h>
#include <linux/bitops.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/imgtec/boston/ddr.c b/board/imgtec/boston/ddr.c
index 182f79b9182d..4e6afc13c66e 100644
--- a/board/imgtec/boston/ddr.c
+++ b/board/imgtec/boston/ddr.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <init.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <asm/io.h>
diff --git a/board/imgtec/boston/dt.c b/board/imgtec/boston/dt.c
index 1d7a95073abe..2e899ec2ef25 100644
--- a/board/imgtec/boston/dt.c
+++ b/board/imgtec/boston/dt.c
@@ -7,6 +7,7 @@
#include <fdt_support.h>
#include <asm/global_data.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
int ft_board_setup(void *blob, struct bd_info *bd)
{
diff --git a/board/imgtec/malta/malta.c b/board/imgtec/malta/malta.c
index 1edbf36ea903..dd64f9dffa94 100644
--- a/board/imgtec/malta/malta.c
+++ b/board/imgtec/malta/malta.c
@@ -18,6 +18,7 @@
#include <asm/global_data.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <asm/addrspace.h>
diff --git a/board/imgtec/malta/superio.c b/board/imgtec/malta/superio.c
index aba11e25be31..cb5e0589a71a 100644
--- a/board/imgtec/malta/superio.c
+++ b/board/imgtec/malta/superio.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#define SIO_CONF_PORT 0x3f0
#define SIO_DATA_PORT 0x3f1
diff --git a/board/inversepath/usbarmory/usbarmory.c b/board/inversepath/usbarmory/usbarmory.c
index 4eb30ae33746..1028f97ff3a7 100644
--- a/board/inversepath/usbarmory/usbarmory.c
+++ b/board/inversepath/usbarmory/usbarmory.c
@@ -26,6 +26,7 @@
#include <mmc.h>
#include <fsl_esdhc_imx.h>
#include <asm/gpio.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/isee/igep003x/board.c b/board/isee/igep003x/board.c
index a3ae87537210..2f53925a9cfc 100644
--- a/board/isee/igep003x/board.c
+++ b/board/isee/igep003x/board.c
@@ -33,6 +33,7 @@
#include <mtd_node.h>
#include <asm/u-boot.h>
#include <jffs2/load_kernel.h>
+#include <linux/kernel.h>
#include "board.h"
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/isee/igep00x0/igep00x0.c b/board/isee/igep00x0/igep00x0.c
index cb129dca03e6..3167b5c097f7 100644
--- a/board/isee/igep00x0/igep00x0.c
+++ b/board/isee/igep00x0/igep00x0.c
@@ -23,6 +23,7 @@
#include <asm/arch/sys_proto.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/rawnand.h>
#include <linux/mtd/onenand.h>
diff --git a/board/keymile/common/ivm.c b/board/keymile/common/ivm.c
index 5aae1db2ad34..af4ccb023d4f 100644
--- a/board/keymile/common/ivm.c
+++ b/board/keymile/common/ivm.c
@@ -8,6 +8,7 @@
#include <cli_hush.h>
#include <env.h>
#include <i2c.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <linux/string.h>
diff --git a/board/keymile/common/qrio.c b/board/keymile/common/qrio.c
index b3b9c0691524..59c1a2eda10d 100644
--- a/board/keymile/common/qrio.c
+++ b/board/keymile/common/qrio.c
@@ -5,6 +5,7 @@
*/
#include <common.h>
+#include <stdbool.h>
#include <asm/ppc.h>
#include <linux/bitops.h>
diff --git a/board/keymile/common/qrio.h b/board/keymile/common/qrio.h
index a04a73266fb8..ead6efcca51f 100644
--- a/board/keymile/common/qrio.h
+++ b/board/keymile/common/qrio.h
@@ -8,6 +8,7 @@
#define __QRIO_H
/* QRIO GPIO ports */
+#include <stdbool.h>
#define QRIO_GPIO_A 0x40
#define QRIO_GPIO_B 0x60
diff --git a/board/keymile/km_arm/km_arm.c b/board/keymile/km_arm/km_arm.c
index b7dd0243a5a1..560d3970a5b8 100644
--- a/board/keymile/km_arm/km_arm.c
+++ b/board/keymile/km_arm/km_arm.c
@@ -27,6 +27,7 @@
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
#include <asm/arch/mpp.h>
+#include <linux/kernel.h>
#include "../common/common.h"
diff --git a/board/keymile/kmp204x/kmp204x.c b/board/keymile/kmp204x/kmp204x.c
index 0a977ca84ae2..ffb31b8a0c03 100644
--- a/board/keymile/kmp204x/kmp204x.c
+++ b/board/keymile/kmp204x/kmp204x.c
@@ -13,6 +13,7 @@
#include <image.h>
#include <init.h>
#include <netdev.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/u-boot.h>
diff --git a/board/keymile/kmp204x/law.c b/board/keymile/kmp204x/law.c
index 2d83dfea15f8..a24344e59985 100644
--- a/board/keymile/kmp204x/law.c
+++ b/board/keymile/kmp204x/law.c
@@ -12,6 +12,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
struct law_entry law_table[] = {
#ifdef CONFIG_SYS_BMAN_MEM_PHYS
diff --git a/board/keymile/kmp204x/pci.c b/board/keymile/kmp204x/pci.c
index 169c8bc6edba..7f92d6b322d3 100644
--- a/board/keymile/kmp204x/pci.c
+++ b/board/keymile/kmp204x/pci.c
@@ -10,6 +10,7 @@
#include <command.h>
#include <init.h>
#include <pci.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/fsl_pci.h>
#include <asm/u-boot.h>
diff --git a/board/keymile/kmp204x/tlb.c b/board/keymile/kmp204x/tlb.c
index ac9c9fb9021c..44a52bb866aa 100644
--- a/board/keymile/kmp204x/tlb.c
+++ b/board/keymile/kmp204x/tlb.c
@@ -11,6 +11,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/kobol/helios4/helios4.c b/board/kobol/helios4/helios4.c
index 560a2e393a45..4dd326402e88 100644
--- a/board/kobol/helios4/helios4.c
+++ b/board/kobol/helios4/helios4.c
@@ -16,6 +16,7 @@
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include "../drivers/ddr/marvell/a38x/ddr3_init.h"
#include <../serdes/a38x/high_speed_env_spec.h>
diff --git a/board/kosagi/novena/novena_spl.c b/board/kosagi/novena/novena_spl.c
index eddea6e29159..f79a2d46a698 100644
--- a/board/kosagi/novena/novena_spl.c
+++ b/board/kosagi/novena/novena_spl.c
@@ -25,6 +25,7 @@
#include <spl.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <asm/arch/mx6-ddr.h>
diff --git a/board/kosagi/novena/video.c b/board/kosagi/novena/video.c
index 8fc76d6347a5..f90a9f990c30 100644
--- a/board/kosagi/novena/video.c
+++ b/board/kosagi/novena/video.c
@@ -32,6 +32,7 @@
#include <linux/input.h>
#include <malloc.h>
#include <stdio_dev.h>
+#include <linux/kernel.h>
#include "novena.h"
diff --git a/board/lego/ev3/legoev3.c b/board/lego/ev3/legoev3.c
index 429dbbdcc458..f23e8563eb71 100644
--- a/board/lego/ev3/legoev3.c
+++ b/board/lego/ev3/legoev3.c
@@ -27,6 +27,7 @@
#include <hwconfig.h>
#include <asm/mach-types.h>
#include <asm/setup.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/liebherr/display5/display5.c b/board/liebherr/display5/display5.c
index 727a4c036d3e..0ea25ab7ed10 100644
--- a/board/liebherr/display5/display5.c
+++ b/board/liebherr/display5/display5.c
@@ -29,6 +29,7 @@
#include <i2c.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <dm/platform_data/serial_mxc.h>
diff --git a/board/liebherr/xea/spl_xea.c b/board/liebherr/xea/spl_xea.c
index d88b75bb3a44..00c1c078f902 100644
--- a/board/liebherr/xea/spl_xea.c
+++ b/board/liebherr/xea/spl_xea.c
@@ -18,6 +18,7 @@
#include <asm/arch/iomux-mx28.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
#define MUX_CONFIG_LCD (MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_NOPULL)
#define MUX_CONFIG_BOOT (MXS_PAD_3V3 | MXS_PAD_PULLUP)
diff --git a/board/logicpd/imx6/imx6logic.c b/board/logicpd/imx6/imx6logic.c
index 0d53548dcb4b..3ecce8e7ab04 100644
--- a/board/logicpd/imx6/imx6logic.c
+++ b/board/logicpd/imx6/imx6logic.c
@@ -19,6 +19,7 @@
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm/gpio.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <asm/arch/clock.h>
#include <asm/arch/crm_regs.h>
diff --git a/board/menlo/m53menlo/m53menlo.c b/board/menlo/m53menlo/m53menlo.c
index 41751f3d15c1..0a81b060b23f 100644
--- a/board/menlo/m53menlo/m53menlo.c
+++ b/board/menlo/m53menlo/m53menlo.c
@@ -37,6 +37,7 @@
#include <netdev.h>
#include <spl.h>
#include <splash.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <usb/ehci-ci.h>
#include <video_console.h>
diff --git a/board/mscc/common/spi.c b/board/mscc/common/spi.c
index 45b9649336db..b1a71f4c2928 100644
--- a/board/mscc/common/spi.c
+++ b/board/mscc/common/spi.c
@@ -4,6 +4,7 @@
*/
#include <common.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <spi.h>
#include <linux/bitops.h>
diff --git a/board/mscc/ocelot/ocelot.c b/board/mscc/ocelot/ocelot.c
index d26b93f12bd9..1f7d9b4e5404 100644
--- a/board/mscc/ocelot/ocelot.c
+++ b/board/mscc/ocelot/ocelot.c
@@ -7,6 +7,7 @@
#include <image.h>
#include <init.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm/addrspace.h>
diff --git a/board/novtech/meerkat96/meerkat96.c b/board/novtech/meerkat96/meerkat96.c
index 5211055edd65..9a94443db03b 100644
--- a/board/novtech/meerkat96/meerkat96.c
+++ b/board/novtech/meerkat96/meerkat96.c
@@ -14,6 +14,7 @@
#include <asm/mach-imx/iomux-v3.h>
#include <asm/io.h>
#include <common.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/nvidia/cardhu/cardhu.c b/board/nvidia/cardhu/cardhu.c
index 6848e3400466..1fe5f8517314 100644
--- a/board/nvidia/cardhu/cardhu.c
+++ b/board/nvidia/cardhu/cardhu.c
@@ -12,6 +12,7 @@
#include <asm/arch/gpio.h>
#include <asm/gpio.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "pinmux-config-cardhu.h"
#include <i2c.h>
diff --git a/board/nvidia/dalmore/dalmore.c b/board/nvidia/dalmore/dalmore.c
index 21b00855eb57..ac8df9c38061 100644
--- a/board/nvidia/dalmore/dalmore.c
+++ b/board/nvidia/dalmore/dalmore.c
@@ -9,6 +9,7 @@
#include <stdio.h>
#include <asm/arch/pinmux.h>
#include <asm/arch/gp_padctrl.h>
+#include <linux/kernel.h>
#include "pinmux-config-dalmore.h"
#include <i2c.h>
diff --git a/board/nvidia/jetson-tk1/jetson-tk1.c b/board/nvidia/jetson-tk1/jetson-tk1.c
index 06a8b390a0bf..b8fdcb3392a6 100644
--- a/board/nvidia/jetson-tk1/jetson-tk1.c
+++ b/board/nvidia/jetson-tk1/jetson-tk1.c
@@ -8,6 +8,7 @@
#include <dm.h>
#include <log.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <power/as3722.h>
#include <power/pmic.h>
diff --git a/board/nvidia/nyan-big/nyan-big.c b/board/nvidia/nyan-big/nyan-big.c
index 71c71ed6ec23..3923f31f6a77 100644
--- a/board/nvidia/nyan-big/nyan-big.c
+++ b/board/nvidia/nyan-big/nyan-big.c
@@ -16,6 +16,7 @@
#include <asm/arch-tegra/clk_rst.h>
#include <asm/arch-tegra/pmc.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <power/as3722.h>
#include <power/pmic.h>
#include "pinmux-config-nyan-big.h"
diff --git a/board/nvidia/p2371-2180/p2371-2180.c b/board/nvidia/p2371-2180/p2371-2180.c
index e20a74943ff7..7cc163a467ee 100644
--- a/board/nvidia/p2371-2180/p2371-2180.c
+++ b/board/nvidia/p2371-2180/p2371-2180.c
@@ -13,6 +13,7 @@
#include <stdio.h>
#include <asm/u-boot.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <asm/arch/gpio.h>
#include <asm/arch/pinmux.h>
diff --git a/board/nvidia/p2771-0000/p2771-0000.c b/board/nvidia/p2771-0000/p2771-0000.c
index c1d9b79d3e90..b5925f309323 100644
--- a/board/nvidia/p2771-0000/p2771-0000.c
+++ b/board/nvidia/p2771-0000/p2771-0000.c
@@ -11,6 +11,7 @@
#include <net.h>
#include <stdio.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <asm/arch-tegra/cboot.h>
#include <linux/string.h>
diff --git a/board/nvidia/p3450-0000/p3450-0000.c b/board/nvidia/p3450-0000/p3450-0000.c
index f6751b65ab9f..868bab22ef4c 100644
--- a/board/nvidia/p3450-0000/p3450-0000.c
+++ b/board/nvidia/p3450-0000/p3450-0000.c
@@ -11,6 +11,7 @@
#include <stdio.h>
#include <asm/u-boot.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <pca953x.h>
#include <asm/arch-tegra/cboot.h>
diff --git a/board/nvidia/venice2/venice2.c b/board/nvidia/venice2/venice2.c
index d89bbe5ecce2..91380a4da8ca 100644
--- a/board/nvidia/venice2/venice2.c
+++ b/board/nvidia/venice2/venice2.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <asm/arch/gpio.h>
#include <asm/arch/pinmux.h>
+#include <linux/kernel.h>
#include "pinmux-config-venice2.h"
/*
diff --git a/board/olimex/mx23_olinuxino/spl_boot.c b/board/olimex/mx23_olinuxino/spl_boot.c
index 248176c23cdc..31d148b885b8 100644
--- a/board/olimex/mx23_olinuxino/spl_boot.c
+++ b/board/olimex/mx23_olinuxino/spl_boot.c
@@ -11,6 +11,7 @@
#include <asm/arch/iomux-mx23.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
#define MUX_CONFIG_EMI (MXS_PAD_3V3 | MXS_PAD_12MA | MXS_PAD_PULLUP)
#define MUX_CONFIG_SSP (MXS_PAD_8MA | MXS_PAD_PULLUP)
diff --git a/board/phytec/pcl063/pcl063.c b/board/phytec/pcl063/pcl063.c
index f274519c0734..cabdaec4e862 100644
--- a/board/phytec/pcl063/pcl063.c
+++ b/board/phytec/pcl063/pcl063.c
@@ -20,6 +20,7 @@
#include <miiphy.h>
#include <netdev.h>
#include <usb.h>
+#include <linux/kernel.h>
#include <usb/ehci-ci.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/phytec/phycore_am335x_r2/board.c b/board/phytec/phycore_am335x_r2/board.c
index 19c1033c9d7a..19e15a7c73e9 100644
--- a/board/phytec/phycore_am335x_r2/board.c
+++ b/board/phytec/phycore_am335x_r2/board.c
@@ -19,6 +19,7 @@
#include <asm/arch/sys_proto.h>
#include <asm/global_data.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <power/tps65910.h>
#include <jffs2/load_kernel.h>
#include <mtd_node.h>
diff --git a/board/ppcag/bg0900/spl_boot.c b/board/ppcag/bg0900/spl_boot.c
index b46bc8939a38..7809c844df7d 100644
--- a/board/ppcag/bg0900/spl_boot.c
+++ b/board/ppcag/bg0900/spl_boot.c
@@ -11,6 +11,7 @@
#include <asm/arch/iomux-mx28.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
#define MUX_CONFIG_GPMI (MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_NOPULL)
#define MUX_CONFIG_ENET (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP)
diff --git a/board/qualcomm/dragonboard820c/dragonboard820c.c b/board/qualcomm/dragonboard820c/dragonboard820c.c
index dc70a8347f7f..f6115b8f42e4 100644
--- a/board/qualcomm/dragonboard820c/dragonboard820c.c
+++ b/board/qualcomm/dragonboard820c/dragonboard820c.c
@@ -13,6 +13,7 @@
#include <asm/cache.h>
#include <asm/global_data.h>
#include <linux/arm-smccc.h>
+#include <linux/kernel.h>
#include <linux/psci.h>
#include <common.h>
#include <dm.h>
diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index 45586323f3af..c074726f1aee 100644
--- a/board/raspberrypi/rpi/rpi.c
+++ b/board/raspberrypi/rpi/rpi.c
@@ -28,6 +28,7 @@
#endif
#include <watchdog.h>
#include <dm/pinctrl.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/renesas/alt/alt_spl.c b/board/renesas/alt/alt_spl.c
index 02e3ed3b563c..44a8d6c720e2 100644
--- a/board/renesas/alt/alt_spl.c
+++ b/board/renesas/alt/alt_spl.c
@@ -20,6 +20,7 @@
#include <asm/gpio.h>
#include <asm/arch/rmobile.h>
#include <asm/arch/rcar-mstp.h>
+#include <linux/kernel.h>
#include <spl.h>
diff --git a/board/renesas/blanche/blanche.c b/board/renesas/blanche/blanche.c
index e91cffaa8c5a..79bd867c9533 100644
--- a/board/renesas/blanche/blanche.c
+++ b/board/renesas/blanche/blanche.c
@@ -33,6 +33,7 @@
#include <miiphy.h>
#include <mmc.h>
#include <netdev.h>
+#include <linux/kernel.h>
#include "qos.h"
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/renesas/gose/gose_spl.c b/board/renesas/gose/gose_spl.c
index a181ffd6dcf8..d4708c691b9e 100644
--- a/board/renesas/gose/gose_spl.c
+++ b/board/renesas/gose/gose_spl.c
@@ -20,6 +20,7 @@
#include <asm/gpio.h>
#include <asm/arch/rmobile.h>
#include <asm/arch/rcar-mstp.h>
+#include <linux/kernel.h>
#include <spl.h>
diff --git a/board/renesas/koelsch/koelsch_spl.c b/board/renesas/koelsch/koelsch_spl.c
index f5be6548738f..a690022f97bf 100644
--- a/board/renesas/koelsch/koelsch_spl.c
+++ b/board/renesas/koelsch/koelsch_spl.c
@@ -20,6 +20,7 @@
#include <asm/gpio.h>
#include <asm/arch/rmobile.h>
#include <asm/arch/rcar-mstp.h>
+#include <linux/kernel.h>
#include <spl.h>
diff --git a/board/renesas/lager/lager_spl.c b/board/renesas/lager/lager_spl.c
index 4dc47ecd5f73..7cb30ba7212d 100644
--- a/board/renesas/lager/lager_spl.c
+++ b/board/renesas/lager/lager_spl.c
@@ -20,6 +20,7 @@
#include <asm/gpio.h>
#include <asm/arch/rmobile.h>
#include <asm/arch/rcar-mstp.h>
+#include <linux/kernel.h>
#include <spl.h>
diff --git a/board/renesas/porter/porter_spl.c b/board/renesas/porter/porter_spl.c
index 9b4e787b5f16..d2a93fc54567 100644
--- a/board/renesas/porter/porter_spl.c
+++ b/board/renesas/porter/porter_spl.c
@@ -20,6 +20,7 @@
#include <asm/gpio.h>
#include <asm/arch/rmobile.h>
#include <asm/arch/rcar-mstp.h>
+#include <linux/kernel.h>
#include <spl.h>
diff --git a/board/renesas/silk/silk_spl.c b/board/renesas/silk/silk_spl.c
index 27f59ce9e4dc..b80c6b421ab2 100644
--- a/board/renesas/silk/silk_spl.c
+++ b/board/renesas/silk/silk_spl.c
@@ -20,6 +20,7 @@
#include <asm/gpio.h>
#include <asm/arch/rmobile.h>
#include <asm/arch/rcar-mstp.h>
+#include <linux/kernel.h>
#include <spl.h>
diff --git a/board/renesas/stout/stout_spl.c b/board/renesas/stout/stout_spl.c
index f3a5dbc8d0bb..10efd09139f2 100644
--- a/board/renesas/stout/stout_spl.c
+++ b/board/renesas/stout/stout_spl.c
@@ -20,6 +20,7 @@
#include <asm/gpio.h>
#include <asm/arch/rmobile.h>
#include <asm/arch/rcar-mstp.h>
+#include <linux/kernel.h>
#include <spl.h>
diff --git a/board/rockchip/evb_rk3308/evb_rk3308.c b/board/rockchip/evb_rk3308/evb_rk3308.c
index efe6363a4134..3ca4e925bbcd 100644
--- a/board/rockchip/evb_rk3308/evb_rk3308.c
+++ b/board/rockchip/evb_rk3308/evb_rk3308.c
@@ -7,6 +7,7 @@
#include <adc.h>
#include <stdio.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/samsung/common/exynos5-dt-types.c b/board/samsung/common/exynos5-dt-types.c
index e2d5a7c9ba77..026fc4abf111 100644
--- a/board/samsung/common/exynos5-dt-types.c
+++ b/board/samsung/common/exynos5-dt-types.c
@@ -11,6 +11,7 @@
#include <fdtdec.h>
#include <asm/global_data.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <power/pmic.h>
#include <power/regulator.h>
#include <power/s2mps11.h>
diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c
index 4438bff523e0..30a00892e0c3 100644
--- a/board/samsung/common/misc.c
+++ b/board/samsung/common/misc.c
@@ -13,6 +13,7 @@
#include <vsprintf.h>
#include <asm/global_data.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <samsung/misc.h>
#include <errno.h>
diff --git a/board/sandisk/sansa_fuze_plus/sfp.c b/board/sandisk/sansa_fuze_plus/sfp.c
index b5052deb7acb..689cd799dd3b 100644
--- a/board/sandisk/sansa_fuze_plus/sfp.c
+++ b/board/sandisk/sansa_fuze_plus/sfp.c
@@ -23,6 +23,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/sandisk/sansa_fuze_plus/spl_boot.c b/board/sandisk/sansa_fuze_plus/spl_boot.c
index 37f866ccdc3a..59464877fbf6 100644
--- a/board/sandisk/sansa_fuze_plus/spl_boot.c
+++ b/board/sandisk/sansa_fuze_plus/spl_boot.c
@@ -11,6 +11,7 @@
#include <asm/arch/iomux-mx23.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define MUX_CONFIG_EMI (MXS_PAD_1V8 | MXS_PAD_12MA | MXS_PAD_PULLUP)
diff --git a/board/sbc8548/law.c b/board/sbc8548/law.c
index 97271ea6f66b..35679d5eec10 100644
--- a/board/sbc8548/law.c
+++ b/board/sbc8548/law.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
/*
* LAW(Local Access Window) configuration:
diff --git a/board/sbc8548/tlb.c b/board/sbc8548/tlb.c
index 31fd1539bf32..15223697b7be 100644
--- a/board/sbc8548/tlb.c
+++ b/board/sbc8548/tlb.c
@@ -8,6 +8,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/sbc8641d/law.c b/board/sbc8641d/law.c
index dc4696d123f4..84014611efae 100644
--- a/board/sbc8641d/law.c
+++ b/board/sbc8641d/law.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
/*
* LAW (Local Access Window) configuration:
diff --git a/board/schulercontrol/sc_sps_1/spl_boot.c b/board/schulercontrol/sc_sps_1/spl_boot.c
index 68758eb99701..a58fde351a18 100644
--- a/board/schulercontrol/sc_sps_1/spl_boot.c
+++ b/board/schulercontrol/sc_sps_1/spl_boot.c
@@ -12,6 +12,7 @@
#include <asm/arch/iomux-mx28.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
#define MUX_CONFIG_LED (MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_NOPULL)
#define MUX_CONFIG_SSP0 (MXS_PAD_3V3 | MXS_PAD_12MA | MXS_PAD_PULLUP)
diff --git a/board/seco/common/mx6.c b/board/seco/common/mx6.c
index eaf7edf952dd..52d06d3638bd 100644
--- a/board/seco/common/mx6.c
+++ b/board/seco/common/mx6.c
@@ -29,6 +29,7 @@
#include <micrel.h>
#include <asm/mach-imx/mxc_i2c.h>
#include <i2c.h>
+#include <linux/kernel.h>
#define UART_PAD_CTRL (PAD_CTL_PUS_100K_UP | \
PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | \
diff --git a/board/siemens/capricorn/board.c b/board/siemens/capricorn/board.c
index ebd34939cb41..433fba067b96 100644
--- a/board/siemens/capricorn/board.c
+++ b/board/siemens/capricorn/board.c
@@ -31,6 +31,7 @@
#endif
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "../common/factoryset.h"
diff --git a/board/siemens/rut/board.c b/board/siemens/rut/board.c
index 2da0560bd2be..7be23e97967b 100644
--- a/board/siemens/rut/board.c
+++ b/board/siemens/rut/board.c
@@ -38,6 +38,7 @@
#include <watchdog.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "board.h"
#include "../common/factoryset.h"
diff --git a/board/sipeed/maix/maix.c b/board/sipeed/maix/maix.c
index a859b086075c..6d38c382b5a4 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 <linux/errno.h>
+#include <linux/kernel.h>
phys_size_t get_effective_memsize(void)
{
diff --git a/board/socrates/law.c b/board/socrates/law.c
index 840941b63e50..4103b204ab71 100644
--- a/board/socrates/law.c
+++ b/board/socrates/law.c
@@ -12,6 +12,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
/*
* LAW(Local Access Window) configuration:
diff --git a/board/socrates/tlb.c b/board/socrates/tlb.c
index 392fbdfdab4e..2c82cf30c990 100644
--- a/board/socrates/tlb.c
+++ b/board/socrates/tlb.c
@@ -11,6 +11,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/softing/vining_2000/vining_2000.c b/board/softing/vining_2000/vining_2000.c
index 1c84539c1205..d72aee47ca9c 100644
--- a/board/softing/vining_2000/vining_2000.c
+++ b/board/softing/vining_2000/vining_2000.c
@@ -25,6 +25,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <common.h>
#include <fsl_esdhc_imx.h>
diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidrun/clearfog/clearfog.c
index 660962364f62..83e789b99f77 100644
--- a/board/solidrun/clearfog/clearfog.c
+++ b/board/solidrun/clearfog/clearfog.c
@@ -18,6 +18,7 @@
#include <asm/u-boot.h>
#include <linux/bitops.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "../common/tlv_data.h"
diff --git a/board/solidrun/common/tlv_data.c b/board/solidrun/common/tlv_data.c
index 1daf14812ef7..315faeb61404 100644
--- a/board/solidrun/common/tlv_data.c
+++ b/board/solidrun/common/tlv_data.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <compiler.h>
#include <tlv_eeprom.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "tlv_data.h"
diff --git a/board/solidrun/common/tlv_data.h b/board/solidrun/common/tlv_data.h
index a1432e4b8e1d..2d05fa601be5 100644
--- a/board/solidrun/common/tlv_data.h
+++ b/board/solidrun/common/tlv_data.h
@@ -6,6 +6,7 @@
#ifndef __BOARD_SR_COMMON_H_
#define __BOARD_SR_COMMON_H_
+#include <stdbool.h>
struct tlv_data {
/* Store product name of both SOM and carrier */
char tlv_product_name[2][32];
diff --git a/board/solidrun/mx6cuboxi/mx6cuboxi.c b/board/solidrun/mx6cuboxi/mx6cuboxi.c
index ad2d5d5998ca..40fbd85bde75 100644
--- a/board/solidrun/mx6cuboxi/mx6cuboxi.c
+++ b/board/solidrun/mx6cuboxi/mx6cuboxi.c
@@ -40,6 +40,7 @@
#include <asm/arch/sys_proto.h>
#include <spl.h>
#include <usb.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <usb/ehci-ci.h>
diff --git a/board/somlabs/visionsom-6ull/visionsom-6ull.c b/board/somlabs/visionsom-6ull/visionsom-6ull.c
index 0146ba868db6..75e4dadd6e8a 100644
--- a/board/somlabs/visionsom-6ull/visionsom-6ull.c
+++ b/board/somlabs/visionsom-6ull/visionsom-6ull.c
@@ -23,6 +23,7 @@
#include <fsl_esdhc_imx.h>
#include <i2c.h>
#include <miiphy.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <mmc.h>
#include <netdev.h>
diff --git a/board/st/common/stm32mp_dfu.c b/board/st/common/stm32mp_dfu.c
index 2a0e9334e82d..0439e1d5bfe3 100644
--- a/board/st/common/stm32mp_dfu.c
+++ b/board/st/common/stm32mp_dfu.c
@@ -12,6 +12,7 @@
#include <misc.h>
#include <mtd.h>
#include <mtd_node.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/arch/stm32prog.h>
diff --git a/board/st/common/stm32mp_mtdparts.c b/board/st/common/stm32mp_mtdparts.c
index b7dfd4cb741e..7a6db7c14cd0 100644
--- a/board/st/common/stm32mp_mtdparts.c
+++ b/board/st/common/stm32mp_mtdparts.c
@@ -10,6 +10,7 @@
#include <env_internal.h>
#include <mtd.h>
#include <mtd_node.h>
+#include <stdbool.h>
#include <tee.h>
#include <asm/arch/stm32prog.h>
#include <asm/arch/sys_proto.h>
diff --git a/board/st/common/stpmic1.c b/board/st/common/stpmic1.c
index 042476dc318e..7aa858517380 100644
--- a/board/st/common/stpmic1.c
+++ b/board/st/common/stpmic1.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <dm.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/io.h>
#include <asm/arch/ddr.h>
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index 6669b4813058..9c3857a31b1c 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -43,6 +43,7 @@
#include <linux/err.h>
#include <linux/errno.h>
#include <linux/iopoll.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include <power/regulator.h>
diff --git a/board/synopsys/emsdp/emsdp.c b/board/synopsys/emsdp/emsdp.c
index 7a33440f273e..995514eab58f 100644
--- a/board/synopsys/emsdp/emsdp.c
+++ b/board/synopsys/emsdp/emsdp.c
@@ -12,6 +12,7 @@
#include <stdio.h>
#include <asm/global_data.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <asm/arcregs.h>
diff --git a/board/synopsys/hsdk/env-lib.h b/board/synopsys/hsdk/env-lib.h
index 48c17c4d4f62..b745442775c1 100644
--- a/board/synopsys/hsdk/env-lib.h
+++ b/board/synopsys/hsdk/env-lib.h
@@ -9,6 +9,7 @@
#include <common.h>
#include <config.h>
+#include <stdbool.h>
#include <linux/kernel.h>
enum env_type {
diff --git a/board/syteco/zmx25/zmx25.c b/board/syteco/zmx25/zmx25.c
index a3e5efad7c60..d3eea559a6c7 100644
--- a/board/syteco/zmx25/zmx25.c
+++ b/board/syteco/zmx25/zmx25.c
@@ -23,6 +23,7 @@
#include <asm/arch/imx-regs.h>
#include <asm/arch/iomux-mx25.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/tbs/tbs2910/tbs2910.c b/board/tbs/tbs2910/tbs2910.c
index 56e0f378b6a9..83294a67a42c 100644
--- a/board/tbs/tbs2910/tbs2910.c
+++ b/board/tbs/tbs2910/tbs2910.c
@@ -22,6 +22,7 @@
#include <asm/arch/crm_regs.h>
#include <asm/io.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
#define UART_PAD_CTRL (PAD_CTL_PUS_100K_UP | \
diff --git a/board/technexion/pico-imx6/pico-imx6.c b/board/technexion/pico-imx6/pico-imx6.c
index 87a78f418431..24e8376d786e 100644
--- a/board/technexion/pico-imx6/pico-imx6.c
+++ b/board/technexion/pico-imx6/pico-imx6.c
@@ -25,6 +25,7 @@
#include <asm/io.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <miiphy.h>
#include <netdev.h>
diff --git a/board/technexion/pico-imx6ul/pico-imx6ul.c b/board/technexion/pico-imx6ul/pico-imx6ul.c
index fb3d9ee726a6..5ba16bcba585 100644
--- a/board/technexion/pico-imx6ul/pico-imx6ul.c
+++ b/board/technexion/pico-imx6ul/pico-imx6ul.c
@@ -24,6 +24,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <usb.h>
#include <power/pmic.h>
diff --git a/board/technexion/pico-imx6ul/spl.c b/board/technexion/pico-imx6ul/spl.c
index 0c5b166b6539..55d19728af31 100644
--- a/board/technexion/pico-imx6ul/spl.c
+++ b/board/technexion/pico-imx6ul/spl.c
@@ -17,6 +17,7 @@
#include <asm/mach-imx/boot_mode.h>
#include <fsl_esdhc_imx.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <spl.h>
#include <linux/string.h>
diff --git a/board/technexion/pico-imx7d/pico-imx7d.c b/board/technexion/pico-imx7d/pico-imx7d.c
index 5b59862be8a5..8cdc4f1fc34d 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 <linux/errno.h>
+#include <linux/kernel.h>
#include <power/pmic.h>
#include <power/pfuze3000_pmic.h>
#include "../../freescale/common/pfuze.h"
diff --git a/board/technexion/pico-imx7d/spl.c b/board/technexion/pico-imx7d/spl.c
index 3739706dee1b..50604f196f2c 100644
--- a/board/technexion/pico-imx7d/spl.c
+++ b/board/technexion/pico-imx7d/spl.c
@@ -19,6 +19,7 @@
#include <fsl_esdhc_imx.h>
#include <spl.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#if defined(CONFIG_SPL_BUILD)
diff --git a/board/technexion/pico-imx8mq/pico-imx8mq.c b/board/technexion/pico-imx8mq/pico-imx8mq.c
index de1c7c52211f..2dc46c6186d6 100644
--- a/board/technexion/pico-imx8mq/pico-imx8mq.c
+++ b/board/technexion/pico-imx8mq/pico-imx8mq.c
@@ -24,6 +24,7 @@
#include <asm/arch/clock.h>
#include <linux/delay.h>
#include <spl.h>
+#include <linux/kernel.h>
#include <power/pmic.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/technexion/pico-imx8mq/spl.c b/board/technexion/pico-imx8mq/spl.c
index 048ffb48d3f6..e2d557732f66 100644
--- a/board/technexion/pico-imx8mq/spl.c
+++ b/board/technexion/pico-imx8mq/spl.c
@@ -23,6 +23,7 @@
#include <fsl_esdhc_imx.h>
#include <mmc.h>
#include <spl.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "lpddr4_timing.h"
diff --git a/board/technologic/ts4600/iomux.c b/board/technologic/ts4600/iomux.c
index 9bd3eacb0bdc..5ef69154254f 100644
--- a/board/technologic/ts4600/iomux.c
+++ b/board/technologic/ts4600/iomux.c
@@ -19,6 +19,7 @@
#include <asm/arch/iomux-mx28.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
#define MUX_CONFIG_SSP0 (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP)
#define MUX_CONFIG_EMI (MXS_PAD_3V3 | MXS_PAD_12MA | MXS_PAD_NOPULL)
diff --git a/board/technologic/ts4800/ts4800.c b/board/technologic/ts4800/ts4800.c
index 37347949a38b..c2a28ccf63be 100644
--- a/board/technologic/ts4800/ts4800.c
+++ b/board/technologic/ts4800/ts4800.c
@@ -28,6 +28,7 @@
#include <input.h>
#include <fsl_esdhc_imx.h>
#include <mc13892.h>
+#include <linux/kernel.h>
#include <malloc.h>
#include <netdev.h>
diff --git a/board/theadorable/fpga.c b/board/theadorable/fpga.c
index 904af3ed2e98..5a34244ea055 100644
--- a/board/theadorable/fpga.c
+++ b/board/theadorable/fpga.c
@@ -14,6 +14,7 @@
#include <asm/arch/soc.h>
#include <asm/arch-mvebu/spi.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "theadorable.h"
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index 17096159442a..21f90e0e7e89 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -17,6 +17,7 @@
#include <net.h>
#include <spl.h>
#include <serial.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/arch/cpu.h>
diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c
index 28bc5333c52d..e3e13421cd31 100644
--- a/board/ti/am43xx/board.c
+++ b/board/ti/am43xx/board.c
@@ -30,6 +30,7 @@
#include <asm/arch/gpio.h>
#include <asm/emif.h>
#include <asm/omap_common.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "../common/board_detect.h"
#include "board.h"
diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c
index 808b99937031..4458ddec325d 100644
--- a/board/ti/am57xx/board.c
+++ b/board/ti/am57xx/board.c
@@ -37,6 +37,7 @@
#include <usb.h>
#include <asm/u-boot.h>
#include <linux/errno.h>
+#include <linux/kernel.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 5c2e8845057d..f64c7dd3a872 100644
--- a/board/ti/am65x/evm.c
+++ b/board/ti/am65x/evm.c
@@ -25,6 +25,7 @@
#include <asm/arch/sys_proto.h>
#include <asm/u-boot.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
index fe8aeac9e46b..15b0d5149f82 100644
--- a/board/ti/beagle/beagle.c
+++ b/board/ti/beagle/beagle.c
@@ -23,6 +23,7 @@
#ifdef CONFIG_LED_STATUS
#include <status_led.h>
#endif
+#include <stdbool.h>
#include <stdio.h>
#include <twl4030.h>
#include <asm/global_data.h>
diff --git a/board/ti/common/board_detect.c b/board/ti/common/board_detect.c
index 5519d2d7e612..18b8a9671068 100644
--- a/board/ti/common/board_detect.c
+++ b/board/ti/common/board_detect.c
@@ -22,6 +22,7 @@
#include <errno.h>
#include <malloc.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/board/ti/common/board_detect.h b/board/ti/common/board_detect.h
index de7cb52dfcdd..d764d7a8d7a3 100644
--- a/board/ti/common/board_detect.h
+++ b/board/ti/common/board_detect.h
@@ -9,6 +9,7 @@
#define __BOARD_DETECT_H
/* TI EEPROM MAGIC Header identifier */
+#include <stdbool.h>
#include <linux/bitops.h>
#define TI_EEPROM_HEADER_MAGIC 0xEE3355AA
#define TI_DEAD_EEPROM_MAGIC 0xADEAD12C
diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c
index b283bb410399..baf47edc3046 100644
--- a/board/ti/dra7xx/evm.c
+++ b/board/ti/dra7xx/evm.c
@@ -23,6 +23,7 @@
#include <vsprintf.h>
#include <asm/global_data.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <asm/gpio.h>
#include <usb.h>
diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c
index bddffa049329..c70b58f0c8f2 100644
--- a/board/ti/j721e/evm.c
+++ b/board/ti/j721e/evm.c
@@ -27,6 +27,7 @@
#include <asm/u-boot.h>
#include <dm/uclass-internal.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c
index 1b9b79f65ae0..449073b6b7aa 100644
--- a/board/ti/ks2_evm/board.c
+++ b/board/ti/ks2_evm/board.c
@@ -11,6 +11,7 @@
#include <vsprintf.h>
#include <asm/global_data.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "board.h"
#include <env.h>
diff --git a/board/ti/ks2_evm/board_k2g.c b/board/ti/ks2_evm/board_k2g.c
index e79497752a6f..eb115a818f46 100644
--- a/board/ti/ks2_evm/board_k2g.c
+++ b/board/ti/ks2_evm/board_k2g.c
@@ -11,6 +11,7 @@
#include <hang.h>
#include <image.h>
#include <init.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/arch/clock.h>
#include <asm/ti-common/keystone_net.h>
diff --git a/board/toradex/apalis-imx8/apalis-imx8.c b/board/toradex/apalis-imx8/apalis-imx8.c
index d46ab222f890..cae2b789bc71 100644
--- a/board/toradex/apalis-imx8/apalis-imx8.c
+++ b/board/toradex/apalis-imx8/apalis-imx8.c
@@ -9,6 +9,7 @@
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <asm/arch/clock.h>
#include <asm/arch/imx8-pins.h>
diff --git a/board/toradex/apalis-tk1/apalis-tk1.c b/board/toradex/apalis-tk1/apalis-tk1.c
index adc9bef31e7e..023c93c09298 100644
--- a/board/toradex/apalis-tk1/apalis-tk1.c
+++ b/board/toradex/apalis-tk1/apalis-tk1.c
@@ -19,6 +19,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include <power/as3722.h>
diff --git a/board/toradex/apalis_imx6/apalis_imx6.c b/board/toradex/apalis_imx6/apalis_imx6.c
index 62ae4dbf9225..6b319c043a6f 100644
--- a/board/toradex/apalis_imx6/apalis_imx6.c
+++ b/board/toradex/apalis_imx6/apalis_imx6.c
@@ -18,6 +18,7 @@
#include <asm/u-boot.h>
#include <linux/bitops.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <ahci.h>
diff --git a/board/toradex/apalis_imx6/pf0100.c b/board/toradex/apalis_imx6/pf0100.c
index a720099f91e1..9247a7805446 100644
--- a/board/toradex/apalis_imx6/pf0100.c
+++ b/board/toradex/apalis_imx6/pf0100.c
@@ -17,6 +17,7 @@
#include <asm/gpio.h>
#include <asm/mach-imx/iomux-v3.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "pf0100_otp.inc"
#include "pf0100.h"
diff --git a/board/toradex/apalis_t30/apalis_t30.c b/board/toradex/apalis_t30/apalis_t30.c
index bdc0691755e7..49fb5d7a3701 100644
--- a/board/toradex/apalis_t30/apalis_t30.c
+++ b/board/toradex/apalis_t30/apalis_t30.c
@@ -20,6 +20,7 @@
#include <pci_tegra.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "../common/tdx-common.h"
#include "pinmux-config-apalis_t30.h"
diff --git a/board/toradex/colibri-imx6ull/colibri-imx6ull.c b/board/toradex/colibri-imx6ull/colibri-imx6ull.c
index 81ec9e853267..0df73585edd4 100644
--- a/board/toradex/colibri-imx6ull/colibri-imx6ull.c
+++ b/board/toradex/colibri-imx6ull/colibri-imx6ull.c
@@ -8,6 +8,7 @@
#include <asm/global_data.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <asm/arch/clock.h>
#include <asm/arch/crm_regs.h>
diff --git a/board/toradex/colibri-imx8x/colibri-imx8x.c b/board/toradex/colibri-imx8x/colibri-imx8x.c
index d80762aec3c4..1a2a23337cfe 100644
--- a/board/toradex/colibri-imx8x/colibri-imx8x.c
+++ b/board/toradex/colibri-imx8x/colibri-imx8x.c
@@ -9,6 +9,7 @@
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <asm/arch/clock.h>
#include <asm/arch/imx8-pins.h>
diff --git a/board/toradex/colibri_imx6/colibri_imx6.c b/board/toradex/colibri_imx6/colibri_imx6.c
index 16bb57991375..99342e820e98 100644
--- a/board/toradex/colibri_imx6/colibri_imx6.c
+++ b/board/toradex/colibri_imx6/colibri_imx6.c
@@ -18,6 +18,7 @@
#include <asm/u-boot.h>
#include <linux/bitops.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <asm/arch/clock.h>
diff --git a/board/toradex/colibri_imx6/pf0100.c b/board/toradex/colibri_imx6/pf0100.c
index caaf7553e5a1..d1bd0566b2aa 100644
--- a/board/toradex/colibri_imx6/pf0100.c
+++ b/board/toradex/colibri_imx6/pf0100.c
@@ -17,6 +17,7 @@
#include <asm/gpio.h>
#include <asm/mach-imx/iomux-v3.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "pf0100_otp.inc"
#include "pf0100.h"
diff --git a/board/toradex/colibri_imx7/colibri_imx7.c b/board/toradex/colibri_imx7/colibri_imx7.c
index 9d091f05501e..69a17c885502 100644
--- a/board/toradex/colibri_imx7/colibri_imx7.c
+++ b/board/toradex/colibri_imx7/colibri_imx7.c
@@ -26,6 +26,7 @@
#include <jffs2/load_kernel.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <mmc.h>
#include <miiphy.h>
diff --git a/board/toradex/colibri_t30/colibri_t30.c b/board/toradex/colibri_t30/colibri_t30.c
index 7a185ef8ec96..729369a96c03 100644
--- a/board/toradex/colibri_t30/colibri_t30.c
+++ b/board/toradex/colibri_t30/colibri_t30.c
@@ -16,6 +16,7 @@
#include <i2c.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "pinmux-config-colibri_t30.h"
#include "../common/tdx-common.h"
diff --git a/board/toradex/colibri_vf/colibri_vf.c b/board/toradex/colibri_vf/colibri_vf.c
index 071c6b55b826..6361ffedb1fb 100644
--- a/board/toradex/colibri_vf/colibri_vf.c
+++ b/board/toradex/colibri_vf/colibri_vf.c
@@ -11,6 +11,7 @@
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <asm/arch/clock.h>
#include <asm/arch/crm_regs.h>
diff --git a/board/toradex/common/tdx-cfg-block.c b/board/toradex/common/tdx-cfg-block.c
index b0656501985e..4e4173c6d8e5 100644
--- a/board/toradex/common/tdx-cfg-block.c
+++ b/board/toradex/common/tdx-cfg-block.c
@@ -8,6 +8,7 @@
#include <vsprintf.h>
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "tdx-cfg-block.h"
#include "tdx-eeprom.h"
diff --git a/board/toradex/verdin-imx8mm/spl.c b/board/toradex/verdin-imx8mm/spl.c
index 19e4bc02a3bd..6ece3136fda3 100644
--- a/board/toradex/verdin-imx8mm/spl.c
+++ b/board/toradex/verdin-imx8mm/spl.c
@@ -24,6 +24,7 @@
#include <dm/uclass-internal.h>
#include <hang.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <power/bd71837.h>
#include <power/pmic.h>
diff --git a/board/tqc/tqma6/tqma6.c b/board/tqc/tqma6/tqma6.c
index 42dd0a8f173e..1b2855c9896e 100644
--- a/board/tqc/tqma6/tqma6.c
+++ b/board/tqc/tqma6/tqma6.c
@@ -26,6 +26,7 @@
#include <asm/mach-imx/spi.h>
#include <common.h>
#include <fsl_esdhc_imx.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <i2c.h>
#include <mmc.h>
diff --git a/board/tqc/tqma6/tqma6_mba6.c b/board/tqc/tqma6/tqma6_mba6.c
index e50bd9ecebd9..67e973ad7600 100644
--- a/board/tqc/tqma6/tqma6_mba6.c
+++ b/board/tqc/tqma6/tqma6_mba6.c
@@ -20,6 +20,7 @@
#include <linux/errno.h>
#include <asm/gpio.h>
#include <asm/mach-imx/mxc_i2c.h>
+#include <linux/kernel.h>
#include <common.h>
#include <fsl_esdhc_imx.h>
diff --git a/board/tqc/tqma6/tqma6_wru4.c b/board/tqc/tqma6/tqma6_wru4.c
index 70b1626e9721..3d2bbb97dd26 100644
--- a/board/tqc/tqma6/tqma6_wru4.c
+++ b/board/tqc/tqma6/tqma6_wru4.c
@@ -24,6 +24,7 @@
#include <asm/gpio.h>
#include <asm/mach-imx/boot_mode.h>
#include <asm/mach-imx/mxc_i2c.h>
+#include <linux/kernel.h>
#include <common.h>
#include <fsl_esdhc_imx.h>
diff --git a/board/udoo/neo/neo.c b/board/udoo/neo/neo.c
index 1853330e2ce3..4c004a755536 100644
--- a/board/udoo/neo/neo.c
+++ b/board/udoo/neo/neo.c
@@ -30,6 +30,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <common.h>
#include <i2c.h>
diff --git a/board/variscite/dart_6ul/dart_6ul.c b/board/variscite/dart_6ul/dart_6ul.c
index ec1e1d262cfe..3f554381e7b1 100644
--- a/board/variscite/dart_6ul/dart_6ul.c
+++ b/board/variscite/dart_6ul/dart_6ul.c
@@ -20,6 +20,7 @@
#include <miiphy.h>
#include <netdev.h>
#include <usb.h>
+#include <linux/kernel.h>
#include <usb/ehci-ci.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/variscite/dart_6ul/spl.c b/board/variscite/dart_6ul/spl.c
index 7610182b725f..bf4c6bd573e9 100644
--- a/board/variscite/dart_6ul/spl.c
+++ b/board/variscite/dart_6ul/spl.c
@@ -15,6 +15,7 @@
#include <asm/arch/crm_regs.h>
#include <fsl_esdhc_imx.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define UART_PAD_CTRL (PAD_CTL_PKE | PAD_CTL_PUE | \
diff --git a/board/varisys/common/sys_eeprom.c b/board/varisys/common/sys_eeprom.c
index 80cd3753cbf9..d285b0f36cdb 100644
--- a/board/varisys/common/sys_eeprom.c
+++ b/board/varisys/common/sys_eeprom.c
@@ -18,6 +18,7 @@
#include <vsprintf.h>
#include <linux/ctype.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/crc.h>
diff --git a/board/varisys/cyrus/law.c b/board/varisys/cyrus/law.c
index 8b1b118b5510..1cd9595246e3 100644
--- a/board/varisys/cyrus/law.c
+++ b/board/varisys/cyrus/law.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
struct law_entry law_table[] = {
SET_LAW(CONFIG_SYS_LBC0_BASE_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_LBC),
diff --git a/board/varisys/cyrus/tlb.c b/board/varisys/cyrus/tlb.c
index 381e898ad343..02f914b49772 100644
--- a/board/varisys/cyrus/tlb.c
+++ b/board/varisys/cyrus/tlb.c
@@ -6,6 +6,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c
index 8c44d6d18998..6a2c5718c66d 100644
--- a/board/wandboard/wandboard.c
+++ b/board/wandboard/wandboard.c
@@ -29,6 +29,7 @@
#include <env.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <common.h>
#include <miiphy.h>
diff --git a/board/warp/warp.c b/board/warp/warp.c
index a99e74b0c953..2d794b4344cd 100644
--- a/board/warp/warp.c
+++ b/board/warp/warp.c
@@ -21,6 +21,7 @@
#include <asm/io.h>
#include <asm/u-boot.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <common.h>
#include <watchdog.h>
diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c
index db255f36788f..d696fcdaac57 100644
--- a/board/warp7/warp7.c
+++ b/board/warp7/warp7.c
@@ -23,6 +23,7 @@
#include <netdev.h>
#include <asm/u-boot.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <power/pmic.h>
#include <power/pfuze3000_pmic.h>
#include "../freescale/common/pfuze.h"
diff --git a/board/xes/xpedite517x/ddr.c b/board/xes/xpedite517x/ddr.c
index 93bf7b9d5407..fc50740e2f16 100644
--- a/board/xes/xpedite517x/ddr.c
+++ b/board/xes/xpedite517x/ddr.c
@@ -10,6 +10,7 @@
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>
#include <log.h>
+#include <linux/kernel.h>
void get_spd(ddr2_spd_eeprom_t *spd, u8 i2c_address)
{
diff --git a/board/xes/xpedite517x/law.c b/board/xes/xpedite517x/law.c
index b82f9f0d3b11..bbe0f12bd6aa 100644
--- a/board/xes/xpedite517x/law.c
+++ b/board/xes/xpedite517x/law.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
/*
* Notes:
diff --git a/board/xes/xpedite520x/law.c b/board/xes/xpedite520x/law.c
index 10613ead3f21..4de72a0b76f9 100644
--- a/board/xes/xpedite520x/law.c
+++ b/board/xes/xpedite520x/law.c
@@ -10,6 +10,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
/*
* Notes:
diff --git a/board/xes/xpedite520x/tlb.c b/board/xes/xpedite520x/tlb.c
index 4091e2a5d8ba..c3bdec6d3768 100644
--- a/board/xes/xpedite520x/tlb.c
+++ b/board/xes/xpedite520x/tlb.c
@@ -9,6 +9,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/xes/xpedite537x/ddr.c b/board/xes/xpedite537x/ddr.c
index f3454fe5790a..8ebb64793ba5 100644
--- a/board/xes/xpedite537x/ddr.c
+++ b/board/xes/xpedite537x/ddr.c
@@ -8,6 +8,7 @@
#include <i2c.h>
#include <log.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr_dimm_params.h>
diff --git a/board/xes/xpedite537x/law.c b/board/xes/xpedite537x/law.c
index a1f375900cbe..cc9360d497da 100644
--- a/board/xes/xpedite537x/law.c
+++ b/board/xes/xpedite537x/law.c
@@ -10,6 +10,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
/*
* Notes:
diff --git a/board/xes/xpedite537x/tlb.c b/board/xes/xpedite537x/tlb.c
index 15c176a51b43..78fe9496d3a5 100644
--- a/board/xes/xpedite537x/tlb.c
+++ b/board/xes/xpedite537x/tlb.c
@@ -9,6 +9,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/xes/xpedite550x/law.c b/board/xes/xpedite550x/law.c
index 1e2d604d9d48..ce5658c4b113 100644
--- a/board/xes/xpedite550x/law.c
+++ b/board/xes/xpedite550x/law.c
@@ -10,6 +10,7 @@
#include <common.h>
#include <asm/fsl_law.h>
#include <asm/mmu.h>
+#include <linux/kernel.h>
/*
* Notes:
diff --git a/board/xes/xpedite550x/tlb.c b/board/xes/xpedite550x/tlb.c
index 5dc0c1e1460a..e99cd6806691 100644
--- a/board/xes/xpedite550x/tlb.c
+++ b/board/xes/xpedite550x/tlb.c
@@ -9,6 +9,7 @@
#include <asm/mmu.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
struct fsl_e_tlb_entry tlb_table[] = {
/* TLB 0 - for temp stack in cache */
diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
index 83ff23dacdc1..19de01caf0c7 100644
--- a/board/xilinx/common/board.c
+++ b/board/xilinx/common/board.c
@@ -12,6 +12,7 @@
#include <dm/uclass.h>
#include <i2c.h>
#include <linux/errno.h>
+#include <linux/kernel.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 385f5c752a57..7e21ffc1958f 100644
--- a/board/xilinx/microblaze-generic/microblaze-generic.c
+++ b/board/xilinx/microblaze-generic/microblaze-generic.c
@@ -20,6 +20,7 @@
#include <dm/lists.h>
#include <fdtdec.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/xilinx/zynq/cmds.c b/board/xilinx/zynq/cmds.c
index 00f2feba27b8..932c7c6f61e6 100644
--- a/board/xilinx/zynq/cmds.c
+++ b/board/xilinx/zynq/cmds.c
@@ -14,6 +14,7 @@
#include <asm/arch/sys_proto.h>
#include <malloc.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/md5.h>
#include <u-boot/rsa.h>
diff --git a/board/xilinx/zynqmp/cmds.c b/board/xilinx/zynqmp/cmds.c
index fe4ffba7fb63..52498147aef7 100644
--- a/board/xilinx/zynqmp/cmds.c
+++ b/board/xilinx/zynqmp/cmds.c
@@ -16,6 +16,7 @@
#include <asm/arch/sys_proto.h>
#include <asm/io.h>
#include <linux/errno.h>
+#include <linux/kernel.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 f185b17fc1b4..36208008d9b0 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -37,6 +37,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <linux/string.h>
#include "../common/board.h"
diff --git a/cmd/abootimg.c b/cmd/abootimg.c
index 73b6053c65d9..3c6de9a8e80d 100644
--- a/cmd/abootimg.c
+++ b/cmd/abootimg.c
@@ -11,6 +11,7 @@
#include <mapmem.h>
#include <stdio.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define abootimg_addr() \
diff --git a/cmd/acpi.c b/cmd/acpi.c
index a11cf5c29ac1..c47cfdfd95b1 100644
--- a/cmd/acpi.c
+++ b/cmd/acpi.c
@@ -7,6 +7,7 @@
#include <command.h>
#include <display_options.h>
#include <mapmem.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <acpi/acpi_table.h>
diff --git a/cmd/adtimg.c b/cmd/adtimg.c
index e31a5b10b563..ea6230ba1f04 100644
--- a/cmd/adtimg.c
+++ b/cmd/adtimg.c
@@ -11,6 +11,7 @@
#include <common.h>
#include <stdio.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define OPT_INDEX "--index"
diff --git a/cmd/aes.c b/cmd/aes.c
index db4cd114628b..b4a3dcc74c61 100644
--- a/cmd/aes.c
+++ b/cmd/aes.c
@@ -13,6 +13,7 @@
#include <asm/byteorder.h>
#include <linux/compiler.h>
#include <mapmem.h>
+#include <linux/kernel.h>
#include <linux/string.h>
u32 aes_get_key_len(char *command)
diff --git a/cmd/avb.c b/cmd/avb.c
index 6cf9648670a4..08711e3240a9 100644
--- a/cmd/avb.c
+++ b/cmd/avb.c
@@ -13,6 +13,7 @@
#include <mmc.h>
#include <stdio.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define AVB_BOOTARGS "avb_bootargs"
diff --git a/cmd/axi.c b/cmd/axi.c
index 68e8a06ae9ea..8a3a5f686692 100644
--- a/cmd/axi.c
+++ b/cmd/axi.c
@@ -19,6 +19,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
/* Currently selected AXI bus device */
static struct udevice *axi_cur_bus;
diff --git a/cmd/bcb.c b/cmd/bcb.c
index d145856d14f2..e95111796c7b 100644
--- a/cmd/bcb.c
+++ b/cmd/bcb.c
@@ -14,6 +14,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
enum bcb_cmd {
diff --git a/cmd/bind.c b/cmd/bind.c
index 91202fbd4a96..795b33cd84de 100644
--- a/cmd/bind.c
+++ b/cmd/bind.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <dm.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <dm/device-internal.h>
diff --git a/cmd/blkcache.c b/cmd/blkcache.c
index 632f73a58c0b..680bcd700a3e 100644
--- a/cmd/blkcache.c
+++ b/cmd/blkcache.c
@@ -11,6 +11,7 @@
#include <part.h>
#include <stdio.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
static int blkc_show(struct cmd_tbl *cmdtp, int flag,
int argc, char *const argv[])
diff --git a/cmd/bmp.c b/cmd/bmp.c
index a4c8c3f5c06c..d2ea39ed67a1 100644
--- a/cmd/bmp.c
+++ b/cmd/bmp.c
@@ -23,6 +23,7 @@
#include <video.h>
#include <vsprintf.h>
#include <asm/byteorder.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static int bmp_info (ulong addr);
diff --git a/cmd/bootcount.c b/cmd/bootcount.c
index a1ad62ad4191..d96e5099d246 100644
--- a/cmd/bootcount.c
+++ b/cmd/bootcount.c
@@ -4,6 +4,7 @@
#include <command.h>
#include <bootcount.h>
#include <stdio.h>
+#include <linux/kernel.h>
static int do_bootcount_print(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
diff --git a/cmd/bootm.c b/cmd/bootm.c
index 47272bf2cdc6..e253bdd9e927 100644
--- a/cmd/bootm.c
+++ b/cmd/bootm.c
@@ -22,6 +22,7 @@
#include <linux/ctype.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/zlib.h>
#include <mapmem.h>
diff --git a/cmd/bootstage.c b/cmd/bootstage.c
index 3cf4138e2d42..3649e749cd90 100644
--- a/cmd/bootstage.c
+++ b/cmd/bootstage.c
@@ -8,6 +8,7 @@
#include <command.h>
#include <stdio.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static int do_bootstage_report(struct cmd_tbl *cmdtp, int flag, int argc,
diff --git a/cmd/clk.c b/cmd/clk.c
index 5946d527d35a..a2bfce12aed6 100644
--- a/cmd/clk.c
+++ b/cmd/clk.c
@@ -13,6 +13,7 @@
#include <linux/clk-provider.h>
#endif
#include <stdio.h>
+#include <linux/kernel.h>
#if defined(CONFIG_DM) && defined(CONFIG_CLK)
static void show_clks(struct udevice *dev, int depth, int last_flag)
diff --git a/cmd/conitrace.c b/cmd/conitrace.c
index 0050831accfa..50efdcd26950 100644
--- a/cmd/conitrace.c
+++ b/cmd/conitrace.c
@@ -7,6 +7,7 @@
*/
#include <common.h>
#include <command.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/delay.h>
diff --git a/cmd/cpu.c b/cmd/cpu.c
index 4066f764292b..a4b1ee5b5770 100644
--- a/cmd/cpu.c
+++ b/cmd/cpu.c
@@ -13,6 +13,7 @@
#include <errno.h>
#include <stdio.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
static const char *cpu_feature_name[CPU_FEAT_COUNT] = {
"L1 cache",
diff --git a/cmd/cros_ec.c b/cmd/cros_ec.c
index 38f89dd05f67..7f089d7644ff 100644
--- a/cmd/cros_ec.c
+++ b/cmd/cros_ec.c
@@ -16,6 +16,7 @@
#include <vsprintf.h>
#include <dm/device-internal.h>
#include <dm/uclass-internal.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/* Note: depends on enum ec_current_image */
diff --git a/cmd/demo.c b/cmd/demo.c
index 39236e6955e0..52986bb8ee7d 100644
--- a/cmd/demo.c
+++ b/cmd/demo.c
@@ -14,6 +14,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <asm/io.h>
+#include <linux/kernel.h>
struct udevice *demo_dev;
diff --git a/cmd/dm.c b/cmd/dm.c
index 1dd19fe45b54..d606a8447c4f 100644
--- a/cmd/dm.c
+++ b/cmd/dm.c
@@ -15,6 +15,7 @@
#include <asm/io.h>
#include <dm/root.h>
#include <dm/util.h>
+#include <linux/kernel.h>
static int do_dm_dump_all(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
diff --git a/cmd/eeprom.c b/cmd/eeprom.c
index 5d6df466c1c2..d5b1ae536bba 100644
--- a/cmd/eeprom.c
+++ b/cmd/eeprom.c
@@ -25,6 +25,7 @@
#include <eeprom.h>
#include <i2c.h>
#include <eeprom_layout.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <linux/delay.h>
diff --git a/cmd/efi.c b/cmd/efi.c
index 762d4c1c3807..dd48101ae890 100644
--- a/cmd/efi.c
+++ b/cmd/efi.c
@@ -14,6 +14,7 @@
#include <stdio.h>
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static const char *const type_name[] = {
diff --git a/cmd/efidebug.c b/cmd/efidebug.c
index ca3804c33154..cc7a00c2bf2e 100644
--- a/cmd/efidebug.c
+++ b/cmd/efidebug.c
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <linux/ctype.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define BS systab.boottime
diff --git a/cmd/elf.c b/cmd/elf.c
index 3eaf1fe137dd..325fb19d8fca 100644
--- a/cmd/elf.c
+++ b/cmd/elf.c
@@ -22,6 +22,7 @@
#include <linux/linkage.h>
#endif
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/* Allow ports to override the default behavior */
diff --git a/cmd/ethsw.c b/cmd/ethsw.c
index 83a229720deb..a9f43c0b09e8 100644
--- a/cmd/ethsw.c
+++ b/cmd/ethsw.c
@@ -15,6 +15,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static const char *ethsw_name;
diff --git a/cmd/fdt.c b/cmd/fdt.c
index ba44460ea39d..8caff3e45ae6 100644
--- a/cmd/fdt.c
+++ b/cmd/fdt.c
@@ -14,6 +14,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <linux/ctype.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>
#include <asm/global_data.h>
diff --git a/cmd/fpga.c b/cmd/fpga.c
index b3ec2b25568e..d7e20a622d25 100644
--- a/cmd/fpga.c
+++ b/cmd/fpga.c
@@ -18,6 +18,7 @@
#include <malloc.h>
#include <stdio.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static long do_fpga_get_device(char *arg)
diff --git a/cmd/host.c b/cmd/host.c
index b06bbc922c93..50d953f7ff3d 100644
--- a/cmd/host.c
+++ b/cmd/host.c
@@ -13,6 +13,7 @@
#include <vsprintf.h>
#include <dm/device_compat.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
static int host_curr_device = -1;
diff --git a/cmd/i2c.c b/cmd/i2c.c
index b8f587a26faf..f21ed9ee354f 100644
--- a/cmd/i2c.c
+++ b/cmd/i2c.c
@@ -81,6 +81,7 @@
#include <linux/compiler.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/crc.h>
diff --git a/cmd/ini.c b/cmd/ini.c
index 0c25c7ae5fea..7c3849bd50ba 100644
--- a/cmd/ini.c
+++ b/cmd/ini.c
@@ -17,6 +17,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <linux/ctype.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#ifdef CONFIG_INI_MAX_LINE
diff --git a/cmd/io.c b/cmd/io.c
index d16bb4f8c618..62141846bab0 100644
--- a/cmd/io.c
+++ b/cmd/io.c
@@ -12,6 +12,7 @@
#include <display_options.h>
#include <vsprintf.h>
#include <asm/io.h>
+#include <linux/kernel.h>
/* Display values from last command */
static ulong last_addr, last_size;
diff --git a/cmd/itest.c b/cmd/itest.c
index 0d0e1521953a..5824a7f18d4c 100644
--- a/cmd/itest.c
+++ b/cmd/itest.c
@@ -18,6 +18,7 @@
#include <mapmem.h>
#include <stdio.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <asm/io.h>
diff --git a/cmd/load.c b/cmd/load.c
index b2db540e8d1b..c550f7643a91 100644
--- a/cmd/load.c
+++ b/cmd/load.c
@@ -24,6 +24,7 @@
#include <asm/cache.h>
#include <asm/global_data.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/cmd/log.c b/cmd/log.c
index 88efad8a9f9f..d9c76ccdd2ba 100644
--- a/cmd/log.c
+++ b/cmd/log.c
@@ -11,6 +11,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static char log_fmt_chars[LOGF_COUNT] = "clFLfm";
diff --git a/cmd/mem.c b/cmd/mem.c
index 7e951323a7a9..634c35c149e9 100644
--- a/cmd/mem.c
+++ b/cmd/mem.c
@@ -32,6 +32,7 @@
#include <linux/compiler.h>
#include <linux/ctype.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/cmd/mii.c b/cmd/mii.c
index d1c377595e28..2db28bb8aceb 100644
--- a/cmd/mii.c
+++ b/cmd/mii.c
@@ -14,6 +14,7 @@
#include <miiphy.h>
#include <stdio.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
typedef struct _MII_field_desc_t {
diff --git a/cmd/mmc.c b/cmd/mmc.c
index f76fbe28ea25..0e6dbd07f01a 100644
--- a/cmd/mmc.c
+++ b/cmd/mmc.c
@@ -16,6 +16,7 @@
#include <image-sparse.h>
#include <stdio.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static int curr_device = -1;
diff --git a/cmd/mtd.c b/cmd/mtd.c
index 70ba0d01c71e..24144546f9ab 100644
--- a/cmd/mtd.c
+++ b/cmd/mtd.c
@@ -19,6 +19,7 @@
#include <dm/devres.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/ctype.h>
diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c
index 43d0a5bb409f..f0c76c0b63d5 100644
--- a/cmd/mvebu/bubt.c
+++ b/cmd/mvebu/bubt.c
@@ -16,6 +16,7 @@
#include <errno.h>
#include <dm.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <spi_flash.h>
diff --git a/cmd/nand.c b/cmd/nand.c
index f52343c42cdc..f2f29a326fe0 100644
--- a/cmd/nand.c
+++ b/cmd/nand.c
@@ -26,6 +26,7 @@
#include <vsprintf.h>
#include <asm/cache.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/mtd/mtd.h>
#include <command.h>
#include <console.h>
diff --git a/cmd/nvedit.c b/cmd/nvedit.c
index e450bb14a54b..2fbbe52371b0 100644
--- a/cmd/nvedit.c
+++ b/cmd/nvedit.c
@@ -40,6 +40,7 @@
#include <asm/global_data.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include <u-boot/crc.h>
diff --git a/cmd/onenand.c b/cmd/onenand.c
index c71b8b98b9d3..252636012c1e 100644
--- a/cmd/onenand.c
+++ b/cmd/onenand.c
@@ -14,6 +14,7 @@
#include <malloc.h>
#include <stdio.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/cmd/osd.c b/cmd/osd.c
index 6cccd8968c19..a7527f8a73d8 100644
--- a/cmd/osd.c
+++ b/cmd/osd.c
@@ -18,6 +18,7 @@
#include <malloc.h>
#include <vsprintf.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/* Container for selected OSD device */
diff --git a/cmd/part.c b/cmd/part.c
index 796fb65baccc..69bac9824403 100644
--- a/cmd/part.c
+++ b/cmd/part.c
@@ -20,6 +20,7 @@
#include <command.h>
#include <env.h>
#include <part.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <linux/string.h>
diff --git a/cmd/pci.c b/cmd/pci.c
index ead55d46c21b..1ce1a7a36276 100644
--- a/cmd/pci.c
+++ b/cmd/pci.c
@@ -25,6 +25,7 @@
#include <asm/io.h>
#include <pci.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
struct pci_reg_info {
diff --git a/cmd/pinmux.c b/cmd/pinmux.c
index 84cbf564e8ad..1ca963501e13 100644
--- a/cmd/pinmux.c
+++ b/cmd/pinmux.c
@@ -11,6 +11,7 @@
#include <dm/pinctrl.h>
#include <dm/uclass-internal.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define LIMIT_DEVNAME 30
diff --git a/cmd/pmc.c b/cmd/pmc.c
index 753d7b8fbf04..b73d68b63013 100644
--- a/cmd/pmc.c
+++ b/cmd/pmc.c
@@ -9,6 +9,7 @@
#include <command.h>
#include <dm.h>
#include <stdio.h>
+#include <linux/kernel.h>
#include <power/acpi_pmc.h>
static int get_pmc_dev(struct udevice **devp)
diff --git a/cmd/pmic.c b/cmd/pmic.c
index 8e7956724f67..b26b13105582 100644
--- a/cmd/pmic.c
+++ b/cmd/pmic.c
@@ -11,6 +11,7 @@
#include <vsprintf.h>
#include <dm/uclass-internal.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <power/pmic.h>
#define LIMIT_DEV 32
diff --git a/cmd/pxe.c b/cmd/pxe.c
index 8804faa170a9..43b074ab9769 100644
--- a/cmd/pxe.c
+++ b/cmd/pxe.c
@@ -11,6 +11,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "pxe_utils.h"
diff --git a/cmd/pxe_utils.c b/cmd/pxe_utils.c
index af6071ed68a6..86f280bb1058 100644
--- a/cmd/pxe_utils.c
+++ b/cmd/pxe_utils.c
@@ -16,6 +16,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/ctype.h>
#include <errno.h>
diff --git a/cmd/pxe_utils.h b/cmd/pxe_utils.h
index b5a7d2780116..1a25ca4e88e7 100644
--- a/cmd/pxe_utils.h
+++ b/cmd/pxe_utils.h
@@ -3,6 +3,7 @@
#ifndef __PXE_UTILS_H
#define __PXE_UTILS_H
+#include <stdbool.h>
#include <linux/list.h>
/*
diff --git a/cmd/qfw.c b/cmd/qfw.c
index 0cb6b85504d4..ca60a05f6b1a 100644
--- a/cmd/qfw.c
+++ b/cmd/qfw.c
@@ -10,6 +10,7 @@
#include <qfw.h>
#include <stdio.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
/*
* This function prepares kernel for zboot. It loads kernel data
diff --git a/cmd/regulator.c b/cmd/regulator.c
index e492da4f03c4..e4968b7b372d 100644
--- a/cmd/regulator.c
+++ b/cmd/regulator.c
@@ -11,6 +11,7 @@
#include <vsprintf.h>
#include <dm/uclass-internal.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include <power/regulator.h>
diff --git a/cmd/remoteproc.c b/cmd/remoteproc.c
index fbb40095aa67..48f0e4684ceb 100644
--- a/cmd/remoteproc.c
+++ b/cmd/remoteproc.c
@@ -11,6 +11,7 @@
#include <remoteproc.h>
#include <stdio.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/**
diff --git a/cmd/rtc.c b/cmd/rtc.c
index 66d18b5973f0..78af8534e4ab 100644
--- a/cmd/rtc.c
+++ b/cmd/rtc.c
@@ -10,6 +10,7 @@
#include <rtc.h>
#include <stdio.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define MAX_RTC_BYTES 32
diff --git a/cmd/sb.c b/cmd/sb.c
index 16e37c18cb5e..c1819d14c2b1 100644
--- a/cmd/sb.c
+++ b/cmd/sb.c
@@ -11,6 +11,7 @@
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/state.h>
+#include <linux/kernel.h>
static int do_sb_handoff(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
diff --git a/cmd/sf.c b/cmd/sf.c
index c6a69422ebde..d57da5f8b0bc 100644
--- a/cmd/sf.c
+++ b/cmd/sf.c
@@ -21,6 +21,7 @@
#include <vsprintf.h>
#include <asm/cache.h>
#include <jffs2/jffs2.h>
+#include <linux/kernel.h>
#include <linux/mtd/mtd.h>
#include <linux/string.h>
diff --git a/cmd/sound.c b/cmd/sound.c
index c01ee4bd4c9a..d3f3aecfc667 100644
--- a/cmd/sound.c
+++ b/cmd/sound.c
@@ -12,6 +12,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/cmd/spl.c b/cmd/spl.c
index f6b9f4744287..e1557cfc0cca 100644
--- a/cmd/spl.c
+++ b/cmd/spl.c
@@ -12,6 +12,7 @@
#include <log.h>
#include <stdio.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/cmd/test.c b/cmd/test.c
index e95b8cb44067..d16f83ef1204 100644
--- a/cmd/test.c
+++ b/cmd/test.c
@@ -9,6 +9,7 @@
#include <fs.h>
#include <log.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define OP_INVALID 0
diff --git a/cmd/tlv_eeprom.c b/cmd/tlv_eeprom.c
index ca315dad0cc7..da052a9845ba 100644
--- a/cmd/tlv_eeprom.c
+++ b/cmd/tlv_eeprom.c
@@ -22,6 +22,7 @@
#include <asm/global_data.h>
#include <linux/ctype.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/crc.h>
diff --git a/cmd/tpm-v1.c b/cmd/tpm-v1.c
index 00d589fac072..0c96b10f06c1 100644
--- a/cmd/tpm-v1.c
+++ b/cmd/tpm-v1.c
@@ -12,6 +12,7 @@
#include <asm/unaligned.h>
#include <tpm-common.h>
#include <tpm-v1.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "tpm-user-utils.h"
diff --git a/cmd/tpm-v2.c b/cmd/tpm-v2.c
index 56c5aca12c8a..2be09f547d58 100644
--- a/cmd/tpm-v2.c
+++ b/cmd/tpm-v2.c
@@ -14,6 +14,7 @@
#include <tpm-v2.h>
#include <vsprintf.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "tpm-user-utils.h"
diff --git a/cmd/tpm_test.c b/cmd/tpm_test.c
index 39d1ad2b4af9..3a345877a253 100644
--- a/cmd/tpm_test.c
+++ b/cmd/tpm_test.c
@@ -10,6 +10,7 @@
#include <stdio.h>
#include <time.h>
#include <tpm-v1.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include "tpm-user-utils.h"
diff --git a/cmd/trace.c b/cmd/trace.c
index 0de1ac02ae2b..46b498700e90 100644
--- a/cmd/trace.c
+++ b/cmd/trace.c
@@ -11,6 +11,7 @@
#include <trace.h>
#include <vsprintf.h>
#include <asm/io.h>
+#include <linux/kernel.h>
static int get_args(int argc, char *const argv[], char **buff,
size_t *buff_ptr, size_t *buff_size)
diff --git a/cmd/ubi.c b/cmd/ubi.c
index 54955f5ef2ff..80c175eec517 100644
--- a/cmd/ubi.c
+++ b/cmd/ubi.c
@@ -23,6 +23,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <dm/devres.h>
+#include <linux/kernel.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/err.h>
diff --git a/cmd/x86/fsp.c b/cmd/x86/fsp.c
index ef49b530b55e..933fe8af406f 100644
--- a/cmd/x86/fsp.c
+++ b/cmd/x86/fsp.c
@@ -8,6 +8,7 @@
#include <stdio.h>
#include <asm/fsp/fsp_support.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/cmd/x86/hob.c b/cmd/x86/hob.c
index 37f540521651..ed1c42f4934c 100644
--- a/cmd/x86/hob.c
+++ b/cmd/x86/hob.c
@@ -10,6 +10,7 @@
#include <uuid.h>
#include <asm/global_data.h>
#include <asm/hob.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/cmd/x86/mtrr.c b/cmd/x86/mtrr.c
index 2f2e205d7100..a766eca7856d 100644
--- a/cmd/x86/mtrr.c
+++ b/cmd/x86/mtrr.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <command.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/msr.h>
diff --git a/cmd/ximg.c b/cmd/ximg.c
index 11acfaab4d9c..68f3d14c5b78 100644
--- a/cmd/ximg.c
+++ b/cmd/ximg.c
@@ -28,6 +28,7 @@
#include <asm/byteorder.h>
#include <asm/cache.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#ifndef CONFIG_SYS_XIMG_LEN
diff --git a/common/android_ab.c b/common/android_ab.c
index 4c58f7a75c85..5b0cb0b1d758 100644
--- a/common/android_ab.c
+++ b/common/android_ab.c
@@ -12,6 +12,7 @@
#include <memalign.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/crc.h>
#include <u-boot/crc.h>
diff --git a/common/autoboot.c b/common/autoboot.c
index 4ba7e25588ae..55bb2ee7adf6 100644
--- a/common/autoboot.c
+++ b/common/autoboot.c
@@ -18,6 +18,7 @@
#include <memalign.h>
#include <menu.h>
#include <post.h>
+#include <stdbool.h>
#include <stdio.h>
#include <time.h>
#include <vsprintf.h>
diff --git a/common/avb_verify.c b/common/avb_verify.c
index 230d576835d7..4c825e8553be 100644
--- a/common/avb_verify.c
+++ b/common/avb_verify.c
@@ -14,6 +14,7 @@
#include <stdio.h>
#include <tee.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <tee/optee_ta_avb.h>
diff --git a/common/bloblist.c b/common/bloblist.c
index 20a29c82bb51..234c40e741a9 100644
--- a/common/bloblist.c
+++ b/common/bloblist.c
@@ -11,6 +11,7 @@
#include <spl.h>
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/crc.h>
diff --git a/common/board_f.c b/common/board_f.c
index 384e7a69c42c..c727f2015176 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -57,6 +57,7 @@
#include <asm/u-boot.h>
#include <dm/root.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/*
diff --git a/common/board_r.c b/common/board_r.c
index f272e1e46688..7a715afa0054 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -27,6 +27,7 @@
#include <asm/global_data.h>
#include <asm/u-boot.h>
#include <linux/errno.h>
+#include <linux/kernel.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/bootm.c b/common/bootm.c
index 8398054ab5c5..71ef3b44a1ee 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -26,6 +26,7 @@
#include <usb.h>
#endif
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#else
#include "mkimage.h"
diff --git a/common/bootm_os.c b/common/bootm_os.c
index 2496a3cc6243..16c8a78722ad 100644
--- a/common/bootm_os.c
+++ b/common/bootm_os.c
@@ -18,6 +18,7 @@
#include <vsprintf.h>
#include <asm/global_data.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <malloc.h>
#include <mapmem.h>
diff --git a/common/bootstage.c b/common/bootstage.c
index 9eaa65b009f5..ddb78a5dcea6 100644
--- a/common/bootstage.c
+++ b/common/bootstage.c
@@ -16,6 +16,7 @@
#include <malloc.h>
#include <sort.h>
#include <spl.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/global_data.h>
diff --git a/common/bouncebuf.c b/common/bouncebuf.c
index 519ca264992b..8051c016942e 100644
--- a/common/bouncebuf.c
+++ b/common/bouncebuf.c
@@ -13,6 +13,7 @@
#include <bouncebuf.h>
#include <asm/cache.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static int addr_aligned(struct bounce_buffer *state)
diff --git a/common/cli.c b/common/cli.c
index 88053b587014..a83c606ee9eb 100644
--- a/common/cli.c
+++ b/common/cli.c
@@ -18,6 +18,7 @@
#include <fdtdec.h>
#include <hang.h>
#include <malloc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <linux/string.h>
diff --git a/common/cli_hush.c b/common/cli_hush.c
index 34facc8397eb..828b10db860e 100644
--- a/common/cli_hush.c
+++ b/common/cli_hush.c
@@ -90,6 +90,7 @@
#include <vsprintf.h>
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#endif
#ifndef __U_BOOT__
diff --git a/common/console.c b/common/console.c
index c3007f575c20..489afe602ab6 100644
--- a/common/console.c
+++ b/common/console.c
@@ -16,6 +16,7 @@
#include <mapmem.h>
#include <os.h>
#include <serial.h>
+#include <stdbool.h>
#include <stdio.h>
#include <stdio_dev.h>
#include <exports.h>
diff --git a/common/dfu.c b/common/dfu.c
index 75fd3e088ef0..13a3591b0389 100644
--- a/common/dfu.c
+++ b/common/dfu.c
@@ -13,6 +13,7 @@
#include <common.h>
#include <command.h>
#include <log.h>
+#include <stdbool.h>
#include <time.h>
#include <watchdog.h>
#include <dfu.h>
diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index 801d8633bae6..0f9e0d943785 100644
--- a/common/dlmalloc.c
+++ b/common/dlmalloc.c
@@ -3,6 +3,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#if CONFIG_IS_ENABLED(UNIT_TEST)
diff --git a/common/edid.c b/common/edid.c
index b047c7246300..a1b266e9c180 100644
--- a/common/edid.c
+++ b/common/edid.c
@@ -17,6 +17,7 @@
#include <stdio.h>
#include <linux/ctype.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
int edid_check_info(struct edid1_info *edid_info)
diff --git a/common/eeprom/eeprom_field.c b/common/eeprom/eeprom_field.c
index d67b0f4f0b81..7fd2a2fa4fad 100644
--- a/common/eeprom/eeprom_field.c
+++ b/common/eeprom/eeprom_field.c
@@ -7,6 +7,7 @@
*/
#include <common.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <linux/string.h>
diff --git a/common/fdt_support.c b/common/fdt_support.c
index d506d580914a..230e599a44c5 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -15,6 +15,7 @@
#include <stdio_dev.h>
#include <vsprintf.h>
#include <linux/ctype.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>
#include <asm/global_data.h>
diff --git a/common/hash.c b/common/hash.c
index e44fdedc2fa4..91b2fc41eb57 100644
--- a/common/hash.c
+++ b/common/hash.c
@@ -23,6 +23,7 @@
#include <asm/global_data.h>
#include <asm/io.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/crc.h>
#else
diff --git a/common/image-android-dt.c b/common/image-android-dt.c
index 74dcbdd1608e..456c4c584f0f 100644
--- a/common/image-android-dt.c
+++ b/common/image-android-dt.c
@@ -7,6 +7,7 @@
#include <image-android-dt.h>
#include <dt_table.h>
#include <common.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/libfdt.h>
#include <mapmem.h>
diff --git a/common/image-android.c b/common/image-android.c
index 1615f2c415d5..a4dea76bde5d 100644
--- a/common/image-android.c
+++ b/common/image-android.c
@@ -14,6 +14,7 @@
#include <asm/unaligned.h>
#include <mapmem.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <linux/string.h>
diff --git a/common/image-cipher.c b/common/image-cipher.c
index d9a1230f26f5..7a9892b930c6 100644
--- a/common/image-cipher.c
+++ b/common/image-cipher.c
@@ -12,6 +12,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
#endif /* !USE_HOSdTCC*/
diff --git a/common/image-fit-sig.c b/common/image-fit-sig.c
index e65e27f5109f..52e82777e3d0 100644
--- a/common/image-fit-sig.c
+++ b/common/image-fit-sig.c
@@ -13,6 +13,7 @@
#include <stdio.h>
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.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 bc12b3fe0e6c..a0683072b43e 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -14,6 +14,7 @@
#include <linux/libfdt.h>
#include <u-boot/crc.h>
#else
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <linux/compiler.h>
diff --git a/common/image-sig.c b/common/image-sig.c
index 6cb5bedc8a95..aef02638d79f 100644
--- a/common/image-sig.c
+++ b/common/image-sig.c
@@ -13,6 +13,7 @@
#include <log.h>
#include <malloc.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
#endif /* !USE_HOSTCC*/
diff --git a/common/image.c b/common/image.c
index 565a5ebeed59..341807059ee9 100644
--- a/common/image.c
+++ b/common/image.c
@@ -19,6 +19,7 @@
#include <vsprintf.h>
#include <asm/cache.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/crc.h>
#include <watchdog.h>
diff --git a/common/init/board_init.c b/common/init/board_init.c
index 319d59b51641..d3059c46bdcf 100644
--- a/common/init/board_init.c
+++ b/common/init/board_init.c
@@ -10,6 +10,7 @@
#include <bootstage.h>
#include <init.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/common/iotrace.c b/common/iotrace.c
index 63d0cca3a004..d342e317d632 100644
--- a/common/iotrace.c
+++ b/common/iotrace.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <mapmem.h>
+#include <stdbool.h>
#include <time.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/common/lcd.c b/common/lcd.c
index f71477c2963c..b4352229c5b2 100644
--- a/common/lcd.c
+++ b/common/lcd.c
@@ -18,6 +18,7 @@
#include <asm/cache.h>
#include <init.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>
#include <stdio_dev.h>
diff --git a/common/lcd_console.c b/common/lcd_console.c
index 6c70b88e10ee..fe2ef2f5b9e6 100644
--- a/common/lcd_console.c
+++ b/common/lcd_console.c
@@ -17,6 +17,7 @@
#include <bmp_logo.h>
#endif
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static struct console_t cons;
diff --git a/common/log.c b/common/log.c
index 79e23aacece5..c8d13365caa3 100644
--- a/common/log.c
+++ b/common/log.c
@@ -14,6 +14,7 @@
#include <asm/global_data.h>
#include <dm/uclass.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/common/malloc_simple.c b/common/malloc_simple.c
index 805b044515fc..b8b9d7608cd5 100644
--- a/common/malloc_simple.c
+++ b/common/malloc_simple.c
@@ -13,6 +13,7 @@
#include <mapmem.h>
#include <asm/global_data.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 671bda67ed7e..51d777f4ee7a 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -25,6 +25,7 @@
#include <nand.h>
#include <fat.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/crc.h>
#include <version.h>
diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c
index 4d588a85c8fe..7a65035ba869 100644
--- a/common/spl/spl_fit.c
+++ b/common/spl/spl_fit.c
@@ -13,6 +13,7 @@
#include <log.h>
#include <malloc.h>
#include <spl.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/cache.h>
#include <asm/global_data.h>
diff --git a/common/spl/spl_sata.c b/common/spl/spl_sata.c
index 599243f1823f..33311c2813ad 100644
--- a/common/spl/spl_sata.c
+++ b/common/spl/spl_sata.c
@@ -18,6 +18,7 @@
#include <fat.h>
#include <image.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#ifndef CONFIG_SYS_SATA_FAT_BOOT_PARTITION
#define CONFIG_SYS_SATA_FAT_BOOT_PARTITION 1
diff --git a/common/spl/spl_spi.c b/common/spl/spl_spi.c
index 1121813abf05..0974e9e6f5db 100644
--- a/common/spl/spl_spi.c
+++ b/common/spl/spl_spi.c
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/common/splash.c b/common/splash.c
index 174f82486eb7..575003e65613 100644
--- a/common/splash.c
+++ b/common/splash.c
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <linux/errno.h>
+#include <linux/kernel.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 9c5c285b76ed..be7e90c38809 100644
--- a/common/splash_source.c
+++ b/common/splash_source.c
@@ -24,6 +24,7 @@
#include <vsprintf.h>
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/common/update.c b/common/update.c
index ab92824c70f4..f5041c6171a8 100644
--- a/common/update.c
+++ b/common/update.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <cpu_func.h>
#include <image.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <linux/errno.h>
diff --git a/common/usb.c b/common/usb.c
index 16b51e8f4c7c..98e7582c2a27 100644
--- a/common/usb.c
+++ b/common/usb.c
@@ -31,6 +31,7 @@
#include <log.h>
#include <malloc.h>
#include <memalign.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/processor.h>
#include <linux/compiler.h>
diff --git a/common/usb_hub.c b/common/usb_hub.c
index 46d074f0b55d..5abbb1b0a400 100644
--- a/common/usb_hub.c
+++ b/common/usb_hub.c
@@ -37,6 +37,7 @@
#include <linux/ctype.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 3fafbda40fd4..b2967330b698 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -20,6 +20,7 @@
#include <watchdog.h>
#include <asm/byteorder.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <usb.h>
diff --git a/common/xyzModem.c b/common/xyzModem.c
index 46dbf7c7ee60..732548f4f2d3 100644
--- a/common/xyzModem.c
+++ b/common/xyzModem.c
@@ -22,6 +22,7 @@
*==========================================================================
*/
#include <common.h>
+#include <stdbool.h>
#include <time.h>
#include <vsprintf.h>
#include <xyzModem.h>
diff --git a/drivers/adc/adc-uclass.c b/drivers/adc/adc-uclass.c
index fa88040126f7..f4d108477d70 100644
--- a/drivers/adc/adc-uclass.c
+++ b/drivers/adc/adc-uclass.c
@@ -8,6 +8,7 @@
#include <errno.h>
#include <div64.h>
#include <dm.h>
+#include <stdbool.h>
#include <stdio.h>
#include <dm/lists.h>
#include <dm/device-internal.h>
diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c
index 785d37c238f5..cf2d0c144083 100644
--- a/drivers/adc/meson-saradc.c
+++ b/drivers/adc/meson-saradc.c
@@ -18,6 +18,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/math64.h>
#include <linux/bitfield.h>
#include <linux/printk.h>
diff --git a/drivers/adc/stm32-adc-core.c b/drivers/adc/stm32-adc-core.c
index a3d255d786c4..e4e348120616 100644
--- a/drivers/adc/stm32-adc-core.c
+++ b/drivers/adc/stm32-adc-core.c
@@ -12,6 +12,7 @@
#include <dm/device_compat.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.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 8c90bb711ca8..d0ac0a8c0a9b 100644
--- a/drivers/adc/stm32-adc.c
+++ b/drivers/adc/stm32-adc.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <adc.h>
#include <dm.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <dm/device_compat.h>
#include <linux/bitops.h>
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index e31e280f5416..1424708b59cf 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -16,6 +16,7 @@
#include <time.h>
#include <linux/bitops.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <command.h>
diff --git a/drivers/ata/fsl_sata.c b/drivers/ata/fsl_sata.c
index 884ce4449d4d..f90835758b73 100644
--- a/drivers/ata/fsl_sata.c
+++ b/drivers/ata/fsl_sata.c
@@ -22,6 +22,7 @@
#include <sata.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "fsl_sata.h"
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
index 849b6892ba85..b459ac5aa3bf 100644
--- a/drivers/ata/sata_mv.c
+++ b/drivers/ata/sata_mv.c
@@ -52,6 +52,7 @@
#include <linux/delay.h>
#include <linux/errno.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include <linux/mbus.h>
#include <linux/string.h>
diff --git a/drivers/axi/axi-emul-uclass.c b/drivers/axi/axi-emul-uclass.c
index fb56b824513f..e4ba71f21f1b 100644
--- a/drivers/axi/axi-emul-uclass.c
+++ b/drivers/axi/axi-emul-uclass.c
@@ -11,6 +11,7 @@
#include <dm/device-internal.h>
#include <asm/axi.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
int axi_sandbox_get_emul(struct udevice *bus, ulong address,
enum axi_size_t size, struct udevice **emulp)
diff --git a/drivers/axi/sandbox_store.c b/drivers/axi/sandbox_store.c
index 72a4191946e3..7342230eb7f3 100644
--- a/drivers/axi/sandbox_store.c
+++ b/drivers/axi/sandbox_store.c
@@ -10,6 +10,7 @@
#include <log.h>
#include <malloc.h>
#include <linux/errno.h>
+#include <linux/kernel.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 d49839542a55..b57d512ebb7d 100644
--- a/drivers/bios_emulator/atibios.c
+++ b/drivers/bios_emulator/atibios.c
@@ -51,6 +51,7 @@
#include <errno.h>
#include <log.h>
#include <malloc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vbe.h>
#include <linux/delay.h>
diff --git a/drivers/bios_emulator/x86emu/prim_ops.c b/drivers/bios_emulator/x86emu/prim_ops.c
index 5f6c795fb7ff..7fe968cb817c 100644
--- a/drivers/bios_emulator/x86emu/prim_ops.c
+++ b/drivers/bios_emulator/x86emu/prim_ops.c
@@ -98,6 +98,7 @@
****************************************************************************/
#include <common.h>
+#include <linux/kernel.h>
#define PRIM_OPS_NO_REDEFINE_ASM
#include "x86emu/x86emui.h"
diff --git a/drivers/board/board-uclass.c b/drivers/board/board-uclass.c
index 57a28f065bfc..7a83862563cb 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 <stdbool.h>
#include <linux/errno.h>
int board_get(struct udevice **devp)
diff --git a/drivers/board/gazerbeam.c b/drivers/board/gazerbeam.c
index 7be676fff58c..8c0a70d15b65 100644
--- a/drivers/board/gazerbeam.c
+++ b/drivers/board/gazerbeam.c
@@ -11,6 +11,7 @@
#include <log.h>
#include <asm/gpio.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "gazerbeam.h"
diff --git a/drivers/board/sandbox.c b/drivers/board/sandbox.c
index 5de827504188..0ed52a773969 100644
--- a/drivers/board/sandbox.c
+++ b/drivers/board/sandbox.c
@@ -9,6 +9,7 @@
#include <board.h>
#include <vsprintf.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "sandbox.h"
diff --git a/drivers/bootcount/bootcount.c b/drivers/bootcount/bootcount.c
index 0a2fb50efeae..82de6f720690 100644
--- a/drivers/bootcount/bootcount.c
+++ b/drivers/bootcount/bootcount.c
@@ -9,6 +9,7 @@
#include <asm/cache.h>
#include <linux/compiler.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#if !defined(CONFIG_DM_BOOTCOUNT)
/* Now implement the generic default functions */
diff --git a/drivers/clk/altera/clk-agilex.c b/drivers/clk/altera/clk-agilex.c
index e6c01dd7b32f..358201e3d986 100644
--- a/drivers/clk/altera/clk-agilex.c
+++ b/drivers/clk/altera/clk-agilex.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <clk-uclass.h>
diff --git a/drivers/clk/altera/clk-arria10.c b/drivers/clk/altera/clk-arria10.c
index 85300e611785..53e28ed76d0a 100644
--- a/drivers/clk/altera/clk-arria10.c
+++ b/drivers/clk/altera/clk-arria10.c
@@ -15,6 +15,7 @@
#include <dm/util.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.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 291a23d93f70..664643003779 100644
--- a/drivers/clk/analogbits/wrpll-cln28hpc.c
+++ b/drivers/clk/analogbits/wrpll-cln28hpc.c
@@ -24,6 +24,7 @@
#include <linux/bug.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.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 e837e0cd19a7..038898abbb0e 100644
--- a/drivers/clk/aspeed/clk_ast2500.c
+++ b/drivers/clk/aspeed/clk_ast2500.c
@@ -15,6 +15,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
/*
* MAC Clock Delay settings, taken from Aspeed SDK
diff --git a/drivers/clk/at91/clk-generated.c b/drivers/clk/at91/clk-generated.c
index a65cadee3729..4948f02c42fd 100644
--- a/drivers/clk/at91/clk-generated.c
+++ b/drivers/clk/at91/clk-generated.c
@@ -12,6 +12,7 @@
#include <asm/global_data.h>
#include <linux/err.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <mach/at91_pmc.h>
#include "pmc.h"
diff --git a/drivers/clk/at91/clk-usb.c b/drivers/clk/at91/clk-usb.c
index 416a5007f685..3b5fedd9bbe7 100644
--- a/drivers/clk/at91/clk-usb.c
+++ b/drivers/clk/at91/clk-usb.c
@@ -11,6 +11,7 @@
#include <dm/device.h>
#include <linux/err.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <mach/at91_pmc.h>
#include "pmc.h"
diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c
index 91e57b387770..4b22c8192294 100644
--- a/drivers/clk/at91/pmc.c
+++ b/drivers/clk/at91/pmc.c
@@ -8,6 +8,7 @@
#include <clk-uclass.h>
#include <dm.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <dm/lists.h>
#include <dm/util.h>
diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c
index d2039512b216..fb5029c40a30 100644
--- a/drivers/clk/clk-divider.c
+++ b/drivers/clk/clk-divider.c
@@ -22,6 +22,7 @@
#include <linux/clk-provider.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/log2.h>
#include <div64.h>
#include <clk.h>
diff --git a/drivers/clk/clk-hsdk-cgu.c b/drivers/clk/clk-hsdk-cgu.c
index 6f4cd1ecf2ab..c2b33b41f84e 100644
--- a/drivers/clk/clk-hsdk-cgu.c
+++ b/drivers/clk/clk-hsdk-cgu.c
@@ -20,6 +20,7 @@
#include <linux/errno.h>
#include <linux/io.h>
#include <asm/arcregs.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <dt-bindings/clock/snps,hsdk-cgu.h>
diff --git a/drivers/clk/clk-ti-sci.c b/drivers/clk/clk-ti-sci.c
index 0f31ee73d9e3..45ce1995d033 100644
--- a/drivers/clk/clk-ti-sci.c
+++ b/drivers/clk/clk-ti-sci.c
@@ -17,6 +17,7 @@
#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 <k3-avs.h>
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 5dac14c185e5..f2d0981e1913 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <clk-uclass.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <dm/device.h>
#include <dm/uclass.h>
diff --git a/drivers/clk/clk_sandbox.c b/drivers/clk/clk_sandbox.c
index d1e2c0dab316..ad68c6174074 100644
--- a/drivers/clk/clk_sandbox.c
+++ b/drivers/clk/clk_sandbox.c
@@ -8,6 +8,7 @@
#include <dm.h>
#include <errno.h>
#include <malloc.h>
+#include <stdbool.h>
#include <asm/clk.h>
#include <linux/errno.h>
diff --git a/drivers/clk/clk_sandbox_ccf.c b/drivers/clk/clk_sandbox_ccf.c
index b282735c1d6e..b528c635552e 100644
--- a/drivers/clk/clk_sandbox_ccf.c
+++ b/drivers/clk/clk_sandbox_ccf.c
@@ -18,6 +18,7 @@
#include <sandbox-clk.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
/*
* Sandbox implementation of CCF primitives necessary for clk-uclass testing
diff --git a/drivers/clk/clk_stm32f.c b/drivers/clk/clk_stm32f.c
index 4d0eadf7e4f5..b0d5699e080b 100644
--- a/drivers/clk/clk_stm32f.c
+++ b/drivers/clk/clk_stm32f.c
@@ -11,6 +11,7 @@
#include <stm32_rcc.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/clk/clk_stm32mp1.c b/drivers/clk/clk_stm32mp1.c
index e7e57ad73a95..a57f3f81f73c 100644
--- a/drivers/clk/clk_stm32mp1.c
+++ b/drivers/clk/clk_stm32mp1.c
@@ -23,6 +23,7 @@
#include <asm/arch/sys_proto.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
#include <dt-bindings/clock/stm32mp1-clksrc.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/clk/clk_versal.c b/drivers/clk/clk_versal.c
index b73dcc2980d6..de309923b10a 100644
--- a/drivers/clk/clk_versal.c
+++ b/drivers/clk/clk_versal.c
@@ -20,6 +20,7 @@
#include <zynqmp_firmware.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define MAX_PARENT 100
diff --git a/drivers/clk/clk_zynq.c b/drivers/clk/clk_zynq.c
index 2c8b851295cf..e20b668fd849 100644
--- a/drivers/clk/clk_zynq.c
+++ b/drivers/clk/clk_zynq.c
@@ -21,6 +21,7 @@
#include <asm/arch/hardware.h>
#include <asm/arch/sys_proto.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
/* Register bitfield defines */
#define PLLCTRL_FBDIV_MASK 0x7f000
diff --git a/drivers/clk/clk_zynqmp.c b/drivers/clk/clk_zynqmp.c
index 3ebf6223c06d..0fb220022ca7 100644
--- a/drivers/clk/clk_zynqmp.c
+++ b/drivers/clk/clk_zynqmp.c
@@ -17,6 +17,7 @@
#include <dm.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.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/imx/clk-composite-8m.c b/drivers/clk/imx/clk-composite-8m.c
index 64756ed9e642..d03e48bfb3c2 100644
--- a/drivers/clk/imx/clk-composite-8m.c
+++ b/drivers/clk/imx/clk-composite-8m.c
@@ -13,6 +13,7 @@
#include <linux/clk-provider.h>
#include <clk.h>
#include <linux/errno.h>
+#include <linux/kernel.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 0e3678acc639..f1b06731bcea 100644
--- a/drivers/clk/imx/clk-gate2.c
+++ b/drivers/clk/imx/clk-gate2.c
@@ -23,6 +23,7 @@
#include <linux/clk-provider.h>
#include <clk.h>
#include <linux/errno.h>
+#include <linux/kernel.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 709c2883da58..ddfa3deccbd9 100644
--- a/drivers/clk/imx/clk-imx6q.c
+++ b/drivers/clk/imx/clk-imx6q.c
@@ -13,6 +13,7 @@
#include <asm/arch/imx-regs.h>
#include <dt-bindings/clock/imx6qdl-clock.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "clk.h"
diff --git a/drivers/clk/imx/clk-imx8.c b/drivers/clk/imx/clk-imx8.c
index 63fd42a29461..8b09554d3f4b 100644
--- a/drivers/clk/imx/clk-imx8.c
+++ b/drivers/clk/imx/clk-imx8.c
@@ -9,6 +9,7 @@
#include <dm.h>
#include <log.h>
#include <malloc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/arch/sci/sci.h>
#include <asm/arch/clock.h>
diff --git a/drivers/clk/imx/clk-imx8.h b/drivers/clk/imx/clk-imx8.h
index 68ad6755e80f..7a1433d2af65 100644
--- a/drivers/clk/imx/clk-imx8.h
+++ b/drivers/clk/imx/clk-imx8.h
@@ -4,6 +4,7 @@
* Peng Fan <peng.fan at nxp.com>
*/
+#include <stdbool.h>
struct imx8_clks {
ulong id;
const char *name;
diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c
index 081d8aee01bd..02a006dd58e5 100644
--- a/drivers/clk/imx/clk-imx8mm.c
+++ b/drivers/clk/imx/clk-imx8mm.c
@@ -13,6 +13,7 @@
#include <asm/arch/imx-regs.h>
#include <dt-bindings/clock/imx8mm-clock.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "clk.h"
diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c
index c35689bdea4c..e8286e5e1642 100644
--- a/drivers/clk/imx/clk-imx8mn.c
+++ b/drivers/clk/imx/clk-imx8mn.c
@@ -13,6 +13,7 @@
#include <asm/arch/imx-regs.h>
#include <dt-bindings/clock/imx8mn-clock.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "clk.h"
diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c
index 883a29a4f315..b6a6ad73a683 100644
--- a/drivers/clk/imx/clk-imx8mp.c
+++ b/drivers/clk/imx/clk-imx8mp.c
@@ -13,6 +13,7 @@
#include <asm/arch/imx-regs.h>
#include <dt-bindings/clock/imx8mp-clock.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "clk.h"
diff --git a/drivers/clk/imx/clk-imx8qm.c b/drivers/clk/imx/clk-imx8qm.c
index 1a818694d252..e21102c319d4 100644
--- a/drivers/clk/imx/clk-imx8qm.c
+++ b/drivers/clk/imx/clk-imx8qm.c
@@ -15,6 +15,7 @@
#include <dt-bindings/soc/imx_rsrc.h>
#include <misc.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "clk-imx8.h"
diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c
index 755d8518f645..d061f11a7563 100644
--- a/drivers/clk/imx/clk-imx8qxp.c
+++ b/drivers/clk/imx/clk-imx8qxp.c
@@ -15,6 +15,7 @@
#include <dt-bindings/soc/imx_rsrc.h>
#include <misc.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "clk-imx8.h"
diff --git a/drivers/clk/imx/clk-imxrt1020.c b/drivers/clk/imx/clk-imxrt1020.c
index 6bf82fee4eb5..898dfe310841 100644
--- a/drivers/clk/imx/clk-imxrt1020.c
+++ b/drivers/clk/imx/clk-imxrt1020.c
@@ -12,6 +12,7 @@
#include <asm/arch/imx-regs.h>
#include <dt-bindings/clock/imxrt1020-clock.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "clk.h"
diff --git a/drivers/clk/imx/clk-imxrt1050.c b/drivers/clk/imx/clk-imxrt1050.c
index 4127fa752364..fc022f54a75c 100644
--- a/drivers/clk/imx/clk-imxrt1050.c
+++ b/drivers/clk/imx/clk-imxrt1050.c
@@ -13,6 +13,7 @@
#include <asm/arch/imx-regs.h>
#include <dt-bindings/clock/imxrt1050-clock.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "clk.h"
diff --git a/drivers/clk/imx/clk-pfd.c b/drivers/clk/imx/clk-pfd.c
index 08f1234aab28..9b2fce7174af 100644
--- a/drivers/clk/imx/clk-pfd.c
+++ b/drivers/clk/imx/clk-pfd.c
@@ -24,6 +24,7 @@
#include <div64.h>
#include <clk.h>
#include <linux/errno.h>
+#include <linux/kernel.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 a9b56b79027a..147bf3159805 100644
--- a/drivers/clk/imx/clk-pll14xx.c
+++ b/drivers/clk/imx/clk-pll14xx.c
@@ -19,6 +19,7 @@
#include <linux/iopoll.h>
#include <clk.h>
#include <div64.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include "clk.h"
diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c
index a0193e185195..ec690a24981c 100644
--- a/drivers/clk/imx/clk-pllv3.c
+++ b/drivers/clk/imx/clk-pllv3.c
@@ -14,6 +14,7 @@
#include <dm/uclass.h>
#include <clk.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "clk.h"
#include <linux/err.h>
diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h
index 60f287046b9e..04b7bb78daef 100644
--- a/drivers/clk/imx/clk.h
+++ b/drivers/clk/imx/clk.h
@@ -7,6 +7,7 @@
#define __MACH_IMX_CLK_H
#include <linux/clk-provider.h>
+#include <linux/kernel.h>
enum imx_pllv3_type {
IMX_PLLV3_GENERIC,
diff --git a/drivers/clk/kendryte/clk.c b/drivers/clk/kendryte/clk.c
index 5128cca10607..e8f764d792ba 100644
--- a/drivers/clk/kendryte/clk.c
+++ b/drivers/clk/kendryte/clk.c
@@ -4,6 +4,7 @@
*/
#include <kendryte/clk.h>
#include <linux/errno.h>
+#include <linux/kernel.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 68c93a5f965a..d4788ba81406 100644
--- a/drivers/clk/kendryte/pll.c
+++ b/drivers/clk/kendryte/pll.c
@@ -5,6 +5,7 @@
#define LOG_CATEGORY UCLASS_CLK
#include <kendryte/pll.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <common.h>
#include <dm.h>
diff --git a/drivers/clk/mediatek/clk-mtk.h b/drivers/clk/mediatek/clk-mtk.h
index 95a23d14a8e0..57a76e69432c 100644
--- a/drivers/clk/mediatek/clk-mtk.h
+++ b/drivers/clk/mediatek/clk-mtk.h
@@ -8,6 +8,7 @@
#define __DRV_CLK_MTK_H
#include <linux/bitops.h>
+#include <linux/kernel.h>
#define CLK_XTAL 0
#define MHZ (1000 * 1000)
diff --git a/drivers/clk/meson/axg.c b/drivers/clk/meson/axg.c
index 99b4da094174..ddf20ab3d8c2 100644
--- a/drivers/clk/meson/axg.c
+++ b/drivers/clk/meson/axg.c
@@ -17,6 +17,7 @@
#include <dt-bindings/clock/axg-clkc.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "clk_meson.h"
#include <linux/err.h>
diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c
index d66b23c2a90c..62e8e35d654f 100644
--- a/drivers/clk/meson/gxbb.c
+++ b/drivers/clk/meson/gxbb.c
@@ -17,6 +17,7 @@
#include <dt-bindings/clock/gxbb-clkc.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "clk_meson.h"
#include <linux/err.h>
diff --git a/drivers/clk/mpc83xx_clk.c b/drivers/clk/mpc83xx_clk.c
index a390fea85f64..8dae8313db92 100644
--- a/drivers/clk/mpc83xx_clk.c
+++ b/drivers/clk/mpc83xx_clk.c
@@ -19,6 +19,7 @@
#include <asm/ppc.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "mpc83xx_clk.h"
diff --git a/drivers/clk/mtmips/clk-mt7628.c b/drivers/clk/mtmips/clk-mt7628.c
index f013c77df289..12ae5a92354d 100644
--- a/drivers/clk/mtmips/clk-mt7628.c
+++ b/drivers/clk/mtmips/clk-mt7628.c
@@ -12,6 +12,7 @@
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/io.h>
+#include <linux/kernel.h>
/* SYSCFG0 */
#define XTAL_40M_SEL BIT(6)
diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c
index dd2b0b9914b6..6f279939c519 100644
--- a/drivers/clk/mvebu/armada-37xx-periph.c
+++ b/drivers/clk/mvebu/armada-37xx-periph.c
@@ -19,6 +19,7 @@
#include <dm/device_compat.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define TBG_SEL 0x0
diff --git a/drivers/clk/renesas/clk-rcar-gen3.c b/drivers/clk/renesas/clk-rcar-gen3.c
index be230d1d923c..c4f5a63b7a3f 100644
--- a/drivers/clk/renesas/clk-rcar-gen3.c
+++ b/drivers/clk/renesas/clk-rcar-gen3.c
@@ -21,6 +21,7 @@
#include <asm/io.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <dt-bindings/clock/renesas-cpg-mssr.h>
diff --git a/drivers/clk/renesas/r8a774a1-cpg-mssr.c b/drivers/clk/renesas/r8a774a1-cpg-mssr.c
index 8935667736f7..f409e666a97d 100644
--- a/drivers/clk/renesas/r8a774a1-cpg-mssr.c
+++ b/drivers/clk/renesas/r8a774a1-cpg-mssr.c
@@ -13,6 +13,7 @@
#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
+#include <linux/kernel.h>
#include <dt-bindings/clock/r8a774a1-cpg-mssr.h>
diff --git a/drivers/clk/renesas/r8a7790-cpg-mssr.c b/drivers/clk/renesas/r8a7790-cpg-mssr.c
index 7451f53ba39a..9eb30d9c9fb6 100644
--- a/drivers/clk/renesas/r8a7790-cpg-mssr.c
+++ b/drivers/clk/renesas/r8a7790-cpg-mssr.c
@@ -13,6 +13,7 @@
#include <clk-uclass.h>
#include <dm.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <dt-bindings/clock/r8a7790-cpg-mssr.h>
diff --git a/drivers/clk/renesas/r8a7791-cpg-mssr.c b/drivers/clk/renesas/r8a7791-cpg-mssr.c
index 25fd48960945..7ddac6d20ad0 100644
--- a/drivers/clk/renesas/r8a7791-cpg-mssr.c
+++ b/drivers/clk/renesas/r8a7791-cpg-mssr.c
@@ -18,6 +18,7 @@
#include <clk-uclass.h>
#include <dm.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <dt-bindings/clock/r8a7791-cpg-mssr.h>
diff --git a/drivers/clk/renesas/r8a7792-cpg-mssr.c b/drivers/clk/renesas/r8a7792-cpg-mssr.c
index d47ab99e8826..0d43004bfc42 100644
--- a/drivers/clk/renesas/r8a7792-cpg-mssr.c
+++ b/drivers/clk/renesas/r8a7792-cpg-mssr.c
@@ -13,6 +13,7 @@
#include <clk-uclass.h>
#include <dm.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <dt-bindings/clock/r8a7792-cpg-mssr.h>
diff --git a/drivers/clk/renesas/r8a7794-cpg-mssr.c b/drivers/clk/renesas/r8a7794-cpg-mssr.c
index 7093e0d42cb7..eda0ae0f9d93 100644
--- a/drivers/clk/renesas/r8a7794-cpg-mssr.c
+++ b/drivers/clk/renesas/r8a7794-cpg-mssr.c
@@ -13,6 +13,7 @@
#include <clk-uclass.h>
#include <dm.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <dt-bindings/clock/r8a7794-cpg-mssr.h>
diff --git a/drivers/clk/renesas/r8a7795-cpg-mssr.c b/drivers/clk/renesas/r8a7795-cpg-mssr.c
index dcd96ad01774..89794d2cf6c9 100644
--- a/drivers/clk/renesas/r8a7795-cpg-mssr.c
+++ b/drivers/clk/renesas/r8a7795-cpg-mssr.c
@@ -13,6 +13,7 @@
#include <clk-uclass.h>
#include <dm.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <dt-bindings/clock/r8a7795-cpg-mssr.h>
diff --git a/drivers/clk/renesas/r8a7796-cpg-mssr.c b/drivers/clk/renesas/r8a7796-cpg-mssr.c
index 89dc141239de..029bd54b796c 100644
--- a/drivers/clk/renesas/r8a7796-cpg-mssr.c
+++ b/drivers/clk/renesas/r8a7796-cpg-mssr.c
@@ -19,6 +19,7 @@
#include <clk-uclass.h>
#include <dm.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <dt-bindings/clock/r8a7796-cpg-mssr.h>
diff --git a/drivers/clk/renesas/r8a77965-cpg-mssr.c b/drivers/clk/renesas/r8a77965-cpg-mssr.c
index 6ed88295c98b..5962cb03d636 100644
--- a/drivers/clk/renesas/r8a77965-cpg-mssr.c
+++ b/drivers/clk/renesas/r8a77965-cpg-mssr.c
@@ -14,6 +14,7 @@
#include <clk-uclass.h>
#include <dm.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <dt-bindings/clock/r8a77965-cpg-mssr.h>
diff --git a/drivers/clk/renesas/r8a77970-cpg-mssr.c b/drivers/clk/renesas/r8a77970-cpg-mssr.c
index df0712017187..ec246abf387b 100644
--- a/drivers/clk/renesas/r8a77970-cpg-mssr.c
+++ b/drivers/clk/renesas/r8a77970-cpg-mssr.c
@@ -14,6 +14,7 @@
#include <clk-uclass.h>
#include <dm.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <dt-bindings/clock/r8a77970-cpg-mssr.h>
diff --git a/drivers/clk/renesas/r8a77980-cpg-mssr.c b/drivers/clk/renesas/r8a77980-cpg-mssr.c
index c8d7a9469bab..0c2050d1b28d 100644
--- a/drivers/clk/renesas/r8a77980-cpg-mssr.c
+++ b/drivers/clk/renesas/r8a77980-cpg-mssr.c
@@ -14,6 +14,7 @@
#include <clk-uclass.h>
#include <dm.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <dt-bindings/clock/r8a77980-cpg-mssr.h>
diff --git a/drivers/clk/renesas/r8a77990-cpg-mssr.c b/drivers/clk/renesas/r8a77990-cpg-mssr.c
index 357e7b534da9..e3f62e1bc73f 100644
--- a/drivers/clk/renesas/r8a77990-cpg-mssr.c
+++ b/drivers/clk/renesas/r8a77990-cpg-mssr.c
@@ -14,6 +14,7 @@
#include <clk-uclass.h>
#include <dm.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <dt-bindings/clock/r8a77990-cpg-mssr.h>
diff --git a/drivers/clk/renesas/r8a77995-cpg-mssr.c b/drivers/clk/renesas/r8a77995-cpg-mssr.c
index d62aeba635bb..25bec5ff1a7a 100644
--- a/drivers/clk/renesas/r8a77995-cpg-mssr.c
+++ b/drivers/clk/renesas/r8a77995-cpg-mssr.c
@@ -14,6 +14,7 @@
#include <clk-uclass.h>
#include <dm.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <dt-bindings/clock/r8a77995-cpg-mssr.h>
diff --git a/drivers/clk/renesas/rcar-gen3-cpg.h b/drivers/clk/renesas/rcar-gen3-cpg.h
index 3beae7d82509..102d6955354e 100644
--- a/drivers/clk/renesas/rcar-gen3-cpg.h
+++ b/drivers/clk/renesas/rcar-gen3-cpg.h
@@ -11,6 +11,7 @@
#ifndef __CLK_RENESAS_RCAR_GEN3_CPG_H__
#define __CLK_RENESAS_RCAR_GEN3_CPG_H__
+#include <stdbool.h>
enum rcar_gen3_clk_types {
CLK_TYPE_GEN3_MAIN = CLK_TYPE_CUSTOM,
CLK_TYPE_GEN3_PLL0,
diff --git a/drivers/clk/renesas/renesas-cpg-mssr.c b/drivers/clk/renesas/renesas-cpg-mssr.c
index e3e5d9640c91..544ea258747f 100644
--- a/drivers/clk/renesas/renesas-cpg-mssr.c
+++ b/drivers/clk/renesas/renesas-cpg-mssr.c
@@ -14,6 +14,7 @@
#include <dm.h>
#include <errno.h>
#include <log.h>
+#include <stdbool.h>
#include <wait_bit.h>
#include <asm/io.h>
#include <linux/bitops.h>
diff --git a/drivers/clk/renesas/renesas-cpg-mssr.h b/drivers/clk/renesas/renesas-cpg-mssr.h
index b669dec594ff..70f6fb825c49 100644
--- a/drivers/clk/renesas/renesas-cpg-mssr.h
+++ b/drivers/clk/renesas/renesas-cpg-mssr.h
@@ -13,6 +13,7 @@
#ifndef __DRIVERS_CLK_RENESAS_CPG_MSSR__
#define __DRIVERS_CLK_RENESAS_CPG_MSSR__
+#include <stdbool.h>
#include <linux/bitops.h>
struct cpg_mssr_info {
const struct cpg_core_clk *core_clk;
diff --git a/drivers/clk/rockchip/clk_px30.c b/drivers/clk/rockchip/clk_px30.c
index 8fc3b6e572f7..6e99191007dc 100644
--- a/drivers/clk/rockchip/clk_px30.c
+++ b/drivers/clk/rockchip/clk_px30.c
@@ -22,6 +22,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/clk/rockchip/clk_rk3036.c b/drivers/clk/rockchip/clk_rk3036.c
index 80aa7c2f39a0..ec60627ddeb5 100644
--- a/drivers/clk/rockchip/clk_rk3036.c
+++ b/drivers/clk/rockchip/clk_rk3036.c
@@ -18,6 +18,7 @@
#include <dt-bindings/clock/rk3036-cru.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 b9c896460f0e..4dcb85f51091 100644
--- a/drivers/clk/rockchip/clk_rk3128.c
+++ b/drivers/clk/rockchip/clk_rk3128.c
@@ -20,6 +20,7 @@
#include <dt-bindings/clock/rk3128-cru.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/log2.h>
enum {
diff --git a/drivers/clk/rockchip/clk_rk3188.c b/drivers/clk/rockchip/clk_rk3188.c
index b77b92e4c5b7..7cee0c594f79 100644
--- a/drivers/clk/rockchip/clk_rk3188.c
+++ b/drivers/clk/rockchip/clk_rk3188.c
@@ -25,6 +25,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.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 780fd7e725b2..f632dff1a71d 100644
--- a/drivers/clk/rockchip/clk_rk322x.c
+++ b/drivers/clk/rockchip/clk_rk322x.c
@@ -19,6 +19,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 da40f74d424d..ed6b4656e23e 100644
--- a/drivers/clk/rockchip/clk_rk3288.c
+++ b/drivers/clk/rockchip/clk_rk3288.c
@@ -29,6 +29,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.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 7106685bb50d..151b6be5ee9c 100644
--- a/drivers/clk/rockchip/clk_rk3308.c
+++ b/drivers/clk/rockchip/clk_rk3308.c
@@ -21,6 +21,7 @@
#include <dt-bindings/clock/rk3308-cru.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/clk/rockchip/clk_rk3328.c b/drivers/clk/rockchip/clk_rk3328.c
index 6c7626ab154a..5879541f3ce9 100644
--- a/drivers/clk/rockchip/clk_rk3328.c
+++ b/drivers/clk/rockchip/clk_rk3328.c
@@ -22,6 +22,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 0d677f55ee17..c391ad02100c 100644
--- a/drivers/clk/rockchip/clk_rk3368.c
+++ b/drivers/clk/rockchip/clk_rk3368.c
@@ -23,6 +23,7 @@
#include <dt-bindings/clock/rk3368-cru.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 016633c13820..1078a4c67b75 100644
--- a/drivers/clk/rockchip/clk_rk3399.c
+++ b/drivers/clk/rockchip/clk_rk3399.c
@@ -24,6 +24,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 4297934b9810..fcc4ba6d94ad 100644
--- a/drivers/clk/rockchip/clk_rv1108.c
+++ b/drivers/clk/rockchip/clk_rv1108.c
@@ -22,6 +22,7 @@
#include <dt-bindings/clock/rv1108-cru.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 e7b03e2c6e8d..93cf4adbb348 100644
--- a/drivers/clk/sifive/fu540-prci.c
+++ b/drivers/clk/sifive/fu540-prci.c
@@ -42,6 +42,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/math64.h>
diff --git a/drivers/clk/sunxi/clk_a10.c b/drivers/clk/sunxi/clk_a10.c
index 67507c5ab1da..797878eefa9c 100644
--- a/drivers/clk/sunxi/clk_a10.c
+++ b/drivers/clk/sunxi/clk_a10.c
@@ -12,6 +12,7 @@
#include <dt-bindings/clock/sun4i-a10-ccu.h>
#include <dt-bindings/reset/sun4i-a10-ccu.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
static struct ccu_clk_gate a10_gates[] = {
[CLK_AHB_OTG] = GATE(0x060, BIT(0)),
diff --git a/drivers/clk/sunxi/clk_a10s.c b/drivers/clk/sunxi/clk_a10s.c
index d11a4b5f038d..24c20cf11f7f 100644
--- a/drivers/clk/sunxi/clk_a10s.c
+++ b/drivers/clk/sunxi/clk_a10s.c
@@ -12,6 +12,7 @@
#include <dt-bindings/clock/sun5i-ccu.h>
#include <dt-bindings/reset/sun5i-ccu.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
static struct ccu_clk_gate a10s_gates[] = {
[CLK_AHB_OTG] = GATE(0x060, BIT(0)),
diff --git a/drivers/clk/sunxi/clk_a23.c b/drivers/clk/sunxi/clk_a23.c
index 4d562bfe4270..312288eef68d 100644
--- a/drivers/clk/sunxi/clk_a23.c
+++ b/drivers/clk/sunxi/clk_a23.c
@@ -12,6 +12,7 @@
#include <dt-bindings/clock/sun8i-a23-a33-ccu.h>
#include <dt-bindings/reset/sun8i-a23-a33-ccu.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
static struct ccu_clk_gate a23_gates[] = {
[CLK_BUS_MMC0] = GATE(0x060, BIT(8)),
diff --git a/drivers/clk/sunxi/clk_a31.c b/drivers/clk/sunxi/clk_a31.c
index 4a9454eebe76..a3b3528abaeb 100644
--- a/drivers/clk/sunxi/clk_a31.c
+++ b/drivers/clk/sunxi/clk_a31.c
@@ -12,6 +12,7 @@
#include <dt-bindings/clock/sun6i-a31-ccu.h>
#include <dt-bindings/reset/sun6i-a31-ccu.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
static struct ccu_clk_gate a31_gates[] = {
[CLK_AHB1_MMC0] = GATE(0x060, BIT(8)),
diff --git a/drivers/clk/sunxi/clk_a64.c b/drivers/clk/sunxi/clk_a64.c
index d96cb1aac1c9..68660cc7ae48 100644
--- a/drivers/clk/sunxi/clk_a64.c
+++ b/drivers/clk/sunxi/clk_a64.c
@@ -12,6 +12,7 @@
#include <dt-bindings/clock/sun50i-a64-ccu.h>
#include <dt-bindings/reset/sun50i-a64-ccu.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
static const struct ccu_clk_gate a64_gates[] = {
[CLK_BUS_MMC0] = GATE(0x060, BIT(8)),
diff --git a/drivers/clk/sunxi/clk_a80.c b/drivers/clk/sunxi/clk_a80.c
index 80d7407037e5..ea38c819ea7f 100644
--- a/drivers/clk/sunxi/clk_a80.c
+++ b/drivers/clk/sunxi/clk_a80.c
@@ -12,6 +12,7 @@
#include <dt-bindings/clock/sun9i-a80-ccu.h>
#include <dt-bindings/reset/sun9i-a80-ccu.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
static const struct ccu_clk_gate a80_gates[] = {
[CLK_SPI0] = GATE(0x430, BIT(31)),
diff --git a/drivers/clk/sunxi/clk_a83t.c b/drivers/clk/sunxi/clk_a83t.c
index d6f23ddc7781..ac82f22c7469 100644
--- a/drivers/clk/sunxi/clk_a83t.c
+++ b/drivers/clk/sunxi/clk_a83t.c
@@ -12,6 +12,7 @@
#include <dt-bindings/clock/sun8i-a83t-ccu.h>
#include <dt-bindings/reset/sun8i-a83t-ccu.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
static struct ccu_clk_gate a83t_gates[] = {
[CLK_BUS_MMC0] = GATE(0x060, BIT(8)),
diff --git a/drivers/clk/sunxi/clk_h3.c b/drivers/clk/sunxi/clk_h3.c
index 7e844f4ff168..052fd008f590 100644
--- a/drivers/clk/sunxi/clk_h3.c
+++ b/drivers/clk/sunxi/clk_h3.c
@@ -12,6 +12,7 @@
#include <dt-bindings/clock/sun8i-h3-ccu.h>
#include <dt-bindings/reset/sun8i-h3-ccu.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
static struct ccu_clk_gate h3_gates[] = {
[CLK_BUS_MMC0] = GATE(0x060, BIT(8)),
diff --git a/drivers/clk/sunxi/clk_h6.c b/drivers/clk/sunxi/clk_h6.c
index a1cb8952d39c..944aa4c55c4a 100644
--- a/drivers/clk/sunxi/clk_h6.c
+++ b/drivers/clk/sunxi/clk_h6.c
@@ -12,6 +12,7 @@
#include <dt-bindings/clock/sun50i-h6-ccu.h>
#include <dt-bindings/reset/sun50i-h6-ccu.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
static struct ccu_clk_gate h6_gates[] = {
[CLK_BUS_MMC0] = GATE(0x84c, BIT(0)),
diff --git a/drivers/clk/sunxi/clk_r40.c b/drivers/clk/sunxi/clk_r40.c
index ac360b2bebd5..1d19c805ade3 100644
--- a/drivers/clk/sunxi/clk_r40.c
+++ b/drivers/clk/sunxi/clk_r40.c
@@ -12,6 +12,7 @@
#include <dt-bindings/clock/sun8i-r40-ccu.h>
#include <dt-bindings/reset/sun8i-r40-ccu.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
static struct ccu_clk_gate r40_gates[] = {
[CLK_BUS_MMC0] = GATE(0x060, BIT(8)),
diff --git a/drivers/clk/sunxi/clk_v3s.c b/drivers/clk/sunxi/clk_v3s.c
index b79446cc4fdf..19673e43cf01 100644
--- a/drivers/clk/sunxi/clk_v3s.c
+++ b/drivers/clk/sunxi/clk_v3s.c
@@ -12,6 +12,7 @@
#include <dt-bindings/clock/sun8i-v3s-ccu.h>
#include <dt-bindings/reset/sun8i-v3s-ccu.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
static struct ccu_clk_gate v3s_gates[] = {
[CLK_BUS_MMC0] = GATE(0x060, BIT(8)),
diff --git a/drivers/clk/uniphier/clk-uniphier-core.c b/drivers/clk/uniphier/clk-uniphier-core.c
index 13f2b76c890b..72335f271b8d 100644
--- a/drivers/clk/uniphier/clk-uniphier-core.c
+++ b/drivers/clk/uniphier/clk-uniphier-core.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <clk-uclass.h>
#include <dm.h>
+#include <stdbool.h>
#include <dm/device_compat.h>
#include <linux/bitops.h>
#include <linux/bug.h>
diff --git a/drivers/core/device-remove.c b/drivers/core/device-remove.c
index 3de629d24dfa..0263284fc3f5 100644
--- a/drivers/core/device-remove.c
+++ b/drivers/core/device-remove.c
@@ -12,6 +12,7 @@
#include <errno.h>
#include <log.h>
#include <malloc.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <dm/device.h>
#include <dm/device-internal.h>
diff --git a/drivers/core/device.c b/drivers/core/device.c
index ac6ce92bc0f6..8198750cd69b 100644
--- a/drivers/core/device.c
+++ b/drivers/core/device.c
@@ -30,6 +30,7 @@
#include <dm/util.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/list.h>
#include <power-domain.h>
#include <linux/printk.h>
diff --git a/drivers/core/lists.c b/drivers/core/lists.c
index dcc1e4a4f951..dfb5e1de77ad 100644
--- a/drivers/core/lists.c
+++ b/drivers/core/lists.c
@@ -11,6 +11,7 @@
#include <common.h>
#include <errno.h>
#include <log.h>
+#include <stdbool.h>
#include <dm/device.h>
#include <dm/device-internal.h>
#include <dm/lists.h>
diff --git a/drivers/core/of_access.c b/drivers/core/of_access.c
index ad9bd7dd5a2c..0ecc90890daf 100644
--- a/drivers/core/of_access.c
+++ b/drivers/core/of_access.c
@@ -26,6 +26,7 @@
#include <asm/global_data.h>
#include <linux/bug.h>
#include <linux/errno.h>
+#include <linux/kernel.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 4fd4ee0c8893..a245194db43b 100644
--- a/drivers/core/of_addr.c
+++ b/drivers/core/of_addr.c
@@ -10,6 +10,7 @@
#include <log.h>
#include <linux/bug.h>
#include <linux/errno.h>
+#include <linux/kernel.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 ecd812566ceb..b84c9be24610 100644
--- a/drivers/core/read.c
+++ b/drivers/core/read.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <dm.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <dm/of_access.h>
#include <mapmem.h>
diff --git a/drivers/core/root.c b/drivers/core/root.c
index 2d0deea9f78c..6eb934c4095c 100644
--- a/drivers/core/root.c
+++ b/drivers/core/root.c
@@ -13,6 +13,7 @@
#include <malloc.h>
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <dm/acpi.h>
#include <dm/device.h>
diff --git a/drivers/core/simple-bus.c b/drivers/core/simple-bus.c
index 7cc1d46009ff..aa888b2e0c46 100644
--- a/drivers/core/simple-bus.c
+++ b/drivers/core/simple-bus.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <dm.h>
+#include <linux/kernel.h>
struct simple_bus_plat {
u32 base;
diff --git a/drivers/core/syscon-uclass.c b/drivers/core/syscon-uclass.c
index 11ac1b177334..d8d26d772c74 100644
--- a/drivers/core/syscon-uclass.c
+++ b/drivers/core/syscon-uclass.c
@@ -16,6 +16,7 @@
#include <dm/root.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
/*
* Caution:
diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c
index 3fae359866fa..242d9f4b30dd 100644
--- a/drivers/core/uclass.c
+++ b/drivers/core/uclass.c
@@ -13,6 +13,7 @@
#include <errno.h>
#include <log.h>
#include <malloc.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <dm/device.h>
#include <dm/device-internal.h>
diff --git a/drivers/cpu/mpc83xx_cpu.c b/drivers/cpu/mpc83xx_cpu.c
index ced2213de10d..cd514e6e1ab7 100644
--- a/drivers/cpu/mpc83xx_cpu.c
+++ b/drivers/cpu/mpc83xx_cpu.c
@@ -10,6 +10,7 @@
#include <cpu.h>
#include <dm.h>
#include <log.h>
+#include <stdbool.h>
#include <vsprintf.h>
#include <asm/ppc.h>
#include <linux/bitops.h>
diff --git a/drivers/crypto/fsl/desc_constr.h b/drivers/crypto/fsl/desc_constr.h
index 7d6546fd9c0c..a11ce812d19b 100644
--- a/drivers/crypto/fsl/desc_constr.h
+++ b/drivers/crypto/fsl/desc_constr.h
@@ -9,6 +9,7 @@
#include <stdio.h>
#include <linux/compat.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "desc.h"
diff --git a/drivers/crypto/fsl/error.c b/drivers/crypto/fsl/error.c
index 9138de69e8a2..a83efe585e6e 100644
--- a/drivers/crypto/fsl/error.c
+++ b/drivers/crypto/fsl/error.c
@@ -11,6 +11,7 @@
#include <log.h>
#include <malloc.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "desc.h"
#include "jr.h"
diff --git a/drivers/crypto/fsl/fsl_blob.c b/drivers/crypto/fsl/fsl_blob.c
index 5bc0f3d5f22e..3cf03106174e 100644
--- a/drivers/crypto/fsl/fsl_blob.c
+++ b/drivers/crypto/fsl/fsl_blob.c
@@ -13,6 +13,7 @@
#include <stdio.h>
#include <asm/cache.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "jobdesc.h"
#include "desc.h"
#include "jr.h"
diff --git a/drivers/crypto/fsl/fsl_hash.c b/drivers/crypto/fsl/fsl_hash.c
index 80640248c373..5bd6604e7772 100644
--- a/drivers/crypto/fsl/fsl_hash.c
+++ b/drivers/crypto/fsl/fsl_hash.c
@@ -10,6 +10,7 @@
#include <malloc.h>
#include <memalign.h>
#include <stdio.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "jobdesc.h"
#include "desc.h"
diff --git a/drivers/crypto/fsl/jobdesc.c b/drivers/crypto/fsl/jobdesc.c
index e85c2dd01d92..40f06e8f81bb 100644
--- a/drivers/crypto/fsl/jobdesc.c
+++ b/drivers/crypto/fsl/jobdesc.c
@@ -11,6 +11,7 @@
#include <cpu_func.h>
#include <fsl_sec.h>
#include <stdio.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "desc_constr.h"
#include "jobdesc.h"
diff --git a/drivers/crypto/fsl/sec.c b/drivers/crypto/fsl/sec.c
index b2a1e822feb9..4e52852d64bb 100644
--- a/drivers/crypto/fsl/sec.c
+++ b/drivers/crypto/fsl/sec.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <stdio.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <fdt_support.h>
#if CONFIG_SYS_FSL_SEC_COMPAT == 2 || CONFIG_SYS_FSL_SEC_COMPAT >= 4
diff --git a/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c b/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c
index 8997980cacae..6826011fb313 100644
--- a/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c
+++ b/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <dm.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <linux/errno.h>
#include <u-boot/rsa-mod-exp.h>
diff --git a/drivers/ddr/altera/sdram_gen5.c b/drivers/ddr/altera/sdram_gen5.c
index bc20fa096454..723436cadcab 100644
--- a/drivers/ddr/altera/sdram_gen5.c
+++ b/drivers/ddr/altera/sdram_gen5.c
@@ -20,6 +20,7 @@
#include <asm/io.h>
#include <dm/device_compat.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "sequencer.h"
diff --git a/drivers/ddr/altera/sdram_s10.c b/drivers/ddr/altera/sdram_s10.c
index 4c913e9b5b64..8fe96ee24656 100644
--- a/drivers/ddr/altera/sdram_s10.c
+++ b/drivers/ddr/altera/sdram_s10.c
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#include "sdram_s10.h"
#include <wait_bit.h>
#include <asm/arch/firewall.h>
diff --git a/drivers/ddr/altera/sdram_soc64.c b/drivers/ddr/altera/sdram_soc64.c
index 778528bf8631..67fc9c14e3f6 100644
--- a/drivers/ddr/altera/sdram_soc64.c
+++ b/drivers/ddr/altera/sdram_soc64.c
@@ -20,6 +20,7 @@
#include <asm/global_data.h>
#include <asm/u-boot.h>
#include <linux/errno.h>
+#include <linux/kernel.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 8d62f02660d3..aad40ad398d7 100644
--- a/drivers/ddr/altera/sequencer.c
+++ b/drivers/ddr/altera/sequencer.c
@@ -10,6 +10,7 @@
#include <errno.h>
#include <hang.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "sequencer.h"
diff --git a/drivers/ddr/altera/sequencer.h b/drivers/ddr/altera/sequencer.h
index c72a683ffef2..b655c25688dc 100644
--- a/drivers/ddr/altera/sequencer.h
+++ b/drivers/ddr/altera/sequencer.h
@@ -6,6 +6,7 @@
#ifndef _SEQUENCER_H_
#define _SEQUENCER_H_
+#include <stdbool.h>
#define RW_MGR_NUM_DM_PER_WRITE_GROUP (seq->rwcfg->mem_data_mask_width \
/ seq->rwcfg->mem_if_write_dqs_width)
#define RW_MGR_NUM_TRUE_DM_PER_WRITE_GROUP ( \
diff --git a/drivers/ddr/fsl/ctrl_regs.c b/drivers/ddr/fsl/ctrl_regs.c
index 1dd680e4f19b..a4b908ea5c79 100644
--- a/drivers/ddr/fsl/ctrl_regs.c
+++ b/drivers/ddr/fsl/ctrl_regs.c
@@ -23,6 +23,7 @@
defined(CONFIG_ARM)
#include <asm/arch/clock.h>
#endif
+#include <linux/kernel.h>
#include <linux/string.h>
/*
diff --git a/drivers/ddr/fsl/ddr1_dimm_params.c b/drivers/ddr/fsl/ddr1_dimm_params.c
index 698324073dbb..36669152046a 100644
--- a/drivers/ddr/fsl/ddr1_dimm_params.c
+++ b/drivers/ddr/fsl/ddr1_dimm_params.c
@@ -8,6 +8,7 @@
#include <log.h>
#include <stdio.h>
#include <asm/bitops.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <fsl_ddr.h>
diff --git a/drivers/ddr/fsl/ddr2_dimm_params.c b/drivers/ddr/fsl/ddr2_dimm_params.c
index 95a250c33f48..c654b1fd1f19 100644
--- a/drivers/ddr/fsl/ddr2_dimm_params.c
+++ b/drivers/ddr/fsl/ddr2_dimm_params.c
@@ -8,6 +8,7 @@
#include <log.h>
#include <stdio.h>
#include <asm/bitops.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <fsl_ddr.h>
diff --git a/drivers/ddr/fsl/ddr4_dimm_params.c b/drivers/ddr/fsl/ddr4_dimm_params.c
index cc6c034747fd..fca5b433eb10 100644
--- a/drivers/ddr/fsl/ddr4_dimm_params.c
+++ b/drivers/ddr/fsl/ddr4_dimm_params.c
@@ -13,6 +13,7 @@
#include <common.h>
#include <fsl_ddr_sdram.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/bug.h>
#include <linux/string.h>
diff --git a/drivers/ddr/fsl/interactive.c b/drivers/ddr/fsl/interactive.c
index e3a7670e3d14..c7d99077d865 100644
--- a/drivers/ddr/fsl/interactive.c
+++ b/drivers/ddr/fsl/interactive.c
@@ -22,6 +22,7 @@
#include <linux/ctype.h>
#include <asm/types.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <fsl_ddr_sdram.h>
diff --git a/drivers/ddr/fsl/lc_common_dimm_params.c b/drivers/ddr/fsl/lc_common_dimm_params.c
index d6a2ad99c427..cb56229fae2a 100644
--- a/drivers/ddr/fsl/lc_common_dimm_params.c
+++ b/drivers/ddr/fsl/lc_common_dimm_params.c
@@ -9,6 +9,7 @@
#include <log.h>
#include <stdio.h>
#include <asm/bitops.h>
+#include <linux/kernel.h>
#include <fsl_ddr.h>
diff --git a/drivers/ddr/fsl/main.c b/drivers/ddr/fsl/main.c
index 92a29568342b..56c0de2004cf 100644
--- a/drivers/ddr/fsl/main.c
+++ b/drivers/ddr/fsl/main.c
@@ -20,6 +20,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <asm/bitops.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/*
diff --git a/drivers/ddr/fsl/util.c b/drivers/ddr/fsl/util.c
index f37846d8e60f..04266fb35ffb 100644
--- a/drivers/ddr/fsl/util.c
+++ b/drivers/ddr/fsl/util.c
@@ -9,6 +9,7 @@
#include <asm/ppc.h>
#endif
#include <div64.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/delay.h>
diff --git a/drivers/ddr/imx/imx8m/helper.c b/drivers/ddr/imx/imx8m/helper.c
index 8903ff146fc9..fca733ee3b2f 100644
--- a/drivers/ddr/imx/imx8m/helper.c
+++ b/drivers/ddr/imx/imx8m/helper.c
@@ -15,6 +15,7 @@
#include <asm/arch/ddr.h>
#include <asm/arch/lpddr4_define.h>
#include <asm/sections.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/ddr/marvell/axp/ddr3_spd.c b/drivers/ddr/marvell/axp/ddr3_spd.c
index f96d2bdaeb91..d58d4961658a 100644
--- a/drivers/ddr/marvell/axp/ddr3_spd.c
+++ b/drivers/ddr/marvell/axp/ddr3_spd.c
@@ -10,6 +10,7 @@
#include <asm/io.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "ddr3_init.h"
diff --git a/drivers/demo/demo-shape.c b/drivers/demo/demo-shape.c
index f35bc3e14922..1be18905890f 100644
--- a/drivers/demo/demo-shape.c
+++ b/drivers/demo/demo-shape.c
@@ -15,6 +15,7 @@
#include <asm/io.h>
#include <asm/gpio.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c
index 4cc2be16bb3e..b9d1dcbc1d2d 100644
--- a/drivers/dfu/dfu.c
+++ b/drivers/dfu/dfu.c
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <linux/errno.h>
+#include <linux/kernel.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 94989c2ba239..4431e34c10e6 100644
--- a/drivers/dfu/dfu_mmc.c
+++ b/drivers/dfu/dfu_mmc.c
@@ -19,6 +19,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/dfu/dfu_mtd.c b/drivers/dfu/dfu_mtd.c
index b93d99873749..7e5623674ca1 100644
--- a/drivers/dfu/dfu_mtd.c
+++ b/drivers/dfu/dfu_mtd.c
@@ -15,6 +15,7 @@
#include <jffs2/load_kernel.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static bool mtd_is_aligned_with_block_size(struct mtd_info *mtd, u64 size)
diff --git a/drivers/dma/apbh_dma.c b/drivers/dma/apbh_dma.c
index 8a7ef5013e86..697db0d7201b 100644
--- a/drivers/dma/apbh_dma.c
+++ b/drivers/dma/apbh_dma.c
@@ -14,6 +14,7 @@
#include <cpu_func.h>
#include <stdio.h>
#include <asm/cache.h>
+#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/string.h>
diff --git a/drivers/dma/bcm6348-iudma.c b/drivers/dma/bcm6348-iudma.c
index e1130f8f9fb8..e6fc0ac5ffb0 100644
--- a/drivers/dma/bcm6348-iudma.c
+++ b/drivers/dma/bcm6348-iudma.c
@@ -25,6 +25,7 @@
#include <memalign.h>
#include <net.h>
#include <reset.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <linux/bitops.h>
#include <linux/delay.h>
diff --git a/drivers/dma/dma-uclass.c b/drivers/dma/dma-uclass.c
index cc872831b5f7..8a6fd825b136 100644
--- a/drivers/dma/dma-uclass.c
+++ b/drivers/dma/dma-uclass.c
@@ -20,6 +20,7 @@
#include <dt-structs.h>
#include <errno.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#ifdef CONFIG_DMA_CHANNELS
diff --git a/drivers/dma/fsl_dma.c b/drivers/dma/fsl_dma.c
index b7eddf0f04c5..a818084a3bef 100644
--- a/drivers/dma/fsl_dma.c
+++ b/drivers/dma/fsl_dma.c
@@ -12,6 +12,7 @@
#include <common.h>
#include <asm/io.h>
#include <asm/fsl_dma.h>
+#include <linux/kernel.h>
/* Controller can only transfer 2^26 - 1 bytes at a time */
#define FSL_DMA_MAX_SIZE (0x3ffffff)
diff --git a/drivers/dma/sandbox-dma-test.c b/drivers/dma/sandbox-dma-test.c
index 9a6904cd634f..460197ed67a0 100644
--- a/drivers/dma/sandbox-dma-test.c
+++ b/drivers/dma/sandbox-dma-test.c
@@ -11,6 +11,7 @@
#include <dm.h>
#include <log.h>
#include <malloc.h>
+#include <stdbool.h>
#include <vsprintf.h>
#include <dm/read.h>
#include <dma-uclass.h>
diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c
index 0b6de5bbbcc5..4d50dbc76e5d 100644
--- a/drivers/dma/ti/k3-udma.c
+++ b/drivers/dma/ti/k3-udma.c
@@ -27,6 +27,7 @@
#include <linux/bitmap.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.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_getvar.c b/drivers/fastboot/fb_getvar.c
index b8f4938f9d5b..5c188e1b5b53 100644
--- a/drivers/fastboot/fb_getvar.c
+++ b/drivers/fastboot/fb_getvar.c
@@ -14,6 +14,7 @@
#include <version.h>
#include <vsprintf.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/fastboot/fb_mmc.c b/drivers/fastboot/fb_mmc.c
index 37cef1890f26..5615dffa6d88 100644
--- a/drivers/fastboot/fb_mmc.c
+++ b/drivers/fastboot/fb_mmc.c
@@ -21,6 +21,7 @@
#include <linux/compat.h>
#include <android_image.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/firmware/firmware-zynqmp.c b/drivers/firmware/firmware-zynqmp.c
index 01d5ac72f8fc..0a815ec736ab 100644
--- a/drivers/firmware/firmware-zynqmp.c
+++ b/drivers/firmware/firmware-zynqmp.c
@@ -14,6 +14,7 @@
#include <asm/cache.h>
#include <asm/ptrace.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#if defined(CONFIG_ZYNQMP_IPI)
#include <mailbox.h>
diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c
index d2e1be9c9940..e156d5492687 100644
--- a/drivers/firmware/ti_sci.c
+++ b/drivers/firmware/ti_sci.c
@@ -20,6 +20,7 @@
#include <linux/compat.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.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 9908630c2d40..4ce9a0581ade 100644
--- a/drivers/fpga/altera.c
+++ b/drivers/fpga/altera.c
@@ -17,6 +17,7 @@
#include <stdio.h>
#include <stratixII.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
/* Define FPGA_DEBUG to 1 to get debug printf's */
#define FPGA_DEBUG 0
diff --git a/drivers/fpga/cyclon2.c b/drivers/fpga/cyclon2.c
index a163f7225155..de0880ff3d8d 100644
--- a/drivers/fpga/cyclon2.c
+++ b/drivers/fpga/cyclon2.c
@@ -8,6 +8,7 @@
#include <common.h> /* core U-Boot definitions */
#include <altera.h>
#include <ACEX1K.h> /* ACEX device family */
+#include <stdbool.h>
#include <stdio.h>
#include <time.h>
#include <linux/delay.h>
diff --git a/drivers/fpga/socfpga.c b/drivers/fpga/socfpga.c
index 685957626be6..357c74675d1e 100644
--- a/drivers/fpga/socfpga.c
+++ b/drivers/fpga/socfpga.c
@@ -10,6 +10,7 @@
#include <asm/arch/fpga_manager.h>
#include <asm/arch/reset_manager.h>
#include <asm/arch/system_manager.h>
+#include <linux/kernel.h>
/* Timeout count */
#define FPGA_TIMEOUT_CNT 0x1000000
diff --git a/drivers/fpga/socfpga_arria10.c b/drivers/fpga/socfpga_arria10.c
index 0c26701e95d2..52361176b998 100644
--- a/drivers/fpga/socfpga_arria10.c
+++ b/drivers/fpga/socfpga_arria10.c
@@ -4,6 +4,7 @@
*/
#include <image.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <time.h>
#include <asm/global_data.h>
diff --git a/drivers/fpga/spartan3.c b/drivers/fpga/spartan3.c
index 95a361b0e861..7374bb6f6b90 100644
--- a/drivers/fpga/spartan3.c
+++ b/drivers/fpga/spartan3.c
@@ -11,6 +11,8 @@
#include <common.h> /* core U-Boot definitions */
#include <spartan3.h> /* Spartan-II device family */
+#include <stdbool.h>
+#include <stdio.h>
#include <time.h>
/* Define FPGA_DEBUG to get debug printf's */
diff --git a/drivers/fpga/stratix10.c b/drivers/fpga/stratix10.c
index e4a513171eba..3477ddbfd6b6 100644
--- a/drivers/fpga/stratix10.c
+++ b/drivers/fpga/stratix10.c
@@ -11,6 +11,7 @@
#include <asm/arch/mailbox_s10.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define RECONFIG_STATUS_POLL_RESP_TIMEOUT_MS 60000
diff --git a/drivers/fpga/versalpl.c b/drivers/fpga/versalpl.c
index 7738cfaf1039..eeaa8e0a335c 100644
--- a/drivers/fpga/versalpl.c
+++ b/drivers/fpga/versalpl.c
@@ -13,6 +13,7 @@
#include <versalpl.h>
#include <zynqmp_firmware.h>
#include <asm/cache.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static ulong versal_align_dma_buffer(ulong *buf, u32 len)
diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga/zynqmppl.c
index fd92b47d67a8..9d3eb848266b 100644
--- a/drivers/fpga/zynqmppl.c
+++ b/drivers/fpga/zynqmppl.c
@@ -15,6 +15,7 @@
#include <zynqmp_firmware.h>
#include <asm/cache.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <asm/arch/sys_proto.h>
#include <memalign.h>
diff --git a/drivers/fpga/zynqpl.c b/drivers/fpga/zynqpl.c
index 14de9c11d548..c887f3ddca61 100644
--- a/drivers/fpga/zynqpl.c
+++ b/drivers/fpga/zynqpl.c
@@ -17,6 +17,7 @@
#include <fs.h>
#include <zynqpl.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <asm/arch/hardware.h>
#include <asm/arch/sys_proto.h>
diff --git a/drivers/gpio/at91_gpio.c b/drivers/gpio/at91_gpio.c
index d738a04033a5..f808f5114b7b 100644
--- a/drivers/gpio/at91_gpio.c
+++ b/drivers/gpio/at91_gpio.c
@@ -12,6 +12,7 @@
#include <clk.h>
#include <dm.h>
#include <malloc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/io.h>
#include <linux/sizes.h>
diff --git a/drivers/gpio/bcm6345_gpio.c b/drivers/gpio/bcm6345_gpio.c
index 5eaad77dcb64..9b0f551b9504 100644
--- a/drivers/gpio/bcm6345_gpio.c
+++ b/drivers/gpio/bcm6345_gpio.c
@@ -10,6 +10,7 @@
#include <common.h>
#include <dm.h>
#include <errno.h>
+#include <stdbool.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <linux/bitops.h>
diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c
index 2e80196905db..a940b9969c18 100644
--- a/drivers/gpio/gpio-rcar.c
+++ b/drivers/gpio/gpio-rcar.c
@@ -7,6 +7,7 @@
#include <clk.h>
#include <dm.h>
#include <malloc.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <dm/device_compat.h>
#include <dm/pinctrl.h>
diff --git a/drivers/gpio/gpio-rza1.c b/drivers/gpio/gpio-rza1.c
index 6407727b4533..13f525823eca 100644
--- a/drivers/gpio/gpio-rza1.c
+++ b/drivers/gpio/gpio-rza1.c
@@ -7,6 +7,7 @@
#include <clk.h>
#include <dm.h>
#include <errno.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <asm/gpio.h>
#include <asm/io.h>
diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c
index 44ba2ac2b3ce..68320c1e27c4 100644
--- a/drivers/gpio/gpio-uclass.c
+++ b/drivers/gpio/gpio-uclass.c
@@ -23,6 +23,7 @@
#include <linux/bug.h>
#include <linux/ctype.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/gpio/intel_ich6_gpio.c b/drivers/gpio/intel_ich6_gpio.c
index b3df925c7564..be371fdcc304 100644
--- a/drivers/gpio/intel_ich6_gpio.c
+++ b/drivers/gpio/intel_ich6_gpio.c
@@ -33,6 +33,7 @@
#include <log.h>
#include <pch.h>
#include <pci.h>
+#include <stdbool.h>
#include <asm/cpu.h>
#include <asm/global_data.h>
#include <asm/gpio.h>
diff --git a/drivers/gpio/iproc_gpio.c b/drivers/gpio/iproc_gpio.c
index 50eb95d25227..9672342bca33 100644
--- a/drivers/gpio/iproc_gpio.c
+++ b/drivers/gpio/iproc_gpio.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <errno.h>
+#include <stdbool.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <dm.h>
diff --git a/drivers/gpio/mscc_sgpio.c b/drivers/gpio/mscc_sgpio.c
index 0133e14bb735..9b7bb4b06027 100644
--- a/drivers/gpio/mscc_sgpio.c
+++ b/drivers/gpio/mscc_sgpio.c
@@ -18,6 +18,7 @@
#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#define MSCC_SGPIOS_PER_BANK 32
#define MSCC_SGPIO_BANK_DEPTH 4
diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c
index 95e1fd643423..fda331de143f 100644
--- a/drivers/gpio/mxc_gpio.c
+++ b/drivers/gpio/mxc_gpio.c
@@ -16,6 +16,7 @@
#include <asm/io.h>
#include <dt-structs.h>
#include <mapmem.h>
+#include <linux/kernel.h>
#include <linux/string.h>
enum mxc_gpio_direction {
diff --git a/drivers/gpio/mxs_gpio.c b/drivers/gpio/mxs_gpio.c
index 310e04dd33e7..7a290fba0f73 100644
--- a/drivers/gpio/mxs_gpio.c
+++ b/drivers/gpio/mxs_gpio.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <log.h>
#include <malloc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/global_data.h>
diff --git a/drivers/gpio/pca953x.c b/drivers/gpio/pca953x.c
index adb2079e0835..c3a79b931b87 100644
--- a/drivers/gpio/pca953x.c
+++ b/drivers/gpio/pca953x.c
@@ -14,6 +14,7 @@
#include <pca953x.h>
#include <stdio.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
/* Default to an address that hopefully won't corrupt other i2c devices */
#ifndef CONFIG_SYS_I2C_PCA953X_ADDR
diff --git a/drivers/gpio/pca953x_gpio.c b/drivers/gpio/pca953x_gpio.c
index 1f7563531e77..a3ae0c49b984 100644
--- a/drivers/gpio/pca953x_gpio.c
+++ b/drivers/gpio/pca953x_gpio.c
@@ -31,6 +31,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define PCA953X_INPUT 0
diff --git a/drivers/gpio/pm8916_gpio.c b/drivers/gpio/pm8916_gpio.c
index de150c44a54f..62fb3a39d3ea 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 <stdbool.h>
#include <linux/errno.h>
#include <power/pmic.h>
#include <spmi/spmi.h>
diff --git a/drivers/gpio/rk_gpio.c b/drivers/gpio/rk_gpio.c
index 29ef2dc2c858..fa79bacbd070 100644
--- a/drivers/gpio/rk_gpio.c
+++ b/drivers/gpio/rk_gpio.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <dm.h>
+#include <stdbool.h>
#include <syscon.h>
#include <vsprintf.h>
#include <linux/errno.h>
diff --git a/drivers/gpio/sh_pfc.c b/drivers/gpio/sh_pfc.c
index 0653171af482..693aa873ba28 100644
--- a/drivers/gpio/sh_pfc.c
+++ b/drivers/gpio/sh_pfc.c
@@ -17,6 +17,7 @@
#include <sh_pfc.h>
#include <linux/bitops.h>
#include <linux/bug.h>
+#include <linux/kernel.h>
static struct pinmux_info *gpioc;
diff --git a/drivers/gpio/sifive-gpio.c b/drivers/gpio/sifive-gpio.c
index 76e3c702e21f..51c3ce610a1e 100644
--- a/drivers/gpio/sifive-gpio.c
+++ b/drivers/gpio/sifive-gpio.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <dm.h>
+#include <stdbool.h>
#include <vsprintf.h>
#include <asm/arch/gpio.h>
#include <asm/io.h>
diff --git a/drivers/gpio/tca642x.c b/drivers/gpio/tca642x.c
index 9929eed5d1b0..8b2057607bc5 100644
--- a/drivers/gpio/tca642x.c
+++ b/drivers/gpio/tca642x.c
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <tca642x.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
/* tca642x register address definitions */
struct tca642x_bank_info tca642x_regs[] = {
diff --git a/drivers/gpio/tegra186_gpio.c b/drivers/gpio/tegra186_gpio.c
index cf973e2d7f26..affabbbf9a60 100644
--- a/drivers/gpio/tegra186_gpio.c
+++ b/drivers/gpio/tegra186_gpio.c
@@ -15,6 +15,7 @@
#include <dm/device-internal.h>
#include <dt-bindings/gpio/gpio.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "tegra186_gpio_priv.h"
struct tegra186_gpio_port_data {
diff --git a/drivers/i2c/at91_i2c.c b/drivers/i2c/at91_i2c.c
index b825599dba54..c656db557067 100644
--- a/drivers/i2c/at91_i2c.c
+++ b/drivers/i2c/at91_i2c.c
@@ -17,6 +17,7 @@
#include <i2c.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.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 13b9973b543d..e894a1a3eb25 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 <stdbool.h>
#include <linux/errno.h>
#include <power/tps65090.h>
diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c
index e32bfbc2c290..5aad1a299770 100644
--- a/drivers/i2c/designware_i2c.c
+++ b/drivers/i2c/designware_i2c.c
@@ -17,6 +17,7 @@
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "designware_i2c.h"
#include <dm/device_compat.h>
#include <linux/err.h>
diff --git a/drivers/i2c/designware_i2c.h b/drivers/i2c/designware_i2c.h
index 18acf4e841b4..0f34cc8b5ab3 100644
--- a/drivers/i2c/designware_i2c.h
+++ b/drivers/i2c/designware_i2c.h
@@ -10,6 +10,7 @@
#include <clk.h>
#include <i2c.h>
#include <reset.h>
+#include <stdbool.h>
#include <linux/bitops.h>
struct i2c_regs {
diff --git a/drivers/i2c/designware_i2c_pci.c b/drivers/i2c/designware_i2c_pci.c
index 50649710aae3..5f2084acda89 100644
--- a/drivers/i2c/designware_i2c_pci.c
+++ b/drivers/i2c/designware_i2c_pci.c
@@ -17,6 +17,7 @@
#include <dm/device-internal.h>
#include <dm/uclass-internal.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "designware_i2c.h"
enum {
diff --git a/drivers/i2c/exynos_hs_i2c.c b/drivers/i2c/exynos_hs_i2c.c
index c334755a2764..f34c71125296 100644
--- a/drivers/i2c/exynos_hs_i2c.c
+++ b/drivers/i2c/exynos_hs_i2c.c
@@ -10,6 +10,7 @@
#include <dm.h>
#include <i2c.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/arch/clk.h>
#include <asm/arch/cpu.h>
#include <asm/arch/pinmux.h>
diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c
index ad63c108a03d..7620e588d659 100644
--- a/drivers/i2c/fsl_i2c.c
+++ b/drivers/i2c/fsl_i2c.c
@@ -19,6 +19,7 @@
#include <mapmem.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/* The maximum number of microseconds we will wait until another master has
diff --git a/drivers/i2c/i2c-cdns.c b/drivers/i2c/i2c-cdns.c
index abbfdcbcc5c9..a5781bcfec23 100644
--- a/drivers/i2c/i2c-cdns.c
+++ b/drivers/i2c/i2c-cdns.c
@@ -13,6 +13,7 @@
#include <stdio.h>
#include <linux/bitops.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/io.h>
#include <linux/errno.h>
diff --git a/drivers/i2c/i2c-gpio.c b/drivers/i2c/i2c-gpio.c
index c29e5d7def0f..7e47bed9f4bb 100644
--- a/drivers/i2c/i2c-gpio.c
+++ b/drivers/i2c/i2c-gpio.c
@@ -14,6 +14,7 @@
#include <asm/gpio.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#define DEFAULT_UDELAY 5
diff --git a/drivers/i2c/i2c-uclass.c b/drivers/i2c/i2c-uclass.c
index 9e2d5dd0b122..f5a1890d5c93 100644
--- a/drivers/i2c/i2c-uclass.c
+++ b/drivers/i2c/i2c-uclass.c
@@ -19,6 +19,7 @@
#endif
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define I2C_MAX_OFFSET_LEN 4
diff --git a/drivers/i2c/i2c-uniphier-f.c b/drivers/i2c/i2c-uniphier-f.c
index a110fe9e8d95..c78378fa1839 100644
--- a/drivers/i2c/i2c-uniphier-f.c
+++ b/drivers/i2c/i2c-uniphier-f.c
@@ -5,6 +5,7 @@
* Author: Masahiro Yamada <yamada.masahiro at socionext.com>
*/
+#include <stdbool.h>
#include <dm/device_compat.h>
#include <linux/errno.h>
#include <linux/io.h>
diff --git a/drivers/i2c/i2c-uniphier.c b/drivers/i2c/i2c-uniphier.c
index e7f44e14e9c2..c1f1eb0325bf 100644
--- a/drivers/i2c/i2c-uniphier.c
+++ b/drivers/i2c/i2c-uniphier.c
@@ -5,6 +5,7 @@
* Author: Masahiro Yamada <yamada.masahiro at socionext.com>
*/
+#include <stdbool.h>
#include <dm/device_compat.h>
#include <linux/delay.h>
#include <linux/errno.h>
diff --git a/drivers/i2c/ihs_i2c.c b/drivers/i2c/ihs_i2c.c
index 31e8cc5d8eb2..5550da806222 100644
--- a/drivers/i2c/ihs_i2c.c
+++ b/drivers/i2c/ihs_i2c.c
@@ -18,6 +18,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#ifdef CONFIG_DM_I2C
diff --git a/drivers/i2c/imx_lpi2c.c b/drivers/i2c/imx_lpi2c.c
index f7186639d185..aa5c65728cd5 100644
--- a/drivers/i2c/imx_lpi2c.c
+++ b/drivers/i2c/imx_lpi2c.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <errno.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <time.h>
#include <asm/io.h>
diff --git a/drivers/i2c/meson_i2c.c b/drivers/i2c/meson_i2c.c
index 051b238e1668..3e4b10aff54f 100644
--- a/drivers/i2c/meson_i2c.c
+++ b/drivers/i2c/meson_i2c.c
@@ -13,6 +13,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#define I2C_TIMEOUT_MS 100
diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c
index 683b45bd8fd4..dfa84836f53b 100644
--- a/drivers/i2c/mxc_i2c.c
+++ b/drivers/i2c/mxc_i2c.c
@@ -32,6 +32,7 @@
#include <dm.h>
#include <dm/pinctrl.h>
#include <fdtdec.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/i2c/nx_i2c.c b/drivers/i2c/nx_i2c.c
index 738796788af8..54a7bc85f69a 100644
--- a/drivers/i2c/nx_i2c.c
+++ b/drivers/i2c/nx_i2c.c
@@ -10,6 +10,7 @@
#include <asm/arch/nx_gpio.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#define I2C_WRITE 0
#define I2C_READ 1
diff --git a/drivers/i2c/rcar_iic.c b/drivers/i2c/rcar_iic.c
index dd0e921725be..6899a68a8475 100644
--- a/drivers/i2c/rcar_iic.c
+++ b/drivers/i2c/rcar_iic.c
@@ -17,6 +17,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
struct rcar_iic_priv {
void __iomem *base;
diff --git a/drivers/i2c/rk_i2c.c b/drivers/i2c/rk_i2c.c
index 98a0aee9b0ef..e430a790df03 100644
--- a/drivers/i2c/rk_i2c.c
+++ b/drivers/i2c/rk_i2c.c
@@ -20,6 +20,7 @@
#include <dm/pinctrl.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
/* i2c timerout */
diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x0_i2c.c
index ae3084d549d8..6cc63b528dd8 100644
--- a/drivers/i2c/s3c24x0_i2c.c
+++ b/drivers/i2c/s3c24x0_i2c.c
@@ -16,6 +16,7 @@
#else
#include <asm/arch/s3c24x0_cpu.h>
#endif
+#include <stdbool.h>
#include <time.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/drivers/i2c/s3c24x0_i2c.h b/drivers/i2c/s3c24x0_i2c.h
index ec8f1acaef54..7a37b8071b67 100644
--- a/drivers/i2c/s3c24x0_i2c.h
+++ b/drivers/i2c/s3c24x0_i2c.h
@@ -6,6 +6,7 @@
#ifndef _S3C24X0_I2C_H
#define _S3C24X0_I2C_H
+#include <stdbool.h>
struct s3c24x0_i2c {
u32 iiccon;
u32 iicstat;
diff --git a/drivers/i2c/sandbox_i2c.c b/drivers/i2c/sandbox_i2c.c
index 2afd17f92fc5..10dee15a667f 100644
--- a/drivers/i2c/sandbox_i2c.c
+++ b/drivers/i2c/sandbox_i2c.c
@@ -10,6 +10,7 @@
#include <errno.h>
#include <i2c.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/test.h>
#include <dm/acpi.h>
#include <dm/lists.h>
diff --git a/drivers/i2c/stm32f7_i2c.c b/drivers/i2c/stm32f7_i2c.c
index a353f063ed96..94c0cf6f342c 100644
--- a/drivers/i2c/stm32f7_i2c.c
+++ b/drivers/i2c/stm32f7_i2c.c
@@ -15,6 +15,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 188821bb8789..c9446ed783f8 100644
--- a/drivers/i2c/tegra186_bpmp_i2c.c
+++ b/drivers/i2c/tegra186_bpmp_i2c.c
@@ -12,6 +12,7 @@
#include <asm/global_data.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/i2c/tegra_i2c.c b/drivers/i2c/tegra_i2c.c
index 03687b7532be..5b05290224ae 100644
--- a/drivers/i2c/tegra_i2c.c
+++ b/drivers/i2c/tegra_i2c.c
@@ -22,6 +22,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/input/cros_ec_keyb.c b/drivers/input/cros_ec_keyb.c
index 60f89562fadf..dea523145428 100644
--- a/drivers/input/cros_ec_keyb.c
+++ b/drivers/input/cros_ec_keyb.c
@@ -13,6 +13,7 @@
#include <keyboard.h>
#include <key_matrix.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio_dev.h>
#include <linux/errno.h>
#include <linux/string.h>
diff --git a/drivers/input/i8042.c b/drivers/input/i8042.c
index b2320d648f3e..b28e3621870b 100644
--- a/drivers/input/i8042.c
+++ b/drivers/input/i8042.c
@@ -14,6 +14,7 @@
#include <input.h>
#include <keyboard.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <linux/delay.h>
diff --git a/drivers/input/input.c b/drivers/input/input.c
index 37dae11d97a3..4b54df8a8710 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -19,6 +19,7 @@
#endif
#include <time.h>
#include <linux/input.h>
+#include <linux/kernel.h>
#include <linux/string.h>
enum {
diff --git a/drivers/led/led_bcm6328.c b/drivers/led/led_bcm6328.c
index 4a07bcc8a705..84f9a4ceca68 100644
--- a/drivers/led/led_bcm6328.c
+++ b/drivers/led/led_bcm6328.c
@@ -8,6 +8,7 @@
#include <errno.h>
#include <led.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <dm/lists.h>
#include <linux/errno.h>
diff --git a/drivers/led/led_bcm6358.c b/drivers/led/led_bcm6358.c
index 019a84813ac5..f8fdfcc23dec 100644
--- a/drivers/led/led_bcm6358.c
+++ b/drivers/led/led_bcm6358.c
@@ -8,6 +8,7 @@
#include <errno.h>
#include <led.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <dm/lists.h>
#include <linux/delay.h>
diff --git a/drivers/led/led_bcm6858.c b/drivers/led/led_bcm6858.c
index c0f5a1a7bb65..b44232773b64 100644
--- a/drivers/led/led_bcm6858.c
+++ b/drivers/led/led_bcm6858.c
@@ -16,6 +16,7 @@
#include <dm/lists.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#define LEDS_MAX 32
#define LEDS_WAIT 100
diff --git a/drivers/mailbox/k3-sec-proxy.c b/drivers/mailbox/k3-sec-proxy.c
index d9516bd59e40..c2c77b64244a 100644
--- a/drivers/mailbox/k3-sec-proxy.c
+++ b/drivers/mailbox/k3-sec-proxy.c
@@ -14,6 +14,7 @@
#include <asm/io.h>
#include <dm/device_compat.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/bitops.h>
#include <linux/soc/ti/k3-sec-proxy.h>
diff --git a/drivers/mailbox/sandbox-mbox.c b/drivers/mailbox/sandbox-mbox.c
index 4dd5371fc198..27d2b7b99760 100644
--- a/drivers/mailbox/sandbox-mbox.c
+++ b/drivers/mailbox/sandbox-mbox.c
@@ -8,6 +8,7 @@
#include <log.h>
#include <mailbox-uclass.h>
#include <malloc.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <asm/mbox.h>
#include <linux/errno.h>
diff --git a/drivers/misc/atsha204a-i2c.c b/drivers/misc/atsha204a-i2c.c
index 5262c005a04e..2df8d1070c0a 100644
--- a/drivers/misc/atsha204a-i2c.c
+++ b/drivers/misc/atsha204a-i2c.c
@@ -16,6 +16,7 @@
#include <errno.h>
#include <atsha204a-i2c.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <linux/delay.h>
#include <linux/errno.h>
diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c
index a3ae33acd053..7979989e1a65 100644
--- a/drivers/misc/cros_ec.c
+++ b/drivers/misc/cros_ec.c
@@ -34,6 +34,7 @@
#include <dm/device-internal.h>
#include <dm/of_extra.h>
#include <dm/uclass-internal.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#ifdef DEBUG_TRACE
diff --git a/drivers/misc/cros_ec_i2c.c b/drivers/misc/cros_ec_i2c.c
index 782ee703eb60..2118afee76a9 100644
--- a/drivers/misc/cros_ec_i2c.c
+++ b/drivers/misc/cros_ec_i2c.c
@@ -19,6 +19,7 @@
#include <log.h>
#include <stdio.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#ifdef DEBUG_TRACE
diff --git a/drivers/misc/cros_ec_sandbox.c b/drivers/misc/cros_ec_sandbox.c
index 5a5af51eb39f..b32822432437 100644
--- a/drivers/misc/cros_ec_sandbox.c
+++ b/drivers/misc/cros_ec_sandbox.c
@@ -16,6 +16,7 @@
#include <stdio.h>
#include <time.h>
#include <linux/errno.h>
+#include <linux/kernel.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 bb7b8c1b1de6..3c3db889d61e 100644
--- a/drivers/misc/cros_ec_spi.c
+++ b/drivers/misc/cros_ec_spi.c
@@ -21,6 +21,7 @@
#include <stdio.h>
#include <time.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
int cros_ec_spi_packet(struct udevice *udev, int out_bytes, int in_bytes)
diff --git a/drivers/misc/ds4510.c b/drivers/misc/ds4510.c
index 4cf609bdad4c..8d3a690aa1bc 100644
--- a/drivers/misc/ds4510.c
+++ b/drivers/misc/ds4510.c
@@ -14,6 +14,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "ds4510.h"
diff --git a/drivers/misc/fsl_ifc.c b/drivers/misc/fsl_ifc.c
index 27666a71fb36..bf2f9a1ac8ee 100644
--- a/drivers/misc/fsl_ifc.c
+++ b/drivers/misc/fsl_ifc.c
@@ -8,6 +8,7 @@
#include <fsl_ifc.h>
#include <part.h>
#include <stdio.h>
+#include <linux/kernel.h>
#ifdef CONFIG_TFABOOT
struct ifc_regs ifc_cfg_default_boot[CONFIG_SYS_FSL_IFC_BANK_COUNT] = {
diff --git a/drivers/misc/fsl_iim.c b/drivers/misc/fsl_iim.c
index be6d03444d5f..07c7a492081c 100644
--- a/drivers/misc/fsl_iim.c
+++ b/drivers/misc/fsl_iim.c
@@ -18,6 +18,7 @@
#if defined(CONFIG_MX51) || defined(CONFIG_MX53)
#include <asm/arch/clock.h>
#endif
+#include <linux/kernel.h>
/* FSL IIM-specific constants */
#define STAT_BUSY 0x80
diff --git a/drivers/misc/gdsys_ioep.c b/drivers/misc/gdsys_ioep.c
index 22afebd9ab07..ebcd4d91e89d 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 <stdbool.h>
#include <linux/errno.h>
#include <linux/string.h>
diff --git a/drivers/misc/gdsys_rxaui_ctrl.c b/drivers/misc/gdsys_rxaui_ctrl.c
index c56abce4d4c1..7cc350d3cc98 100644
--- a/drivers/misc/gdsys_rxaui_ctrl.c
+++ b/drivers/misc/gdsys_rxaui_ctrl.c
@@ -11,6 +11,7 @@
#include <dm.h>
#include <regmap.h>
#include <misc.h>
+#include <stdbool.h>
struct gdsys_rxaui_ctrl_regs {
u16 gen_cnt;
diff --git a/drivers/misc/gpio_led.c b/drivers/misc/gpio_led.c
index acf3ec8c017f..68f46fd59d93 100644
--- a/drivers/misc/gpio_led.c
+++ b/drivers/misc/gpio_led.c
@@ -9,6 +9,7 @@
#include <status_led.h>
#include <stdio.h>
#include <asm/gpio.h>
+#include <linux/kernel.h>
#ifndef CONFIG_GPIO_LED_INVERTED_TABLE
#define CONFIG_GPIO_LED_INVERTED_TABLE {}
diff --git a/drivers/misc/i2c_eeprom_emul.c b/drivers/misc/i2c_eeprom_emul.c
index 9f0d89673d97..e7f9ccdf8483 100644
--- a/drivers/misc/i2c_eeprom_emul.c
+++ b/drivers/misc/i2c_eeprom_emul.c
@@ -13,6 +13,7 @@
#include <malloc.h>
#include <asm/test.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#ifdef DEBUG
diff --git a/drivers/misc/ihs_fpga.c b/drivers/misc/ihs_fpga.c
index 9dbb857101d0..fd9c0f937ff8 100644
--- a/drivers/misc/ihs_fpga.c
+++ b/drivers/misc/ihs_fpga.c
@@ -13,6 +13,7 @@
#include <dm.h>
#include <log.h>
#include <regmap.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/gpio.h>
#include <linux/bitops.h>
diff --git a/drivers/misc/irq-uclass.c b/drivers/misc/irq-uclass.c
index 6b6813e1fc50..3795f5eaa1bb 100644
--- a/drivers/misc/irq-uclass.c
+++ b/drivers/misc/irq-uclass.c
@@ -11,6 +11,7 @@
#include <dt-structs.h>
#include <irq.h>
#include <log.h>
+#include <stdbool.h>
#include <dm/device-internal.h>
#include <linux/errno.h>
diff --git a/drivers/misc/irq_sandbox.c b/drivers/misc/irq_sandbox.c
index 14366febd382..625aa1406514 100644
--- a/drivers/misc/irq_sandbox.c
+++ b/drivers/misc/irq_sandbox.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <dm.h>
#include <irq.h>
+#include <stdbool.h>
#include <acpi/acpi_device.h>
#include <asm/test.h>
#include <linux/errno.h>
diff --git a/drivers/misc/misc-uclass.c b/drivers/misc/misc-uclass.c
index c0db58b89679..11ecfc44839c 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 <stdbool.h>
#include <linux/errno.h>
/*
diff --git a/drivers/misc/misc_sandbox.c b/drivers/misc/misc_sandbox.c
index 4e3e8a4a3640..0149e8d9a796 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 <stdbool.h>
#include <linux/errno.h>
#include <linux/string.h>
diff --git a/drivers/misc/mpc83xx_serdes.c b/drivers/misc/mpc83xx_serdes.c
index 925e6ec3ab83..0f182de1568d 100644
--- a/drivers/misc/mpc83xx_serdes.c
+++ b/drivers/misc/mpc83xx_serdes.c
@@ -14,6 +14,7 @@
#include <log.h>
#include <mapmem.h>
#include <misc.h>
+#include <stdbool.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/string.h>
diff --git a/drivers/misc/mxc_ocotp.c b/drivers/misc/mxc_ocotp.c
index 5d7a74afe2c2..cce6cb72c5e5 100644
--- a/drivers/misc/mxc_ocotp.c
+++ b/drivers/misc/mxc_ocotp.c
@@ -13,6 +13,7 @@
#include <common.h>
#include <fuse.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/delay.h>
#include <linux/errno.h>
@@ -20,6 +21,7 @@
#include <asm/arch/clock.h>
#include <asm/arch/imx-regs.h>
#include <asm/mach-imx/sys_proto.h>
+#include <linux/kernel.h>
#define BO_CTRL_WR_UNLOCK 16
#define BM_CTRL_WR_UNLOCK 0xffff0000
diff --git a/drivers/misc/mxs_ocotp.c b/drivers/misc/mxs_ocotp.c
index fa185612b2c1..ede9d9e74239 100644
--- a/drivers/misc/mxs_ocotp.c
+++ b/drivers/misc/mxs_ocotp.c
@@ -13,6 +13,7 @@
#include <common.h>
#include <fuse.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/delay.h>
#include <linux/errno.h>
diff --git a/drivers/misc/p2sb-uclass.c b/drivers/misc/p2sb-uclass.c
index 149f3d28ebf2..eea0e0f528fd 100644
--- a/drivers/misc/p2sb-uclass.c
+++ b/drivers/misc/p2sb-uclass.c
@@ -16,6 +16,7 @@
#include <asm/io.h>
#include <dm/uclass-internal.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#define PCR_COMMON_IOSF_1_0 1
diff --git a/drivers/misc/p2sb_emul.c b/drivers/misc/p2sb_emul.c
index 3c17f6de3f6a..ae68cd9c71af 100644
--- a/drivers/misc/p2sb_emul.c
+++ b/drivers/misc/p2sb_emul.c
@@ -17,6 +17,7 @@
#include <asm/test.h>
#include <p2sb.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
/**
* struct p2sb_emul_platdata - platform data for this device
diff --git a/drivers/misc/pwrseq-uclass.c b/drivers/misc/pwrseq-uclass.c
index 220567ee2798..8ad5c1b5a6b8 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 <stdbool.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 c5629183f860..cd845a71bf60 100644
--- a/drivers/misc/qfw.c
+++ b/drivers/misc/qfw.c
@@ -15,6 +15,7 @@
#include <asm/tables.h>
#endif
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/string.h>
diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c
index d5c1a62ba644..ad825e940f1c 100644
--- a/drivers/misc/rockchip-efuse.c
+++ b/drivers/misc/rockchip-efuse.c
@@ -15,6 +15,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <misc.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define RK3399_A_SHIFT 16
diff --git a/drivers/misc/rockchip-otp.c b/drivers/misc/rockchip-otp.c
index a8563a305d0c..6f438c41df59 100644
--- a/drivers/misc/rockchip-otp.c
+++ b/drivers/misc/rockchip-otp.c
@@ -4,6 +4,7 @@
*/
#include <common.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/io.h>
#include <command.h>
diff --git a/drivers/misc/spltest_sandbox.c b/drivers/misc/spltest_sandbox.c
index 8a5e6b1975ec..1bb4120a06d2 100644
--- a/drivers/misc/spltest_sandbox.c
+++ b/drivers/misc/spltest_sandbox.c
@@ -8,6 +8,7 @@
#include <dm.h>
#include <dt-structs.h>
#include <stdio.h>
+#include <linux/kernel.h>
static int sandbox_spl_probe(struct udevice *dev)
{
diff --git a/drivers/misc/swap_case.c b/drivers/misc/swap_case.c
index 64f29f86baa3..fa3ed8671c27 100644
--- a/drivers/misc/swap_case.c
+++ b/drivers/misc/swap_case.c
@@ -14,6 +14,7 @@
#include <asm/test.h>
#include <linux/ctype.h>
#include <linux/errno.h>
+#include <linux/kernel.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 24ff0cd120d0..969132859272 100644
--- a/drivers/misc/tegra186_bpmp.c
+++ b/drivers/misc/tegra186_bpmp.c
@@ -18,6 +18,7 @@
#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/misc/vexpress_config.c b/drivers/misc/vexpress_config.c
index 2b1d19a14a7e..3a74ffcaddad 100644
--- a/drivers/misc/vexpress_config.c
+++ b/drivers/misc/vexpress_config.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <dm.h>
#include <malloc.h>
+#include <stdbool.h>
#include <dm/read.h>
#include <asm/io.h>
#include <linux/bitops.h>
diff --git a/drivers/mmc/bcm2835_sdhost.c b/drivers/mmc/bcm2835_sdhost.c
index 97ca2ce029af..315a829f2055 100644
--- a/drivers/mmc/bcm2835_sdhost.c
+++ b/drivers/mmc/bcm2835_sdhost.c
@@ -46,6 +46,7 @@
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/iopoll.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <mach/gpio.h>
#include <power/regulator.h>
diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c
index 8c690c3ce127..d77e13784549 100644
--- a/drivers/mmc/dw_mmc.c
+++ b/drivers/mmc/dw_mmc.c
@@ -19,6 +19,7 @@
#include <asm/cache.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 f54413aa9e5c..9fcb416b0421 100644
--- a/drivers/mmc/exynos_dw_mmc.c
+++ b/drivers/mmc/exynos_dw_mmc.c
@@ -10,6 +10,7 @@
#include <stdio.h>
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.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 6ad270e7c2d8..ebe672a41f08 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -35,6 +35,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c
index ffd21684d3f6..0fa066e86197 100644
--- a/drivers/mmc/fsl_esdhc_imx.c
+++ b/drivers/mmc/fsl_esdhc_imx.c
@@ -30,6 +30,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include <power/regulator.h>
diff --git a/drivers/mmc/fsl_esdhc_spl.c b/drivers/mmc/fsl_esdhc_spl.c
index 4c725436de45..3359d67fafa6 100644
--- a/drivers/mmc/fsl_esdhc_spl.c
+++ b/drivers/mmc/fsl_esdhc_spl.c
@@ -9,6 +9,7 @@
#include <mmc.h>
#include <malloc.h>
#include <stdio.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/*
diff --git a/drivers/mmc/ftsdc010_mci.h b/drivers/mmc/ftsdc010_mci.h
index 782d92be2f5f..2c487b4176d0 100644
--- a/drivers/mmc/ftsdc010_mci.h
+++ b/drivers/mmc/ftsdc010_mci.h
@@ -6,6 +6,7 @@
* Macpaul Lin, Andes Technology Corporation <macpaul at andestech.com>
*/
#include <mmc.h>
+#include <stdbool.h>
#ifndef __FTSDC010_MCI_H
#define __FTSDC010_MCI_H
diff --git a/drivers/mmc/gen_atmel_mci.c b/drivers/mmc/gen_atmel_mci.c
index 19ba2b51182f..4b1869ae65c4 100644
--- a/drivers/mmc/gen_atmel_mci.c
+++ b/drivers/mmc/gen_atmel_mci.c
@@ -23,6 +23,7 @@
#include <asm/byteorder.h>
#include <asm/arch/clk.h>
#include <asm/arch/hardware.h>
+#include <linux/kernel.h>
#include "atmel_mci.h"
#ifndef CONFIG_SYS_MMC_CLK_OD
diff --git a/drivers/mmc/hi6220_dw_mmc.c b/drivers/mmc/hi6220_dw_mmc.c
index 61c209cb0a7f..b3a8c5d50d8c 100644
--- a/drivers/mmc/hi6220_dw_mmc.c
+++ b/drivers/mmc/hi6220_dw_mmc.c
@@ -10,6 +10,7 @@
#include <errno.h>
#include <fdtdec.h>
#include <malloc.h>
+#include <stdbool.h>
#include <asm/global_data.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/mmc/jz_mmc.c b/drivers/mmc/jz_mmc.c
index 608e56239764..c8c7127cbe85 100644
--- a/drivers/mmc/jz_mmc.c
+++ b/drivers/mmc/jz_mmc.c
@@ -17,6 +17,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 b804a0c83648..2df20418be3d 100644
--- a/drivers/mmc/meson_gx_mmc.c
+++ b/drivers/mmc/meson_gx_mmc.c
@@ -17,6 +17,7 @@
#include <asm/arch/sd_emmc.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/log2.h>
#include <linux/string.h>
diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c
index cdc93c756c0b..da06aa9e7b6a 100644
--- a/drivers/mmc/mmc-uclass.c
+++ b/drivers/mmc/mmc-uclass.c
@@ -15,6 +15,7 @@
#include <dm/lists.h>
#include <linux/compat.h>
#include <linux/errno.h>
+#include <linux/kernel.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 932205968960..e38950dd6e0e 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -24,6 +24,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include <power/regulator.h>
diff --git a/drivers/mmc/mmc_spi.c b/drivers/mmc/mmc_spi.c
index 0581adb08415..ac8a127029cb 100644
--- a/drivers/mmc/mmc_spi.c
+++ b/drivers/mmc/mmc_spi.c
@@ -12,6 +12,7 @@
#include <malloc.h>
#include <part.h>
#include <mmc.h>
+#include <stdbool.h>
#include <stdlib.h>
#include <vsprintf.h>
#include <linux/bitops.h>
diff --git a/drivers/mmc/mmc_write.c b/drivers/mmc/mmc_write.c
index 68d872fd142b..93eb1404def4 100644
--- a/drivers/mmc/mmc_write.c
+++ b/drivers/mmc/mmc_write.c
@@ -13,6 +13,7 @@
#include <part.h>
#include <div64.h>
#include <stdio.h>
+#include <linux/kernel.h>
#include <linux/math64.h>
#include "mmc_private.h"
diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c
index 2ec53e853a97..b6632a32d363 100644
--- a/drivers/mmc/mtk-sd.c
+++ b/drivers/mmc/mtk-sd.c
@@ -21,6 +21,7 @@
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/iopoll.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
/* MSDC_CFG */
diff --git a/drivers/mmc/mxsmmc.c b/drivers/mmc/mxsmmc.c
index a54e1e128359..615ed6b17006 100644
--- a/drivers/mmc/mxsmmc.c
+++ b/drivers/mmc/mxsmmc.c
@@ -35,6 +35,7 @@
#include <asm/arch/sys_proto.h>
#include <asm/mach-imx/dma.h>
#include <bouncebuf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define MXSMMC_MAX_TIMEOUT 10000
diff --git a/drivers/mmc/nexell_dw_mmc.c b/drivers/mmc/nexell_dw_mmc.c
index e5df2920242f..35704e74d6b6 100644
--- a/drivers/mmc/nexell_dw_mmc.c
+++ b/drivers/mmc/nexell_dw_mmc.c
@@ -11,6 +11,7 @@
#include <dt-structs.h>
#include <dwmmc.h>
#include <log.h>
+#include <stdbool.h>
#include <syscon.h>
#include <asm/arch/reset.h>
#include <asm/arch/clk.h>
diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c
index 606c4a5c1c6c..4de6bb1d9725 100644
--- a/drivers/mmc/omap_hsmmc.c
+++ b/drivers/mmc/omap_hsmmc.c
@@ -58,6 +58,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <power/regulator.h>
#include <thermal.h>
diff --git a/drivers/mmc/pxa_mmc_gen.c b/drivers/mmc/pxa_mmc_gen.c
index 854d346a7469..5a4652e2461b 100644
--- a/drivers/mmc/pxa_mmc_gen.c
+++ b/drivers/mmc/pxa_mmc_gen.c
@@ -19,6 +19,7 @@
#include <dm/platform_data/pxa_mmc_gen.h>
#include <malloc.h>
#include <mmc.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/* PXAMMC Generic default config for various CPUs */
diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c
index 4e8d2a9e509a..1c4ce0ff02a9 100644
--- a/drivers/mmc/renesas-sdhi.c
+++ b/drivers/mmc/renesas-sdhi.c
@@ -19,6 +19,7 @@
#include <linux/dma-direction.h>
#include <linux/errno.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <power/regulator.h>
#include <asm/unaligned.h>
diff --git a/drivers/mmc/rpmb.c b/drivers/mmc/rpmb.c
index 93fdf72f3444..b07a10c0f781 100644
--- a/drivers/mmc/rpmb.c
+++ b/drivers/mmc/rpmb.c
@@ -13,6 +13,7 @@
#include <memalign.h>
#include <mmc.h>
#include <sdhci.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/errno.h>
#include <linux/string.h>
diff --git a/drivers/mmc/sandbox_mmc.c b/drivers/mmc/sandbox_mmc.c
index d4780271fc30..58c79a8821b3 100644
--- a/drivers/mmc/sandbox_mmc.c
+++ b/drivers/mmc/sandbox_mmc.c
@@ -11,6 +11,7 @@
#include <log.h>
#include <mmc.h>
#include <asm/test.h>
+#include <linux/kernel.h>
#include <linux/string.h>
struct sandbox_mmc_plat {
diff --git a/drivers/mmc/sdhci-cadence.c b/drivers/mmc/sdhci-cadence.c
index 96901bce72da..fd5b77351a25 100644
--- a/drivers/mmc/sdhci-cadence.c
+++ b/drivers/mmc/sdhci-cadence.c
@@ -14,6 +14,7 @@
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/iopoll.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <linux/libfdt.h>
#include <mmc.h>
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index f6b8625c21eb..917856a45d2c 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -23,6 +23,7 @@
#include <linux/dma-mapping.h>
#include <phys2bus.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/mmc/sh_mmcif.c b/drivers/mmc/sh_mmcif.c
index e9ff31b4afe5..ede46d1b6acc 100644
--- a/drivers/mmc/sh_mmcif.c
+++ b/drivers/mmc/sh_mmcif.c
@@ -22,6 +22,7 @@
#include <linux/errno.h>
#include <linux/compat.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <linux/string.h>
#include "sh_mmcif.h"
diff --git a/drivers/mmc/snps_dw_mmc.c b/drivers/mmc/snps_dw_mmc.c
index f123d3fe2222..5572afa1e487 100644
--- a/drivers/mmc/snps_dw_mmc.c
+++ b/drivers/mmc/snps_dw_mmc.c
@@ -15,6 +15,7 @@
#include <fdtdec.h>
#include <dm/device_compat.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <linux/err.h>
#include <malloc.h>
diff --git a/drivers/mmc/stm32_sdmmc2.c b/drivers/mmc/stm32_sdmmc2.c
index f46c9a8e5bf2..62f9c7a6f5dd 100644
--- a/drivers/mmc/stm32_sdmmc2.c
+++ b/drivers/mmc/stm32_sdmmc2.c
@@ -17,6 +17,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 7164db122fa8..b562595e2f3a 100644
--- a/drivers/mmc/sunxi_mmc.c
+++ b/drivers/mmc/sunxi_mmc.c
@@ -15,6 +15,7 @@
#include <mmc.h>
#include <clk.h>
#include <reset.h>
+#include <stdbool.h>
#include <stdio.h>
#include <time.h>
#include <asm/io.h>
diff --git a/drivers/mmc/tmio-common.c b/drivers/mmc/tmio-common.c
index ff563cf97734..5e8076fcd972 100644
--- a/drivers/mmc/tmio-common.c
+++ b/drivers/mmc/tmio-common.c
@@ -18,6 +18,7 @@
#include <linux/dma-mapping.h>
#include <linux/errno.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <power/regulator.h>
#include <asm/unaligned.h>
diff --git a/drivers/mmc/tmio-common.h b/drivers/mmc/tmio-common.h
index 9062300c64f7..4160cbe0f5ca 100644
--- a/drivers/mmc/tmio-common.h
+++ b/drivers/mmc/tmio-common.h
@@ -7,6 +7,7 @@
#ifndef __TMIO_COMMON_H__
#define __TMIO_COMMON_H__
+#include <stdbool.h>
#include <linux/bitops.h>
#define TMIO_SD_CMD 0x000 /* command */
#define TMIO_SD_CMD_NOSTOP BIT(14) /* No automatic CMD12 issue */
diff --git a/drivers/mmc/uniphier-sd.c b/drivers/mmc/uniphier-sd.c
index 4dbe71fa2e1e..088e1d9a900f 100644
--- a/drivers/mmc/uniphier-sd.c
+++ b/drivers/mmc/uniphier-sd.c
@@ -14,6 +14,7 @@
#include <linux/compat.h>
#include <linux/dma-direction.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <power/regulator.h>
#include <asm/unaligned.h>
diff --git a/drivers/mmc/xenon_sdhci.c b/drivers/mmc/xenon_sdhci.c
index 355b4eecb093..46c8db49547f 100644
--- a/drivers/mmc/xenon_sdhci.c
+++ b/drivers/mmc/xenon_sdhci.c
@@ -17,6 +17,7 @@
#include <common.h>
#include <dm.h>
#include <fdtdec.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <linux/bitops.h>
diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c
index 53f605084a5b..5280fb96db18 100644
--- a/drivers/mtd/cfi_flash.c
+++ b/drivers/mtd/cfi_flash.c
@@ -37,6 +37,7 @@
#include <env_internal.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 1583efd267de..848c5ede4139 100644
--- a/drivers/mtd/hbmc-am654.c
+++ b/drivers/mtd/hbmc-am654.c
@@ -4,6 +4,7 @@
// Author: Vignesh Raghavendra <vigneshr at ti.com>
#include <common.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <dm.h>
#include <regmap.h>
diff --git a/drivers/mtd/jedec_flash.c b/drivers/mtd/jedec_flash.c
index 790373dac8fc..9456c9abbc3a 100644
--- a/drivers/mtd/jedec_flash.c
+++ b/drivers/mtd/jedec_flash.c
@@ -18,6 +18,7 @@
#include <asm/processor.h>
#include <asm/io.h>
#include <asm/byteorder.h>
+#include <linux/kernel.h>
#define P_ID_AMD_STD CFI_CMDSET_AMD_LEGACY
diff --git a/drivers/mtd/nand/bbt.c b/drivers/mtd/nand/bbt.c
index 674b9c98b097..18cd7c9d0164 100644
--- a/drivers/mtd/nand/bbt.c
+++ b/drivers/mtd/nand/bbt.c
@@ -13,6 +13,7 @@
#include <dm/devres.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.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 1d9d13dfe1e3..57e296f59cff 100644
--- a/drivers/mtd/nand/core.c
+++ b/drivers/mtd/nand/core.c
@@ -14,6 +14,7 @@
#include <linux/compat.h>
#include <linux/module.h>
#endif
+#include <stdbool.h>
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/mtd/nand.h>
diff --git a/drivers/mtd/nand/raw/arasan_nfc.c b/drivers/mtd/nand/raw/arasan_nfc.c
index 978174ffa8d8..c604db376c15 100644
--- a/drivers/mtd/nand/raw/arasan_nfc.c
+++ b/drivers/mtd/nand/raw/arasan_nfc.c
@@ -11,6 +11,7 @@
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/rawnand.h>
#include <linux/mtd/partitions.h>
diff --git a/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c
index 89c981096ba9..acfe2ba0bd21 100644
--- a/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c
+++ b/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c
@@ -10,6 +10,7 @@
#include <linux/io.h>
#include <linux/ioport.h>
#include <dm.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include "brcmnand.h"
diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c
index 3223d9aacfff..4c886e1533f8 100644
--- a/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c
+++ b/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c
@@ -9,6 +9,7 @@
#include <linux/io.h>
#include <linux/ioport.h>
#include <dm.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include "brcmnand.h"
diff --git a/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c
index b8e7b6b2921e..a649b1a89636 100644
--- a/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c
+++ b/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c
@@ -9,6 +9,7 @@
#include <linux/io.h>
#include <linux/ioport.h>
#include <dm.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include "brcmnand.h"
diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c
index 071b16c217ae..25bfe253f297 100644
--- a/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c
+++ b/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c
@@ -10,6 +10,7 @@
#include <linux/io.h>
#include <linux/ioport.h>
#include <dm.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include "brcmnand.h"
diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c
index e9d23377d47a..926c59eb1485 100644
--- a/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c
+++ b/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c
@@ -10,6 +10,7 @@
#include <linux/io.h>
#include <linux/ioport.h>
#include <dm.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include "brcmnand.h"
diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c
index cefe65654c5d..b90f26978ffb 100644
--- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c
+++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c
@@ -27,6 +27,7 @@
#include <linux/ioport.h>
#include <linux/completion.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/log2.h>
#include <asm/processor.h>
#include <dm.h>
diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.h b/drivers/mtd/nand/raw/brcmnand/brcmnand.h
index 6946a62b0679..2a48dfea90c1 100644
--- a/drivers/mtd/nand/raw/brcmnand/brcmnand.h
+++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.h
@@ -3,6 +3,7 @@
#ifndef __BRCMNAND_H__
#define __BRCMNAND_H__
+#include <stdbool.h>
#include <linux/types.h>
#include <linux/io.h>
diff --git a/drivers/mtd/nand/raw/davinci_nand.c b/drivers/mtd/nand/raw/davinci_nand.c
index 6c4eb58abb60..c00fc65b6a0d 100644
--- a/drivers/mtd/nand/raw/davinci_nand.c
+++ b/drivers/mtd/nand/raw/davinci_nand.c
@@ -35,6 +35,7 @@
#include <dm/uclass.h>
#include <asm/ti-common/davinci_nand.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
/* Definitions for 4-bit hardware ECC */
diff --git a/drivers/mtd/nand/raw/denali.c b/drivers/mtd/nand/raw/denali.c
index ca99aa88b3d4..0e84f37784d7 100644
--- a/drivers/mtd/nand/raw/denali.c
+++ b/drivers/mtd/nand/raw/denali.c
@@ -21,6 +21,7 @@
#include <linux/err.h>
#include <linux/errno.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/rawnand.h>
#include <linux/string.h>
diff --git a/drivers/mtd/nand/raw/denali_spl.c b/drivers/mtd/nand/raw/denali_spl.c
index 504f773e4dec..ed077fd06bc0 100644
--- a/drivers/mtd/nand/raw/denali_spl.c
+++ b/drivers/mtd/nand/raw/denali_spl.c
@@ -10,6 +10,7 @@
#include <asm/unaligned.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/mtd/rawnand.h>
#include <linux/string.h>
#include "denali.h"
diff --git a/drivers/mtd/nand/raw/fsl_elbc_nand.c b/drivers/mtd/nand/raw/fsl_elbc_nand.c
index 99749f9e50a9..eb95cb003038 100644
--- a/drivers/mtd/nand/raw/fsl_elbc_nand.c
+++ b/drivers/mtd/nand/raw/fsl_elbc_nand.c
@@ -14,6 +14,7 @@
#include <stdio.h>
#include <time.h>
#include <dm/devres.h>
+#include <linux/kernel.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/rawnand.h>
diff --git a/drivers/mtd/nand/raw/fsl_ifc_nand.c b/drivers/mtd/nand/raw/fsl_ifc_nand.c
index 33c80d032091..291dda8fb480 100644
--- a/drivers/mtd/nand/raw/fsl_ifc_nand.c
+++ b/drivers/mtd/nand/raw/fsl_ifc_nand.c
@@ -13,6 +13,7 @@
#include <stdio.h>
#include <time.h>
#include <dm/devres.h>
+#include <linux/kernel.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/rawnand.h>
diff --git a/drivers/mtd/nand/raw/fsmc_nand.c b/drivers/mtd/nand/raw/fsmc_nand.c
index 0991a398f452..5994c321cacc 100644
--- a/drivers/mtd/nand/raw/fsmc_nand.c
+++ b/drivers/mtd/nand/raw/fsmc_nand.c
@@ -15,6 +15,7 @@
#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.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/lpc32xx_nand_mlc.c b/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c
index cfa2510b038f..368ce3e54edf 100644
--- a/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c
+++ b/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c
@@ -27,6 +27,7 @@
#include <nand.h>
#include <asm/arch/clk.h>
#include <asm/arch/sys_proto.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/mtd/nand/raw/lpc32xx_nand_slc.c b/drivers/mtd/nand/raw/lpc32xx_nand_slc.c
index 5e8e76c3e5f0..07a44a565ad3 100644
--- a/drivers/mtd/nand/raw/lpc32xx_nand_slc.c
+++ b/drivers/mtd/nand/raw/lpc32xx_nand_slc.c
@@ -14,6 +14,7 @@
#include <log.h>
#include <nand.h>
#include <linux/bug.h>
+#include <linux/kernel.h>
#include <linux/mtd/nand_ecc.h>
#include <linux/errno.h>
#include <asm/io.h>
diff --git a/drivers/mtd/nand/raw/mxc_nand.c b/drivers/mtd/nand/raw/mxc_nand.c
index a90d30bd1003..f012f7329c9d 100644
--- a/drivers/mtd/nand/raw/mxc_nand.c
+++ b/drivers/mtd/nand/raw/mxc_nand.c
@@ -16,6 +16,7 @@
#include <asm/arch/imx-regs.h>
#endif
#include <linux/errno.h>
+#include <linux/kernel.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 ad01cdce2607..c3e136899f92 100644
--- a/drivers/mtd/nand/raw/mxc_nand_spl.c
+++ b/drivers/mtd/nand/raw/mxc_nand_spl.c
@@ -16,6 +16,7 @@
#include <asm/arch/imx-regs.h>
#include <asm/io.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "mxc_nand.h"
#if defined(MXC_NFC_V1) || defined(MXC_NFC_V2_1)
diff --git a/drivers/mtd/nand/raw/mxs_nand.c b/drivers/mtd/nand/raw/mxs_nand.c
index d59528e27fd3..8ab4dab32c02 100644
--- a/drivers/mtd/nand/raw/mxs_nand.c
+++ b/drivers/mtd/nand/raw/mxs_nand.c
@@ -18,6 +18,7 @@
#include <dm.h>
#include <stdio.h>
#include <asm/cache.h>
+#include <linux/kernel.h>
#include <linux/mtd/rawnand.h>
#include <linux/sizes.h>
#include <linux/string.h>
diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c
index a6b3504facd5..115f5a771bed 100644
--- a/drivers/mtd/nand/raw/nand_base.c
+++ b/drivers/mtd/nand/raw/nand_base.c
@@ -43,6 +43,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/compat.h>
+#include <linux/kernel.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/rawnand.h>
#include <linux/mtd/nand_ecc.h>
diff --git a/drivers/mtd/nand/raw/nand_bbt.c b/drivers/mtd/nand/raw/nand_bbt.c
index 82b925e57c80..22454253f3c4 100644
--- a/drivers/mtd/nand/raw/nand_bbt.c
+++ b/drivers/mtd/nand/raw/nand_bbt.c
@@ -64,6 +64,7 @@
#include <linux/bug.h>
#include <linux/compat.h>
#include <linux/errno.h>
+#include <linux/kernel.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 94e03e9ba5ec..eaca67da1b89 100644
--- a/drivers/mtd/nand/raw/nand_bch.c
+++ b/drivers/mtd/nand/raw/nand_bch.c
@@ -11,6 +11,7 @@
#include <log.h>
#include <dm/devres.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
/*#include <asm/io.h>*/
diff --git a/drivers/mtd/nand/raw/nand_spl_loaders.c b/drivers/mtd/nand/raw/nand_spl_loaders.c
index f297205bc795..75ded89893a4 100644
--- a/drivers/mtd/nand/raw/nand_spl_loaders.c
+++ b/drivers/mtd/nand/raw/nand_spl_loaders.c
@@ -1,3 +1,4 @@
+#include <linux/kernel.h>
#include <linux/string.h>
int nand_spl_load_image(uint32_t offs, unsigned int size, void *dst)
{
diff --git a/drivers/mtd/nand/raw/nand_util.c b/drivers/mtd/nand/raw/nand_util.c
index 162f6fe1f0cf..f753970d9e78 100644
--- a/drivers/mtd/nand/raw/nand_util.c
+++ b/drivers/mtd/nand/raw/nand_util.c
@@ -28,6 +28,7 @@
#include <div64.h>
#include <asm/cache.h>
#include <dm/devres.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/errno.h>
diff --git a/drivers/mtd/nand/raw/pxa3xx_nand.c b/drivers/mtd/nand/raw/pxa3xx_nand.c
index e222fb994b0a..8678866d3dd0 100644
--- a/drivers/mtd/nand/raw/pxa3xx_nand.c
+++ b/drivers/mtd/nand/raw/pxa3xx_nand.c
@@ -21,6 +21,7 @@
#include <linux/errno.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
+#include <linux/kernel.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/rawnand.h>
#include <linux/printk.h>
diff --git a/drivers/mtd/nand/raw/pxa3xx_nand.h b/drivers/mtd/nand/raw/pxa3xx_nand.h
index 8f24ae6d18a9..d7304d0b34e9 100644
--- a/drivers/mtd/nand/raw/pxa3xx_nand.h
+++ b/drivers/mtd/nand/raw/pxa3xx_nand.h
@@ -1,6 +1,7 @@
#ifndef __ASM_ARCH_PXA3XX_NAND_H
#define __ASM_ARCH_PXA3XX_NAND_H
+#include <stdbool.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
diff --git a/drivers/mtd/nand/raw/stm32_fmc2_nand.c b/drivers/mtd/nand/raw/stm32_fmc2_nand.c
index 1b8003fd73c0..e5dbb970f1b4 100644
--- a/drivers/mtd/nand/raw/stm32_fmc2_nand.c
+++ b/drivers/mtd/nand/raw/stm32_fmc2_nand.c
@@ -17,6 +17,7 @@
#include <linux/errno.h>
#include <linux/iopoll.h>
#include <linux/ioport.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
/* Bad block marker length */
diff --git a/drivers/mtd/nand/raw/sunxi_nand_spl.c b/drivers/mtd/nand/raw/sunxi_nand_spl.c
index 9b54d007f8e4..e24bd384c267 100644
--- a/drivers/mtd/nand/raw/sunxi_nand_spl.c
+++ b/drivers/mtd/nand/raw/sunxi_nand_spl.c
@@ -14,6 +14,7 @@
#include <linux/ctype.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 ceec8c81e94d..49cf29a7abe4 100644
--- a/drivers/mtd/nand/raw/vf610_nfc.c
+++ b/drivers/mtd/nand/raw/vf610_nfc.c
@@ -27,6 +27,7 @@
#include <time.h>
#include <dm/device_compat.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/mtd/nand/raw/zynq_nand.c b/drivers/mtd/nand/raw/zynq_nand.c
index 47435cfdccc3..6af6b7bd844f 100644
--- a/drivers/mtd/nand/raw/zynq_nand.c
+++ b/drivers/mtd/nand/raw/zynq_nand.c
@@ -15,6 +15,7 @@
#include <linux/errno.h>
#include <nand.h>
#include <linux/ioport.h>
+#include <linux/kernel.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/rawnand.h>
#include <linux/mtd/partitions.h>
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index 7e5aaac23727..f576aea331ca 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -27,6 +27,7 @@
#include <dm/devres.h>
#include <linux/bitops.h>
#include <linux/compat.h>
+#include <linux/kernel.h>
#include <linux/mtd/mtd.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/mtd/onenand/onenand_spl.c b/drivers/mtd/onenand/onenand_spl.c
index 463ec9b8d50c..69c529e658de 100644
--- a/drivers/mtd/onenand/onenand_spl.c
+++ b/drivers/mtd/onenand/onenand_spl.c
@@ -10,6 +10,7 @@
#include <common.h>
#include <asm/io.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <linux/mtd/onenand_regs.h>
#include <onenand_uboot.h>
#include <linux/string.h>
diff --git a/drivers/mtd/renesas_rpc_hf.c b/drivers/mtd/renesas_rpc_hf.c
index 7dc795c06aba..60f8dbc676a7 100644
--- a/drivers/mtd/renesas_rpc_hf.c
+++ b/drivers/mtd/renesas_rpc_hf.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <malloc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/drivers/mtd/spi/sandbox.c b/drivers/mtd/spi/sandbox.c
index 0ab3596a2a1f..424c74d74fdd 100644
--- a/drivers/mtd/spi/sandbox.c
+++ b/drivers/mtd/spi/sandbox.c
@@ -18,6 +18,7 @@
#include <os.h>
#include <stdio.h>
#include <linux/errno.h>
+#include <linux/kernel.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 c65d62e7cdb2..558cf39ba672 100644
--- a/drivers/mtd/spi/sf_dataflash.c
+++ b/drivers/mtd/spi/sf_dataflash.c
@@ -21,6 +21,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/math64.h>
#include <linux/string.h>
diff --git a/drivers/mtd/spi/sf_mtd.c b/drivers/mtd/spi/sf_mtd.c
index 5f80e115f4db..cf9d79c95572 100644
--- a/drivers/mtd/spi/sf_mtd.c
+++ b/drivers/mtd/spi/sf_mtd.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <flash.h>
#include <malloc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <linux/errno.h>
diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c
index fd49d6ae4d19..b11c61ee9c9a 100644
--- a/drivers/mtd/spi/spi-nor-core.c
+++ b/drivers/mtd/spi/spi-nor-core.c
@@ -19,6 +19,7 @@
#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/log2.h>
#include <linux/math64.h>
#include <linux/printk.h>
diff --git a/drivers/mtd/spi/spi-nor-tiny.c b/drivers/mtd/spi/spi-nor-tiny.c
index 0cddd1068448..323897d20e83 100644
--- a/drivers/mtd/spi/spi-nor-tiny.c
+++ b/drivers/mtd/spi/spi-nor-tiny.c
@@ -16,6 +16,7 @@
#include <dm/device_compat.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/log2.h>
#include <linux/math64.h>
#include <linux/printk.h>
diff --git a/drivers/mtd/st_smi.c b/drivers/mtd/st_smi.c
index a6c1a0e1c78a..6488897b4380 100644
--- a/drivers/mtd/st_smi.c
+++ b/drivers/mtd/st_smi.c
@@ -11,6 +11,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/mtd/st_smi.h>
#include <asm/io.h>
diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c
index 213061847d73..705a05ae77d9 100644
--- a/drivers/mtd/ubi/debug.c
+++ b/drivers/mtd/ubi/debug.c
@@ -11,6 +11,7 @@
#include <ubi_uboot.h>
#include <vsprintf.h>
#include <linux/errno.h>
+#include <linux/kernel.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 23a72d6a325c..7f797c517b2a 100644
--- a/drivers/mtd/ubi/eba.c
+++ b/drivers/mtd/ubi/eba.c
@@ -37,6 +37,7 @@
#else
#include <ubi_uboot.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#endif
diff --git a/drivers/mtd/ubi/fastmap-wl.c b/drivers/mtd/ubi/fastmap-wl.c
index df5fab00e1a3..4a0f8a3db980 100644
--- a/drivers/mtd/ubi/fastmap-wl.c
+++ b/drivers/mtd/ubi/fastmap-wl.c
@@ -7,6 +7,7 @@
*/
#include <linux/errno.h>
+#include <linux/kernel.h>
/**
* update_fastmap_work_fn - calls ubi_update_fastmap from a work queue
diff --git a/drivers/mtd/ubi/fastmap.c b/drivers/mtd/ubi/fastmap.c
index 6812b122d651..38983fb7356b 100644
--- a/drivers/mtd/ubi/fastmap.c
+++ b/drivers/mtd/ubi/fastmap.c
@@ -18,6 +18,7 @@
#include <ubi_uboot.h>
#include <linux/bug.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#endif
diff --git a/drivers/mtd/ubi/io.c b/drivers/mtd/ubi/io.c
index f88bafd35d3e..e5dafaf5ff6c 100644
--- a/drivers/mtd/ubi/io.c
+++ b/drivers/mtd/ubi/io.c
@@ -84,6 +84,7 @@
#include <hexdump.h>
#include <ubi_uboot.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#endif
diff --git a/drivers/mtd/ubi/misc.c b/drivers/mtd/ubi/misc.c
index b9bad95cf6f8..6574760288d5 100644
--- a/drivers/mtd/ubi/misc.c
+++ b/drivers/mtd/ubi/misc.c
@@ -11,6 +11,7 @@
#include <malloc.h>
#include <ubi_uboot.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "ubi.h"
/**
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h
index d91c9effd070..2314ca7df1fc 100644
--- a/drivers/mtd/ubi/ubi.h
+++ b/drivers/mtd/ubi/ubi.h
@@ -29,6 +29,7 @@
#else
#include <ubi_uboot.h>
#include <linux/errno.h>
+#include <linux/kernel.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 96ecaf60c040..fff703a0f6c2 100644
--- a/drivers/mtd/ubi/upd.c
+++ b/drivers/mtd/ubi/upd.c
@@ -33,6 +33,7 @@
#include <div64.h>
#include <ubi_uboot.h>
#include <linux/errno.h>
+#include <linux/kernel.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 806abc9122e8..c9d28bb4d520 100644
--- a/drivers/mtd/ubi/vmt.c
+++ b/drivers/mtd/ubi/vmt.c
@@ -21,6 +21,7 @@
#include <ubi_uboot.h>
#include <vsprintf.h>
#include <linux/errno.h>
+#include <linux/kernel.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 91c0589bb62d..b8e07872716c 100644
--- a/drivers/mtd/ubi/vtbl.c
+++ b/drivers/mtd/ubi/vtbl.c
@@ -57,6 +57,7 @@
#include <ubi_uboot.h>
#include <linux/bug.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#endif
diff --git a/drivers/mtd/ubispl/ubispl.c b/drivers/mtd/ubispl/ubispl.c
index 96afa7dec115..2a1ad2ca1579 100644
--- a/drivers/mtd/ubispl/ubispl.c
+++ b/drivers/mtd/ubispl/ubispl.c
@@ -11,6 +11,7 @@
#include <errno.h>
#include <linux/bug.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/crc.h>
#include <ubispl.h>
diff --git a/drivers/net/armada100_fec.h b/drivers/net/armada100_fec.h
index e6f286cfd387..b0e6d02b4af5 100644
--- a/drivers/net/armada100_fec.h
+++ b/drivers/net/armada100_fec.h
@@ -12,6 +12,7 @@
#ifndef __ARMADA100_FEC_H__
#define __ARMADA100_FEC_H__
+#include <linux/kernel.h>
#define PORT_NUM 0x0
/* RX & TX descriptor command */
diff --git a/drivers/net/ax88180.c b/drivers/net/ax88180.c
index 5783c42aa234..fada006f84b9 100644
--- a/drivers/net/ax88180.c
+++ b/drivers/net/ax88180.c
@@ -45,6 +45,7 @@
#include <stdio.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/mii.h>
#include <linux/string.h>
#include "ax88180.h"
diff --git a/drivers/net/bcm-sf2-eth-gmac.c b/drivers/net/bcm-sf2-eth-gmac.c
index 67c8498f0f63..8540b13951bf 100644
--- a/drivers/net/bcm-sf2-eth-gmac.c
+++ b/drivers/net/bcm-sf2-eth-gmac.c
@@ -9,6 +9,7 @@
#include <linux/printk.h>
#endif
#include <stdio.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#endif
diff --git a/drivers/net/bcm-sf2-eth.h b/drivers/net/bcm-sf2-eth.h
index f4dbb4e1952d..4f81e0431c1d 100644
--- a/drivers/net/bcm-sf2-eth.h
+++ b/drivers/net/bcm-sf2-eth.h
@@ -7,6 +7,7 @@
#define _BCM_SF2_ETH_H_
#include <phy.h>
+#include <stdbool.h>
#define RX_BUF_SIZE 2048
/* RX_BUF_NUM must be power of 2 */
diff --git a/drivers/net/bcm6348-eth.c b/drivers/net/bcm6348-eth.c
index eeea3dc579f8..afb81ab187b8 100644
--- a/drivers/net/bcm6348-eth.c
+++ b/drivers/net/bcm6348-eth.c
@@ -16,6 +16,7 @@
#include <net.h>
#include <phy.h>
#include <reset.h>
+#include <stdbool.h>
#include <vsprintf.h>
#include <wait_bit.h>
#include <asm/io.h>
diff --git a/drivers/net/bcm6368-eth.c b/drivers/net/bcm6368-eth.c
index 0e6d266f1037..3f18c5c52251 100644
--- a/drivers/net/bcm6368-eth.c
+++ b/drivers/net/bcm6368-eth.c
@@ -15,6 +15,7 @@
#include <miiphy.h>
#include <net.h>
#include <reset.h>
+#include <stdbool.h>
#include <vsprintf.h>
#include <wait_bit.h>
#include <asm/io.h>
diff --git a/drivers/net/bcmgenet.c b/drivers/net/bcmgenet.c
index cd3dac49e7ea..ca7888af89c2 100644
--- a/drivers/net/bcmgenet.c
+++ b/drivers/net/bcmgenet.c
@@ -35,6 +35,7 @@
#include <dm/ofnode.h>
#include <linux/errno.h>
#include <linux/iopoll.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <asm/dma-mapping.h>
#include <wait_bit.h>
diff --git a/drivers/net/dc2114x.c b/drivers/net/dc2114x.c
index 8bc75baf97f1..3f45aebcd039 100644
--- a/drivers/net/dc2114x.c
+++ b/drivers/net/dc2114x.c
@@ -13,6 +13,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define SROM_DLEVEL 0
diff --git a/drivers/net/dnet.c b/drivers/net/dnet.c
index 485e6c0cdcc6..675eb88c3d9b 100644
--- a/drivers/net/dnet.c
+++ b/drivers/net/dnet.c
@@ -14,6 +14,7 @@
#include <vsprintf.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#ifndef CONFIG_DNET_AUTONEG_TIMEOUT
diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c
index 68d80bafa1e3..22b5dff2f6dc 100644
--- a/drivers/net/dwc_eth_qos.c
+++ b/drivers/net/dwc_eth_qos.c
@@ -52,6 +52,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c
index 1705dde9d2c1..3d87e05c5b2f 100644
--- a/drivers/net/e1000.c
+++ b/drivers/net/e1000.c
@@ -44,6 +44,7 @@ tested on both gig copper and gig fiber boards
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "e1000.h"
#include <asm/cache.h>
diff --git a/drivers/net/e1000.h b/drivers/net/e1000.h
index 641502ea9286..2adfd38f2731 100644
--- a/drivers/net/e1000.h
+++ b/drivers/net/e1000.h
@@ -18,6 +18,7 @@
#ifndef _E1000_HW_H_
#define _E1000_HW_H_
+#include <stdbool.h>
#include <stdio.h>
#include <linux/list.h>
#include <malloc.h>
diff --git a/drivers/net/e1000_spi.c b/drivers/net/e1000_spi.c
index 7e37ade1e9c0..8200d428615e 100644
--- a/drivers/net/e1000_spi.c
+++ b/drivers/net/e1000_spi.c
@@ -4,6 +4,7 @@
#include <stdio.h>
#include <vsprintf.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "e1000.h"
#include <malloc.h>
diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c
index 3d7decd126ae..d152063008bb 100644
--- a/drivers/net/eepro100.c
+++ b/drivers/net/eepro100.c
@@ -17,6 +17,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/* Ethernet chip registers. */
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
index 669f3af7aeeb..bdf14afcd75f 100644
--- a/drivers/net/fec_mxc.c
+++ b/drivers/net/fec_mxc.c
@@ -24,6 +24,7 @@
#include <asm/global_data.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <power/regulator.h>
diff --git a/drivers/net/fm/eth.c b/drivers/net/fm/eth.c
index c451b136ae3f..0728ad6cacf3 100644
--- a/drivers/net/fm/eth.c
+++ b/drivers/net/fm/eth.c
@@ -29,6 +29,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "fm.h"
diff --git a/drivers/net/fm/init.c b/drivers/net/fm/init.c
index 1829517d024f..de4db412704f 100644
--- a/drivers/net/fm/init.c
+++ b/drivers/net/fm/init.c
@@ -16,6 +16,7 @@
#endif
#include <asm/u-boot.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "fm.h"
diff --git a/drivers/net/fsl-mc/dpio/qbman_private.h b/drivers/net/fsl-mc/dpio/qbman_private.h
index e7ba37c0e665..033ecd7139f5 100644
--- a/drivers/net/fsl-mc/dpio/qbman_private.h
+++ b/drivers/net/fsl-mc/dpio/qbman_private.h
@@ -9,6 +9,7 @@
#include <vsprintf.h>
#include <asm/io.h>
#include <linux/bug.h>
+#include <linux/kernel.h>
#include <linux/types.h>
#include <asm/atomic.h>
#include <malloc.h>
diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c
index d2f8869a3408..3a82f4f065f7 100644
--- a/drivers/net/fsl-mc/mc.c
+++ b/drivers/net/fsl-mc/mc.c
@@ -19,6 +19,7 @@
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <net.h>
#include <fdt_support.h>
diff --git a/drivers/net/fsl_enetc.c b/drivers/net/fsl_enetc.c
index 7b9730a84463..a6c6e5781930 100644
--- a/drivers/net/fsl_enetc.c
+++ b/drivers/net/fsl_enetc.c
@@ -19,6 +19,7 @@
#include <linux/bug.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "fsl_enetc.h"
diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c
index af58d04da231..5a057ebb46ba 100644
--- a/drivers/net/ftgmac100.c
+++ b/drivers/net/ftgmac100.c
@@ -27,6 +27,7 @@
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/iopoll.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include "ftgmac100.h"
diff --git a/drivers/net/ftmac110.c b/drivers/net/ftmac110.c
index 2ff318cb9a9e..e7c7a5e885a8 100644
--- a/drivers/net/ftmac110.c
+++ b/drivers/net/ftmac110.c
@@ -19,6 +19,7 @@
#include <linux/errno.h>
#include <asm/io.h>
#include <linux/dma-mapping.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
diff --git a/drivers/net/gmac_rockchip.c b/drivers/net/gmac_rockchip.c
index 8aed219d9eda..55ce931cd2d4 100644
--- a/drivers/net/gmac_rockchip.c
+++ b/drivers/net/gmac_rockchip.c
@@ -11,6 +11,7 @@
#include <log.h>
#include <net.h>
#include <phy.h>
+#include <stdbool.h>
#include <syscon.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/drivers/net/ks8851_mll.c b/drivers/net/ks8851_mll.c
index f357fec5cc9a..86a97cdf5737 100644
--- a/drivers/net/ks8851_mll.c
+++ b/drivers/net/ks8851_mll.c
@@ -16,6 +16,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "ks8851_mll.h"
diff --git a/drivers/net/lan91c96.c b/drivers/net/lan91c96.c
index 7c26c60ff2b0..559273e67608 100644
--- a/drivers/net/lan91c96.c
+++ b/drivers/net/lan91c96.c
@@ -53,6 +53,7 @@
#include <vsprintf.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "lan91c96.h"
#include <net.h>
diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c
index 5da5582200d4..4b62225968f7 100644
--- a/drivers/net/ldpaa_eth/ldpaa_eth.c
+++ b/drivers/net/ldpaa_eth/ldpaa_eth.c
@@ -24,6 +24,7 @@
#include <fsl-mc/fsl_dpmac.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <fsl-mc/ldpaa_wriop.h>
diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.h b/drivers/net/ldpaa_eth/ldpaa_eth.h
index e90513e56f9a..2b3d31f70430 100644
--- a/drivers/net/ldpaa_eth/ldpaa_eth.h
+++ b/drivers/net/ldpaa_eth/ldpaa_eth.h
@@ -7,6 +7,7 @@
#ifndef __LDPAA_ETH_H
#define __LDPAA_ETH_H
+#include <stdbool.h>
#include <linux/netdevice.h>
#include <fsl-mc/fsl_mc.h>
#include <fsl-mc/fsl_dpaa_fd.h>
diff --git a/drivers/net/lpc32xx_eth.c b/drivers/net/lpc32xx_eth.c
index a43623a1adf6..dd7b2e5a0078 100644
--- a/drivers/net/lpc32xx_eth.c
+++ b/drivers/net/lpc32xx_eth.c
@@ -21,6 +21,7 @@
#include <asm/byteorder.h>
#include <asm/arch/cpu.h>
#include <asm/arch/config.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/*
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index 3d6b2fa8eb4b..783a90cb1fa1 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -12,6 +12,7 @@
#include <asm/global_data.h>
#include <asm/u-boot.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/*
diff --git a/drivers/net/mcfmii.c b/drivers/net/mcfmii.c
index 0e906e85670d..21e558ee816c 100644
--- a/drivers/net/mcfmii.c
+++ b/drivers/net/mcfmii.c
@@ -11,6 +11,7 @@
#include <stdio.h>
#include <asm/global_data.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#ifdef CONFIG_MCF547x_8x
diff --git a/drivers/net/mpc8xx_fec.c b/drivers/net/mpc8xx_fec.c
index 5c86710cfdb1..758864eed3fb 100644
--- a/drivers/net/mpc8xx_fec.c
+++ b/drivers/net/mpc8xx_fec.c
@@ -19,6 +19,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 0e0a4d7037ca..1aff591e3a4d 100644
--- a/drivers/net/mscc_eswitch/jr2_switch.c
+++ b/drivers/net/mscc_eswitch/jr2_switch.c
@@ -19,6 +19,7 @@
#include <miiphy.h>
#include <net.h>
#include <wait_bit.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/net/mscc_eswitch/luton_switch.c b/drivers/net/mscc_eswitch/luton_switch.c
index 6ceb250688ad..afc6260577ed 100644
--- a/drivers/net/mscc_eswitch/luton_switch.c
+++ b/drivers/net/mscc_eswitch/luton_switch.c
@@ -18,6 +18,7 @@
#include <miiphy.h>
#include <net.h>
#include <wait_bit.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "mscc_xfer.h"
diff --git a/drivers/net/mscc_eswitch/mscc_xfer.c b/drivers/net/mscc_eswitch/mscc_xfer.c
index a2827b5377e6..55abd5a984e0 100644
--- a/drivers/net/mscc_eswitch/mscc_xfer.c
+++ b/drivers/net/mscc_eswitch/mscc_xfer.c
@@ -4,6 +4,7 @@
*/
#include <log.h>
+#include <stdbool.h>
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
diff --git a/drivers/net/mscc_eswitch/mscc_xfer.h b/drivers/net/mscc_eswitch/mscc_xfer.h
index c880a4e7e6a6..df507e518cf2 100644
--- a/drivers/net/mscc_eswitch/mscc_xfer.h
+++ b/drivers/net/mscc_eswitch/mscc_xfer.h
@@ -4,6 +4,7 @@
*/
#include <common.h>
+#include <stdbool.h>
enum mscc_regs_qs {
MSCC_QS_XTR_RD,
diff --git a/drivers/net/mscc_eswitch/ocelot_switch.c b/drivers/net/mscc_eswitch/ocelot_switch.c
index b787524af163..170393c03f7b 100644
--- a/drivers/net/mscc_eswitch/ocelot_switch.c
+++ b/drivers/net/mscc_eswitch/ocelot_switch.c
@@ -18,6 +18,7 @@
#include <miiphy.h>
#include <net.h>
#include <wait_bit.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/net/mscc_eswitch/serval_switch.c b/drivers/net/mscc_eswitch/serval_switch.c
index 9b6e5d8743de..8f5c43660bdb 100644
--- a/drivers/net/mscc_eswitch/serval_switch.c
+++ b/drivers/net/mscc_eswitch/serval_switch.c
@@ -18,6 +18,7 @@
#include <miiphy.h>
#include <net.h>
#include <wait_bit.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/net/mscc_eswitch/servalt_switch.c b/drivers/net/mscc_eswitch/servalt_switch.c
index eecf6153245a..f393ea7f504b 100644
--- a/drivers/net/mscc_eswitch/servalt_switch.c
+++ b/drivers/net/mscc_eswitch/servalt_switch.c
@@ -18,6 +18,7 @@
#include <miiphy.h>
#include <net.h>
#include <wait_bit.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/net/mtk_eth.c b/drivers/net/mtk_eth.c
index 8cf78422f7d2..f2f070548d43 100644
--- a/drivers/net/mtk_eth.c
+++ b/drivers/net/mtk_eth.c
@@ -28,6 +28,7 @@
#include <linux/err.h>
#include <linux/errno.h>
#include <linux/ioport.h>
+#include <linux/kernel.h>
#include <linux/mdio.h>
#include <linux/mii.h>
#include <linux/printk.h>
diff --git a/drivers/net/mvgbe.h b/drivers/net/mvgbe.h
index 44541c0a85e3..4376efbfbc06 100644
--- a/drivers/net/mvgbe.h
+++ b/drivers/net/mvgbe.h
@@ -19,6 +19,7 @@
#endif
/* Constants */
+#include <linux/kernel.h>
#define INT_CAUSE_UNMASK_ALL 0x0007ffff
#define INT_CAUSE_UNMASK_ALL_EXT 0x0011ffff
#define MRU_MASK 0xfff1ffff
diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c
index ce7cf045f735..f001ae73208f 100644
--- a/drivers/net/mvneta.c
+++ b/drivers/net/mvneta.c
@@ -37,6 +37,7 @@
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
#include <linux/compat.h>
+#include <linux/kernel.h>
#include <linux/mbus.h>
#include <asm-generic/gpio.h>
#include <linux/string.h>
diff --git a/drivers/net/mvpp2.c b/drivers/net/mvpp2.c
index 9baa1004bf36..2d53a5cc5a82 100644
--- a/drivers/net/mvpp2.c
+++ b/drivers/net/mvpp2.c
@@ -40,6 +40,7 @@
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
#include <linux/compat.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <linux/mbus.h>
#include <asm-generic/gpio.h>
diff --git a/drivers/net/ne2000.c b/drivers/net/ne2000.c
index 85da482b8ffe..828bc957fca7 100644
--- a/drivers/net/ne2000.c
+++ b/drivers/net/ne2000.c
@@ -76,6 +76,7 @@ Add SNMP
#include <command.h>
#include <stdio.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
/* NE2000 base header file */
#include "ne2000_base.h"
diff --git a/drivers/net/ne2000_base.c b/drivers/net/ne2000_base.c
index 7ed8721bc803..34600b822bab 100644
--- a/drivers/net/ne2000_base.c
+++ b/drivers/net/ne2000_base.c
@@ -78,6 +78,7 @@ Add SNMP
#include <log.h>
#include <net.h>
#include <malloc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <time.h>
#include <asm/u-boot.h>
diff --git a/drivers/net/ne2000_base.h b/drivers/net/ne2000_base.h
index 21c1a8c15b55..0d289444b3ec 100644
--- a/drivers/net/ne2000_base.h
+++ b/drivers/net/ne2000_base.h
@@ -106,6 +106,7 @@ are GPL, so this is, of course, GPL.
#endif
/* timeout for tx/rx in s */
+#include <stdbool.h>
#include <stdio.h>
#include <linux/delay.h>
#define TOUT 5
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index b4bbd9429fd3..701fc73c91e4 100644
--- a/drivers/net/netconsole.c
+++ b/drivers/net/netconsole.c
@@ -11,6 +11,7 @@
#include <stdio_dev.h>
#include <net.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#ifndef CONFIG_NETCONSOLE_BUFFER_SIZE
diff --git a/drivers/net/pch_gbe.h b/drivers/net/pch_gbe.h
index 7e0fdbfd5a33..57d54d4b0d5f 100644
--- a/drivers/net/pch_gbe.h
+++ b/drivers/net/pch_gbe.h
@@ -9,6 +9,7 @@
#ifndef _PCH_GBE_H_
#define _PCH_GBE_H_
+#include <linux/kernel.h>
#define PCH_GBE_TIMEOUT (3 * CONFIG_SYS_HZ)
#define PCH_GBE_DESC_NUM 4
diff --git a/drivers/net/pfe_eth/pfe_mdio.c b/drivers/net/pfe_eth/pfe_mdio.c
index 08536dea67ef..429ca8791126 100644
--- a/drivers/net/pfe_eth/pfe_mdio.c
+++ b/drivers/net/pfe_eth/pfe_mdio.c
@@ -13,6 +13,7 @@
#include <net.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 1395af5444d3..cfd2424ff114 100644
--- a/drivers/net/phy/aquantia.c
+++ b/drivers/net/phy/aquantia.c
@@ -15,6 +15,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 7577ebdbe833..dab348ccf9cb 100644
--- a/drivers/net/phy/atheros.c
+++ b/drivers/net/phy/atheros.c
@@ -8,6 +8,7 @@
*/
#include <common.h>
#include <phy.h>
+#include <stdbool.h>
#include <dm/device_compat.h>
#include <linux/bitfield.h>
#include <linux/bitops.h>
diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c
index 9f07045007c7..3951cb00f414 100644
--- a/drivers/net/phy/dp83867.c
+++ b/drivers/net/phy/dp83867.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <log.h>
#include <phy.h>
+#include <stdbool.h>
#include <dm/devres.h>
#include <linux/bitops.h>
#include <linux/compat.h>
diff --git a/drivers/net/phy/micrel_ksz90x1.c b/drivers/net/phy/micrel_ksz90x1.c
index 4c0b2f4af85e..2b7bbc8f419c 100644
--- a/drivers/net/phy/micrel_ksz90x1.c
+++ b/drivers/net/phy/micrel_ksz90x1.c
@@ -15,6 +15,7 @@
#include <micrel.h>
#include <phy.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
/*
* KSZ9021 - KSZ9031 common
diff --git a/drivers/net/phy/mscc.c b/drivers/net/phy/mscc.c
index f0d37d1b81fa..08214ccc2f68 100644
--- a/drivers/net/phy/mscc.c
+++ b/drivers/net/phy/mscc.c
@@ -17,6 +17,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
/* Microsemi PHY ID's */
diff --git a/drivers/net/phy/mv88e61xx.c b/drivers/net/phy/mv88e61xx.c
index 927edb62a2ea..7e3c76923cb4 100644
--- a/drivers/net/phy/mv88e61xx.c
+++ b/drivers/net/phy/mv88e61xx.c
@@ -31,6 +31,7 @@
#include <common.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/bitops.h>
#include <linux/delay.h>
diff --git a/drivers/net/phy/ncsi.c b/drivers/net/phy/ncsi.c
index 9f68d14bf53f..ed557355b917 100644
--- a/drivers/net/phy/ncsi.c
+++ b/drivers/net/phy/ncsi.c
@@ -11,6 +11,7 @@
#include <phy.h>
#include <stdio.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <net/ncsi.h>
#include <net/ncsi-pkt.h>
diff --git a/drivers/net/ravb.c b/drivers/net/ravb.c
index d9d376c09ec9..4fb1c7b5f6bc 100644
--- a/drivers/net/ravb.c
+++ b/drivers/net/ravb.c
@@ -23,6 +23,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 7c0bb2372d3c..db9f75de48a1 100644
--- a/drivers/net/rtl8139.c
+++ b/drivers/net/rtl8139.c
@@ -83,6 +83,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>
diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c
index 9cc5cc8acf9f..f3d6ea89b997 100644
--- a/drivers/net/rtl8169.c
+++ b/drivers/net/rtl8169.c
@@ -58,6 +58,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/net/sandbox.c b/drivers/net/sandbox.c
index 37eeaab4e82c..6e119f77b293 100644
--- a/drivers/net/sandbox.c
+++ b/drivers/net/sandbox.c
@@ -11,6 +11,7 @@
#include <log.h>
#include <malloc.h>
#include <net.h>
+#include <stdbool.h>
#include <stdio.h>
#include <time.h>
#include <asm/eth.h>
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c
index 69f895f720b3..3a1a7fee4bc9 100644
--- a/drivers/net/sh_eth.c
+++ b/drivers/net/sh_eth.c
@@ -25,6 +25,7 @@
#include <linux/delay.h>
#include <linux/errno.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#ifdef CONFIG_DM_ETH
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index 8b1aae24467b..2f3b8fa80790 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -16,6 +16,7 @@
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>
diff --git a/drivers/net/sni_ave.c b/drivers/net/sni_ave.c
index eb422f33b706..21096bd6d32a 100644
--- a/drivers/net/sni_ave.c
+++ b/drivers/net/sni_ave.c
@@ -25,6 +25,7 @@
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/iopoll.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c
index 8b94322ae746..3216360db15b 100644
--- a/drivers/net/sun8i_emac.c
+++ b/drivers/net/sun8i_emac.c
@@ -37,6 +37,7 @@
#include <asm-generic/gpio.h>
#endif
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define MDIO_CMD_MII_BUSY BIT(0)
diff --git a/drivers/net/ti/am65-cpsw-nuss.c b/drivers/net/ti/am65-cpsw-nuss.c
index 14956af45804..950d1ca21229 100644
--- a/drivers/net/ti/am65-cpsw-nuss.c
+++ b/drivers/net/ti/am65-cpsw-nuss.c
@@ -24,6 +24,7 @@
#include <power-domain.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/soc/ti/ti-udma.h>
diff --git a/drivers/net/ti/cpsw.c b/drivers/net/ti/cpsw.c
index 02dd3bc984fe..52155df2c540 100644
--- a/drivers/net/ti/cpsw.c
+++ b/drivers/net/ti/cpsw.c
@@ -26,6 +26,7 @@
#include <phy.h>
#include <asm/arch/cpu.h>
#include <dm.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/net/ti/davinci_emac.c b/drivers/net/ti/davinci_emac.c
index 272127903f50..f909ee7aa384 100644
--- a/drivers/net/ti/davinci_emac.c
+++ b/drivers/net/ti/davinci_emac.c
@@ -36,6 +36,7 @@
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "davinci_emac.h"
diff --git a/drivers/net/ti/davinci_emac.h b/drivers/net/ti/davinci_emac.h
index 695855b4d543..d235275772e9 100644
--- a/drivers/net/ti/davinci_emac.h
+++ b/drivers/net/ti/davinci_emac.h
@@ -9,6 +9,7 @@
#ifndef _DAVINCI_EMAC_H_
#define _DAVINCI_EMAC_H_
/* Ethernet Min/Max packet size */
+#include <linux/kernel.h>
#define EMAC_MIN_ETHERNET_PKT_SIZE 60
#define EMAC_MAX_ETHERNET_PKT_SIZE 1518
/* Buffer size (should be aligned on 32 byte and cache line) */
diff --git a/drivers/net/ti/keystone_net.c b/drivers/net/ti/keystone_net.c
index a6062e336383..af67ec4a1c82 100644
--- a/drivers/net/ti/keystone_net.c
+++ b/drivers/net/ti/keystone_net.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <command.h>
#include <console.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/global_data.h>
diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c
index afcb170be329..2f9ff5ec07f1 100644
--- a/drivers/net/tsec.c
+++ b/drivers/net/tsec.c
@@ -23,6 +23,7 @@
#include <linux/errno.h>
#include <asm/processor.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#ifndef CONFIG_DM_ETH
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c
index 8e3a96c51efb..f31ce696ff07 100644
--- a/drivers/net/zynq_gem.c
+++ b/drivers/net/zynq_gem.c
@@ -32,6 +32,7 @@
#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/* Bit/mask specification */
diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c
index 47a401cc96f1..95c1d5065b3d 100644
--- a/drivers/nvme/nvme.c
+++ b/drivers/nvme/nvme.c
@@ -19,6 +19,7 @@
#include <dm/device-internal.h>
#include <linux/compat.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "nvme.h"
diff --git a/drivers/nvme/nvme.h b/drivers/nvme/nvme.h
index 0e8cb221a7a2..c2914e2cb05b 100644
--- a/drivers/nvme/nvme.h
+++ b/drivers/nvme/nvme.h
@@ -8,6 +8,7 @@
#define __DRIVER_NVME_H__
#include <asm/io.h>
+#include <linux/kernel.h>
struct nvme_id_power_state {
__le16 max_power; /* centiwatts */
diff --git a/drivers/pch/pch-uclass.c b/drivers/pch/pch-uclass.c
index be9b89539f01..9bc45b5ddc93 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 <stdbool.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 8fc6388593f2..9eb985225c84 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 <stdbool.h>
#include <linux/errno.h>
#define GPIO_BASE 0x44
diff --git a/drivers/pch/sandbox_pch.c b/drivers/pch/sandbox_pch.c
index c9317f1fda2c..28dfc03d793d 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 <stdbool.h>
#include <linux/errno.h>
struct sandbox_pch_priv {
diff --git a/drivers/pci/fsl_pci_init.c b/drivers/pci/fsl_pci_init.c
index 0f51109e7a3b..5d8125e1e07c 100644
--- a/drivers/pci/fsl_pci_init.c
+++ b/drivers/pci/fsl_pci_init.c
@@ -14,6 +14,7 @@
#include <asm/global_data.h>
#include <asm/ppc.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/pci/pci-aardvark.c b/drivers/pci/pci-aardvark.c
index f2c2eb3870f3..b39a6d715b70 100644
--- a/drivers/pci/pci-aardvark.c
+++ b/drivers/pci/pci-aardvark.c
@@ -27,6 +27,7 @@
#include <common.h>
#include <dm.h>
#include <pci.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/io.h>
#include <asm-generic/gpio.h>
diff --git a/drivers/pci/pci-rcar-gen3.c b/drivers/pci/pci-rcar-gen3.c
index 9a990a063245..e630a2a6300e 100644
--- a/drivers/pci/pci-rcar-gen3.c
+++ b/drivers/pci/pci-rcar-gen3.c
@@ -24,6 +24,7 @@
#include <wait_bit.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#define PCIECAR 0x000010
#define PCIECCTLR 0x000018
diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c
index f3c243be31ae..88570d740f32 100644
--- a/drivers/pci/pci-uclass.c
+++ b/drivers/pci/pci-uclass.c
@@ -23,6 +23,7 @@
#endif
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include "pci_internal.h"
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 4eac485f2788..dea111380038 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -21,6 +21,7 @@
#include <vsprintf.h>
#include <asm/global_data.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <command.h>
#include <env.h>
diff --git a/drivers/pci/pci_auto.c b/drivers/pci/pci_auto.c
index e0e325755e18..7a9ef884c787 100644
--- a/drivers/pci/pci_auto.c
+++ b/drivers/pci/pci_auto.c
@@ -12,6 +12,7 @@
#include <errno.h>
#include <log.h>
#include <pci.h>
+#include <stdbool.h>
#include <stdio.h>
/* the user can define CONFIG_SYS_PCI_CACHE_LINE_SIZE to avoid problems */
diff --git a/drivers/pci/pci_auto_common.c b/drivers/pci/pci_auto_common.c
index c0a53dcc929a..7b756b7583aa 100644
--- a/drivers/pci/pci_auto_common.c
+++ b/drivers/pci/pci_auto_common.c
@@ -16,6 +16,7 @@
#include <errno.h>
#include <log.h>
#include <pci.h>
+#include <linux/kernel.h>
void pciauto_region_init(struct pci_region *res)
{
diff --git a/drivers/pci/pci_auto_old.c b/drivers/pci/pci_auto_old.c
index 8b67cfa92b41..b32f7ea1f833 100644
--- a/drivers/pci/pci_auto_old.c
+++ b/drivers/pci/pci_auto_old.c
@@ -11,6 +11,7 @@
#include <errno.h>
#include <log.h>
#include <pci.h>
+#include <linux/kernel.h>
/*
* Do not change this file. Instead, convert your board to use CONFIG_DM_PCI
diff --git a/drivers/pci/pci_gt64120.c b/drivers/pci/pci_gt64120.c
index 80f11fedd168..bcadf4e4d889 100644
--- a/drivers/pci/pci_gt64120.c
+++ b/drivers/pci/pci_gt64120.c
@@ -14,6 +14,7 @@
#include <log.h>
#include <pci.h>
#include <pci_gt64120.h>
+#include <linux/kernel.h>
#include <asm/io.h>
diff --git a/drivers/pci/pci_msc01.c b/drivers/pci/pci_msc01.c
index 04838200a8de..ae312534c873 100644
--- a/drivers/pci/pci_msc01.c
+++ b/drivers/pci/pci_msc01.c
@@ -10,6 +10,7 @@
#include <pci.h>
#include <pci_msc01.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#define PCI_ACCESS_READ 0
#define PCI_ACCESS_WRITE 1
diff --git a/drivers/pci/pci_mvebu.c b/drivers/pci/pci_mvebu.c
index 57edb22d8192..157924001ab6 100644
--- a/drivers/pci/pci_mvebu.c
+++ b/drivers/pci/pci_mvebu.c
@@ -26,6 +26,7 @@
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/ioport.h>
+#include <linux/kernel.h>
#include <linux/mbus.h>
#include <linux/printk.h>
diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c
index 85ad27322f9c..7bc1a7f4deff 100644
--- a/drivers/pci/pci_rom.c
+++ b/drivers/pci/pci_rom.c
@@ -42,6 +42,7 @@
#include <acpi/acpi_s3.h>
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/screen_info.h>
#include <linux/string.h>
diff --git a/drivers/pci/pci_tegra.c b/drivers/pci/pci_tegra.c
index 5f8cde34bdf5..28b6aa026b15 100644
--- a/drivers/pci/pci_tegra.c
+++ b/drivers/pci/pci_tegra.c
@@ -21,6 +21,7 @@
#include <pci_tegra.h>
#include <power-domain.h>
#include <reset.h>
+#include <stdbool.h>
#include <time.h>
#include <linux/delay.h>
#include <linux/errno.h>
diff --git a/drivers/pci/pcie_brcmstb.c b/drivers/pci/pcie_brcmstb.c
index 10a19bdc9502..3f207f0de118 100644
--- a/drivers/pci/pcie_brcmstb.c
+++ b/drivers/pci/pcie_brcmstb.c
@@ -21,6 +21,7 @@
#include <asm/io.h>
#include <linux/bitfield.h>
#include <linux/errno.h>
+#include <linux/kernel.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 287736cd88c0..7eb4461ce26b 100644
--- a/drivers/pci/pcie_dw_mvebu.c
+++ b/drivers/pci/pcie_dw_mvebu.c
@@ -21,6 +21,7 @@
#include <asm-generic/gpio.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/pci/pcie_dw_ti.c b/drivers/pci/pcie_dw_ti.c
index 00b9a2418ab1..cc968fe2a3f5 100644
--- a/drivers/pci/pcie_dw_ti.c
+++ b/drivers/pci/pcie_dw_ti.c
@@ -21,6 +21,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/pci/pcie_ecam_generic.c b/drivers/pci/pcie_ecam_generic.c
index 6e18d5ba5527..4039284f5392 100644
--- a/drivers/pci/pcie_ecam_generic.c
+++ b/drivers/pci/pcie_ecam_generic.c
@@ -11,6 +11,7 @@
#include <dm.h>
#include <pci.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <asm/io.h>
diff --git a/drivers/pci/pcie_fsl.c b/drivers/pci/pcie_fsl.c
index 89a1490e2aca..1aa1fb649a9f 100644
--- a/drivers/pci/pcie_fsl.c
+++ b/drivers/pci/pcie_fsl.c
@@ -19,6 +19,7 @@
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include "pcie_fsl.h"
#include <dm/device_compat.h>
diff --git a/drivers/pci/pcie_fsl.h b/drivers/pci/pcie_fsl.h
index dc8368d55923..381185133d8b 100644
--- a/drivers/pci/pcie_fsl.h
+++ b/drivers/pci/pcie_fsl.h
@@ -10,6 +10,7 @@
#define _PCIE_FSL_H_
/* GPEX CSR */
+#include <stdbool.h>
#define CSR_CLASSCODE 0x474
#ifdef CONFIG_SYS_FSL_PCI_VER_3_X
diff --git a/drivers/pci/pcie_imx.c b/drivers/pci/pcie_imx.c
index 928f624da9a7..07c0695409ce 100644
--- a/drivers/pci/pcie_imx.c
+++ b/drivers/pci/pcie_imx.c
@@ -23,6 +23,7 @@
#include <dm.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 bc9375326426..9af0b8a105f8 100644
--- a/drivers/pci/pcie_intel_fpga.c
+++ b/drivers/pci/pcie_intel_fpga.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <dm.h>
#include <pci.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <dm/device_compat.h>
diff --git a/drivers/pci/pcie_layerscape.h b/drivers/pci/pcie_layerscape.h
index 0124e8e05184..20b86aa382c5 100644
--- a/drivers/pci/pcie_layerscape.h
+++ b/drivers/pci/pcie_layerscape.h
@@ -8,7 +8,7 @@
#ifndef _PCIE_LAYERSCAPE_H_
#define _PCIE_LAYERSCAPE_H_
#include <pci.h>
-
+#include <stdbool.h>
#include <linux/sizes.h>
#ifndef CONFIG_SYS_PCI_MEMORY_BUS
diff --git a/drivers/pci/pcie_layerscape_ep.c b/drivers/pci/pcie_layerscape_ep.c
index f6d4ae25cbe5..ad622b8b5a21 100644
--- a/drivers/pci/pcie_layerscape_ep.c
+++ b/drivers/pci/pcie_layerscape_ep.c
@@ -13,6 +13,7 @@
#include <pci_ep.h>
#include <asm/io.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <linux/log2.h>
#include "pcie_layerscape.h"
diff --git a/drivers/pci/pcie_layerscape_fixup_common.c b/drivers/pci/pcie_layerscape_fixup_common.c
index 05b5f76cf2c1..d4d5bba8523e 100644
--- a/drivers/pci/pcie_layerscape_fixup_common.c
+++ b/drivers/pci/pcie_layerscape_fixup_common.c
@@ -13,6 +13,7 @@
#include <asm/arch/soc.h>
#include <asm/u-boot.h>
#include <linux/errno.h>
+#include <linux/kernel.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 dcb991596b0e..7046960c77a2 100644
--- a/drivers/pci/pcie_layerscape_gen4.c
+++ b/drivers/pci/pcie_layerscape_gen4.c
@@ -17,6 +17,7 @@
#include <malloc.h>
#include <dm.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include "pcie_layerscape_gen4.h"
diff --git a/drivers/pci/pcie_layerscape_gen4.h b/drivers/pci/pcie_layerscape_gen4.h
index 483eb538b5c5..12669c5d8cf9 100644
--- a/drivers/pci/pcie_layerscape_gen4.h
+++ b/drivers/pci/pcie_layerscape_gen4.h
@@ -9,6 +9,7 @@
#ifndef _PCIE_LAYERSCAPE_GEN4_H_
#define _PCIE_LAYERSCAPE_GEN4_H_
#include <pci.h>
+#include <stdbool.h>
#include <linux/bitops.h>
#ifndef CONFIG_SYS_PCI_MEMORY_SIZE
diff --git a/drivers/pci/pcie_xilinx.c b/drivers/pci/pcie_xilinx.c
index 442a21c11152..1bce36bc95e9 100644
--- a/drivers/pci/pcie_xilinx.c
+++ b/drivers/pci/pcie_xilinx.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <dm.h>
#include <pci.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <linux/bitops.h>
#include <linux/errno.h>
diff --git a/drivers/pci_endpoint/pci_ep-uclass.c b/drivers/pci_endpoint/pci_ep-uclass.c
index aba38c3fe79a..8e672e812d16 100644
--- a/drivers/pci_endpoint/pci_ep-uclass.c
+++ b/drivers/pci_endpoint/pci_ep-uclass.c
@@ -14,6 +14,7 @@
#include <errno.h>
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.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 44cce69a9aa1..66c7dece3105 100644
--- a/drivers/pci_endpoint/pcie-cadence-ep.c
+++ b/drivers/pci_endpoint/pcie-cadence-ep.c
@@ -10,6 +10,7 @@
#include <pci_ep.h>
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <linux/log2.h>
#include "pcie-cadence.h"
diff --git a/drivers/phy/marvell/comphy_a3700.c b/drivers/phy/marvell/comphy_a3700.c
index b106fd3e1321..696b36d40c94 100644
--- a/drivers/phy/marvell/comphy_a3700.c
+++ b/drivers/phy/marvell/comphy_a3700.c
@@ -12,6 +12,7 @@
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "comphy_a3700.h"
diff --git a/drivers/phy/marvell/comphy_cp110.c b/drivers/phy/marvell/comphy_cp110.c
index 90d2d283c0e7..532ae928a8c1 100644
--- a/drivers/phy/marvell/comphy_cp110.c
+++ b/drivers/phy/marvell/comphy_cp110.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <fdtdec.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/drivers/phy/phy-stm32-usbphyc.c b/drivers/phy/phy-stm32-usbphyc.c
index c66d185cc82d..4b7cd602c264 100644
--- a/drivers/phy/phy-stm32-usbphyc.c
+++ b/drivers/phy/phy-stm32-usbphyc.c
@@ -11,6 +11,7 @@
#include <generic-phy.h>
#include <log.h>
#include <reset.h>
+#include <stdbool.h>
#include <syscon.h>
#include <usb.h>
#include <asm/io.h>
diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
index 93d3696b133e..008f1f629a8f 100644
--- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
+++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <clk.h>
#include <dm.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <dm/device_compat.h>
#include <dm/lists.h>
diff --git a/drivers/phy/rockchip/phy-rockchip-typec.c b/drivers/phy/rockchip/phy-rockchip-typec.c
index f018a95497da..00a0e4d4313d 100644
--- a/drivers/phy/rockchip/phy-rockchip-typec.c
+++ b/drivers/phy/rockchip/phy-rockchip-typec.c
@@ -22,6 +22,7 @@
#include <linux/errno.h>
#include <linux/iopoll.h>
#include <asm/arch-rockchip/clock.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/phy/sandbox-phy.c b/drivers/phy/sandbox-phy.c
index 5b867a6294e9..467575d6e84e 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 <stdbool.h>
#include <linux/errno.h>
struct sandbox_phy_priv {
diff --git a/drivers/phy/sti_usb_phy.c b/drivers/phy/sti_usb_phy.c
index 03a4d61434e0..91ba53f8bdb9 100644
--- a/drivers/phy/sti_usb_phy.c
+++ b/drivers/phy/sti_usb_phy.c
@@ -14,6 +14,7 @@
#include <fdtdec.h>
#include <generic-phy.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <regmap.h>
#include <reset-uclass.h>
diff --git a/drivers/pinctrl/aspeed/pinctrl_ast2500.c b/drivers/pinctrl/aspeed/pinctrl_ast2500.c
index 3f57aabea1d3..040247c68a1c 100644
--- a/drivers/pinctrl/aspeed/pinctrl_ast2500.c
+++ b/drivers/pinctrl/aspeed/pinctrl_ast2500.c
@@ -12,6 +12,7 @@
#include <asm/arch/scu_ast2500.h>
#include <dm/pinctrl.h>
#include <linux/errno.h>
+#include <linux/kernel.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 9f8ecf49ca46..dce174024405 100644
--- a/drivers/pinctrl/ath79/pinctrl_ar933x.c
+++ b/drivers/pinctrl/ath79/pinctrl_ar933x.c
@@ -11,6 +11,7 @@
#include <asm/io.h>
#include <dm/pinctrl.h>
#include <linux/errno.h>
+#include <linux/kernel.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 409ab0411739..1e11eb863ca2 100644
--- a/drivers/pinctrl/ath79/pinctrl_qca953x.c
+++ b/drivers/pinctrl/ath79/pinctrl_qca953x.c
@@ -11,6 +11,7 @@
#include <asm/io.h>
#include <dm/pinctrl.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <mach/ar71xx_regs.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/pinctrl/exynos/pinctrl-exynos7420.c b/drivers/pinctrl/exynos/pinctrl-exynos7420.c
index 7f1aeeda940e..18de9f7762ca 100644
--- a/drivers/pinctrl/exynos/pinctrl-exynos7420.c
+++ b/drivers/pinctrl/exynos/pinctrl-exynos7420.c
@@ -14,6 +14,7 @@
#include <fdtdec.h>
#include <asm/arch/pinmux.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "pinctrl-exynos.h"
#define GPD1_OFFSET 0xc0
diff --git a/drivers/pinctrl/intel/pinctrl_apl.c b/drivers/pinctrl/intel/pinctrl_apl.c
index 7624a9974fe3..ee8430b1629a 100644
--- a/drivers/pinctrl/intel/pinctrl_apl.c
+++ b/drivers/pinctrl/intel/pinctrl_apl.c
@@ -16,6 +16,7 @@
#include <asm/intel_pinctrl.h>
#include <asm-generic/gpio.h>
#include <asm/intel_pinctrl_defs.h>
+#include <linux/kernel.h>
/**
* struct apl_gpio_platdata - platform data for each device
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt7622.c b/drivers/pinctrl/mediatek/pinctrl-mt7622.c
index 1aa323c009a1..4f2a44f6dc51 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt7622.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt7622.c
@@ -5,6 +5,7 @@
*/
#include <dm.h>
+#include <linux/kernel.h>
#include "pinctrl-mtk-common.h"
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt7623.c b/drivers/pinctrl/mediatek/pinctrl-mt7623.c
index 0f5dcb2c6390..5bbbbc784f43 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt7623.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt7623.c
@@ -5,6 +5,7 @@
*/
#include <dm.h>
+#include <linux/kernel.h>
#include "pinctrl-mtk-common.h"
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt7629.c b/drivers/pinctrl/mediatek/pinctrl-mt7629.c
index 37640dd2b6d4..058754caf278 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt7629.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt7629.c
@@ -5,6 +5,7 @@
*/
#include <dm.h>
+#include <linux/kernel.h>
#include "pinctrl-mtk-common.h"
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8512.c b/drivers/pinctrl/mediatek/pinctrl-mt8512.c
index af43754a4d37..d3af578afdff 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt8512.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt8512.c
@@ -5,6 +5,7 @@
*/
#include <dm.h>
+#include <linux/kernel.h>
#include "pinctrl-mtk-common.h"
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8516.c b/drivers/pinctrl/mediatek/pinctrl-mt8516.c
index 62e339e93104..1aabf11f08d3 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt8516.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt8516.c
@@ -5,6 +5,7 @@
*/
#include <dm.h>
+#include <linux/kernel.h>
#include "pinctrl-mtk-common.h"
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8518.c b/drivers/pinctrl/mediatek/pinctrl-mt8518.c
index 91427aed4b96..c8797773d44b 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt8518.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt8518.c
@@ -5,6 +5,7 @@
*/
#include <dm.h>
+#include <linux/kernel.h>
#include "pinctrl-mtk-common.h"
diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
index 9227e5948c8f..362c7d477265 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
@@ -13,6 +13,7 @@
#include <asm-generic/gpio.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "pinctrl-mtk-common.h"
diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.h b/drivers/pinctrl/mediatek/pinctrl-mtk-common.h
index 5e51a9a90c12..def643c5d5b9 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.h
+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.h
@@ -6,6 +6,7 @@
#ifndef __PINCTRL_MEDIATEK_H__
#define __PINCTRL_MEDIATEK_H__
+#include <linux/kernel.h>
#define MTK_PINCTRL_V0 0x0
#define MTK_PINCTRL_V1 0x1
diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c b/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c
index 0ed4b50b4589..26a9f1e0ebfa 100644
--- a/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c
+++ b/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c
@@ -12,6 +12,7 @@
#include <dm/pinctrl.h>
#include <linux/errno.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include "pinctrl-meson-axg.h"
static int meson_axg_pmx_get_bank(struct udevice *dev, unsigned int pin,
diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg.c b/drivers/pinctrl/meson/pinctrl-meson-axg.c
index 8f23c8cef1d6..a2bed97accf7 100644
--- a/drivers/pinctrl/meson/pinctrl-meson-axg.c
+++ b/drivers/pinctrl/meson/pinctrl-meson-axg.c
@@ -11,6 +11,7 @@
#include <dm.h>
#include <dm/pinctrl.h>
#include <dt-bindings/gpio/meson-axg-gpio.h>
+#include <linux/kernel.h>
#include "pinctrl-meson-axg.h"
diff --git a/drivers/pinctrl/meson/pinctrl-meson-g12a.c b/drivers/pinctrl/meson/pinctrl-meson-g12a.c
index 115e8b5616d6..2a38e321496d 100644
--- a/drivers/pinctrl/meson/pinctrl-meson-g12a.c
+++ b/drivers/pinctrl/meson/pinctrl-meson-g12a.c
@@ -12,6 +12,7 @@
#include <dm.h>
#include <dm/pinctrl.h>
#include <dt-bindings/gpio/meson-g12a-gpio.h>
+#include <linux/kernel.h>
#include "pinctrl-meson-axg.h"
diff --git a/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c b/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c
index 90c5e1648967..3d896cc1303a 100644
--- a/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c
+++ b/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c
@@ -11,6 +11,7 @@
#include <dm/pinctrl.h>
#include <linux/bitops.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include "pinctrl-meson-gx.h"
static void meson_gx_pinmux_disable_other_groups(struct meson_pinctrl *priv,
diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c
index 9e2e15116458..cb755d6cfc5c 100644
--- a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c
+++ b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c
@@ -10,6 +10,7 @@
#include <dm.h>
#include <dm/pinctrl.h>
#include <dt-bindings/gpio/meson-gxbb-gpio.h>
+#include <linux/kernel.h>
#include "pinctrl-meson-gx.h"
diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxl.c b/drivers/pinctrl/meson/pinctrl-meson-gxl.c
index 5acc21b9c2e6..f28f07bce1aa 100644
--- a/drivers/pinctrl/meson/pinctrl-meson-gxl.c
+++ b/drivers/pinctrl/meson/pinctrl-meson-gxl.c
@@ -10,6 +10,7 @@
#include <dm.h>
#include <dm/pinctrl.h>
#include <dt-bindings/gpio/meson-gxl-gpio.h>
+#include <linux/kernel.h>
#include "pinctrl-meson-gx.h"
diff --git a/drivers/pinctrl/meson/pinctrl-meson.h b/drivers/pinctrl/meson/pinctrl-meson.h
index 98010cdaf965..eb33d93f506f 100644
--- a/drivers/pinctrl/meson/pinctrl-meson.h
+++ b/drivers/pinctrl/meson/pinctrl-meson.h
@@ -6,6 +6,7 @@
#ifndef __PINCTRL_MESON_H__
#define __PINCTRL_MESON_H__
+#include <linux/kernel.h>
#include <linux/types.h>
struct meson_pmx_group {
diff --git a/drivers/pinctrl/mscc/pinctrl-jr2.c b/drivers/pinctrl/mscc/pinctrl-jr2.c
index 72a9470854eb..8bb7ba593e28 100644
--- a/drivers/pinctrl/mscc/pinctrl-jr2.c
+++ b/drivers/pinctrl/mscc/pinctrl-jr2.c
@@ -18,6 +18,7 @@
#include <linux/io.h>
#include <asm/gpio.h>
#include <asm/system.h>
+#include <linux/kernel.h>
#include "mscc-common.h"
enum {
diff --git a/drivers/pinctrl/mscc/pinctrl-luton.c b/drivers/pinctrl/mscc/pinctrl-luton.c
index 17fbc53c2578..4be36449d37c 100644
--- a/drivers/pinctrl/mscc/pinctrl-luton.c
+++ b/drivers/pinctrl/mscc/pinctrl-luton.c
@@ -19,6 +19,7 @@
#include <linux/io.h>
#include <asm/gpio.h>
#include <asm/system.h>
+#include <linux/kernel.h>
#include "mscc-common.h"
enum {
diff --git a/drivers/pinctrl/mscc/pinctrl-ocelot.c b/drivers/pinctrl/mscc/pinctrl-ocelot.c
index 49e026bc98b8..39b95cbb7105 100644
--- a/drivers/pinctrl/mscc/pinctrl-ocelot.c
+++ b/drivers/pinctrl/mscc/pinctrl-ocelot.c
@@ -20,6 +20,7 @@
#include <errno.h>
#include <fdtdec.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include "mscc-common.h"
enum {
diff --git a/drivers/pinctrl/mscc/pinctrl-serval.c b/drivers/pinctrl/mscc/pinctrl-serval.c
index d59f08d4eb78..c9104a6e7bc2 100644
--- a/drivers/pinctrl/mscc/pinctrl-serval.c
+++ b/drivers/pinctrl/mscc/pinctrl-serval.c
@@ -18,6 +18,7 @@
#include <linux/io.h>
#include <asm/gpio.h>
#include <asm/system.h>
+#include <linux/kernel.h>
#include "mscc-common.h"
enum {
diff --git a/drivers/pinctrl/mscc/pinctrl-servalt.c b/drivers/pinctrl/mscc/pinctrl-servalt.c
index 592b7c547b7c..55eb7821da14 100644
--- a/drivers/pinctrl/mscc/pinctrl-servalt.c
+++ b/drivers/pinctrl/mscc/pinctrl-servalt.c
@@ -18,6 +18,7 @@
#include <linux/io.h>
#include <asm/gpio.h>
#include <asm/system.h>
+#include <linux/kernel.h>
#include "mscc-common.h"
enum {
diff --git a/drivers/pinctrl/mtmips/pinctrl-mt7628.c b/drivers/pinctrl/mtmips/pinctrl-mt7628.c
index 2e043509cf84..4ea1e853f783 100644
--- a/drivers/pinctrl/mtmips/pinctrl-mt7628.c
+++ b/drivers/pinctrl/mtmips/pinctrl-mt7628.c
@@ -12,6 +12,7 @@
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include "pinctrl-mtmips-common.h"
diff --git a/drivers/pinctrl/mtmips/pinctrl-mtmips-common.h b/drivers/pinctrl/mtmips/pinctrl-mtmips-common.h
index b51d8f009c03..25ca19ff6aba 100644
--- a/drivers/pinctrl/mtmips/pinctrl-mtmips-common.h
+++ b/drivers/pinctrl/mtmips/pinctrl-mtmips-common.h
@@ -9,6 +9,7 @@
#define _PINCTRL_MTMIPS_COMMON_H_
#include <common.h>
+#include <linux/kernel.h>
struct mtmips_pmx_func {
const char *name;
diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
index c52b8f5df337..52b6c9242ae0 100644
--- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
+++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
@@ -37,6 +37,7 @@
#include <asm/io.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/pinctrl/nexell/pinctrl-s5pxx18.c b/drivers/pinctrl/nexell/pinctrl-s5pxx18.c
index 5bb012b197fc..08a97ae378ba 100644
--- a/drivers/pinctrl/nexell/pinctrl-s5pxx18.c
+++ b/drivers/pinctrl/nexell/pinctrl-s5pxx18.c
@@ -14,6 +14,7 @@
#include <dm/pinctrl.h>
#include <dm/root.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "pinctrl-nexell.h"
#include "pinctrl-s5pxx18.h"
diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c
index 49eb9078f150..02f8d94f12d0 100644
--- a/drivers/pinctrl/pinctrl-at91-pio4.c
+++ b/drivers/pinctrl/pinctrl-at91-pio4.c
@@ -15,6 +15,7 @@
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/err.h>
+#include <linux/kernel.h>
#include <mach/atmel_pio4.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c
index aa5d05d93e9c..819c5723fa54 100644
--- a/drivers/pinctrl/pinctrl-at91.c
+++ b/drivers/pinctrl/pinctrl-at91.c
@@ -16,6 +16,7 @@
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/err.h>
+#include <linux/kernel.h>
#include <mach/at91_pio.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/pinctrl/pinctrl-generic.c b/drivers/pinctrl/pinctrl-generic.c
index 45b3ad5d793c..a8a78020d0a2 100644
--- a/drivers/pinctrl/pinctrl-generic.c
+++ b/drivers/pinctrl/pinctrl-generic.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <dm.h>
+#include <stdbool.h>
#include <dm/device_compat.h>
#include <linux/compat.h>
#include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/pinctrl-sandbox.c b/drivers/pinctrl/pinctrl-sandbox.c
index 28db1116387e..6b6ad35b351a 100644
--- a/drivers/pinctrl/pinctrl-sandbox.c
+++ b/drivers/pinctrl/pinctrl-sandbox.c
@@ -11,6 +11,7 @@
#include <vsprintf.h>
#include <dm/pinctrl.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static const char * const sandbox_pins[] = {
diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c
index e4a05f5cce67..24387e59f1ee 100644
--- a/drivers/pinctrl/pinctrl-single.c
+++ b/drivers/pinctrl/pinctrl-single.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <dm.h>
+#include <stdbool.h>
#include <dm/device_compat.h>
#include <dm/pinctrl.h>
#include <linux/errno.h>
diff --git a/drivers/pinctrl/pinctrl-sti.c b/drivers/pinctrl/pinctrl-sti.c
index f6444181671d..7549253e0612 100644
--- a/drivers/pinctrl/pinctrl-sti.c
+++ b/drivers/pinctrl/pinctrl-sti.c
@@ -18,6 +18,7 @@
#include <dm/pinctrl.h>
#include <linux/bug.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <linux/printk.h>
diff --git a/drivers/pinctrl/pinctrl-stmfx.c b/drivers/pinctrl/pinctrl-stmfx.c
index bdf852c5f024..b72374cd09cd 100644
--- a/drivers/pinctrl/pinctrl-stmfx.c
+++ b/drivers/pinctrl/pinctrl-stmfx.c
@@ -19,6 +19,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <power/regulator.h>
diff --git a/drivers/pinctrl/pinctrl_pic32.c b/drivers/pinctrl/pinctrl_pic32.c
index 6f2b34f2813e..939760d5bb1b 100644
--- a/drivers/pinctrl/pinctrl_pic32.c
+++ b/drivers/pinctrl/pinctrl_pic32.c
@@ -14,6 +14,7 @@
#include <dm/pinctrl.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <mach/pic32.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/pinctrl/pinctrl_stm32.c b/drivers/pinctrl/pinctrl_stm32.c
index faec68c3b2ef..98cf5b5aa5bb 100644
--- a/drivers/pinctrl/pinctrl_stm32.c
+++ b/drivers/pinctrl/pinctrl_stm32.c
@@ -14,6 +14,7 @@
#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.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 db4dea111040..91d220fe4756 100644
--- a/drivers/pinctrl/renesas/pfc-r7s72100.c
+++ b/drivers/pinctrl/renesas/pfc-r7s72100.c
@@ -15,6 +15,7 @@
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/err.h>
+#include <linux/kernel.h>
#define P(bank) (0x0000 + (bank) * 4)
#define PSR(bank) (0x0100 + (bank) * 4)
diff --git a/drivers/pinctrl/renesas/pfc.c b/drivers/pinctrl/renesas/pfc.c
index 1a7e686a4653..5d7486574ccd 100644
--- a/drivers/pinctrl/renesas/pfc.c
+++ b/drivers/pinctrl/renesas/pfc.c
@@ -22,6 +22,7 @@
#include <linux/bug.h>
#include <linux/errno.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include "sh_pfc.h"
diff --git a/drivers/pinctrl/renesas/sh_pfc.h b/drivers/pinctrl/renesas/sh_pfc.h
index 81c017994825..feea8a45ff60 100644
--- a/drivers/pinctrl/renesas/sh_pfc.h
+++ b/drivers/pinctrl/renesas/sh_pfc.h
@@ -11,6 +11,7 @@
#ifndef __SH_PFC_H
#define __SH_PFC_H
+#include <linux/kernel.h>
#include <linux/stringify.h>
enum {
diff --git a/drivers/pinctrl/rockchip/pinctrl-px30.c b/drivers/pinctrl/rockchip/pinctrl-px30.c
index bf1ee07c5fe0..bbe501607228 100644
--- a/drivers/pinctrl/rockchip/pinctrl-px30.c
+++ b/drivers/pinctrl/rockchip/pinctrl-px30.c
@@ -11,6 +11,7 @@
#include <syscon.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "pinctrl-rockchip.h"
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3036.c b/drivers/pinctrl/rockchip/pinctrl-rk3036.c
index 11d4e784d02a..77bd12e4c796 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk3036.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk3036.c
@@ -10,6 +10,7 @@
#include <syscon.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "pinctrl-rockchip.h"
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3128.c b/drivers/pinctrl/rockchip/pinctrl-rk3128.c
index 445dbf85d4f8..dc44f7840802 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk3128.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk3128.c
@@ -10,6 +10,7 @@
#include <syscon.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "pinctrl-rockchip.h"
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3188.c b/drivers/pinctrl/rockchip/pinctrl-rk3188.c
index c4ff4e585312..4b919e9cffc4 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk3188.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk3188.c
@@ -10,6 +10,7 @@
#include <regmap.h>
#include <syscon.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "pinctrl-rockchip.h"
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk322x.c b/drivers/pinctrl/rockchip/pinctrl-rk322x.c
index 3e925837ee85..2ae92e258b72 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk322x.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk322x.c
@@ -11,6 +11,7 @@
#include <syscon.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "pinctrl-rockchip.h"
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3288.c b/drivers/pinctrl/rockchip/pinctrl-rk3288.c
index e8cdca1bd280..8c22a56b6200 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk3288.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk3288.c
@@ -10,6 +10,7 @@
#include <regmap.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "pinctrl-rockchip.h"
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3308.c b/drivers/pinctrl/rockchip/pinctrl-rk3308.c
index 088617de5db9..afd9bd3e85d3 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk3308.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk3308.c
@@ -11,6 +11,7 @@
#include <syscon.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "pinctrl-rockchip.h"
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3328.c b/drivers/pinctrl/rockchip/pinctrl-rk3328.c
index 342d67d06d91..42075627f968 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk3328.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk3328.c
@@ -11,6 +11,7 @@
#include <syscon.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "pinctrl-rockchip.h"
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3368.c b/drivers/pinctrl/rockchip/pinctrl-rk3368.c
index d66b62d91361..5fbc06359648 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk3368.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk3368.c
@@ -10,6 +10,7 @@
#include <regmap.h>
#include <syscon.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "pinctrl-rockchip.h"
diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3399.c b/drivers/pinctrl/rockchip/pinctrl-rk3399.c
index ec33f89bb829..084941c67062 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rk3399.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rk3399.c
@@ -11,6 +11,7 @@
#include <syscon.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "pinctrl-rockchip.h"
diff --git a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c
index 389d584078f8..f36e49f36a4d 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c
@@ -13,6 +13,7 @@
#include <fdtdec.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <linux/string.h>
diff --git a/drivers/pinctrl/rockchip/pinctrl-rockchip.h b/drivers/pinctrl/rockchip/pinctrl-rockchip.h
index d969c200826c..5231e646521e 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rockchip.h
+++ b/drivers/pinctrl/rockchip/pinctrl-rockchip.h
@@ -6,6 +6,7 @@
#ifndef __DRIVERS_PINCTRL_ROCKCHIP_H
#define __DRIVERS_PINCTRL_ROCKCHIP_H
+#include <stdbool.h>
#include <linux/bitops.h>
#include <linux/types.h>
diff --git a/drivers/pinctrl/rockchip/pinctrl-rv1108.c b/drivers/pinctrl/rockchip/pinctrl-rv1108.c
index c0fb962ef059..42db3375d042 100644
--- a/drivers/pinctrl/rockchip/pinctrl-rv1108.c
+++ b/drivers/pinctrl/rockchip/pinctrl-rv1108.c
@@ -11,6 +11,7 @@
#include <syscon.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "pinctrl-rockchip.h"
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c
index 5efaa2f66b03..a1d41cc48ff5 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
+#include <linux/kernel.h>
#include "pinctrl-uniphier.h"
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c
index d3c5833c993a..7bd359f95afb 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
+#include <linux/kernel.h>
#include "pinctrl-uniphier.h"
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c
index bf1a9e9e9899..ddea6ab9d040 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
+#include <linux/kernel.h>
#include "pinctrl-uniphier.h"
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c
index f22c046804a0..4f9692ac1b6f 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
+#include <linux/kernel.h>
#include "pinctrl-uniphier.h"
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c
index 8bae163a8e9b..93a57eac7692 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
+#include <linux/kernel.h>
#include "pinctrl-uniphier.h"
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c
index 1f4931bcf0da..48a6f854f91e 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
+#include <linux/kernel.h>
#include "pinctrl-uniphier.h"
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c
index 038a7dd7be06..7f9387c25ff3 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
+#include <linux/kernel.h>
#include "pinctrl-uniphier.h"
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c
index 452d76d721d4..a929ef38a98b 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
+#include <linux/kernel.h>
#include "pinctrl-uniphier.h"
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c
index 1e38ba16f930..3bb9c2920786 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
+#include <linux/kernel.h>
#include "pinctrl-uniphier.h"
diff --git a/drivers/power/acpi_pmc/acpi-pmc-uclass.c b/drivers/power/acpi_pmc/acpi-pmc-uclass.c
index d713dc81f0a5..f13e27f34cb2 100644
--- a/drivers/power/acpi_pmc/acpi-pmc-uclass.c
+++ b/drivers/power/acpi_pmc/acpi-pmc-uclass.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <dm.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <acpi/acpi_s3.h>
#ifdef CONFIG_X86
diff --git a/drivers/power/acpi_pmc/pmc_emul.c b/drivers/power/acpi_pmc/pmc_emul.c
index 93ba847e2eca..de6afccea12c 100644
--- a/drivers/power/acpi_pmc/pmc_emul.c
+++ b/drivers/power/acpi_pmc/pmc_emul.c
@@ -12,6 +12,7 @@
#include <pci.h>
#include <asm/test.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <power/acpi_pmc.h>
/**
diff --git a/drivers/power/axp809.c b/drivers/power/axp809.c
index fd85b7341457..7999ab593a8f 100644
--- a/drivers/power/axp809.c
+++ b/drivers/power/axp809.c
@@ -13,6 +13,7 @@
#include <common.h>
#include <command.h>
#include <errno.h>
+#include <stdbool.h>
#include <asm/arch/gpio.h>
#include <asm/arch/pmic_bus.h>
#include <axp_pmic.h>
diff --git a/drivers/power/axp818.c b/drivers/power/axp818.c
index bfdc3d93caf0..340472d75c78 100644
--- a/drivers/power/axp818.c
+++ b/drivers/power/axp818.c
@@ -13,6 +13,7 @@
#include <common.h>
#include <command.h>
#include <errno.h>
+#include <stdbool.h>
#include <asm/arch/gpio.h>
#include <asm/arch/pmic_bus.h>
#include <axp_pmic.h>
diff --git a/drivers/power/domain/imx8-power-domain-legacy.c b/drivers/power/domain/imx8-power-domain-legacy.c
index 37167b334603..2b07855fb116 100644
--- a/drivers/power/domain/imx8-power-domain-legacy.c
+++ b/drivers/power/domain/imx8-power-domain-legacy.c
@@ -8,6 +8,7 @@
#include <log.h>
#include <malloc.h>
#include <power-domain-uclass.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/drivers/power/domain/meson-ee-pwrc.c b/drivers/power/domain/meson-ee-pwrc.c
index 7e131d325534..f6082f2a4c09 100644
--- a/drivers/power/domain/meson-ee-pwrc.c
+++ b/drivers/power/domain/meson-ee-pwrc.c
@@ -19,6 +19,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
/* AO Offsets */
diff --git a/drivers/power/domain/power-domain-uclass.c b/drivers/power/domain/power-domain-uclass.c
index cf9227572f98..2ea428607949 100644
--- a/drivers/power/domain/power-domain-uclass.c
+++ b/drivers/power/domain/power-domain-uclass.c
@@ -9,6 +9,7 @@
#include <malloc.h>
#include <power-domain.h>
#include <power-domain-uclass.h>
+#include <stdbool.h>
#include <dm/device-internal.h>
#include <linux/errno.h>
diff --git a/drivers/power/domain/sandbox-power-domain.c b/drivers/power/domain/sandbox-power-domain.c
index 373db61ba0f9..c58b80e63a0f 100644
--- a/drivers/power/domain/sandbox-power-domain.c
+++ b/drivers/power/domain/sandbox-power-domain.c
@@ -8,6 +8,7 @@
#include <log.h>
#include <malloc.h>
#include <power-domain-uclass.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <asm/power-domain.h>
#include <linux/errno.h>
diff --git a/drivers/power/domain/tegra186-power-domain.c b/drivers/power/domain/tegra186-power-domain.c
index 707735cf8516..3649858e0f21 100644
--- a/drivers/power/domain/tegra186-power-domain.c
+++ b/drivers/power/domain/tegra186-power-domain.c
@@ -9,6 +9,7 @@
#include <malloc.h>
#include <misc.h>
#include <power-domain-uclass.h>
+#include <stdbool.h>
#include <asm/arch-tegra/bpmp_abi.h>
#include <linux/bitops.h>
diff --git a/drivers/power/fuel_gauge/fg_max17042.c b/drivers/power/fuel_gauge/fg_max17042.c
index 89a170aea609..a0614e229a14 100644
--- a/drivers/power/fuel_gauge/fg_max17042.c
+++ b/drivers/power/fuel_gauge/fg_max17042.c
@@ -9,6 +9,7 @@
#include <stdio.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <power/pmic.h>
#include <power/max17042_fg.h>
#include <i2c.h>
diff --git a/drivers/power/pmic/da9063.c b/drivers/power/pmic/da9063.c
index b88e79f43143..13b7503aedb7 100644
--- a/drivers/power/pmic/da9063.c
+++ b/drivers/power/pmic/da9063.c
@@ -11,6 +11,7 @@
#include <i2c.h>
#include <log.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <power/pmic.h>
#include <power/regulator.h>
diff --git a/drivers/power/pmic/i2c_pmic_emul.c b/drivers/power/pmic/i2c_pmic_emul.c
index 1a044ea5b17d..ce68fdb043ae 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 <stdbool.h>
#include <linux/errno.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/power/pmic/rk8xx.c b/drivers/power/pmic/rk8xx.c
index 991a94b41ab4..db0968ac0f51 100644
--- a/drivers/power/pmic/rk8xx.c
+++ b/drivers/power/pmic/rk8xx.c
@@ -10,6 +10,7 @@
#include <log.h>
#include <stdio.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <power/rk8xx_pmic.h>
#include <power/pmic.h>
diff --git a/drivers/power/regulator/act8846.c b/drivers/power/regulator/act8846.c
index 0140231214a8..175966293c29 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 <stdbool.h>
#include <linux/errno.h>
#include <power/act8846_pmic.h>
#include <power/pmic.h>
diff --git a/drivers/power/regulator/as3722_regulator.c b/drivers/power/regulator/as3722_regulator.c
index da25e58dec9f..55b61cd7a9f0 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 <stdbool.h>
#include <linux/errno.h>
#include <power/as3722.h>
#include <power/pmic.h>
diff --git a/drivers/power/regulator/bd71837.c b/drivers/power/regulator/bd71837.c
index 7ebba28a9927..2a74bfcc79e2 100644
--- a/drivers/power/regulator/bd71837.c
+++ b/drivers/power/regulator/bd71837.c
@@ -10,6 +10,7 @@
#include <log.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.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 ae069e602a31..bfe77d6814ac 100644
--- a/drivers/power/regulator/da9063.c
+++ b/drivers/power/regulator/da9063.c
@@ -8,6 +8,7 @@
#include <dm.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.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 fa8dc96f9da0..93aa04f7aeed 100644
--- a/drivers/power/regulator/fan53555.c
+++ b/drivers/power/regulator/fan53555.c
@@ -13,6 +13,7 @@
#include <asm/gpio.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.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 629b61c766c6..53387c2f7c92 100644
--- a/drivers/power/regulator/fixed.c
+++ b/drivers/power/regulator/fixed.c
@@ -9,6 +9,7 @@
#include <errno.h>
#include <dm.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/gpio.h>
#include <linux/errno.h>
#include <power/pmic.h>
diff --git a/drivers/power/regulator/gpio-regulator.c b/drivers/power/regulator/gpio-regulator.c
index 05b12f4fe8c8..2874236b989a 100644
--- a/drivers/power/regulator/gpio-regulator.c
+++ b/drivers/power/regulator/gpio-regulator.c
@@ -10,6 +10,7 @@
#include <dm.h>
#include <i2c.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/gpio.h>
#include <linux/errno.h>
#include <linux/printk.h>
diff --git a/drivers/power/regulator/lp873x_regulator.c b/drivers/power/regulator/lp873x_regulator.c
index c47a4a9a7786..38bf4f53b27f 100644
--- a/drivers/power/regulator/lp873x_regulator.c
+++ b/drivers/power/regulator/lp873x_regulator.c
@@ -11,6 +11,7 @@
#include <errno.h>
#include <dm.h>
#include <i2c.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/errno.h>
#include <power/pmic.h>
diff --git a/drivers/power/regulator/lp87565_regulator.c b/drivers/power/regulator/lp87565_regulator.c
index 2275a7367b0a..96b0f36c4151 100644
--- a/drivers/power/regulator/lp87565_regulator.c
+++ b/drivers/power/regulator/lp87565_regulator.c
@@ -12,6 +12,7 @@
#include <dm.h>
#include <i2c.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/errno.h>
#include <power/pmic.h>
diff --git a/drivers/power/regulator/max77686.c b/drivers/power/regulator/max77686.c
index bcbe257f53fd..e4c099fb8b4a 100644
--- a/drivers/power/regulator/max77686.c
+++ b/drivers/power/regulator/max77686.c
@@ -12,6 +12,7 @@
#include <dm.h>
#include <i2c.h>
#include <linux/errno.h>
+#include <linux/kernel.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 9f1ae1d246fd..5eeed77b29e4 100644
--- a/drivers/power/regulator/palmas_regulator.c
+++ b/drivers/power/regulator/palmas_regulator.c
@@ -11,6 +11,7 @@
#include <errno.h>
#include <dm.h>
#include <i2c.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/errno.h>
#include <linux/string.h>
diff --git a/drivers/power/regulator/pfuze100.c b/drivers/power/regulator/pfuze100.c
index b874d58961cc..1f9eab05cbe3 100644
--- a/drivers/power/regulator/pfuze100.c
+++ b/drivers/power/regulator/pfuze100.c
@@ -12,6 +12,7 @@
#include <i2c.h>
#include <log.h>
#include <linux/errno.h>
+#include <linux/kernel.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 451ce106e4f9..9bf65e9685f9 100644
--- a/drivers/power/regulator/pwm_regulator.c
+++ b/drivers/power/regulator/pwm_regulator.c
@@ -12,6 +12,7 @@
#include <errno.h>
#include <log.h>
#include <pwm.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <dm/device_compat.h>
diff --git a/drivers/power/regulator/regulator-uclass.c b/drivers/power/regulator/regulator-uclass.c
index 704a33d057a4..251fc78bc89f 100644
--- a/drivers/power/regulator/regulator-uclass.c
+++ b/drivers/power/regulator/regulator-uclass.c
@@ -12,6 +12,7 @@
#include <dm/uclass-internal.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 575b631597e1..b2a2e1eef5d5 100644
--- a/drivers/power/regulator/regulator_common.c
+++ b/drivers/power/regulator/regulator_common.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <dm.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/gpio.h>
#include <linux/delay.h>
#include <linux/errno.h>
diff --git a/drivers/power/regulator/regulator_common.h b/drivers/power/regulator/regulator_common.h
index 946401f5e24e..0d3d05c40b3e 100644
--- a/drivers/power/regulator/regulator_common.h
+++ b/drivers/power/regulator/regulator_common.h
@@ -7,6 +7,8 @@
#ifndef _REGULATOR_COMMON_H
#define _REGULATOR_COMMON_H
+#include <stdbool.h>
+
struct regulator_common_platdata {
struct gpio_desc gpio; /* GPIO for regulator enable control */
unsigned int startup_delay_us;
diff --git a/drivers/power/regulator/rk8xx.c b/drivers/power/regulator/rk8xx.c
index 03e6ffcc978e..e6b0bbac7cfb 100644
--- a/drivers/power/regulator/rk8xx.c
+++ b/drivers/power/regulator/rk8xx.c
@@ -13,6 +13,7 @@
#include <errno.h>
#include <log.h>
#include <linux/errno.h>
+#include <linux/kernel.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 ffbc06d9b794..728a67bf8d40 100644
--- a/drivers/power/regulator/s2mps11_regulator.c
+++ b/drivers/power/regulator/s2mps11_regulator.c
@@ -11,6 +11,7 @@
#include <i2c.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 7e1d08b8d11d..6d4f8caa3bb7 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 <stdbool.h>
#include <linux/errno.h>
#include <power/pmic.h>
#include <power/regulator.h>
diff --git a/drivers/power/regulator/sandbox.c b/drivers/power/regulator/sandbox.c
index 88c6f3ca3b24..196092c7260c 100644
--- a/drivers/power/regulator/sandbox.c
+++ b/drivers/power/regulator/sandbox.c
@@ -10,6 +10,7 @@
#include <dm.h>
#include <i2c.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <power/pmic.h>
#include <power/regulator.h>
diff --git a/drivers/power/regulator/stpmic1.c b/drivers/power/regulator/stpmic1.c
index 38cd18b0d4f0..119e8d3ffbb5 100644
--- a/drivers/power/regulator/stpmic1.c
+++ b/drivers/power/regulator/stpmic1.c
@@ -9,6 +9,7 @@
#include <errno.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 5d7d3d43ed51..44c26e868d3a 100644
--- a/drivers/power/regulator/tps62360_regulator.c
+++ b/drivers/power/regulator/tps62360_regulator.c
@@ -9,6 +9,7 @@
#include <i2c.h>
#include <dm/device_compat.h>
#include <linux/errno.h>
+#include <linux/kernel.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 95db2d60e504..cbab544e2bc6 100644
--- a/drivers/power/regulator/tps65090_regulator.c
+++ b/drivers/power/regulator/tps65090_regulator.c
@@ -7,6 +7,7 @@
#include <dm.h>
#include <errno.h>
#include <log.h>
+#include <stdbool.h>
#include <time.h>
#include <linux/delay.h>
#include <linux/errno.h>
diff --git a/drivers/power/regulator/tps65910_regulator.c b/drivers/power/regulator/tps65910_regulator.c
index a2bd9c6c18ab..bc9ec2dcb270 100644
--- a/drivers/power/regulator/tps65910_regulator.c
+++ b/drivers/power/regulator/tps65910_regulator.c
@@ -7,6 +7,7 @@
#include <dm.h>
#include <log.h>
#include <linux/errno.h>
+#include <linux/kernel.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 535d88a7e19c..1767a72ac0d2 100644
--- a/drivers/power/regulator/tps65941_regulator.c
+++ b/drivers/power/regulator/tps65941_regulator.c
@@ -12,6 +12,7 @@
#include <dm.h>
#include <i2c.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/delay.h>
#include <linux/errno.h>
diff --git a/drivers/power/tps6586x.c b/drivers/power/tps6586x.c
index acf0d5cfa4f4..ac9d0986040f 100644
--- a/drivers/power/tps6586x.c
+++ b/drivers/power/tps6586x.c
@@ -11,6 +11,7 @@
#include <i2c.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
static struct udevice *tps6586x_dev;
diff --git a/drivers/pwm/exynos_pwm.c b/drivers/pwm/exynos_pwm.c
index 5417e95ef7b1..59a07e593b94 100644
--- a/drivers/pwm/exynos_pwm.c
+++ b/drivers/pwm/exynos_pwm.c
@@ -7,6 +7,7 @@
#include <dm.h>
#include <log.h>
#include <pwm.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <asm/arch/clk.h>
#include <asm/arch/clock.h>
diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c
index 77a1907fd3ba..70bf5851e54e 100644
--- a/drivers/pwm/pwm-imx.c
+++ b/drivers/pwm/pwm-imx.c
@@ -11,6 +11,7 @@
#include <dm.h>
#include <log.h>
#include <pwm.h>
+#include <stdbool.h>
#include <asm/arch/imx-regs.h>
#include <asm/io.h>
#include "pwm-imx-util.h"
diff --git a/drivers/pwm/pwm-mtk.c b/drivers/pwm/pwm-mtk.c
index 1459e7fa6738..9b997ec88f76 100644
--- a/drivers/pwm/pwm-mtk.c
+++ b/drivers/pwm/pwm-mtk.c
@@ -15,6 +15,7 @@
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/io.h>
+#include <linux/kernel.h>
/* PWM registers and bits definitions */
#define PWMCON 0x00
diff --git a/drivers/pwm/pwm-sifive.c b/drivers/pwm/pwm-sifive.c
index 866b243c0046..cf3c723aceb9 100644
--- a/drivers/pwm/pwm-sifive.c
+++ b/drivers/pwm/pwm-sifive.c
@@ -21,6 +21,7 @@
#include <asm/global_data.h>
#include <linux/errno.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <linux/log2.h>
#include <linux/bitfield.h>
diff --git a/drivers/pwm/pwm-uclass.c b/drivers/pwm/pwm-uclass.c
index ab2df85e3ea2..e3bfcc837dc3 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 <stdbool.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 04c16ff36d8e..afe480710472 100644
--- a/drivers/pwm/rk_pwm.c
+++ b/drivers/pwm/rk_pwm.c
@@ -11,6 +11,7 @@
#include <log.h>
#include <pwm.h>
#include <regmap.h>
+#include <stdbool.h>
#include <syscon.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/drivers/pwm/sandbox_pwm.c b/drivers/pwm/sandbox_pwm.c
index 0e267064b146..44e7f2356506 100644
--- a/drivers/pwm/sandbox_pwm.c
+++ b/drivers/pwm/sandbox_pwm.c
@@ -8,6 +8,7 @@
#include <dm.h>
#include <errno.h>
#include <pwm.h>
+#include <stdbool.h>
#include <asm/test.h>
#include <linux/errno.h>
diff --git a/drivers/pwm/sunxi_pwm.c b/drivers/pwm/sunxi_pwm.c
index d3e714a6ab3c..55472103fcc9 100644
--- a/drivers/pwm/sunxi_pwm.c
+++ b/drivers/pwm/sunxi_pwm.c
@@ -9,6 +9,7 @@
#include <log.h>
#include <pwm.h>
#include <regmap.h>
+#include <stdbool.h>
#include <syscon.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/drivers/pwm/tegra_pwm.c b/drivers/pwm/tegra_pwm.c
index 2cfb3787dc4d..11378bb2e3bf 100644
--- a/drivers/pwm/tegra_pwm.c
+++ b/drivers/pwm/tegra_pwm.c
@@ -7,6 +7,7 @@
#include <dm.h>
#include <log.h>
#include <pwm.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/pwm.h>
diff --git a/drivers/qe/uec.c b/drivers/qe/uec.c
index 49adc58165d7..cb11e99faf8d 100644
--- a/drivers/qe/uec.c
+++ b/drivers/qe/uec.c
@@ -16,6 +16,7 @@
#include <linux/errno.h>
#include <asm/io.h>
#include <linux/immap_qe.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "uccf.h"
#include "uec.h"
diff --git a/drivers/qe/uec_phy.c b/drivers/qe/uec_phy.c
index c9beb852defd..ff9ed5d01ae9 100644
--- a/drivers/qe/uec_phy.c
+++ b/drivers/qe/uec_phy.c
@@ -17,6 +17,7 @@
#include <linux/errno.h>
#include <linux/immap_qe.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "uccf.h"
#include "uec.h"
diff --git a/drivers/ram/k3-j721e/lpddr4_if.h b/drivers/ram/k3-j721e/lpddr4_if.h
index 66ec3c5a27f6..56a1c926985f 100644
--- a/drivers/ram/k3-j721e/lpddr4_if.h
+++ b/drivers/ram/k3-j721e/lpddr4_if.h
@@ -13,6 +13,7 @@
#ifndef LPDDR4_IF_H
#define LPDDR4_IF_H
+#include <stdbool.h>
#include <linux/types.h>
/** @defgroup ConfigInfo Configuration and Hardware Operation Information
diff --git a/drivers/ram/k3-j721e/lpddr4_sanity.h b/drivers/ram/k3-j721e/lpddr4_sanity.h
index 84050d72c4a3..1ee052bffb9e 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 <stdbool.h>
#include <linux/errno.h>
#include <linux/types.h>
#include "lpddr4_if.h"
diff --git a/drivers/ram/k3-j721e/lpddr4_structs_if.h b/drivers/ram/k3-j721e/lpddr4_structs_if.h
index dc6dd3570e00..c3a308e2af6f 100644
--- a/drivers/ram/k3-j721e/lpddr4_structs_if.h
+++ b/drivers/ram/k3-j721e/lpddr4_structs_if.h
@@ -12,6 +12,7 @@
#ifndef LPDDR4_STRUCTS_IF_H
#define LPDDR4_STRUCTS_IF_H
+#include <stdbool.h>
#include <linux/types.h>
#include "lpddr4_if.h"
diff --git a/drivers/ram/rockchip/dmc-rk3368.c b/drivers/ram/rockchip/dmc-rk3368.c
index 1c3d95d7d632..9f13363e634a 100644
--- a/drivers/ram/rockchip/dmc-rk3368.c
+++ b/drivers/ram/rockchip/dmc-rk3368.c
@@ -26,6 +26,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
struct dram_info {
diff --git a/drivers/ram/rockchip/sdram_px30.c b/drivers/ram/rockchip/sdram_px30.c
index fd5763d0a0df..a4f8980bfd76 100644
--- a/drivers/ram/rockchip/sdram_px30.c
+++ b/drivers/ram/rockchip/sdram_px30.c
@@ -18,6 +18,7 @@
#include <asm/arch-rockchip/sdram.h>
#include <asm/arch-rockchip/sdram_px30.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
struct dram_info {
#ifdef CONFIG_TPL_BUILD
diff --git a/drivers/ram/rockchip/sdram_rk3188.c b/drivers/ram/rockchip/sdram_rk3188.c
index a8db0e341222..cfa6d0ebf19e 100644
--- a/drivers/ram/rockchip/sdram_rk3188.c
+++ b/drivers/ram/rockchip/sdram_rk3188.c
@@ -29,6 +29,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.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 92fe235be5a5..89b4fc2acb64 100644
--- a/drivers/ram/rockchip/sdram_rk322x.c
+++ b/drivers/ram/rockchip/sdram_rk322x.c
@@ -25,6 +25,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.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 4f48da4b4e58..80abe9c9b20c 100644
--- a/drivers/ram/rockchip/sdram_rk3288.c
+++ b/drivers/ram/rockchip/sdram_rk3288.c
@@ -29,6 +29,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <power/regulator.h>
#include <power/rk8xx_pmic.h>
diff --git a/drivers/ram/rockchip/sdram_rk3328.c b/drivers/ram/rockchip/sdram_rk3328.c
index e61972e322c7..827d52e7a5c7 100644
--- a/drivers/ram/rockchip/sdram_rk3328.c
+++ b/drivers/ram/rockchip/sdram_rk3328.c
@@ -21,6 +21,7 @@
#include <asm/arch-rockchip/sdram_rk3328.h>
#include <asm/arch-rockchip/uart.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
struct dram_info {
diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c
index 45c20b7cfa3b..690b8c3f3b29 100644
--- a/drivers/ram/rockchip/sdram_rk3399.c
+++ b/drivers/ram/rockchip/sdram_rk3399.c
@@ -27,6 +27,7 @@
#include <linux/err.h>
#include <time.h>
#include <linux/errno.h>
+#include <linux/kernel.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/stm32mp1/stm32mp1_ddr.c b/drivers/ram/stm32mp1/stm32mp1_ddr.c
index 6742aa6a9869..d122dadd6dc2 100644
--- a/drivers/ram/stm32mp1/stm32mp1_ddr.c
+++ b/drivers/ram/stm32mp1/stm32mp1_ddr.c
@@ -17,6 +17,7 @@
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/iopoll.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include "stm32mp1_ddr.h"
diff --git a/drivers/ram/stm32mp1/stm32mp1_ddr.h b/drivers/ram/stm32mp1/stm32mp1_ddr.h
index 4998f0443944..5f15196b2da3 100644
--- a/drivers/ram/stm32mp1/stm32mp1_ddr.h
+++ b/drivers/ram/stm32mp1/stm32mp1_ddr.h
@@ -6,6 +6,7 @@
#ifndef _RAM_STM32MP1_DDR_H
#define _RAM_STM32MP1_DDR_H
+#include <stdbool.h>
enum stm32mp1_ddr_interact_step {
STEP_DDR_RESET,
STEP_CTL_INIT,
diff --git a/drivers/ram/stm32mp1/stm32mp1_interactive.c b/drivers/ram/stm32mp1/stm32mp1_interactive.c
index 34c9af7214b9..d45071d3ed32 100644
--- a/drivers/ram/stm32mp1/stm32mp1_interactive.c
+++ b/drivers/ram/stm32mp1/stm32mp1_interactive.c
@@ -16,6 +16,7 @@
#include <time.h>
#include <vsprintf.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "stm32mp1_ddr.h"
#include "stm32mp1_tests.h"
diff --git a/drivers/ram/stm32mp1/stm32mp1_ram.c b/drivers/ram/stm32mp1/stm32mp1_ram.c
index 347ff769e405..8b49730e6331 100644
--- a/drivers/ram/stm32mp1/stm32mp1_ram.c
+++ b/drivers/ram/stm32mp1/stm32mp1_ram.c
@@ -14,6 +14,7 @@
#include <syscon.h>
#include <asm/io.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include "stm32mp1_ddr.h"
diff --git a/drivers/ram/stm32mp1/stm32mp1_tests.c b/drivers/ram/stm32mp1/stm32mp1_tests.c
index 02ee683303d8..00bdbe6762ab 100644
--- a/drivers/ram/stm32mp1/stm32mp1_tests.c
+++ b/drivers/ram/stm32mp1/stm32mp1_tests.c
@@ -12,6 +12,7 @@
#include <watchdog.h>
#include <asm/global_data.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include <linux/log2.h>
#include <linux/string.h>
#include "stm32mp1_tests.h"
diff --git a/drivers/ram/stm32mp1/stm32mp1_tuning.c b/drivers/ram/stm32mp1/stm32mp1_tuning.c
index 822c890031ad..8da11d0629a9 100644
--- a/drivers/ram/stm32mp1/stm32mp1_tuning.c
+++ b/drivers/ram/stm32mp1/stm32mp1_tuning.c
@@ -15,6 +15,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/iopoll.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/remoteproc/rproc-elf-loader.c b/drivers/remoteproc/rproc-elf-loader.c
index d4064a311b52..bb82de08da70 100644
--- a/drivers/remoteproc/rproc-elf-loader.c
+++ b/drivers/remoteproc/rproc-elf-loader.c
@@ -12,6 +12,7 @@
#include <dm/device_compat.h>
#include <linux/compat.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/remoteproc/rproc-uclass.c b/drivers/remoteproc/rproc-uclass.c
index 950dc3f9b11c..e7513240ec5d 100644
--- a/drivers/remoteproc/rproc-uclass.c
+++ b/drivers/remoteproc/rproc-uclass.c
@@ -10,6 +10,7 @@
#include <log.h>
#include <malloc.h>
#include <remoteproc.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <dm/device-internal.h>
diff --git a/drivers/remoteproc/ti_k3_dsp_rproc.c b/drivers/remoteproc/ti_k3_dsp_rproc.c
index 722b9432491a..a341ef84e8af 100644
--- a/drivers/remoteproc/ti_k3_dsp_rproc.c
+++ b/drivers/remoteproc/ti_k3_dsp_rproc.c
@@ -20,6 +20,7 @@
#include <dm/device_compat.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <linux/soc/ti/ti_sci_protocol.h>
#include <linux/string.h>
diff --git a/drivers/reset/ast2500-reset.c b/drivers/reset/ast2500-reset.c
index beb5cd8fa8c8..d1e687bc1352 100644
--- a/drivers/reset/ast2500-reset.c
+++ b/drivers/reset/ast2500-reset.c
@@ -9,6 +9,7 @@
#include <misc.h>
#include <reset.h>
#include <reset-uclass.h>
+#include <stdbool.h>
#include <wdt.h>
#include <asm/io.h>
#include <asm/arch/scu_ast2500.h>
diff --git a/drivers/reset/reset-hsdk.c b/drivers/reset/reset-hsdk.c
index 531e2cfb5fa4..c9cfa6bc7d36 100644
--- a/drivers/reset/reset-hsdk.c
+++ b/drivers/reset/reset-hsdk.c
@@ -14,6 +14,7 @@
#include <linux/errno.h>
#include <linux/iopoll.h>
#include <reset-uclass.h>
+#include <linux/kernel.h>
struct hsdk_rst {
void __iomem *regs_ctl;
diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c
index 8322a48a8aeb..ee53df94eca2 100644
--- a/drivers/reset/reset-meson.c
+++ b/drivers/reset/reset-meson.c
@@ -12,6 +12,7 @@
#include <malloc.h>
#include <reset-uclass.h>
#include <regmap.h>
+#include <stdbool.h>
#include <linux/bitops.h>
#include <linux/errno.h>
diff --git a/drivers/reset/reset-socfpga.c b/drivers/reset/reset-socfpga.c
index f01b1e53e981..370353e6cba0 100644
--- a/drivers/reset/reset-socfpga.c
+++ b/drivers/reset/reset-socfpga.c
@@ -16,6 +16,7 @@
#include <dm.h>
#include <log.h>
#include <malloc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <dm/lists.h>
diff --git a/drivers/reset/sandbox-reset.c b/drivers/reset/sandbox-reset.c
index a6936e81877e..142724856e65 100644
--- a/drivers/reset/sandbox-reset.c
+++ b/drivers/reset/sandbox-reset.c
@@ -8,6 +8,7 @@
#include <log.h>
#include <malloc.h>
#include <reset-uclass.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <asm/reset.h>
#include <linux/errno.h>
diff --git a/drivers/reset/sti-reset.c b/drivers/reset/sti-reset.c
index 75d972a5fa2f..d80e985711e8 100644
--- a/drivers/reset/sti-reset.c
+++ b/drivers/reset/sti-reset.c
@@ -17,6 +17,7 @@
#include <dt-bindings/reset/stih407-resets.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/rng/rockchip_rng.c b/drivers/rng/rockchip_rng.c
index efc1980e4497..35f999c447d5 100644
--- a/drivers/rng/rockchip_rng.c
+++ b/drivers/rng/rockchip_rng.c
@@ -9,6 +9,7 @@
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/iopoll.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <rng.h>
diff --git a/drivers/rtc/ds1374.c b/drivers/rtc/ds1374.c
index 5ca0e32b50c7..dc8e370a402c 100644
--- a/drivers/rtc/ds1374.c
+++ b/drivers/rtc/ds1374.c
@@ -17,6 +17,7 @@
#include <command.h>
#include <rtc.h>
#include <i2c.h>
+#include <stdbool.h>
#include <stdio.h>
/*---------------------------------------------------------------------*/
diff --git a/drivers/rtc/i2c_rtc_emul.c b/drivers/rtc/i2c_rtc_emul.c
index a78dc78cfcc4..93b9ecc18db0 100644
--- a/drivers/rtc/i2c_rtc_emul.c
+++ b/drivers/rtc/i2c_rtc_emul.c
@@ -19,6 +19,7 @@
#include <log.h>
#include <os.h>
#include <rtc.h>
+#include <stdbool.h>
#include <asm/rtc.h>
#include <asm/test.h>
#include <linux/string.h>
diff --git a/drivers/rtc/rv3029.c b/drivers/rtc/rv3029.c
index ffed37ad5aa3..bda19d6853fa 100644
--- a/drivers/rtc/rv3029.c
+++ b/drivers/rtc/rv3029.c
@@ -20,6 +20,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#define RTC_RV3029_PAGE_LEN 7
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c
index ad7ca9e8784a..0a68ef4a187f 100644
--- a/drivers/scsi/scsi.c
+++ b/drivers/scsi/scsi.c
@@ -18,6 +18,7 @@
#include <dm/device-internal.h>
#include <dm/uclass-internal.h>
#include <linux/errno.h>
+#include <linux/kernel.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 6b20d3d487be..bd2b65b028f4 100644
--- a/drivers/serial/altera_jtag_uart.c
+++ b/drivers/serial/altera_jtag_uart.c
@@ -8,6 +8,7 @@
#include <dm.h>
#include <errno.h>
#include <serial.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <linux/bitops.h>
#include <linux/errno.h>
diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c
index ea9eb206a109..3d309885c2c2 100644
--- a/drivers/serial/altera_uart.c
+++ b/drivers/serial/altera_uart.c
@@ -8,6 +8,7 @@
#include <dm.h>
#include <errno.h>
#include <serial.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <linux/bitops.h>
#include <linux/errno.h>
diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c
index 270f61cc0741..a8faa58f2719 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 <stdbool.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 f6e14cc90216..84bf36f3be59 100644
--- a/drivers/serial/atmel_usart.c
+++ b/drivers/serial/atmel_usart.c
@@ -10,6 +10,7 @@
#include <dm.h>
#include <errno.h>
#include <malloc.h>
+#include <stdbool.h>
#include <watchdog.h>
#include <serial.h>
#include <debug_uart.h>
diff --git a/drivers/serial/lpc32xx_hsuart.c b/drivers/serial/lpc32xx_hsuart.c
index 598ae08c668e..49ca3ff1320b 100644
--- a/drivers/serial/lpc32xx_hsuart.c
+++ b/drivers/serial/lpc32xx_hsuart.c
@@ -7,6 +7,7 @@
#include <clock_legacy.h>
#include <dm.h>
#include <serial.h>
+#include <stdbool.h>
#include <dm/platform_data/lpc32xx_hsuart.h>
#include <linux/errno.h>
diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c
index 603a8cb59774..b0b69cf96f75 100644
--- a/drivers/serial/ns16550.c
+++ b/drivers/serial/ns16550.c
@@ -17,6 +17,7 @@
#include <asm/global_data.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/types.h>
#include <asm/io.h>
diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c
index aef4c75d3880..c811524e3579 100644
--- a/drivers/serial/sandbox.c
+++ b/drivers/serial/sandbox.c
@@ -21,6 +21,7 @@
#include <linux/compiler.h>
#include <asm/state.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c
index 9b679a5a6af2..2eae95fd62bf 100644
--- a/drivers/serial/serial-uclass.c
+++ b/drivers/serial/serial-uclass.c
@@ -20,6 +20,7 @@
#include <dm/of_access.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c
index a6839f465dc5..0301288b5ef0 100644
--- a/drivers/serial/serial.c
+++ b/drivers/serial/serial.c
@@ -17,6 +17,7 @@
#include <errno.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/serial/serial_ar933x.c b/drivers/serial/serial_ar933x.c
index a16d6a6eca61..fdcd62705ad5 100644
--- a/drivers/serial/serial_ar933x.c
+++ b/drivers/serial/serial_ar933x.c
@@ -15,6 +15,7 @@
#include <dm/pinctrl.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <mach/ar71xx_regs.h>
#define AR933X_UART_DATA_REG 0x00
diff --git a/drivers/serial/serial_arc.c b/drivers/serial/serial_arc.c
index c1be34960ecf..4205ffdd0dff 100644
--- a/drivers/serial/serial_arc.c
+++ b/drivers/serial/serial_arc.c
@@ -10,6 +10,7 @@
#include <common.h>
#include <dm.h>
#include <serial.h>
+#include <stdbool.h>
#include <asm/global_data.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/serial/serial_bcm283x_mu.c b/drivers/serial/serial_bcm283x_mu.c
index d9ebb273ddc5..6e54e4ca72f0 100644
--- a/drivers/serial/serial_bcm283x_mu.c
+++ b/drivers/serial/serial_bcm283x_mu.c
@@ -17,6 +17,7 @@
#include <common.h>
#include <dm.h>
#include <errno.h>
+#include <stdbool.h>
#include <watchdog.h>
#include <asm/gpio.h>
#include <asm/io.h>
diff --git a/drivers/serial/serial_bcm283x_pl011.c b/drivers/serial/serial_bcm283x_pl011.c
index efb6eb60b356..f2a35e4b4d06 100644
--- a/drivers/serial/serial_bcm283x_pl011.c
+++ b/drivers/serial/serial_bcm283x_pl011.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <dm.h>
+#include <stdbool.h>
#include <asm/gpio.h>
#include <dm/pinctrl.h>
#include <dm/platform_data/serial_pl01x.h>
diff --git a/drivers/serial/serial_bcm6345.c b/drivers/serial/serial_bcm6345.c
index 309cbf63af9f..a90bfc7f5ed7 100644
--- a/drivers/serial/serial_bcm6345.c
+++ b/drivers/serial/serial_bcm6345.c
@@ -12,6 +12,7 @@
#include <errno.h>
#include <malloc.h>
#include <serial.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <asm/types.h>
#include <linux/errno.h>
diff --git a/drivers/serial/serial_cortina.c b/drivers/serial/serial_cortina.c
index c0beba19f58a..001fca79f980 100644
--- a/drivers/serial/serial_cortina.c
+++ b/drivers/serial/serial_cortina.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <dm.h>
#include <errno.h>
+#include <stdbool.h>
#include <watchdog.h>
#include <asm/io.h>
#include <serial.h>
diff --git a/drivers/serial/serial_efi.c b/drivers/serial/serial_efi.c
index df3a09010243..4739c5a20e8d 100644
--- a/drivers/serial/serial_efi.c
+++ b/drivers/serial/serial_efi.c
@@ -12,6 +12,7 @@
#include <errno.h>
#include <fdtdec.h>
#include <log.h>
+#include <stdbool.h>
#include <linux/compiler.h>
#include <asm/io.h>
#include <serial.h>
diff --git a/drivers/serial/serial_linflexuart.c b/drivers/serial/serial_linflexuart.c
index d9be526ffe2e..b9b947a930af 100644
--- a/drivers/serial/serial_linflexuart.c
+++ b/drivers/serial/serial_linflexuart.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <dm.h>
#include <errno.h>
+#include <stdbool.h>
#include <watchdog.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c
index 1017981f97c2..45ae154b6330 100644
--- a/drivers/serial/serial_lpuart.c
+++ b/drivers/serial/serial_lpuart.c
@@ -9,6 +9,7 @@
#include <dm.h>
#include <fsl_lpuart.h>
#include <log.h>
+#include <stdbool.h>
#include <watchdog.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/drivers/serial/serial_mcf.c b/drivers/serial/serial_mcf.c
index 2d2f07e369b7..f1670a0eddd7 100644
--- a/drivers/serial/serial_mcf.c
+++ b/drivers/serial/serial_mcf.c
@@ -17,6 +17,7 @@
#include <common.h>
#include <dm.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <dm/platform_data/serial_coldfire.h>
#include <serial.h>
diff --git a/drivers/serial/serial_meson.c b/drivers/serial/serial_meson.c
index 80141642af84..63875c626cdd 100644
--- a/drivers/serial/serial_meson.c
+++ b/drivers/serial/serial_meson.c
@@ -7,6 +7,7 @@
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
+#include <stdbool.h>
#include <linux/bitops.h>
#include <linux/compiler.h>
#include <serial.h>
diff --git a/drivers/serial/serial_mpc8xx.c b/drivers/serial/serial_mpc8xx.c
index 7f0d130963d5..7e64e415fb6d 100644
--- a/drivers/serial/serial_mpc8xx.c
+++ b/drivers/serial/serial_mpc8xx.c
@@ -8,6 +8,7 @@
#include <command.h>
#include <dm.h>
#include <serial.h>
+#include <stdbool.h>
#include <watchdog.h>
#include <asm/cpm_8xx.h>
#include <asm/global_data.h>
diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c
index 0809f1ff8a9f..a86563e8d8fc 100644
--- a/drivers/serial/serial_msm.c
+++ b/drivers/serial/serial_msm.c
@@ -14,6 +14,7 @@
#include <errno.h>
#include <malloc.h>
#include <serial.h>
+#include <stdbool.h>
#include <watchdog.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/drivers/serial/serial_mtk.c b/drivers/serial/serial_mtk.c
index 74b5cc880c19..c028d760f2f1 100644
--- a/drivers/serial/serial_mtk.c
+++ b/drivers/serial/serial_mtk.c
@@ -19,6 +19,7 @@
#include <asm/types.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
struct mtk_serial_regs {
diff --git a/drivers/serial/serial_mvebu_a3700.c b/drivers/serial/serial_mvebu_a3700.c
index 7e4cd6c4b49b..a5674e6b13bc 100644
--- a/drivers/serial/serial_mvebu_a3700.c
+++ b/drivers/serial/serial_mvebu_a3700.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <dm.h>
#include <serial.h>
+#include <stdbool.h>
#include <asm/io.h>
struct mvebu_platdata {
diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c
index 1c08f3ec7957..d13dbeb3cef5 100644
--- a/drivers/serial/serial_mxc.c
+++ b/drivers/serial/serial_mxc.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <dm.h>
#include <errno.h>
+#include <stdbool.h>
#include <watchdog.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/clock.h>
diff --git a/drivers/serial/serial_nulldev.c b/drivers/serial/serial_nulldev.c
index c92ae698088a..f7ce9f5b5114 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 <stdbool.h>
#include <linux/errno.h>
static int nulldev_serial_setbrg(struct udevice *dev, int baudrate)
diff --git a/drivers/serial/serial_owl.c b/drivers/serial/serial_owl.c
index d721e24e4bfe..4ac5d78753bc 100644
--- a/drivers/serial/serial_owl.c
+++ b/drivers/serial/serial_owl.c
@@ -12,6 +12,7 @@
#include <errno.h>
#include <fdtdec.h>
#include <serial.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <asm/types.h>
#include <linux/bitops.h>
diff --git a/drivers/serial/serial_pic32.c b/drivers/serial/serial_pic32.c
index 8e420fb764bc..f1473d6cffab 100644
--- a/drivers/serial/serial_pic32.c
+++ b/drivers/serial/serial_pic32.c
@@ -12,6 +12,7 @@
#include <asm/global_data.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.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 a472e8ca5de9..1f4e54628fa2 100644
--- a/drivers/serial/serial_pl01x.c
+++ b/drivers/serial/serial_pl01x.c
@@ -11,6 +11,7 @@
/* Simple U-Boot driver for the PrimeCell PL010/PL011 UARTs */
#include <common.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <linux/errno.h>
/* For get_bus_freq() */
diff --git a/drivers/serial/serial_pl01x_internal.h b/drivers/serial/serial_pl01x_internal.h
index c5c706b153e0..a2d696e6c274 100644
--- a/drivers/serial/serial_pl01x_internal.h
+++ b/drivers/serial/serial_pl01x_internal.h
@@ -18,6 +18,7 @@
* We can use a combined structure for PL010 and PL011, because they overlap
* only in common registers.
*/
+#include <stdbool.h>
struct pl01x_regs {
u32 dr; /* 0x00 Data register */
u32 ecr; /* 0x04 Error clear register (Write) */
diff --git a/drivers/serial/serial_pxa.c b/drivers/serial/serial_pxa.c
index e20f0c87540a..459ce7817127 100644
--- a/drivers/serial/serial_pxa.c
+++ b/drivers/serial/serial_pxa.c
@@ -21,6 +21,7 @@
#include <common.h>
#include <hang.h>
+#include <stdbool.h>
#include <vsprintf.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/regs-uart.h>
diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c
index 1a939628a5aa..0e8006334522 100644
--- a/drivers/serial/serial_s5p.c
+++ b/drivers/serial/serial_s5p.c
@@ -11,6 +11,7 @@
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <linux/compiler.h>
#include <asm/io.h>
diff --git a/drivers/serial/serial_sh.c b/drivers/serial/serial_sh.c
index e596c042ca6b..e87f1d0ecfe0 100644
--- a/drivers/serial/serial_sh.c
+++ b/drivers/serial/serial_sh.c
@@ -10,6 +10,7 @@
#include <errno.h>
#include <clk.h>
#include <dm.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <asm/processor.h>
diff --git a/drivers/serial/serial_sti_asc.c b/drivers/serial/serial_sti_asc.c
index 0cb53d7ae3f1..d3d1b74478a6 100644
--- a/drivers/serial/serial_sti_asc.c
+++ b/drivers/serial/serial_sti_asc.c
@@ -10,6 +10,7 @@
#include <dm.h>
#include <log.h>
#include <serial.h>
+#include <stdbool.h>
#include <asm/global_data.h>
#include <asm/io.h>
#include <linux/bitops.h>
diff --git a/drivers/serial/serial_stm32.c b/drivers/serial/serial_stm32.c
index 5cd4c815cfd9..c5d8d3f3dde3 100644
--- a/drivers/serial/serial_stm32.c
+++ b/drivers/serial/serial_stm32.c
@@ -16,6 +16,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "serial_stm32.h"
#include <dm/device_compat.h>
diff --git a/drivers/serial/serial_stm32.h b/drivers/serial/serial_stm32.h
index 57376518880a..0c541ead06e1 100644
--- a/drivers/serial/serial_stm32.h
+++ b/drivers/serial/serial_stm32.h
@@ -7,6 +7,7 @@
#ifndef _SERIAL_STM32_
#define _SERIAL_STM32_
+#include <stdbool.h>
#include <linux/bitops.h>
#define CR1_OFFSET(x) (x ? 0x0c : 0x00)
#define CR3_OFFSET(x) (x ? 0x14 : 0x08)
diff --git a/drivers/serial/serial_uniphier.c b/drivers/serial/serial_uniphier.c
index a098028ca001..10becca74537 100644
--- a/drivers/serial/serial_uniphier.c
+++ b/drivers/serial/serial_uniphier.c
@@ -11,6 +11,7 @@
#include <linux/bitops.h>
#include <linux/bug.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <linux/serial_reg.h>
#include <linux/sizes.h>
#include <linux/errno.h>
diff --git a/drivers/serial/serial_xuartlite.c b/drivers/serial/serial_xuartlite.c
index fd9e227557f2..f91be0c220a3 100644
--- a/drivers/serial/serial_xuartlite.c
+++ b/drivers/serial/serial_xuartlite.c
@@ -10,6 +10,7 @@
#include <config.h>
#include <common.h>
#include <dm.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <linux/bitops.h>
#include <linux/compiler.h>
diff --git a/drivers/serial/usbtty.c b/drivers/serial/usbtty.c
index f0b64809560e..4e2e09edd3fc 100644
--- a/drivers/serial/usbtty.c
+++ b/drivers/serial/usbtty.c
@@ -14,6 +14,7 @@
#include <serial.h>
#include <stdio_dev.h>
#include <asm/unaligned.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "usbtty.h"
#include "usb_cdc_acm.h"
diff --git a/drivers/smem/msm_smem.c b/drivers/smem/msm_smem.c
index ba9d108173cd..3a5ee3bbce04 100644
--- a/drivers/smem/msm_smem.c
+++ b/drivers/smem/msm_smem.c
@@ -20,6 +20,7 @@
#include <linux/ioport.h>
#include <linux/io.h>
#include <smem.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/soc/soc-uclass.c b/drivers/soc/soc-uclass.c
index 29d586e0bcdd..417a682e6499 100644
--- a/drivers/soc/soc-uclass.c
+++ b/drivers/soc/soc-uclass.c
@@ -8,6 +8,7 @@
#include <soc.h>
#include <dm.h>
#include <errno.h>
+#include <stdbool.h>
#include <dm/lists.h>
#include <dm/root.h>
#include <linux/errno.h>
diff --git a/drivers/soc/ti/k3-navss-ringacc.c b/drivers/soc/ti/k3-navss-ringacc.c
index 21c4b3fe1945..c9a8b1ed0199 100644
--- a/drivers/soc/ti/k3-navss-ringacc.c
+++ b/drivers/soc/ti/k3-navss-ringacc.c
@@ -22,6 +22,7 @@
#include <linux/dma-mapping.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.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 c121fec52d43..68fa28a6f803 100644
--- a/drivers/soc/ti/keystone_serdes.c
+++ b/drivers/soc/ti/keystone_serdes.c
@@ -12,6 +12,7 @@
#include <asm/ti-common/keystone_serdes.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#define SERDES_CMU_REGS(x) (0x0000 + (0x0c00 * (x)))
#define SERDES_LANE_REGS(x) (0x0200 + (0x200 * (x)))
diff --git a/drivers/sound/da7219.c b/drivers/sound/da7219.c
index 41aa338b55f5..e9d56b1f869c 100644
--- a/drivers/sound/da7219.c
+++ b/drivers/sound/da7219.c
@@ -21,6 +21,7 @@
#include <dt-bindings/sound/nhlt.h>
#include <dm/acpi.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#define DA7219_ACPI_HID "DLGS7219"
diff --git a/drivers/sound/max98088.c b/drivers/sound/max98088.c
index 6c2caf3f77fd..d1d560ae6da2 100644
--- a/drivers/sound/max98088.c
+++ b/drivers/sound/max98088.c
@@ -18,6 +18,7 @@
#include <sound.h>
#include <asm/gpio.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "maxim_codec.h"
#include "max98088.h"
diff --git a/drivers/sound/max98095.c b/drivers/sound/max98095.c
index db52ccdea3b2..18632511499c 100644
--- a/drivers/sound/max98095.c
+++ b/drivers/sound/max98095.c
@@ -17,6 +17,7 @@
#include <sound.h>
#include <asm/gpio.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "i2s.h"
#include "max98095.h"
diff --git a/drivers/sound/max98357a.c b/drivers/sound/max98357a.c
index 8fbcf80abcba..318dfe76e39f 100644
--- a/drivers/sound/max98357a.c
+++ b/drivers/sound/max98357a.c
@@ -21,6 +21,7 @@
#include <dt-bindings/sound/nhlt.h>
#include <dm/acpi.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
struct max98357a_priv {
struct gpio_desc sdmode_gpio;
diff --git a/drivers/sound/rockchip_i2s.c b/drivers/sound/rockchip_i2s.c
index a20c8e78b88b..37fb5a5d3405 100644
--- a/drivers/sound/rockchip_i2s.c
+++ b/drivers/sound/rockchip_i2s.c
@@ -15,6 +15,7 @@
#include <asm/io.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
struct rk_i2s_regs {
u32 txcr; /* I2S_TXCR, 0x00 */
diff --git a/drivers/sound/rt5677.c b/drivers/sound/rt5677.c
index bfe78ff6b4f6..3eb99f31a4a9 100644
--- a/drivers/sound/rt5677.c
+++ b/drivers/sound/rt5677.c
@@ -10,6 +10,7 @@
#include <dm.h>
#include <i2c.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "rt5677.h"
#include <log.h>
diff --git a/drivers/sound/sandbox.c b/drivers/sound/sandbox.c
index 1c30f06350f6..b1c1fca004f2 100644
--- a/drivers/sound/sandbox.c
+++ b/drivers/sound/sandbox.c
@@ -11,6 +11,7 @@
#include <i2s.h>
#include <log.h>
#include <sound.h>
+#include <stdbool.h>
#include <asm/sdl.h>
#include <linux/errno.h>
diff --git a/drivers/sound/tegra_ahub.c b/drivers/sound/tegra_ahub.c
index cb27be0a7cb3..345d9746f256 100644
--- a/drivers/sound/tegra_ahub.c
+++ b/drivers/sound/tegra_ahub.c
@@ -12,6 +12,7 @@
#include <i2s.h>
#include <log.h>
#include <misc.h>
+#include <stdbool.h>
#include <time.h>
#include <asm/io.h>
#include <asm/arch-tegra/tegra_ahub.h>
diff --git a/drivers/sound/wm8994.c b/drivers/sound/wm8994.c
index c37c787549d5..e8ec0517d158 100644
--- a/drivers/sound/wm8994.c
+++ b/drivers/sound/wm8994.c
@@ -18,6 +18,7 @@
#include <asm/arch/cpu.h>
#include <asm/arch/sound.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "wm8994.h"
#include "wm8994_registers.h"
diff --git a/drivers/spi/atcspi200_spi.c b/drivers/spi/atcspi200_spi.c
index aed5f64eabba..ab60a47945d6 100644
--- a/drivers/spi/atcspi200_spi.c
+++ b/drivers/spi/atcspi200_spi.c
@@ -16,6 +16,7 @@
#include <asm/io.h>
#include <dm.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c
index f270eea61e84..c69d7154cb5a 100644
--- a/drivers/spi/atmel-quadspi.c
+++ b/drivers/spi/atmel-quadspi.c
@@ -24,6 +24,7 @@
#include <linux/io.h>
#include <linux/iopoll.h>
#include <linux/ioport.h>
+#include <linux/kernel.h>
#include <mach/clk.h>
#include <spi.h>
#include <spi-mem.h>
diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c
index 1a95cfb9f65b..5e4ae989c183 100644
--- a/drivers/spi/atmel_spi.c
+++ b/drivers/spi/atmel_spi.c
@@ -18,6 +18,7 @@
#endif
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
/*
diff --git a/drivers/spi/bcm63xx_hsspi.c b/drivers/spi/bcm63xx_hsspi.c
index f45214fbda4a..6e2c476d2814 100644
--- a/drivers/spi/bcm63xx_hsspi.c
+++ b/drivers/spi/bcm63xx_hsspi.c
@@ -19,6 +19,7 @@
#include <asm/io.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#define HSSPI_PP 0
diff --git a/drivers/spi/bcmstb_spi.c b/drivers/spi/bcmstb_spi.c
index 539abcfd953f..27ed0203addb 100644
--- a/drivers/spi/bcmstb_spi.c
+++ b/drivers/spi/bcmstb_spi.c
@@ -5,6 +5,7 @@
* Author: Thomas Fitzsimmons <fitzsim at fitzsim.org>
*/
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/drivers/spi/cadence_qspi.h b/drivers/spi/cadence_qspi.h
index ae459c74a192..0ecd461b79a1 100644
--- a/drivers/spi/cadence_qspi.h
+++ b/drivers/spi/cadence_qspi.h
@@ -8,6 +8,7 @@
#define __CADENCE_QSPI_H__
#include <reset.h>
+#include <stdbool.h>
#define CQSPI_IS_ADDR(cmd_len) (cmd_len > 1 ? 1 : 0)
diff --git a/drivers/spi/cadence_qspi_apb.c b/drivers/spi/cadence_qspi_apb.c
index d97b299a93c8..dc066f17e3d0 100644
--- a/drivers/spi/cadence_qspi_apb.c
+++ b/drivers/spi/cadence_qspi_apb.c
@@ -38,6 +38,7 @@
#include <spi.h>
#include <spi-mem.h>
#include <malloc.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "cadence_qspi.h"
diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c
index 7058ba9acf52..4ea77a150513 100644
--- a/drivers/spi/davinci_spi.c
+++ b/drivers/spi/davinci_spi.c
@@ -12,6 +12,7 @@
#include <log.h>
#include <spi.h>
#include <malloc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/drivers/spi/designware_spi.c b/drivers/spi/designware_spi.c
index f6c63435147e..a960c61f350e 100644
--- a/drivers/spi/designware_spi.c
+++ b/drivers/spi/designware_spi.c
@@ -26,6 +26,7 @@
#include <linux/errno.h>
#include <linux/iopoll.h>
#include <asm/io.h>
+#include <linux/kernel.h>
/* Register offsets */
#define DW_SPI_CTRL0 0x00
diff --git a/drivers/spi/exynos_spi.c b/drivers/spi/exynos_spi.c
index cec59208395d..400269fa39d5 100644
--- a/drivers/spi/exynos_spi.c
+++ b/drivers/spi/exynos_spi.c
@@ -22,6 +22,7 @@
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/spi/fsl_dspi.c b/drivers/spi/fsl_dspi.c
index 190b60b3c4f0..b5f7d3e08a70 100644
--- a/drivers/spi/fsl_dspi.c
+++ b/drivers/spi/fsl_dspi.c
@@ -11,6 +11,7 @@
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.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 2e85c25907d5..9eae577656ce 100644
--- a/drivers/spi/fsl_espi.c
+++ b/drivers/spi/fsl_espi.c
@@ -14,6 +14,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <malloc.h>
diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c
index 195808c4066f..314d3f894844 100644
--- a/drivers/spi/fsl_qspi.c
+++ b/drivers/spi/fsl_qspi.c
@@ -30,6 +30,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 51d283c5e6fa..bf6cd061b533 100644
--- a/drivers/spi/ich.c
+++ b/drivers/spi/ich.c
@@ -30,6 +30,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <linux/string.h>
diff --git a/drivers/spi/kirkwood_spi.c b/drivers/spi/kirkwood_spi.c
index 3659e5e8adec..a127135323d4 100644
--- a/drivers/spi/kirkwood_spi.c
+++ b/drivers/spi/kirkwood_spi.c
@@ -12,6 +12,7 @@
#include <log.h>
#include <malloc.h>
#include <spi.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/io.h>
#include <asm/arch/soc.h>
diff --git a/drivers/spi/meson_spifc.c b/drivers/spi/meson_spifc.c
index 08b3859678fd..f61bcd5e2de9 100644
--- a/drivers/spi/meson_spifc.c
+++ b/drivers/spi/meson_spifc.c
@@ -18,6 +18,7 @@
#include <linux/bitfield.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/* register map */
diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c
index eedb29216cb6..f5ceeaac97d0 100644
--- a/drivers/spi/mpc8xxx_spi.c
+++ b/drivers/spi/mpc8xxx_spi.c
@@ -19,6 +19,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
enum {
SPI_EV_NE = BIT(31 - 22), /* Receiver Not Empty */
diff --git a/drivers/spi/mscc_bb_spi.c b/drivers/spi/mscc_bb_spi.c
index e77447b65564..a3bbdf848cda 100644
--- a/drivers/spi/mscc_bb_spi.c
+++ b/drivers/spi/mscc_bb_spi.c
@@ -11,6 +11,7 @@
#include <log.h>
#include <malloc.h>
#include <spi.h>
+#include <stdbool.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <linux/bitops.h>
diff --git a/drivers/spi/mt7621_spi.c b/drivers/spi/mt7621_spi.c
index 581a9bd44c4a..f4b5ad892455 100644
--- a/drivers/spi/mt7621_spi.c
+++ b/drivers/spi/mt7621_spi.c
@@ -18,6 +18,7 @@
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#define MT7621_RX_FIFO_LEN 32
diff --git a/drivers/spi/mvebu_a3700_spi.c b/drivers/spi/mvebu_a3700_spi.c
index 502f5153cc43..f3e28d0ed694 100644
--- a/drivers/spi/mvebu_a3700_spi.c
+++ b/drivers/spi/mvebu_a3700_spi.c
@@ -16,6 +16,7 @@
#include <asm/io.h>
#include <dm/device_compat.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/spi/mxc_spi.c b/drivers/spi/mxc_spi.c
index 00e3b5962279..db1673fa57df 100644
--- a/drivers/spi/mxc_spi.c
+++ b/drivers/spi/mxc_spi.c
@@ -20,6 +20,7 @@
#include <asm/arch/imx-regs.h>
#include <asm/arch/clock.h>
#include <asm/mach-imx/spi.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/spi/mxs_spi.c b/drivers/spi/mxs_spi.c
index 8c541dc03e69..abc7f014d7d5 100644
--- a/drivers/spi/mxs_spi.c
+++ b/drivers/spi/mxs_spi.c
@@ -30,6 +30,7 @@
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
#include <asm/mach-imx/dma.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define MXS_SPI_MAX_TIMEOUT 1000000
diff --git a/drivers/spi/pic32_spi.c b/drivers/spi/pic32_spi.c
index 222c30a1ebdd..e1fc52578399 100644
--- a/drivers/spi/pic32_spi.c
+++ b/drivers/spi/pic32_spi.c
@@ -18,6 +18,7 @@
#include <malloc.h>
#include <spi.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <asm/types.h>
#include <asm/io.h>
diff --git a/drivers/spi/pl022_spi.c b/drivers/spi/pl022_spi.c
index 236de5b54a3f..5618ab21638e 100644
--- a/drivers/spi/pl022_spi.c
+++ b/drivers/spi/pl022_spi.c
@@ -17,6 +17,7 @@
#include <linux/errno.h>
#include <linux/io.h>
#include <spi.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#define SSP_CR0 0x000
diff --git a/drivers/spi/renesas_rpc_spi.c b/drivers/spi/renesas_rpc_spi.c
index 9090667bf0fb..95fcb5723f2d 100644
--- a/drivers/spi/renesas_rpc_spi.c
+++ b/drivers/spi/renesas_rpc_spi.c
@@ -19,6 +19,7 @@
#include <linux/errno.h>
#include <spi.h>
#include <wait_bit.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define RPC_CMNCR 0x0000 /* R/W */
diff --git a/drivers/spi/rk_spi.c b/drivers/spi/rk_spi.c
index c5363c24190d..ec998eda0829 100644
--- a/drivers/spi/rk_spi.c
+++ b/drivers/spi/rk_spi.c
@@ -24,6 +24,7 @@
#include <asm/arch-rockchip/clock.h>
#include <asm/arch-rockchip/periph.h>
#include <dm/pinctrl.h>
+#include <linux/kernel.h>
#include "rk_spi.h"
/* Change to 1 to output registers at the start of each transaction */
diff --git a/drivers/spi/sh_qspi.c b/drivers/spi/sh_qspi.c
index 49f3fdb6928c..bf3a7bf919ce 100644
--- a/drivers/spi/sh_qspi.c
+++ b/drivers/spi/sh_qspi.c
@@ -15,6 +15,7 @@
#include <asm/arch/rmobile.h>
#include <asm/io.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
/* SH QSPI register bit masks <REG>_<BIT> */
#define SPCR_MSTR 0x08
diff --git a/drivers/spi/spi-mem-nodm.c b/drivers/spi/spi-mem-nodm.c
index 42a6126dd7bc..6cc908dcdf87 100644
--- a/drivers/spi/spi-mem-nodm.c
+++ b/drivers/spi/spi-mem-nodm.c
@@ -8,6 +8,7 @@
#include <spi.h>
#include <spi-mem.h>
#include <linux/errno.h>
+#include <linux/kernel.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 01e9b6928cfc..da759b6907cf 100644
--- a/drivers/spi/spi-mem.c
+++ b/drivers/spi/spi-mem.c
@@ -21,6 +21,7 @@
#include <spi.h>
#include <spi-mem.h>
#include <dm/device_compat.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#endif
diff --git a/drivers/spi/spi-sifive.c b/drivers/spi/spi-sifive.c
index 3c0300d68d6d..708bf8989a8a 100644
--- a/drivers/spi/spi-sifive.c
+++ b/drivers/spi/spi-sifive.c
@@ -17,6 +17,7 @@
#include <asm/io.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.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 c19a24a1c64c..80c406d7b368 100644
--- a/drivers/spi/spi-sunxi.c
+++ b/drivers/spi/spi-sunxi.c
@@ -32,6 +32,7 @@
#include <dm/device_compat.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <asm/bitops.h>
#include <asm/gpio.h>
diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c
index c59ae3ff9b30..6d397f2ebd2d 100644
--- a/drivers/spi/spi-uclass.c
+++ b/drivers/spi/spi-uclass.c
@@ -16,6 +16,7 @@
#include <dm/lists.h>
#include <dm/util.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/spi/stm32_qspi.c b/drivers/spi/stm32_qspi.c
index 704a66d0c77f..882bc1bdfc54 100644
--- a/drivers/spi/stm32_qspi.c
+++ b/drivers/spi/stm32_qspi.c
@@ -20,6 +20,7 @@
#include <linux/errno.h>
#include <linux/iopoll.h>
#include <linux/ioport.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/sizes.h>
diff --git a/drivers/spi/stm32_spi.c b/drivers/spi/stm32_spi.c
index d37404f0c8cc..635ead98dbda 100644
--- a/drivers/spi/stm32_spi.c
+++ b/drivers/spi/stm32_spi.c
@@ -16,6 +16,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <asm/io.h>
diff --git a/drivers/spi/uniphier_spi.c b/drivers/spi/uniphier_spi.c
index 742554a09ab4..22cf974a905d 100644
--- a/drivers/spi/uniphier_spi.c
+++ b/drivers/spi/uniphier_spi.c
@@ -18,6 +18,7 @@
#include <linux/io.h>
#include <spi.h>
#include <wait_bit.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c
index 1386dc86ed62..de988f4e9754 100644
--- a/drivers/spi/zynqmp_gqspi.c
+++ b/drivers/spi/zynqmp_gqspi.c
@@ -24,6 +24,7 @@
#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.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 d06fc34c6973..9212449a7ee8 100644
--- a/drivers/spmi/spmi-msm.c
+++ b/drivers/spmi/spmi-msm.c
@@ -11,6 +11,7 @@
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/drivers/spmi/spmi-sandbox.c b/drivers/spmi/spmi-sandbox.c
index f1e0d6915030..e2f6fc17e717 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 <stdbool.h>
#include <linux/errno.h>
#include <spmi/spmi.h>
#include <asm/gpio.h>
diff --git a/drivers/sysreset/sysreset_mpc83xx.c b/drivers/sysreset/sysreset_mpc83xx.c
index 603dbbaea4ac..c358a3b490c5 100644
--- a/drivers/sysreset/sysreset_mpc83xx.c
+++ b/drivers/sysreset/sysreset_mpc83xx.c
@@ -16,6 +16,7 @@
#include <asm/ppc.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "sysreset_mpc83xx.h"
diff --git a/drivers/tee/broadcom/chimp_optee.c b/drivers/tee/broadcom/chimp_optee.c
index a92fd9c95627..545bb3fe2227 100644
--- a/drivers/tee/broadcom/chimp_optee.c
+++ b/drivers/tee/broadcom/chimp_optee.c
@@ -8,6 +8,7 @@
#include <tee.h>
#include <broadcom/chimp.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#ifdef CONFIG_CHIMP_OPTEE
diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c
index c1460999cbec..fb656bed92f3 100644
--- a/drivers/tee/optee/core.c
+++ b/drivers/tee/optee/core.c
@@ -12,6 +12,7 @@
#include <linux/err.h>
#include <linux/errno.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "optee_smc.h"
diff --git a/drivers/tee/optee/optee_smc.h b/drivers/tee/optee/optee_smc.h
index 4d643b2599d6..ba8a43d5c091 100644
--- a/drivers/tee/optee/optee_smc.h
+++ b/drivers/tee/optee/optee_smc.h
@@ -6,6 +6,7 @@
#ifndef OPTEE_SMC_H
#define OPTEE_SMC_H
+#include <stdbool.h>
#include <linux/arm-smccc.h>
#include <linux/bitops.h>
diff --git a/drivers/tee/optee/rpmb.c b/drivers/tee/optee/rpmb.c
index 0804fc963cf5..a9ea53854fca 100644
--- a/drivers/tee/optee/rpmb.c
+++ b/drivers/tee/optee/rpmb.c
@@ -9,6 +9,7 @@
#include <tee.h>
#include <mmc.h>
#include <dm/device_compat.h>
+#include <linux/kernel.h>
#include "optee_msg.h"
#include "optee_private.h"
diff --git a/drivers/tee/sandbox.c b/drivers/tee/sandbox.c
index 14df3ce01304..3a5d106f9567 100644
--- a/drivers/tee/sandbox.c
+++ b/drivers/tee/sandbox.c
@@ -8,6 +8,7 @@
#include <stdio.h>
#include <tee.h>
#include <linux/errno.h>
+#include <linux/kernel.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 f42cc1becb83..1dc806db89be 100644
--- a/drivers/tee/tee-uclass.c
+++ b/drivers/tee/tee-uclass.c
@@ -7,6 +7,7 @@
#include <dm.h>
#include <log.h>
#include <malloc.h>
+#include <stdbool.h>
#include <tee.h>
#include <dm/device-internal.h>
#include <dm/uclass-internal.h>
diff --git a/drivers/thermal/imx_scu_thermal.c b/drivers/thermal/imx_scu_thermal.c
index 17c92ae0635e..6b822f18854c 100644
--- a/drivers/thermal/imx_scu_thermal.c
+++ b/drivers/thermal/imx_scu_thermal.c
@@ -8,6 +8,7 @@
#include <dm.h>
#include <errno.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <thermal.h>
#include <asm/global_data.h>
diff --git a/drivers/thermal/imx_tmu.c b/drivers/thermal/imx_tmu.c
index 279ea5a322ea..8a67d9aa58cc 100644
--- a/drivers/thermal/imx_tmu.c
+++ b/drivers/thermal/imx_tmu.c
@@ -6,6 +6,7 @@
#include <config.h>
#include <common.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/drivers/timer/sandbox_timer.c b/drivers/timer/sandbox_timer.c
index 2120b02d4444..fd0472485304 100644
--- a/drivers/timer/sandbox_timer.c
+++ b/drivers/timer/sandbox_timer.c
@@ -4,6 +4,7 @@
*/
#include <common.h>
+#include <compiler.h>
#include <dm.h>
#include <errno.h>
#include <time.h>
diff --git a/drivers/timer/timer-uclass.c b/drivers/timer/timer-uclass.c
index 01b3a42f3e07..7dea5b326371 100644
--- a/drivers/timer/timer-uclass.c
+++ b/drivers/timer/timer-uclass.c
@@ -4,6 +4,7 @@
*/
#include <common.h>
+#include <compiler.h>
#include <dm.h>
#include <init.h>
#include <asm/global_data.h>
diff --git a/drivers/timer/tsc_timer.c b/drivers/timer/tsc_timer.c
index f211f9fe142f..2ebd6032b91a 100644
--- a/drivers/timer/tsc_timer.c
+++ b/drivers/timer/tsc_timer.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <bootstage.h>
+#include <compiler.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>
@@ -22,6 +23,7 @@
#include <asm/msr.h>
#include <asm/u-boot-x86.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#define MAX_NUM_FREQS 9
diff --git a/drivers/tpm/cr50_i2c.c b/drivers/tpm/cr50_i2c.c
index 9ba0466f9298..6fbde9f2553e 100644
--- a/drivers/tpm/cr50_i2c.c
+++ b/drivers/tpm/cr50_i2c.c
@@ -23,6 +23,7 @@
#include <asm/arch/pm.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
enum {
diff --git a/drivers/tpm/tpm2_tis_sandbox.c b/drivers/tpm/tpm2_tis_sandbox.c
index 6b61dbb88b55..f9d1205d3216 100644
--- a/drivers/tpm/tpm2_tis_sandbox.c
+++ b/drivers/tpm/tpm2_tis_sandbox.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <dm.h>
+#include <stdbool.h>
#include <stdio.h>
#include <tpm-v2.h>
#include <vsprintf.h>
diff --git a/drivers/tpm/tpm2_tis_spi.c b/drivers/tpm/tpm2_tis_spi.c
index 6303187180f1..48b59f8c36f9 100644
--- a/drivers/tpm/tpm2_tis_spi.c
+++ b/drivers/tpm/tpm2_tis_spi.c
@@ -26,6 +26,7 @@
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/compiler.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/unaligned/be_byteshift.h>
diff --git a/drivers/tpm/tpm_tis_lpc.c b/drivers/tpm/tpm_tis_lpc.c
index e6eec6bca9e8..9b81ec98aa8a 100644
--- a/drivers/tpm/tpm_tis_lpc.c
+++ b/drivers/tpm/tpm_tis_lpc.c
@@ -22,6 +22,7 @@
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 da31ec3ff561..433b21d49e7a 100644
--- a/drivers/tpm/tpm_tis_sandbox.c
+++ b/drivers/tpm/tpm_tis_sandbox.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <display_options.h>
#include <dm.h>
+#include <stdbool.h>
#include <stdio.h>
#include <tpm-v1.h>
#include <vsprintf.h>
diff --git a/drivers/tpm/tpm_tis_st33zp24_i2c.c b/drivers/tpm/tpm_tis_st33zp24_i2c.c
index b5c706b7ccf5..2759c86e1823 100644
--- a/drivers/tpm/tpm_tis_st33zp24_i2c.c
+++ b/drivers/tpm/tpm_tis_st33zp24_i2c.c
@@ -23,6 +23,7 @@
#include <vsprintf.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 33f7392431f5..c1da351ae492 100644
--- a/drivers/tpm/tpm_tis_st33zp24_spi.c
+++ b/drivers/tpm/tpm_tis_st33zp24_spi.c
@@ -23,6 +23,7 @@
#include <vsprintf.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 666a0a547978..419c8a16b36a 100644
--- a/drivers/ufs/ufs.c
+++ b/drivers/ufs/ufs.c
@@ -26,6 +26,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/dma-mapping.h>
diff --git a/drivers/ufs/ufs.h b/drivers/ufs/ufs.h
index 069888fdd906..0328db88caed 100644
--- a/drivers/ufs/ufs.h
+++ b/drivers/ufs/ufs.h
@@ -2,6 +2,7 @@
#ifndef __UFS_H
#define __UFS_H
+#include <stdbool.h>
#include "unipro.h"
struct udevice;
diff --git a/drivers/usb/cdns3/cdns3-ti.c b/drivers/usb/cdns3/cdns3-ti.c
index 5130b4c70d23..370856c9bfef 100644
--- a/drivers/usb/cdns3/cdns3-ti.c
+++ b/drivers/usb/cdns3/cdns3-ti.c
@@ -13,6 +13,7 @@
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/io.h>
+#include <linux/kernel.h>
#include <linux/usb/otg.h>
#include <malloc.h>
diff --git a/drivers/usb/cdns3/core.h b/drivers/usb/cdns3/core.h
index 0668d646fc49..70cc38666434 100644
--- a/drivers/usb/cdns3/core.h
+++ b/drivers/usb/cdns3/core.h
@@ -8,6 +8,7 @@
* Authors: Peter Chen <peter.chen at nxp.com>
* Pawel Laszczak <pawell at cadence.com>
*/
+#include <stdbool.h>
#include <linux/compiler.h>
#include <linux/types.h>
#include <linux/usb/otg.h>
diff --git a/drivers/usb/cdns3/ep0.c b/drivers/usb/cdns3/ep0.c
index 7be5c8de4e2f..f41d4a162cc7 100644
--- a/drivers/usb/cdns3/ep0.c
+++ b/drivers/usb/cdns3/ep0.c
@@ -17,6 +17,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/usb/composite.h>
#include <linux/iopoll.h>
diff --git a/drivers/usb/cdns3/gadget.c b/drivers/usb/cdns3/gadget.c
index e42b82d0c2ba..a04e5fd61016 100644
--- a/drivers/usb/cdns3/gadget.c
+++ b/drivers/usb/cdns3/gadget.c
@@ -64,6 +64,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include <linux/usb/gadget.h>
diff --git a/drivers/usb/cdns3/gadget.h b/drivers/usb/cdns3/gadget.h
index 8803fa48bd39..42216fdc259c 100644
--- a/drivers/usb/cdns3/gadget.h
+++ b/drivers/usb/cdns3/gadget.h
@@ -12,6 +12,7 @@
#ifndef __LINUX_CDNS3_GADGET
#define __LINUX_CDNS3_GADGET
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <linux/usb/gadget.h>
/*
diff --git a/drivers/usb/common/common.c b/drivers/usb/common/common.c
index 5a8d24da8218..7ac83b6dece2 100644
--- a/drivers/usb/common/common.c
+++ b/drivers/usb/common/common.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <dm.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include <linux/usb/otg.h>
diff --git a/drivers/usb/common/fsl-dt-fixup.c b/drivers/usb/common/fsl-dt-fixup.c
index a279c28bdad2..0299e5adb0c0 100644
--- a/drivers/usb/common/fsl-dt-fixup.c
+++ b/drivers/usb/common/fsl-dt-fixup.c
@@ -19,6 +19,7 @@
#include <fdt_support.h>
#include <asm/u-boot.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#ifndef CONFIG_USB_MAX_CONTROLLER_COUNT
diff --git a/drivers/usb/common/fsl-errata.c b/drivers/usb/common/fsl-errata.c
index 9eb1d2306725..e7552f1b9dfb 100644
--- a/drivers/usb/common/fsl-errata.c
+++ b/drivers/usb/common/fsl-errata.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <hwconfig.h>
#include <fsl_errata.h>
+#include <stdbool.h>
#include<fsl_usb.h>
#if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3) || \
defined(CONFIG_ARM)
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index f79f9c931664..9889a6c9e81d 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -27,6 +27,7 @@
#include <linux/ioport.h>
#include <dm.h>
#include <generic-phy.h>
+#include <linux/kernel.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index fa338119de62..e4c6042bee8d 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -24,6 +24,7 @@
#include <linux/delay.h>
#include <linux/dma-mapping.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/usb/dwc3/gadget.h b/drivers/usb/dwc3/gadget.h
index 7806ce59a27f..2f2eb18b99fc 100644
--- a/drivers/usb/dwc3/gadget.h
+++ b/drivers/usb/dwc3/gadget.h
@@ -18,6 +18,7 @@
#ifndef __DRIVERS_USB_DWC3_GADGET_H
#define __DRIVERS_USB_DWC3_GADGET_H
+#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/usb/gadget.h>
#include "io.h"
diff --git a/drivers/usb/dwc3/io.h b/drivers/usb/dwc3/io.h
index 2407f826c161..f5268d752c32 100644
--- a/drivers/usb/dwc3/io.h
+++ b/drivers/usb/dwc3/io.h
@@ -19,6 +19,7 @@
#include <cpu_func.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#define CACHELINE_SIZE CONFIG_SYS_CACHELINE_SIZE
static inline u32 dwc3_readl(void __iomem *base, u32 offset)
diff --git a/drivers/usb/emul/sandbox_flash.c b/drivers/usb/emul/sandbox_flash.c
index e63720f2550f..f7090195c146 100644
--- a/drivers/usb/emul/sandbox_flash.c
+++ b/drivers/usb/emul/sandbox_flash.c
@@ -9,6 +9,7 @@
#include <log.h>
#include <os.h>
#include <scsi.h>
+#include <stdbool.h>
#include <usb.h>
#include <linux/errno.h>
#include <linux/string.h>
diff --git a/drivers/usb/emul/sandbox_keyb.c b/drivers/usb/emul/sandbox_keyb.c
index 1c8de6d37feb..68e5f12f35d0 100644
--- a/drivers/usb/emul/sandbox_keyb.c
+++ b/drivers/usb/emul/sandbox_keyb.c
@@ -9,6 +9,7 @@
#include <log.h>
#include <os.h>
#include <scsi.h>
+#include <stdbool.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 6b309592f6bb..8d24556c2c45 100644
--- a/drivers/usb/emul/usb-emul-uclass.c
+++ b/drivers/usb/emul/usb-emul-uclass.c
@@ -10,6 +10,7 @@
#include <usb.h>
#include <dm/device-internal.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static int copy_to_unicode(char *buff, int length, const char *str)
diff --git a/drivers/usb/eth/lan7x.c b/drivers/usb/eth/lan7x.c
index c3c1ebb1cb6b..503d36c8d9fc 100644
--- a/drivers/usb/eth/lan7x.c
+++ b/drivers/usb/eth/lan7x.c
@@ -14,6 +14,7 @@
#include <vsprintf.h>
#include <linux/errno.h>
#include <linux/ethtool.h>
+#include <linux/kernel.h>
#include <linux/mii.h>
#include <linux/string.h>
#include "usb_ether.h"
diff --git a/drivers/usb/eth/lan7x.h b/drivers/usb/eth/lan7x.h
index feec7427a418..57c8293a8956 100644
--- a/drivers/usb/eth/lan7x.h
+++ b/drivers/usb/eth/lan7x.h
@@ -4,6 +4,7 @@
*/
#include <console.h>
+#include <stdbool.h>
#include <stdio.h>
#include <time.h>
#include <watchdog.h>
diff --git a/drivers/usb/eth/mcs7830.c b/drivers/usb/eth/mcs7830.c
index 02a241414ff1..f223d96559f7 100644
--- a/drivers/usb/eth/mcs7830.c
+++ b/drivers/usb/eth/mcs7830.c
@@ -18,6 +18,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 da0b285077a6..f7c46fbc25fa 100644
--- a/drivers/usb/eth/r8152.c
+++ b/drivers/usb/eth/r8152.c
@@ -17,6 +17,7 @@
#include <asm/u-boot.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/mii.h>
#include <linux/bitops.h>
#include <linux/string.h>
diff --git a/drivers/usb/eth/r8152.h b/drivers/usb/eth/r8152.h
index 10e0da8eb105..378eb8c81248 100644
--- a/drivers/usb/eth/r8152.h
+++ b/drivers/usb/eth/r8152.h
@@ -8,6 +8,7 @@
#define _RTL8152_ETH_H
#include <linux/bitops.h>
+#include <linux/kernel.h>
#define R8152_BASE_NAME "r8152"
#define PLA_IDR 0xc000
diff --git a/drivers/usb/eth/r8152_fw.c b/drivers/usb/eth/r8152_fw.c
index 7e9b13de0447..2211dc9489ec 100644
--- a/drivers/usb/eth/r8152_fw.c
+++ b/drivers/usb/eth/r8152_fw.c
@@ -9,6 +9,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "usb_ether.h"
#include "r8152.h"
diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c
index 435224c71979..482160254484 100644
--- a/drivers/usb/eth/smsc95xx.c
+++ b/drivers/usb/eth/smsc95xx.c
@@ -21,6 +21,7 @@
#include <asm/unaligned.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 54bb0118228c..ce86d2cd2551 100644
--- a/drivers/usb/eth/usb_ether.c
+++ b/drivers/usb/eth/usb_ether.c
@@ -9,6 +9,7 @@
#include <log.h>
#include <malloc.h>
#include <net.h>
+#include <stdbool.h>
#include <stdio.h>
#include <usb.h>
#include <asm/cache.h>
diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c
index 64682355daa6..e5a8872f7156 100644
--- a/drivers/usb/gadget/at91_udc.c
+++ b/drivers/usb/gadget/at91_udc.c
@@ -22,6 +22,7 @@
#include <asm/io.h>
#include <asm/gpio.h>
#include <asm/hardware.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include <mach/at91_matrix.h>
diff --git a/drivers/usb/gadget/at91_udc.h b/drivers/usb/gadget/at91_udc.h
index 668b8c4a7c63..2b2e73420add 100644
--- a/drivers/usb/gadget/at91_udc.h
+++ b/drivers/usb/gadget/at91_udc.h
@@ -13,6 +13,7 @@
* Based on AT91RM9200 datasheet revision E.
*/
+#include <linux/kernel.h>
#define AT91_UDP_FRM_NUM 0x00 /* Frame Number Register */
#define AT91_UDP_NUM (0x7ff << 0) /* Frame Number */
#define AT91_UDP_FRM_ERR (1 << 16) /* Frame Error */
diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c
index a586e16347d0..03bbe1edb620 100644
--- a/drivers/usb/gadget/atmel_usba_udc.c
+++ b/drivers/usb/gadget/atmel_usba_udc.c
@@ -8,6 +8,7 @@
*/
#include <common.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/bitops.h>
#include <linux/errno.h>
diff --git a/drivers/usb/gadget/atmel_usba_udc.h b/drivers/usb/gadget/atmel_usba_udc.h
index f6cb48c1cffc..b0692e279542 100644
--- a/drivers/usb/gadget/atmel_usba_udc.h
+++ b/drivers/usb/gadget/atmel_usba_udc.h
@@ -11,6 +11,7 @@
#define __LINUX_USB_GADGET_USBA_UDC_H__
/* USB register offsets */
+#include <linux/kernel.h>
#define USBA_CTRL 0x0000
#define USBA_FNUM 0x0004
#define USBA_INT_ENB 0x0010
diff --git a/drivers/usb/gadget/ci_udc.c b/drivers/usb/gadget/ci_udc.c
index e119fd6a0337..5f92c484b936 100644
--- a/drivers/usb/gadget/ci_udc.c
+++ b/drivers/usb/gadget/ci_udc.c
@@ -20,6 +20,7 @@
#include <linux/errno.h>
#include <asm/io.h>
#include <asm/unaligned.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/usb/ch9.h>
diff --git a/drivers/usb/gadget/ci_udc.h b/drivers/usb/gadget/ci_udc.h
index 95cc07992b41..c5ef74d74f8a 100644
--- a/drivers/usb/gadget/ci_udc.h
+++ b/drivers/usb/gadget/ci_udc.h
@@ -6,6 +6,7 @@
#ifndef __GADGET__CI_UDC_H__
#define __GADGET__CI_UDC_H__
+#include <stdbool.h>
#define NUM_ENDPOINTS 6
#ifdef CONFIG_CI_UDC_HAS_HOSTPC
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
index d5b3d1d40e4f..30c26a641051 100644
--- a/drivers/usb/gadget/composite.c
+++ b/drivers/usb/gadget/composite.c
@@ -12,6 +12,7 @@
#include <linux/bitops.h>
#include <linux/bug.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/usb/composite.h>
diff --git a/drivers/usb/gadget/designware_udc.c b/drivers/usb/gadget/designware_udc.c
index d4b94a7cfce0..82d07349e47b 100644
--- a/drivers/usb/gadget/designware_udc.c
+++ b/drivers/usb/gadget/designware_udc.c
@@ -11,6 +11,7 @@
#include <serial.h>
#include <asm/io.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <env.h>
diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c
index 867f31be7b49..04a6b7129bb7 100644
--- a/drivers/usb/gadget/dwc2_udc_otg.c
+++ b/drivers/usb/gadget/dwc2_udc_otg.c
@@ -29,6 +29,7 @@
#include <dm/devres.h>
#include <linux/bug.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c b/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c
index 6b6fe0a5040b..ceb3a09840da 100644
--- a/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c
+++ b/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c
@@ -23,6 +23,7 @@
#include <stdio.h>
#include <linux/bug.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static u8 clear_feature_num;
diff --git a/drivers/usb/gadget/ep0.c b/drivers/usb/gadget/ep0.c
index 6fabee24ce98..7b1bc4e38db0 100644
--- a/drivers/usb/gadget/ep0.c
+++ b/drivers/usb/gadget/ep0.c
@@ -39,6 +39,7 @@
#include <common.h>
#include <serial.h>
#include <usbdevice.h>
+#include <linux/kernel.h>
#if 0
#define dbg_ep0(lvl,fmt,args...) serial_printf("[%s] %s:%d: "fmt"\n",__FILE__,__FUNCTION__,__LINE__,##args)
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
index 9ddbb5c0f214..1c0c1693d2d2 100644
--- a/drivers/usb/gadget/ether.c
+++ b/drivers/usb/gadget/ether.c
@@ -17,6 +17,7 @@
#include <vsprintf.h>
#include <asm/u-boot.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/drivers/usb/gadget/f_dfu.c b/drivers/usb/gadget/f_dfu.c
index a1f13b6ec22a..281c0f29f2a5 100644
--- a/drivers/usb/gadget/f_dfu.c
+++ b/drivers/usb/gadget/f_dfu.c
@@ -21,6 +21,7 @@
#include <malloc.h>
#include <stdio.h>
#include <linux/errno.h>
+#include <linux/kernel.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 40648ef38bdb..1e17b8df3fab 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -19,6 +19,7 @@
#include <malloc.h>
#include <stdio.h>
#include <linux/errno.h>
+#include <linux/kernel.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 e0b898db214c..12ca77299f6c 100644
--- a/drivers/usb/gadget/f_mass_storage.c
+++ b/drivers/usb/gadget/f_mass_storage.c
@@ -251,6 +251,7 @@
#include <dm/devres.h>
#include <linux/bug.h>
#include <linux/errno.h>
+#include <linux/kernel.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 a852707525a4..e6aa089aa77e 100644
--- a/drivers/usb/gadget/f_rockusb.c
+++ b/drivers/usb/gadget/f_rockusb.c
@@ -15,6 +15,7 @@
#include <part.h>
#include <stdio.h>
#include <linux/errno.h>
+#include <linux/kernel.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 fde5c2c690ee..5eb6474072c1 100644
--- a/drivers/usb/gadget/f_sdp.c
+++ b/drivers/usb/gadget/f_sdp.c
@@ -24,6 +24,7 @@
#include <malloc.h>
#include <stdio.h>
#include <linux/errno.h>
+#include <linux/kernel.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 4a70bdcc5c33..667f1e19c362 100644
--- a/drivers/usb/gadget/f_thor.c
+++ b/drivers/usb/gadget/f_thor.c
@@ -27,6 +27,7 @@
#include <vsprintf.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include <linux/usb/ch9.h>
diff --git a/drivers/usb/gadget/fotg210.c b/drivers/usb/gadget/fotg210.c
index ff9e98a7566d..66952aab4fbd 100644
--- a/drivers/usb/gadget/fotg210.c
+++ b/drivers/usb/gadget/fotg210.c
@@ -18,6 +18,7 @@
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/usb/ch9.h>
diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget/g_dnl.c
index 1a0160b5836c..9397f915a44a 100644
--- a/drivers/usb/gadget/g_dnl.c
+++ b/drivers/usb/gadget/g_dnl.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <log.h>
#include <malloc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/errno.h>
#include <linux/string.h>
diff --git a/drivers/usb/gadget/pxa25x_udc.c b/drivers/usb/gadget/pxa25x_udc.c
index 3e35e0fa45f1..71c918a64e4f 100644
--- a/drivers/usb/gadget/pxa25x_udc.c
+++ b/drivers/usb/gadget/pxa25x_udc.c
@@ -33,6 +33,7 @@
#include <asm/arch/pxa.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/usb/ch9.h>
diff --git a/drivers/usb/gadget/pxa27x_udc.c b/drivers/usb/gadget/pxa27x_udc.c
index 7c67c2e3b3e3..03a067888e4b 100644
--- a/drivers/usb/gadget/pxa27x_udc.c
+++ b/drivers/usb/gadget/pxa27x_udc.c
@@ -15,6 +15,7 @@
#include <asm/io.h>
#include <usbdevice.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <usb/pxa27x_udc.h>
#include <usb/udc.h>
diff --git a/drivers/usb/gadget/rndis.c b/drivers/usb/gadget/rndis.c
index 92c01adb75d1..78f4b345e736 100644
--- a/drivers/usb/gadget/rndis.c
+++ b/drivers/usb/gadget/rndis.c
@@ -22,6 +22,7 @@
#include <log.h>
#include <net.h>
#include <malloc.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/list.h>
diff --git a/drivers/usb/gadget/udc/udc-core.c b/drivers/usb/gadget/udc/udc-core.c
index 74d66fd77b24..1e428b3c5e53 100644
--- a/drivers/usb/gadget/udc/udc-core.c
+++ b/drivers/usb/gadget/udc/udc-core.c
@@ -24,6 +24,7 @@
#include <dm.h>
#include <dm/device-internal.h>
#include <linux/errno.h>
+#include <linux/kernel.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 7fa4aae4d2b7..c27271905fa6 100644
--- a/drivers/usb/gadget/udc/udc-uclass.c
+++ b/drivers/usb/gadget/udc/udc-uclass.c
@@ -8,6 +8,7 @@
#include <dm.h>
#include <dm/device-internal.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/usb/gadget.h>
diff --git a/drivers/usb/gadget/usbstring.c b/drivers/usb/gadget/usbstring.c
index 2870052fec3f..1a5917e0cc54 100644
--- a/drivers/usb/gadget/usbstring.c
+++ b/drivers/usb/gadget/usbstring.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c
index b8c92f52b2fd..1095df170c7f 100644
--- a/drivers/usb/host/dwc2.c
+++ b/drivers/usb/host/dwc2.c
@@ -24,6 +24,7 @@
#include <dm/device_compat.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <power/regulator.h>
#include <reset.h>
diff --git a/drivers/usb/host/dwc3-sti-glue.c b/drivers/usb/host/dwc3-sti-glue.c
index 1989881ae84e..876ebdfc40d4 100644
--- a/drivers/usb/host/dwc3-sti-glue.c
+++ b/drivers/usb/host/dwc3-sti-glue.c
@@ -18,6 +18,7 @@
#include <syscon.h>
#include <usb.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/usb/dwc3.h>
diff --git a/drivers/usb/host/ehci-faraday.c b/drivers/usb/host/ehci-faraday.c
index fe28aec8a85c..df81d5605a4e 100644
--- a/drivers/usb/host/ehci-faraday.c
+++ b/drivers/usb/host/ehci-faraday.c
@@ -12,6 +12,7 @@
#include <asm/io.h>
#include <usb.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <usb/fusbh200.h>
#include <usb/fotg210.h>
diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
index b929eb9781b1..c9303bfba2a9 100644
--- a/drivers/usb/host/ehci-fsl.c
+++ b/drivers/usb/host/ehci-fsl.c
@@ -18,6 +18,7 @@
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <usb/ehci-ci.h>
#include <hwconfig.h>
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 4ef54a53d83f..05fe83c399c7 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -25,6 +25,7 @@
#include <linux/compiler.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "ehci.h"
diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c
index 458472b7b2e2..4c4d0a48bc1e 100644
--- a/drivers/usb/host/ehci-msm.c
+++ b/drivers/usb/host/ehci-msm.c
@@ -13,6 +13,7 @@
#include <stdio.h>
#include <usb.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <usb/ehci-ci.h>
#include <usb/ulpi.h>
#include <wait_bit.h>
diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c
index 7ca106520dbe..bb96c11f355a 100644
--- a/drivers/usb/host/ehci-mx6.c
+++ b/drivers/usb/host/ehci-mx6.c
@@ -14,6 +14,7 @@
#include <linux/compiler.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <usb/ehci-ci.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
diff --git a/drivers/usb/host/ehci-mxs.c b/drivers/usb/host/ehci-mxs.c
index 7698c7761fee..f951e5d3a829 100644
--- a/drivers/usb/host/ehci-mxs.c
+++ b/drivers/usb/host/ehci-mxs.c
@@ -13,6 +13,7 @@
#include <errno.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "ehci.h"
diff --git a/drivers/usb/host/ehci-rmobile.c b/drivers/usb/host/ehci-rmobile.c
index 72ae211d6271..8e826163aa87 100644
--- a/drivers/usb/host/ehci-rmobile.c
+++ b/drivers/usb/host/ehci-rmobile.c
@@ -11,6 +11,7 @@
#include <asm/io.h>
#include <asm/arch/ehci-rmobile.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "ehci.h"
#if defined(CONFIG_R8A7740)
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
index d71e455446f1..605a0a1dc808 100644
--- a/drivers/usb/host/ehci-tegra.c
+++ b/drivers/usb/host/ehci-tegra.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <dm.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/delay.h>
#include <linux/errno.h>
diff --git a/drivers/usb/host/ehci-vf.c b/drivers/usb/host/ehci-vf.c
index 3f140521c9c5..816d105087e5 100644
--- a/drivers/usb/host/ehci-vf.c
+++ b/drivers/usb/host/ehci-vf.c
@@ -22,6 +22,7 @@
#include <asm/mach-imx/regs-usbphy.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <usb/ehci-ci.h>
#include <linux/libfdt.h>
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index 3b204efdd690..ecdd64c48cdc 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -36,6 +36,7 @@
#include <asm/cache.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 f977b3336f05..66c20c103c09 100644
--- a/drivers/usb/host/r8a66597-hcd.c
+++ b/drivers/usb/host/r8a66597-hcd.c
@@ -16,6 +16,7 @@
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/iopoll.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <power/regulator.h>
diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c
index c87b02f97471..0b786e1d13ec 100644
--- a/drivers/usb/host/sl811-hcd.c
+++ b/drivers/usb/host/sl811-hcd.c
@@ -24,6 +24,7 @@
#include <time.h>
#include <usb.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "sl811.h"
diff --git a/drivers/usb/host/usb-sandbox.c b/drivers/usb/host/usb-sandbox.c
index beb62ebc0c24..090cb2ae84e3 100644
--- a/drivers/usb/host/usb-sandbox.c
+++ b/drivers/usb/host/usb-sandbox.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <dm.h>
#include <log.h>
+#include <stdbool.h>
#include <usb.h>
#include <dm/root.h>
diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c
index 36c676a1e5cb..2d3321df3cd6 100644
--- a/drivers/usb/host/usb-uclass.c
+++ b/drivers/usb/host/usb-uclass.c
@@ -11,6 +11,7 @@
#include <errno.h>
#include <log.h>
#include <memalign.h>
+#include <stdbool.h>
#include <stdio.h>
#include <usb.h>
#include <vsprintf.h>
diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c
index aa9063098c2a..09d301ed9562 100644
--- a/drivers/usb/host/xhci-mem.c
+++ b/drivers/usb/host/xhci-mem.c
@@ -24,6 +24,7 @@
#include <asm/cache.h>
#include <linux/bug.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <usb/xhci.h>
diff --git a/drivers/usb/host/xhci-rcar.c b/drivers/usb/host/xhci-rcar.c
index 28eea930cc21..a343d4d098cd 100644
--- a/drivers/usb/host/xhci-rcar.c
+++ b/drivers/usb/host/xhci-rcar.c
@@ -16,6 +16,7 @@
#include <dm/device_compat.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <usb/xhci.h>
#include "xhci-rcar-r8a779x_usb3_v3.h"
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 6a8f42a974a1..7f9286a52a08 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -23,6 +23,7 @@
#include <asm/unaligned.h>
#include <linux/bug.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <usb/xhci.h>
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index 4d9ba91da8ce..64a0c9d52c88 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -34,6 +34,7 @@
#include <linux/bug.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <usb/xhci.h>
diff --git a/drivers/usb/musb-new/mt85xx.c b/drivers/usb/musb-new/mt85xx.c
index c5b994d906bf..6bf1909f1ad7 100644
--- a/drivers/usb/musb-new/mt85xx.c
+++ b/drivers/usb/musb-new/mt85xx.c
@@ -17,6 +17,7 @@
#include <dm/root.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include <linux/usb/musb.h>
diff --git a/drivers/usb/musb-new/musb_core.h b/drivers/usb/musb-new/musb_core.h
index 821d0e06f619..91b1ec330454 100644
--- a/drivers/usb/musb-new/musb_core.h
+++ b/drivers/usb/musb-new/musb_core.h
@@ -21,6 +21,7 @@
#include <linux/usb/otg.h>
#else
#include <linux/errno.h>
+#include <linux/kernel.h>
#endif
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
diff --git a/drivers/usb/musb-new/musb_dma.h b/drivers/usb/musb-new/musb_dma.h
index 5f99356ca797..5ad64ed34363 100644
--- a/drivers/usb/musb-new/musb_dma.h
+++ b/drivers/usb/musb-new/musb_dma.h
@@ -10,6 +10,7 @@
#ifndef __MUSB_DMA_H__
#define __MUSB_DMA_H__
+#include <stdbool.h>
struct musb_hw_ep;
/*
diff --git a/drivers/usb/musb-new/musb_gadget.h b/drivers/usb/musb-new/musb_gadget.h
index 7cb7a5cd6dc4..4ae18f910fcc 100644
--- a/drivers/usb/musb-new/musb_gadget.h
+++ b/drivers/usb/musb-new/musb_gadget.h
@@ -10,6 +10,7 @@
#ifndef __MUSB_GADGET_H
#define __MUSB_GADGET_H
+#include <linux/kernel.h>
#include <linux/list.h>
#ifdef __UBOOT__
#include <asm/byteorder.h>
diff --git a/drivers/usb/musb-new/pic32.c b/drivers/usb/musb-new/pic32.c
index b4ee18442239..c4fd7f0da076 100644
--- a/drivers/usb/musb-new/pic32.c
+++ b/drivers/usb/musb-new/pic32.c
@@ -17,6 +17,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 1ab74d4be394..b49954fe146d 100644
--- a/drivers/usb/musb-new/sunxi.c
+++ b/drivers/usb/musb-new/sunxi.c
@@ -34,6 +34,7 @@
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include <linux/usb/musb.h>
diff --git a/drivers/usb/musb/musb_hcd.c b/drivers/usb/musb/musb_hcd.c
index 99514419e5f8..8942ed31fc42 100644
--- a/drivers/usb/musb/musb_hcd.c
+++ b/drivers/usb/musb/musb_hcd.c
@@ -11,6 +11,7 @@
#include <log.h>
#include <usb.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "musb_hcd.h"
diff --git a/drivers/usb/musb/musb_udc.c b/drivers/usb/musb/musb_udc.c
index d901f8777c2c..56a92cc613ab 100644
--- a/drivers/usb/musb/musb_udc.c
+++ b/drivers/usb/musb/musb_udc.c
@@ -42,6 +42,7 @@
#include <serial.h>
#include <usbdevice.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <usb/udc.h>
#include "../gadget/ep0.h"
#include "musb_core.h"
diff --git a/drivers/usb/phy/rockchip_usb2_phy.c b/drivers/usb/phy/rockchip_usb2_phy.c
index 93caa821a1d2..d1d92ddfe7a3 100644
--- a/drivers/usb/phy/rockchip_usb2_phy.c
+++ b/drivers/usb/phy/rockchip_usb2_phy.c
@@ -10,6 +10,7 @@
#include <asm/io.h>
#include <linux/bitops.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "../gadget/dwc2_udc_otg_priv.h"
diff --git a/drivers/video/am335x-fb.c b/drivers/video/am335x-fb.c
index 4d74e96e2a3f..1e96f5bd35d7 100644
--- a/drivers/video/am335x-fb.c
+++ b/drivers/video/am335x-fb.c
@@ -27,6 +27,7 @@
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include "am335x-fb.h"
diff --git a/drivers/video/ati_radeon_fb.c b/drivers/video/ati_radeon_fb.c
index 6ac6d0e69ac0..acee5ae35357 100644
--- a/drivers/video/ati_radeon_fb.c
+++ b/drivers/video/ati_radeon_fb.c
@@ -18,6 +18,7 @@
#include <common.h>
#include <stdio.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <command.h>
diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c
index bee082508b6d..1891ec0117a0 100644
--- a/drivers/video/atmel_hlcdfb.c
+++ b/drivers/video/atmel_hlcdfb.c
@@ -24,6 +24,7 @@
#include <atmel_hlcdc.h>
#include <linux/bug.h>
#include <linux/errno.h>
+#include <linux/kernel.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 20b9ba661c2d..c734a44ba801 100644
--- a/drivers/video/atmel_lcdfb.c
+++ b/drivers/video/atmel_lcdfb.c
@@ -11,6 +11,7 @@
#include <fdtdec.h>
#include <log.h>
#include <part.h>
+#include <stdbool.h>
#include <video.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/drivers/video/backlight_gpio.c b/drivers/video/backlight_gpio.c
index 67fed7f224a3..b72d6df88916 100644
--- a/drivers/video/backlight_gpio.c
+++ b/drivers/video/backlight_gpio.c
@@ -8,6 +8,7 @@
#include <dm.h>
#include <backlight.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/gpio.h>
struct gpio_backlight_priv {
diff --git a/drivers/video/bcm2835.c b/drivers/video/bcm2835.c
index 7d2a452fd6fd..c949246a9872 100644
--- a/drivers/video/bcm2835.c
+++ b/drivers/video/bcm2835.c
@@ -11,6 +11,7 @@
#include <asm/arch/msg.h>
#include <asm/cache.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
static int bcm2835_video_probe(struct udevice *dev)
{
diff --git a/drivers/video/bridge/video-bridge-uclass.c b/drivers/video/bridge/video-bridge-uclass.c
index d606342d8472..960f93840420 100644
--- a/drivers/video/bridge/video-bridge-uclass.c
+++ b/drivers/video/bridge/video-bridge-uclass.c
@@ -9,6 +9,7 @@
#include <errno.h>
#include <edid.h>
#include <log.h>
+#include <stdbool.h>
#include <video_bridge.h>
#include <linux/delay.h>
#include <linux/errno.h>
diff --git a/drivers/video/broadwell_igd.c b/drivers/video/broadwell_igd.c
index 77a4dc158304..430e4fd7da10 100644
--- a/drivers/video/broadwell_igd.c
+++ b/drivers/video/broadwell_igd.c
@@ -25,6 +25,7 @@
#include <asm/arch/pch.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "i915_reg.h"
struct broadwell_igd_priv {
diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c
index 5edef8924e8d..db64e18d13b0 100644
--- a/drivers/video/cfb_console.c
+++ b/drivers/video/cfb_console.c
@@ -79,6 +79,7 @@
#include <asm/global_data.h>
#include <asm/u-boot.h>
#include <linux/compiler.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#if defined(CONFIG_VIDEO_MXS)
diff --git a/drivers/video/console_truetype.c b/drivers/video/console_truetype.c
index 17e040bc9261..01fcc03456bc 100644
--- a/drivers/video/console_truetype.c
+++ b/drivers/video/console_truetype.c
@@ -10,6 +10,7 @@
#include <video.h>
#include <video_console.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/* Functions needed by stb_truetype.h */
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index 27234e7adee4..d9909e178674 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -16,6 +16,7 @@
#include <log.h>
#include <malloc.h>
#include <memalign.h>
+#include <stdbool.h>
#include <stdio.h>
#include <video_fb.h>
#include <asm/global_data.h>
diff --git a/drivers/video/display-uclass.c b/drivers/video/display-uclass.c
index 8b49a7ba028c..8b9131590fec 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 <stdbool.h>
#include <linux/errno.h>
int display_read_edid(struct udevice *dev, u8 *buf, int buf_size)
diff --git a/drivers/video/dw_hdmi.c b/drivers/video/dw_hdmi.c
index b2868413144a..3f61c5ef02bb 100644
--- a/drivers/video/dw_hdmi.c
+++ b/drivers/video/dw_hdmi.c
@@ -13,6 +13,7 @@
#include <i2c.h>
#include <media_bus_format.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "dw_hdmi.h"
diff --git a/drivers/video/dw_mipi_dsi.c b/drivers/video/dw_mipi_dsi.c
index 1a2d2b3b7f5d..343732e2be0b 100644
--- a/drivers/video/dw_mipi_dsi.c
+++ b/drivers/video/dw_mipi_dsi.c
@@ -25,6 +25,7 @@
#include <linux/errno.h>
#include <linux/iopoll.h>
#include <video_bridge.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define HWVER_131 0x31333100 /* IP version 1.31 */
diff --git a/drivers/video/exynos/exynos_fb.c b/drivers/video/exynos/exynos_fb.c
index 42ec0494fa06..a266b78b24ac 100644
--- a/drivers/video/exynos/exynos_fb.c
+++ b/drivers/video/exynos/exynos_fb.c
@@ -13,6 +13,7 @@
#include <dm.h>
#include <fdtdec.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <linux/libfdt.h>
diff --git a/drivers/video/exynos/exynos_mipi_dsi_common.c b/drivers/video/exynos/exynos_mipi_dsi_common.c
index 26e5d24314bb..cf284dc24700 100644
--- a/drivers/video/exynos/exynos_mipi_dsi_common.c
+++ b/drivers/video/exynos/exynos_mipi_dsi_common.c
@@ -14,6 +14,7 @@
#include <asm/arch/dsim.h>
#include <asm/arch/mipi_dsim.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "exynos_mipi_dsi_lowlevel.h"
diff --git a/drivers/video/fsl_dcu_fb.c b/drivers/video/fsl_dcu_fb.c
index be6b62bfa838..d1d553647c83 100644
--- a/drivers/video/fsl_dcu_fb.c
+++ b/drivers/video/fsl_dcu_fb.c
@@ -20,6 +20,7 @@
#include <malloc.h>
#include <video.h>
#include <video_fb.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "videomodes.h"
diff --git a/drivers/video/fsl_diu_fb.c b/drivers/video/fsl_diu_fb.c
index 7e62e4f41ce5..3f8e357cc257 100644
--- a/drivers/video/fsl_diu_fb.c
+++ b/drivers/video/fsl_diu_fb.c
@@ -13,6 +13,7 @@
#include <vsprintf.h>
#include <asm/io.h>
#include <asm/ppc.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "videomodes.h"
diff --git a/drivers/video/hitachi_tx18d42vm_lcd.c b/drivers/video/hitachi_tx18d42vm_lcd.c
index fd51761485d7..284c65274747 100644
--- a/drivers/video/hitachi_tx18d42vm_lcd.c
+++ b/drivers/video/hitachi_tx18d42vm_lcd.c
@@ -10,6 +10,7 @@
#include <stdio.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 dcbfbde688ff..5b1413699f9c 100644
--- a/drivers/video/ihs_video_out.c
+++ b/drivers/video/ihs_video_out.c
@@ -17,6 +17,7 @@
#include <video_osd.h>
#include <asm/gpio.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static const uint MAX_X_CHARS = 53;
diff --git a/drivers/video/imx/ipu.h b/drivers/video/imx/ipu.h
index 1e02c7ab6d5f..85d9efe53244 100644
--- a/drivers/video/imx/ipu.h
+++ b/drivers/video/imx/ipu.h
@@ -13,6 +13,7 @@
#ifndef __ASM_ARCH_IPU_H__
#define __ASM_ARCH_IPU_H__
+#include <stdbool.h>
#include <linux/types.h>
#include <ipu_pixfmt.h>
diff --git a/drivers/video/imx/mxc_ipuv3_fb.c b/drivers/video/imx/mxc_ipuv3_fb.c
index b06e9f29a56c..9fa4c1a98d2b 100644
--- a/drivers/video/imx/mxc_ipuv3_fb.c
+++ b/drivers/video/imx/mxc_ipuv3_fb.c
@@ -17,6 +17,7 @@
#include <asm/cache.h>
#include <linux/errno.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/list.h>
#include <linux/fb.h>
diff --git a/drivers/video/ivybridge_igd.c b/drivers/video/ivybridge_igd.c
index 47aa55ebdfcb..40a8cd1fa590 100644
--- a/drivers/video/ivybridge_igd.c
+++ b/drivers/video/ivybridge_igd.c
@@ -22,6 +22,7 @@
#include <asm/arch/sandybridge.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/video/ld9040.c b/drivers/video/ld9040.c
index a36bc2f06cb3..3ff30eece441 100644
--- a/drivers/video/ld9040.c
+++ b/drivers/video/ld9040.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <spi.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
static const unsigned char SEQ_USER_SETTING[] = {
0xF0, 0x5A, 0x5A
diff --git a/drivers/video/lg4573.c b/drivers/video/lg4573.c
index 7d4ddca1573e..b47756bb13da 100644
--- a/drivers/video/lg4573.c
+++ b/drivers/video/lg4573.c
@@ -18,6 +18,7 @@
#include <asm/gpio.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 938455c0e4a6..fe806fd7e567 100644
--- a/drivers/video/logicore_dp_tx.c
+++ b/drivers/video/logicore_dp_tx.c
@@ -14,6 +14,7 @@
#include <display.h>
#include <dm.h>
#include <errno.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/delay.h>
#include <linux/errno.h>
diff --git a/drivers/video/logicore_dp_tx.h b/drivers/video/logicore_dp_tx.h
index d8d82b2b13f8..b760cad12cc5 100644
--- a/drivers/video/logicore_dp_tx.h
+++ b/drivers/video/logicore_dp_tx.h
@@ -34,6 +34,7 @@
* This is a stripped down version of struct main_stream_attributes that
* contains only the parameters that are not set by cfg_msa_recalculate()
*/
+#include <stdbool.h>
struct logicore_dp_tx_msa {
u32 pixel_clock_hz;
u32 bits_per_color;
diff --git a/drivers/video/mali_dp.c b/drivers/video/mali_dp.c
index 44841a9f9296..1b58b355264d 100644
--- a/drivers/video/mali_dp.c
+++ b/drivers/video/mali_dp.c
@@ -22,6 +22,7 @@
#include <dm/device_compat.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 0fa1178415a9..6a2b439afb6f 100644
--- a/drivers/video/meson/meson_dw_hdmi.c
+++ b/drivers/video/meson/meson_dw_hdmi.c
@@ -15,6 +15,7 @@
#include <dm/uclass-internal.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <power/regulator.h>
#include <clk.h>
diff --git a/drivers/video/meson/meson_plane.c b/drivers/video/meson/meson_plane.c
index b367276f2373..58dd5500ad69 100644
--- a/drivers/video/meson/meson_plane.c
+++ b/drivers/video/meson/meson_plane.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <dm.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <linux/bitfield.h>
#include <linux/bitops.h>
diff --git a/drivers/video/meson/meson_vclk.c b/drivers/video/meson/meson_vclk.c
index e096b437a384..dee5c90bd27f 100644
--- a/drivers/video/meson/meson_vclk.c
+++ b/drivers/video/meson/meson_vclk.c
@@ -11,6 +11,7 @@
#include <edid.h>
#include <stdio.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include "meson_vpu.h"
#include <log.h>
diff --git a/drivers/video/meson/meson_venc.c b/drivers/video/meson/meson_venc.c
index ce64865d591a..166eaab4df14 100644
--- a/drivers/video/meson/meson_venc.c
+++ b/drivers/video/meson/meson_venc.c
@@ -11,6 +11,7 @@
#include <edid.h>
#include <fdtdec.h>
#include <log.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <linux/string.h>
#include "meson_vpu.h"
diff --git a/drivers/video/meson/meson_vpu.c b/drivers/video/meson/meson_vpu.c
index 84171befb993..db959d996344 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 <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/sizes.h>
#include <asm/arch/mem.h>
#include <dm/device-internal.h>
diff --git a/drivers/video/meson/meson_vpu.h b/drivers/video/meson/meson_vpu.h
index d9588c3775c8..0a29e23093c8 100644
--- a/drivers/video/meson/meson_vpu.h
+++ b/drivers/video/meson/meson_vpu.h
@@ -9,6 +9,7 @@
#ifndef __MESON_VPU_H__
#define __MESON_VPU_H__
+#include <stdbool.h>
#include <video.h>
#include "meson_registers.h"
diff --git a/drivers/video/meson/meson_vpu_init.c b/drivers/video/meson/meson_vpu_init.c
index c9808e1c6317..3f13c55ee28a 100644
--- a/drivers/video/meson/meson_vpu_init.c
+++ b/drivers/video/meson/meson_vpu_init.c
@@ -10,6 +10,7 @@
#include <common.h>
#include <dm.h>
+#include <stdbool.h>
#include <asm/io.h>
#include <linux/bitops.h>
diff --git a/drivers/video/mipi_dsi.c b/drivers/video/mipi_dsi.c
index 7f9e2c8357fb..405db2ca49aa 100644
--- a/drivers/video/mipi_dsi.c
+++ b/drivers/video/mipi_dsi.c
@@ -38,6 +38,7 @@
#include <dm.h>
#include <mipi_display.h>
#include <mipi_dsi.h>
+#include <stdbool.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 142ae2355998..22483f182994 100644
--- a/drivers/video/mvebu_lcd.c
+++ b/drivers/video/mvebu_lcd.c
@@ -13,6 +13,7 @@
#include <dm/device_compat.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/mbus.h>
#include <asm/io.h>
#include <asm/arch/cpu.h>
diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c
index bb1eb3778272..7a1fbed877ae 100644
--- a/drivers/video/mxsfb.c
+++ b/drivers/video/mxsfb.c
@@ -19,6 +19,7 @@
#include <malloc.h>
#include <video.h>
#include <video_fb.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <asm/arch/clock.h>
diff --git a/drivers/video/nexell/s5pxx18_dp_lvds.c b/drivers/video/nexell/s5pxx18_dp_lvds.c
index cc95de13f511..72be625604bf 100644
--- a/drivers/video/nexell/s5pxx18_dp_lvds.c
+++ b/drivers/video/nexell/s5pxx18_dp_lvds.c
@@ -8,6 +8,8 @@
#include <config.h>
#include <common.h>
#include <errno.h>
+#include <stdbool.h>
+#include <stdio.h>
#include <linux/errno.h>
#include <asm/arch/nexell.h>
diff --git a/drivers/video/nexell/s5pxx18_dp_mipi.c b/drivers/video/nexell/s5pxx18_dp_mipi.c
index 0eb1ebb377a3..2515add4fe76 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 <stdbool.h>
#include <linux/errno.h>
#include <asm/arch/nexell.h>
diff --git a/drivers/video/nexell/s5pxx18_dp_rgb.c b/drivers/video/nexell/s5pxx18_dp_rgb.c
index 44e8edb02a22..349542c71b46 100644
--- a/drivers/video/nexell/s5pxx18_dp_rgb.c
+++ b/drivers/video/nexell/s5pxx18_dp_rgb.c
@@ -8,6 +8,8 @@
#include <config.h>
#include <common.h>
#include <errno.h>
+#include <stdbool.h>
+#include <stdio.h>
#include <asm/arch/display.h>
diff --git a/drivers/video/nexell/soc/s5pxx18_soc_disptop_clk.c b/drivers/video/nexell/soc/s5pxx18_soc_disptop_clk.c
index 02361ba41101..263133e7317f 100644
--- a/drivers/video/nexell/soc/s5pxx18_soc_disptop_clk.c
+++ b/drivers/video/nexell/soc/s5pxx18_soc_disptop_clk.c
@@ -5,6 +5,7 @@
* Author: junghyun, kim <jhkim at nexell.co.kr>
*/
+#include <stdbool.h>
#include <linux/types.h>
#include <linux/io.h>
diff --git a/drivers/video/nexell/soc/s5pxx18_soc_lvds.c b/drivers/video/nexell/soc/s5pxx18_soc_lvds.c
index 18c101bda7ba..1c2fb6711cbb 100644
--- a/drivers/video/nexell/soc/s5pxx18_soc_lvds.c
+++ b/drivers/video/nexell/soc/s5pxx18_soc_lvds.c
@@ -5,6 +5,7 @@
* Author: junghyun, kim <jhkim at nexell.co.kr>
*/
+#include <stdbool.h>
#include <linux/types.h>
#include <linux/io.h>
diff --git a/drivers/video/orisetech_otm8009a.c b/drivers/video/orisetech_otm8009a.c
index b6a8527533cb..8bff8e75cb85 100644
--- a/drivers/video/orisetech_otm8009a.c
+++ b/drivers/video/orisetech_otm8009a.c
@@ -16,6 +16,7 @@
#include <dm/device_compat.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <power/regulator.h>
diff --git a/drivers/video/pwm_backlight.c b/drivers/video/pwm_backlight.c
index 6aacb067ad3a..45b2bc17a7ac 100644
--- a/drivers/video/pwm_backlight.c
+++ b/drivers/video/pwm_backlight.c
@@ -12,6 +12,7 @@
#include <log.h>
#include <malloc.h>
#include <pwm.h>
+#include <stdbool.h>
#include <asm/gpio.h>
#include <linux/delay.h>
#include <linux/errno.h>
diff --git a/drivers/video/raydium-rm68200.c b/drivers/video/raydium-rm68200.c
index d31cbb4c34a9..33852ec5b4ce 100644
--- a/drivers/video/raydium-rm68200.c
+++ b/drivers/video/raydium-rm68200.c
@@ -16,6 +16,7 @@
#include <dm/device_compat.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <power/regulator.h>
diff --git a/drivers/video/rockchip/rk3288_hdmi.c b/drivers/video/rockchip/rk3288_hdmi.c
index f835f4d517a5..c1331a81fae2 100644
--- a/drivers/video/rockchip/rk3288_hdmi.c
+++ b/drivers/video/rockchip/rk3288_hdmi.c
@@ -18,6 +18,7 @@
#include <asm/arch-rockchip/clock.h>
#include <asm/arch-rockchip/hardware.h>
#include <asm/arch-rockchip/grf_rk3288.h>
+#include <linux/kernel.h>
#include <power/regulator.h>
#include "rk_hdmi.h"
diff --git a/drivers/video/rockchip/rk3288_vop.c b/drivers/video/rockchip/rk3288_vop.c
index d1bf82c5b27a..e1f7850040b4 100644
--- a/drivers/video/rockchip/rk3288_vop.c
+++ b/drivers/video/rockchip/rk3288_vop.c
@@ -17,6 +17,7 @@
#include <asm/arch-rockchip/grf_rk3288.h>
#include <asm/arch-rockchip/hardware.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "rk_vop.h"
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/video/rockchip/rk3399_hdmi.c b/drivers/video/rockchip/rk3399_hdmi.c
index a62be9832750..d72c82ad0315 100644
--- a/drivers/video/rockchip/rk3399_hdmi.c
+++ b/drivers/video/rockchip/rk3399_hdmi.c
@@ -16,6 +16,7 @@
#include <asm/arch-rockchip/clock.h>
#include <asm/arch-rockchip/hardware.h>
#include <asm/arch-rockchip/grf_rk3399.h>
+#include <linux/kernel.h>
#include <power/regulator.h>
#include "rk_hdmi.h"
diff --git a/drivers/video/rockchip/rk3399_vop.c b/drivers/video/rockchip/rk3399_vop.c
index fe424d51f73b..db1fb8093d74 100644
--- a/drivers/video/rockchip/rk3399_vop.c
+++ b/drivers/video/rockchip/rk3399_vop.c
@@ -14,6 +14,7 @@
#include <asm/arch-rockchip/hardware.h>
#include <asm/global_data.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include "rk_vop.h"
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/video/rockchip/rk_edp.c b/drivers/video/rockchip/rk_edp.c
index d6478d4f3986..49fe635229d4 100644
--- a/drivers/video/rockchip/rk_edp.c
+++ b/drivers/video/rockchip/rk_edp.c
@@ -25,6 +25,7 @@
#include <dt-bindings/clock/rk3288-cru.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define MAX_CR_LOOP 5
diff --git a/drivers/video/s6e8ax0.c b/drivers/video/s6e8ax0.c
index 497258f3de92..c3a8d43c0041 100644
--- a/drivers/video/s6e8ax0.c
+++ b/drivers/video/s6e8ax0.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <asm/arch/mipi_dsim.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "exynos/exynos_mipi_dsi_lowlevel.h"
#include "exynos/exynos_mipi_dsi_common.h"
diff --git a/drivers/video/scf0403_lcd.c b/drivers/video/scf0403_lcd.c
index dcf0504ae561..0d5de4c4ddae 100644
--- a/drivers/video/scf0403_lcd.c
+++ b/drivers/video/scf0403_lcd.c
@@ -19,6 +19,7 @@
#include <asm/gpio.h>
#include <spi.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
struct scf0403_cmd {
u16 cmd;
diff --git a/drivers/video/ssd2828.c b/drivers/video/ssd2828.c
index 84479b3ded90..a620a579fd73 100644
--- a/drivers/video/ssd2828.c
+++ b/drivers/video/ssd2828.c
@@ -16,6 +16,7 @@
#include <asm/arch/gpio.h>
#include <asm/gpio.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include "videomodes.h"
#include "ssd2828.h"
diff --git a/drivers/video/stm32/stm32_dsi.c b/drivers/video/stm32/stm32_dsi.c
index 617d900343ca..f58aa885f321 100644
--- a/drivers/video/stm32/stm32_dsi.c
+++ b/drivers/video/stm32/stm32_dsi.c
@@ -27,6 +27,7 @@
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/iopoll.h>
+#include <linux/kernel.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 3767792a399f..a763f13fe156 100644
--- a/drivers/video/stm32/stm32_ltdc.c
+++ b/drivers/video/stm32/stm32_ltdc.c
@@ -12,6 +12,7 @@
#include <log.h>
#include <panel.h>
#include <reset.h>
+#include <stdbool.h>
#include <video.h>
#include <video_bridge.h>
#include <asm/global_data.h>
diff --git a/drivers/video/sunxi/lcdc.c b/drivers/video/sunxi/lcdc.c
index 73033c3b8589..8814bc368145 100644
--- a/drivers/video/sunxi/lcdc.c
+++ b/drivers/video/sunxi/lcdc.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <log.h>
+#include <stdbool.h>
#include <linux/delay.h>
#include <asm/arch/clock.h>
diff --git a/drivers/video/sunxi/sunxi_de2.c b/drivers/video/sunxi/sunxi_de2.c
index 13a23f4ff63e..3586d1bd93be 100644
--- a/drivers/video/sunxi/sunxi_de2.c
+++ b/drivers/video/sunxi/sunxi_de2.c
@@ -14,6 +14,7 @@
#include <fdt_support.h>
#include <log.h>
#include <part.h>
+#include <stdbool.h>
#include <video.h>
#include <asm/global_data.h>
#include <asm/io.h>
diff --git a/drivers/video/sunxi/sunxi_display.c b/drivers/video/sunxi/sunxi_display.c
index 8285ccd70a45..227b46e0b97d 100644
--- a/drivers/video/sunxi/sunxi_display.c
+++ b/drivers/video/sunxi/sunxi_display.c
@@ -14,6 +14,7 @@
#include <time.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <asm/arch/clock.h>
diff --git a/drivers/video/sunxi/sunxi_dw_hdmi.c b/drivers/video/sunxi/sunxi_dw_hdmi.c
index 418b429ce0e8..b601328b6b35 100644
--- a/drivers/video/sunxi/sunxi_dw_hdmi.c
+++ b/drivers/video/sunxi/sunxi_dw_hdmi.c
@@ -18,6 +18,7 @@
#include <asm/arch/lcdc.h>
#include <linux/bitops.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
struct sunxi_dw_hdmi_priv {
struct dw_hdmi hdmi;
diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c
index f10c509345d0..2bacfa86dade 100644
--- a/drivers/video/tegra.c
+++ b/drivers/video/tegra.c
@@ -18,6 +18,7 @@
#include <asm/gpio.h>
#include <asm/io.h>
#include <linux/errno.h>
+#include <linux/kernel.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 c16110f1191e..bb2f46be5583 100644
--- a/drivers/video/tegra124/display.c
+++ b/drivers/video/tegra124/display.c
@@ -26,6 +26,7 @@
#include <dm/uclass-internal.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.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 52b06f32ea85..ed1f9022babf 100644
--- a/drivers/video/tegra124/dp.c
+++ b/drivers/video/tegra124/dp.c
@@ -17,6 +17,7 @@
#include <asm/arch-tegra/dc.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "display.h"
#include "edid.h"
diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c
index 7262cc0a65ce..204828d594af 100644
--- a/drivers/video/vidconsole-uclass.c
+++ b/drivers/video/vidconsole-uclass.c
@@ -18,6 +18,7 @@
#include <vsprintf.h>
#include <linux/ctype.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/*
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c
index 722a9c8765a6..dcbe2480084d 100644
--- a/drivers/video/video-uclass.c
+++ b/drivers/video/video-uclass.c
@@ -25,6 +25,7 @@
#include <asm/sdl.h>
#endif
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/*
diff --git a/drivers/video/video_bmp.c b/drivers/video/video_bmp.c
index e854e3a3bfec..c83f41631b69 100644
--- a/drivers/video/video_bmp.c
+++ b/drivers/video/video_bmp.c
@@ -14,6 +14,7 @@
#include <watchdog.h>
#include <asm/unaligned.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#ifdef CONFIG_VIDEO_BMP_RLE8
#define BMP_RLE8_ESCAPE 0
diff --git a/drivers/virtio/virtio_net.c b/drivers/virtio/virtio_net.c
index 277d4832fbb2..d20ea6325f4d 100644
--- a/drivers/virtio/virtio_net.c
+++ b/drivers/virtio/virtio_net.c
@@ -11,6 +11,7 @@
#include <virtio.h>
#include <virtio_ring.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "virtio_net.h"
diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index 76dc7d3a7620..a5dbb0dd7f8d 100644
--- a/drivers/virtio/virtio_ring.c
+++ b/drivers/virtio/virtio_ring.c
@@ -10,6 +10,7 @@
#include <dm.h>
#include <log.h>
#include <malloc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <virtio_types.h>
#include <virtio.h>
diff --git a/drivers/virtio/virtio_rng.c b/drivers/virtio/virtio_rng.c
index 111f8de2855e..dadaaa449ce1 100644
--- a/drivers/virtio/virtio_rng.c
+++ b/drivers/virtio/virtio_rng.c
@@ -10,6 +10,7 @@
#include <virtio_types.h>
#include <virtio.h>
#include <virtio_ring.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#define BUFFER_SIZE 16UL
diff --git a/drivers/w1/mxc_w1.c b/drivers/w1/mxc_w1.c
index 92b18606c824..44047ea2bfe2 100644
--- a/drivers/w1/mxc_w1.c
+++ b/drivers/w1/mxc_w1.c
@@ -17,6 +17,7 @@
* Martin Fuzzey <martin.fuzzey at flowbird.group>
*/
+#include <stdbool.h>
#include <asm/arch/clock.h>
#include <common.h>
#include <dm.h>
diff --git a/drivers/w1/w1-gpio.c b/drivers/w1/w1-gpio.c
index ba3dd688e6eb..b54f169adfbf 100644
--- a/drivers/w1/w1-gpio.c
+++ b/drivers/w1/w1-gpio.c
@@ -10,6 +10,7 @@
#include <common.h>
#include <dm.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <w1.h>
#include <linux/delay.h>
diff --git a/drivers/w1/w1-uclass.c b/drivers/w1/w1-uclass.c
index a40beaefd67c..9b9913a90d00 100644
--- a/drivers/w1/w1-uclass.c
+++ b/drivers/w1/w1-uclass.c
@@ -13,6 +13,7 @@
#include <common.h>
#include <dm.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <w1.h>
#include <w1-eeprom.h>
diff --git a/drivers/watchdog/ast_wdt.c b/drivers/watchdog/ast_wdt.c
index 7e11465a570c..0f858b181c33 100644
--- a/drivers/watchdog/ast_wdt.c
+++ b/drivers/watchdog/ast_wdt.c
@@ -11,6 +11,7 @@
#include <asm/io.h>
#include <asm/arch/wdt.h>
#include <linux/err.h>
+#include <linux/kernel.h>
#define WDT_AST2500 2500
#define WDT_AST2400 2400
diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c
index c116a011263d..ad602a8eb342 100644
--- a/drivers/watchdog/at91sam9_wdt.c
+++ b/drivers/watchdog/at91sam9_wdt.c
@@ -25,6 +25,7 @@
#include <errno.h>
#include <wdt.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/watchdog/cdns_wdt.c b/drivers/watchdog/cdns_wdt.c
index 2abd5524f61d..a7f9095e2cda 100644
--- a/drivers/watchdog/cdns_wdt.c
+++ b/drivers/watchdog/cdns_wdt.c
@@ -15,6 +15,7 @@
#include <dm/device_compat.h>
#include <linux/err.h>
#include <linux/io.h>
+#include <linux/kernel.h>
struct cdns_regs {
u32 zmr; /* WD Zero mode register, offset - 0x0 */
diff --git a/drivers/watchdog/designware_wdt.c b/drivers/watchdog/designware_wdt.c
index b2d17f6e335d..06783650bed7 100644
--- a/drivers/watchdog/designware_wdt.c
+++ b/drivers/watchdog/designware_wdt.c
@@ -12,6 +12,7 @@
#include <asm/utils.h>
#include <linux/bitops.h>
#include <linux/errno.h>
+#include <linux/kernel.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 e17d9217cc0a..d36b8b14931f 100644
--- a/drivers/watchdog/imx_watchdog.c
+++ b/drivers/watchdog/imx_watchdog.c
@@ -18,6 +18,7 @@
#include <fsl_wdog.h>
#include <div64.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#define TIMEOUT_MAX 128000
#define TIMEOUT_MIN 500
diff --git a/drivers/watchdog/tangier_wdt.c b/drivers/watchdog/tangier_wdt.c
index 358a9b90fddb..050e97f392a2 100644
--- a/drivers/watchdog/tangier_wdt.c
+++ b/drivers/watchdog/tangier_wdt.c
@@ -8,6 +8,7 @@
#include <wdt.h>
#include <div64.h>
#include <asm/scu.h>
+#include <linux/kernel.h>
/* Hardware timeout in seconds */
#define WDT_PRETIMEOUT 15
diff --git a/drivers/watchdog/xilinx_wwdt.c b/drivers/watchdog/xilinx_wwdt.c
index a486e032624d..b688ebf09384 100644
--- a/drivers/watchdog/xilinx_wwdt.c
+++ b/drivers/watchdog/xilinx_wwdt.c
@@ -12,6 +12,7 @@
#include <common.h>
#include <dm.h>
#include <regmap.h>
+#include <stdbool.h>
#include <wdt.h>
#include <linux/compat.h>
#include <linux/errno.h>
diff --git a/env/common.c b/env/common.c
index b8ac49cf4998..7b0a7b38e24b 100644
--- a/env/common.c
+++ b/env/common.c
@@ -14,6 +14,7 @@
#include <env_internal.h>
#include <log.h>
#include <sort.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <linux/errno.h>
diff --git a/env/env.c b/env/env.c
index 60c0295affbf..e1a36b658fcb 100644
--- a/env/env.c
+++ b/env/env.c
@@ -13,6 +13,7 @@
#include <linux/bitops.h>
#include <linux/bug.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/env/flags.c b/env/flags.c
index df4aed26b2c6..8cd03336a3f1 100644
--- a/env/flags.c
+++ b/env/flags.c
@@ -5,6 +5,7 @@
*/
#include <env.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/ctype.h>
diff --git a/env/mmc.c b/env/mmc.c
index 63287ec398e9..009a79ac00ce 100644
--- a/env/mmc.c
+++ b/env/mmc.c
@@ -10,6 +10,7 @@
#include <vsprintf.h>
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <command.h>
diff --git a/env/nand.c b/env/nand.c
index 730baf0095c1..18d43c0503a8 100644
--- a/env/nand.c
+++ b/env/nand.c
@@ -20,6 +20,7 @@
#include <stdio.h>
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/stddef.h>
#include <malloc.h>
#include <memalign.h>
diff --git a/env/sata.c b/env/sata.c
index 56109397d533..a4af49ed8e2b 100644
--- a/env/sata.c
+++ b/env/sata.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <stdio.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <command.h>
#include <env.h>
diff --git a/env/sf.c b/env/sf.c
index 4bf67dcc8a9d..6f874f43986f 100644
--- a/env/sf.c
+++ b/env/sf.c
@@ -24,6 +24,7 @@
#include <asm/global_data.h>
#include <dm/device-internal.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <u-boot/crc.h>
#ifndef CONFIG_SPL_BUILD
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index f1e185b2a9ea..6216761b5653 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -8,6 +8,7 @@
#include "btrfs.h"
#include <malloc.h>
#include <stdio.h>
+#include <linux/kernel.h>
u64 btrfs_lookup_inode_ref(struct btrfs_root *root, u64 inr,
struct btrfs_inode_ref *refp, char *name)
diff --git a/fs/btrfs/subvolume.c b/fs/btrfs/subvolume.c
index 72f9b01d3b3c..bc488183cd34 100644
--- a/fs/btrfs/subvolume.c
+++ b/fs/btrfs/subvolume.c
@@ -8,7 +8,7 @@
#include "btrfs.h"
#include <malloc.h>
#include <stdio.h>
-
+#include <linux/kernel.h>
static int get_subvol_name(u64 subvolid, char *name, int max_len)
{
struct btrfs_root_ref rref;
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 0b6def086ea2..41f2193d51c9 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -11,6 +11,7 @@
#include <part.h>
#include <stdio.h>
#include <linux/compat.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "btrfs.h"
diff --git a/fs/cbfs/cbfs.c b/fs/cbfs/cbfs.c
index 1b27320a7601..3f4899101801 100644
--- a/fs/cbfs/cbfs.c
+++ b/fs/cbfs/cbfs.c
@@ -7,6 +7,7 @@
#include <cbfs.h>
#include <log.h>
#include <malloc.h>
+#include <stdbool.h>
#include <asm/byteorder.h>
#include <linux/errno.h>
#include <linux/string.h>
diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c
index c3ca193a1906..8d1cec27cb76 100644
--- a/fs/ext4/ext4_common.c
+++ b/fs/ext4/ext4_common.c
@@ -29,6 +29,7 @@
#include <stddef.h>
#include <stdio.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/stat.h>
#include <linux/string.h>
#include <linux/time.h>
diff --git a/fs/ext4/ext4_write.c b/fs/ext4/ext4_write.c
index a38e0edd6a73..933e8b19b1b5 100644
--- a/fs/ext4/ext4_write.c
+++ b/fs/ext4/ext4_write.c
@@ -29,6 +29,7 @@
#include <part.h>
#include <stdio.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/stat.h>
#include <div64.h>
#include <linux/string.h>
diff --git a/fs/fat/fat.c b/fs/fat/fat.c
index e25416674b79..af202cfe9053 100644
--- a/fs/fat/fat.c
+++ b/fs/fat/fat.c
@@ -24,6 +24,7 @@
#include <linux/compiler.h>
#include <linux/ctype.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/*
diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c
index 42ddb2857897..7da319365420 100644
--- a/fs/fat/fat_write.c
+++ b/fs/fat/fat_write.c
@@ -18,6 +18,7 @@
#include <linux/ctype.h>
#include <div64.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/math64.h>
#include <linux/string.h>
#include "fat.c"
diff --git a/fs/fs.c b/fs/fs.c
index 71dbad6103b5..c657f92afb51 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -26,6 +26,7 @@
#include <asm/io.h>
#include <div64.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/math64.h>
#include <efi_loader.h>
#include <squashfs.h>
diff --git a/fs/fs_internal.c b/fs/fs_internal.c
index 37223573a7c6..b626ffaecbed 100644
--- a/fs/fs_internal.c
+++ b/fs/fs_internal.c
@@ -12,6 +12,7 @@
#include <part.h>
#include <memalign.h>
#include <stdio.h>
+#include <linux/kernel.h>
#include <linux/string.h>
int fs_devread(struct blk_desc *blk, struct disk_partition *partition,
diff --git a/fs/jffs2/compr_lzo.c b/fs/jffs2/compr_lzo.c
index e648ec4fb2e2..da9a17ecaf66 100644
--- a/fs/jffs2/compr_lzo.c
+++ b/fs/jffs2/compr_lzo.c
@@ -67,6 +67,7 @@
#include <config.h>
+#include <linux/kernel.h>
#include <linux/stddef.h>
#include <jffs2/jffs2.h>
#include <jffs2/compr_rubin.h>
diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c
index af3a0fc48aaa..40e8ff663771 100644
--- a/fs/jffs2/jffs2_1pass.c
+++ b/fs/jffs2/jffs2_1pass.c
@@ -118,6 +118,7 @@
#include <div64.h>
#include <stdio.h>
#include <linux/compiler.h>
+#include <linux/kernel.h>
#include <linux/stat.h>
#include <linux/string.h>
#include <linux/time.h>
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
index 07196c52e4f8..a20407688cde 100644
--- a/fs/ubifs/debug.c
+++ b/fs/ubifs/debug.c
@@ -21,6 +21,7 @@
#include <vsprintf.h>
#include <dm/devres.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
diff --git a/fs/ubifs/io.c b/fs/ubifs/io.c
index 4ef1381fc7d0..5a0fa3aa4e4c 100644
--- a/fs/ubifs/io.c
+++ b/fs/ubifs/io.c
@@ -69,6 +69,7 @@
#include <linux/compat.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#endif
#include "ubifs.h"
diff --git a/fs/ubifs/key.h b/fs/ubifs/key.h
index f5b19525621e..6677ff06a268 100644
--- a/fs/ubifs/key.h
+++ b/fs/ubifs/key.h
@@ -33,6 +33,7 @@
* reserved for "." and "..". %2 is reserved for "end of readdir" marker. This
* function makes sure the reserved values are not used.
*/
+#include <linux/kernel.h>
#include <linux/string.h>
static inline uint32_t key_mask_hash(uint32_t hash)
{
diff --git a/fs/ubifs/log.c b/fs/ubifs/log.c
index 6e43a9c62b4b..01edae8ff45a 100644
--- a/fs/ubifs/log.c
+++ b/fs/ubifs/log.c
@@ -20,6 +20,7 @@
#include <dm/devres.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#endif
#include "ubifs.h"
diff --git a/fs/ubifs/lprops.c b/fs/ubifs/lprops.c
index b5ddde857c38..2e4678cfaa85 100644
--- a/fs/ubifs/lprops.c
+++ b/fs/ubifs/lprops.c
@@ -21,6 +21,7 @@
#include <malloc.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#endif
#include "ubifs.h"
diff --git a/fs/ubifs/lpt_commit.c b/fs/ubifs/lpt_commit.c
index 7c5f5d9a246e..2f0d1c6eb512 100644
--- a/fs/ubifs/lpt_commit.c
+++ b/fs/ubifs/lpt_commit.c
@@ -24,6 +24,7 @@
#include <linux/compat.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include "crc16.h"
diff --git a/fs/ubifs/misc.h b/fs/ubifs/misc.h
index 449bcfccbb46..a54e4928fc0a 100644
--- a/fs/ubifs/misc.h
+++ b/fs/ubifs/misc.h
@@ -21,6 +21,7 @@
*
* This helper function returns %1 if @znode is dirty and %0 otherwise.
*/
+#include <linux/kernel.h>
static inline int ubifs_zn_dirty(const struct ubifs_znode *znode)
{
return !!test_bit(DIRTY_ZNODE, &znode->flags);
diff --git a/fs/ubifs/orphan.c b/fs/ubifs/orphan.c
index 1d7b8b6a181f..a7df0364a17f 100644
--- a/fs/ubifs/orphan.c
+++ b/fs/ubifs/orphan.c
@@ -11,6 +11,7 @@
#include <dm/devres.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include "ubifs.h"
/*
diff --git a/fs/ubifs/recovery.c b/fs/ubifs/recovery.c
index 8d342766221d..24c66ce16886 100644
--- a/fs/ubifs/recovery.c
+++ b/fs/ubifs/recovery.c
@@ -44,6 +44,7 @@
#else
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#endif
#include "ubifs.h"
diff --git a/fs/ubifs/replay.c b/fs/ubifs/replay.c
index 248a80659257..845a270ce513 100644
--- a/fs/ubifs/replay.c
+++ b/fs/ubifs/replay.c
@@ -26,6 +26,7 @@
#include <linux/compat.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#endif
#include "ubifs.h"
diff --git a/fs/ubifs/scan.c b/fs/ubifs/scan.c
index 9332a61ff34a..218cbfade109 100644
--- a/fs/ubifs/scan.c
+++ b/fs/ubifs/scan.c
@@ -21,6 +21,7 @@
#include <dm/devres.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#endif
#include "ubifs.h"
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index 8f219ba85333..9c37fa2254c8 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -37,6 +37,7 @@
#include <linux/bitops.h>
#include <linux/bug.h>
#include <linux/errno.h>
+#include <linux/kernel.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 72bcd4227462..b9174c8798f3 100644
--- a/fs/ubifs/tnc.c
+++ b/fs/ubifs/tnc.c
@@ -30,6 +30,7 @@
#include <linux/compat.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/stat.h>
#include <linux/string.h>
#endif
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h
index efa7a69cb6dd..c8a33fa36edb 100644
--- a/fs/ubifs/ubifs.h
+++ b/fs/ubifs/ubifs.h
@@ -35,6 +35,7 @@
#include <asm-generic/atomic-long.h>
#include <ubi_uboot.h>
#include <ubifs_uboot.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/ctype.h>
diff --git a/fs/zfs/zfs.c b/fs/zfs/zfs.c
index b63022aae32d..0bc872175e5c 100644
--- a/fs/zfs/zfs.c
+++ b/fs/zfs/zfs.c
@@ -14,6 +14,7 @@
#include <log.h>
#include <malloc.h>
#include <stdio.h>
+#include <linux/kernel.h>
#include <linux/stat.h>
#include <linux/string.h>
#include <linux/time.h>
diff --git a/include/acpi/acpi_device.h b/include/acpi/acpi_device.h
index 11461e168d38..1c6aceb20af2 100644
--- a/include/acpi/acpi_device.h
+++ b/include/acpi/acpi_device.h
@@ -11,6 +11,7 @@
#include <i2c.h>
#include <spi.h>
+#include <stdbool.h>
#include <linux/bitops.h>
struct acpi_ctx;
diff --git a/include/acpi/acpigen.h b/include/acpi/acpigen.h
index 228ac9c404b3..3dfdc962510b 100644
--- a/include/acpi/acpigen.h
+++ b/include/acpi/acpigen.h
@@ -10,6 +10,7 @@
#ifndef __ACPI_ACPIGEN_H
#define __ACPI_ACPIGEN_H
+#include <stdbool.h>
#include <linux/types.h>
struct acpi_ctx;
diff --git a/include/adc.h b/include/adc.h
index 5841dfb54b9f..6596059df85a 100644
--- a/include/adc.h
+++ b/include/adc.h
@@ -7,6 +7,8 @@
#ifndef _ADC_H_
#define _ADC_H_
+#include <stdbool.h>
+
/* ADC_CHANNEL() - ADC channel bit mask, to select only required channels */
#define ADC_CHANNEL(x) (1 << x)
diff --git a/include/ahci.h b/include/ahci.h
index fb96dd886115..a6f32010ca28 100644
--- a/include/ahci.h
+++ b/include/ahci.h
@@ -7,6 +7,7 @@
#ifndef _AHCI_H_
#define _AHCI_H_
+#include <compiler.h>
#include <pci.h>
#define AHCI_PCI_BAR 0x24
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h
index a57dd2665cee..acbe791c84bf 100644
--- a/include/asm-generic/gpio.h
+++ b/include/asm-generic/gpio.h
@@ -7,6 +7,7 @@
#ifndef _ASM_GENERIC_GPIO_H_
#define _ASM_GENERIC_GPIO_H_
+#include <stdbool.h>
#include <dm/ofnode.h>
#include <linux/bitops.h>
diff --git a/include/atsha204a-i2c.h b/include/atsha204a-i2c.h
index 344fd8ace7d4..5c1ab65eef78 100644
--- a/include/atsha204a-i2c.h
+++ b/include/atsha204a-i2c.h
@@ -12,6 +12,7 @@
#ifndef _ATSHA204_I2C_H_
#define _ATSHA204_I2C_H_
+#include <stdbool.h>
enum atsha204a_zone
{
ATSHA204A_ZONE_CONFIG = 0,
diff --git a/include/avb_verify.h b/include/avb_verify.h
index a8d7090f7944..8aebe75ac911 100644
--- a/include/avb_verify.h
+++ b/include/avb_verify.h
@@ -98,4 +98,5 @@ static inline int get_boot_device(AvbOps *ops)
return -1;
}
+#include <stdbool.h>
#endif /* _AVB_VERIFY_H */
diff --git a/include/bmp_layout.h b/include/bmp_layout.h
index a5c9498dc9fb..556f5db3c46b 100644
--- a/include/bmp_layout.h
+++ b/include/bmp_layout.h
@@ -10,6 +10,8 @@
#ifndef _BMP_H_
#define _BMP_H_
+#include <compiler.h>
+
struct __packed bmp_color_table_entry {
__u8 blue;
__u8 green;
diff --git a/include/board.h b/include/board.h
index 755a888e3382..d9f7aafb49b3 100644
--- a/include/board.h
+++ b/include/board.h
@@ -4,6 +4,7 @@
* Mario Six, Guntermann & Drunck GmbH, mario.six at gdsys.cc
*/
+#include <stdbool.h>
#include <linux/errno.h>
struct udevice;
diff --git a/include/bootstage.h b/include/bootstage.h
index 00c85fb86aa2..670f785c89e2 100644
--- a/include/bootstage.h
+++ b/include/bootstage.h
@@ -11,6 +11,8 @@
#ifndef _BOOTSTAGE_H
#define _BOOTSTAGE_H
+#include <stdbool.h>
+
/* Flags for each bootstage record */
enum bootstage_flags {
BOOTSTAGEF_ERROR = 1 << 0, /* Error record */
diff --git a/include/cli.h b/include/cli.h
index 06355767f6dd..8a0b02cf1da6 100644
--- a/include/cli.h
+++ b/include/cli.h
@@ -7,6 +7,7 @@
#ifndef __CLI_H
#define __CLI_H
+#include <stdbool.h>
#include <time.h>
/**
diff --git a/include/clk.h b/include/clk.h
index a62e2efa2ca4..c28f67471464 100644
--- a/include/clk.h
+++ b/include/clk.h
@@ -8,6 +8,7 @@
#ifndef _CLK_H_
#define _CLK_H_
+#include <stdbool.h>
#include <dm/ofnode.h>
#include <linux/err.h>
#include <linux/errno.h>
diff --git a/include/command.h b/include/command.h
index b9b5ec1afa04..bc7786dd4a4c 100644
--- a/include/command.h
+++ b/include/command.h
@@ -12,6 +12,8 @@
#include <env.h>
#include <linker_lists.h>
+#include <stdbool.h>
+#include <linux/kernel.h>
#ifndef NULL
#define NULL 0
diff --git a/include/common.h b/include/common.h
index 4fa613216ef2..868576038a76 100644
--- a/include/common.h
+++ b/include/common.h
@@ -15,7 +15,6 @@
#ifndef __ASSEMBLY__ /* put C only stuff in this section */
#include <config.h>
#include <linux/types.h>
-#include <linux/kernel.h>
#endif /* __ASSEMBLY__ */
/* Pull in stuff for the build system */
diff --git a/include/cpsw.h b/include/cpsw.h
index 786f8b385b75..9a237d9abe8e 100644
--- a/include/cpsw.h
+++ b/include/cpsw.h
@@ -16,6 +16,7 @@
#ifndef _CPSW_H_
#define _CPSW_H_
+#include <stdbool.h>
#include <dm/ofnode.h>
/* reg offset */
diff --git a/include/cros_ec.h b/include/cros_ec.h
index f4b9b7a5c26e..ceb3916ae894 100644
--- a/include/cros_ec.h
+++ b/include/cros_ec.h
@@ -13,6 +13,7 @@
#include <cros_ec_message.h>
#include <asm/gpio.h>
#include <dm/of_extra.h>
+#include <linux/kernel.h>
/* Our configuration information */
struct cros_ec_dev {
diff --git a/include/crypto/pkcs7_parser.h b/include/crypto/pkcs7_parser.h
index 2c45cce52348..053ba7826a37 100644
--- a/include/crypto/pkcs7_parser.h
+++ b/include/crypto/pkcs7_parser.h
@@ -8,6 +8,7 @@
#ifndef _PKCS7_PARSER_H
#define _PKCS7_PARSER_H
+#include <stdbool.h>
#include <linux/oid_registry.h>
#include <crypto/pkcs7.h>
#include <crypto/x509_parser.h>
diff --git a/include/crypto/public_key.h b/include/crypto/public_key.h
index 3ba90fcc3483..2ef675b57e07 100644
--- a/include/crypto/public_key.h
+++ b/include/crypto/public_key.h
@@ -11,6 +11,7 @@
#define _LINUX_PUBLIC_KEY_H
#ifdef __UBOOT__
+#include <stdbool.h>
#include <linux/types.h>
#else
#include <linux/keyctl.h>
diff --git a/include/crypto/x509_parser.h b/include/crypto/x509_parser.h
index 4cbdc1d6612d..b793cbde735d 100644
--- a/include/crypto/x509_parser.h
+++ b/include/crypto/x509_parser.h
@@ -8,6 +8,7 @@
#ifndef _X509_PARSER_H
#define _X509_PARSER_H
+#include <stdbool.h>
#include <linux/time.h>
#include <crypto/public_key.h>
#include <keys/asymmetric-type.h>
diff --git a/include/dfu.h b/include/dfu.h
index 475b2a254d6b..764b7757289b 100644
--- a/include/dfu.h
+++ b/include/dfu.h
@@ -11,6 +11,7 @@
#define __DFU_ENTITY_H_
#include <common.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/errno.h>
#include <linux/list.h>
diff --git a/include/display.h b/include/display.h
index 66294616ea29..2c8aca4e48bc 100644
--- a/include/display.h
+++ b/include/display.h
@@ -6,6 +6,8 @@
#ifndef _DISPLAY_H
#define _DISPLAY_H
+#include <stdbool.h>
+
struct udevice;
struct display_timing;
diff --git a/include/display_options.h b/include/display_options.h
index 990ea844ec23..002469551215 100644
--- a/include/display_options.h
+++ b/include/display_options.h
@@ -9,6 +9,8 @@
#ifndef __DISPLAY_OPTIONS_H
#define __DISPLAY_OPTIONS_H
+#include <stdbool.h>
+
/**
* print_size() - Print a size with a suffix
*
diff --git a/include/div64.h b/include/div64.h
index 8b92d2b18347..823caf6bf2d7 100644
--- a/include/div64.h
+++ b/include/div64.h
@@ -20,6 +20,7 @@
* beware of side effects!
*/
+#include <stdbool.h>
#include <linux/types.h>
#include <linux/compiler.h>
diff --git a/include/dm/device-internal.h b/include/dm/device-internal.h
index c29134976aa0..07857cf1be75 100644
--- a/include/dm/device-internal.h
+++ b/include/dm/device-internal.h
@@ -10,6 +10,7 @@
#ifndef _DM_DEVICE_INTERNAL_H
#define _DM_DEVICE_INTERNAL_H
+#include <stdbool.h>
#include <asm/global_data.h>
#include <dm/ofnode.h>
diff --git a/include/dm/device.h b/include/dm/device.h
index 953706cf5256..90fb96599b25 100644
--- a/include/dm/device.h
+++ b/include/dm/device.h
@@ -10,6 +10,7 @@
#ifndef _DM_DEVICE_H
#define _DM_DEVICE_H
+#include <stdbool.h>
#include <dm/ofnode.h>
#include <dm/uclass-id.h>
#include <fdtdec.h>
diff --git a/include/dm/devres.h b/include/dm/devres.h
index 17bb1ee8dad1..daeefd7ea3ea 100644
--- a/include/dm/devres.h
+++ b/include/dm/devres.h
@@ -12,6 +12,7 @@
#define _DM_DEVRES_H
#include <linux/compat.h>
+#include <linux/kernel.h>
struct udevice;
diff --git a/include/dm/lists.h b/include/dm/lists.h
index 810e244d9ef3..85e9a5dd6950 100644
--- a/include/dm/lists.h
+++ b/include/dm/lists.h
@@ -9,6 +9,7 @@
#ifndef _DM_LISTS_H_
#define _DM_LISTS_H_
+#include <stdbool.h>
#include <dm/ofnode.h>
#include <dm/uclass-id.h>
diff --git a/include/dm/of.h b/include/dm/of.h
index a64822f7e91f..3d6e23a93408 100644
--- a/include/dm/of.h
+++ b/include/dm/of.h
@@ -7,6 +7,7 @@
#ifndef _DM_OF_H
#define _DM_OF_H
+#include <stdbool.h>
#include <asm/u-boot.h>
#include <asm/global_data.h>
#include <linux/string.h>
diff --git a/include/dm/of_access.h b/include/dm/of_access.h
index f95a00d06550..6f01196b76ce 100644
--- a/include/dm/of_access.h
+++ b/include/dm/of_access.h
@@ -17,6 +17,7 @@
#ifndef _DM_OF_ACCESS_H
#define _DM_OF_ACCESS_H
+#include <stdbool.h>
#include <dm/of.h>
/**
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h
index 8df2facf9985..cc700d2b6584 100644
--- a/include/dm/ofnode.h
+++ b/include/dm/ofnode.h
@@ -9,6 +9,7 @@
/* TODO(sjg at chromium.org): Drop fdtdec.h include */
#include <fdtdec.h>
+#include <stdbool.h>
#include <dm/of.h>
/* Enable checks to protect against invalid calls */
diff --git a/include/dm/platform_data/serial_bcm283x_mu.h b/include/dm/platform_data/serial_bcm283x_mu.h
index 37f5174dbf2e..661988b37f16 100644
--- a/include/dm/platform_data/serial_bcm283x_mu.h
+++ b/include/dm/platform_data/serial_bcm283x_mu.h
@@ -14,6 +14,7 @@
*
* @base: Register base address
*/
+#include <stdbool.h>
struct bcm283x_mu_serial_platdata {
unsigned long base;
unsigned int clock;
diff --git a/include/dm/platform_data/serial_mxc.h b/include/dm/platform_data/serial_mxc.h
index 86cd3bcf628d..b2c6c5b08cb4 100644
--- a/include/dm/platform_data/serial_mxc.h
+++ b/include/dm/platform_data/serial_mxc.h
@@ -7,6 +7,7 @@
#define __serial_mxc_h
/* Information about a serial port */
+#include <stdbool.h>
struct mxc_serial_platdata {
struct mxc_uart *reg; /* address of registers in physical memory */
bool use_dte;
diff --git a/include/dm/platform_data/serial_pl01x.h b/include/dm/platform_data/serial_pl01x.h
index 77d96c49f03a..1d30e02c3495 100644
--- a/include/dm/platform_data/serial_pl01x.h
+++ b/include/dm/platform_data/serial_pl01x.h
@@ -6,6 +6,7 @@
#ifndef __serial_pl01x_h
#define __serial_pl01x_h
+#include <stdbool.h>
enum pl01x_type {
TYPE_PL010,
TYPE_PL011,
diff --git a/include/dm/read.h b/include/dm/read.h
index 487ec9e9c933..2d0312fc8c58 100644
--- a/include/dm/read.h
+++ b/include/dm/read.h
@@ -9,6 +9,7 @@
#ifndef _DM_READ_H
#define _DM_READ_H
+#include <stdbool.h>
#include <linux/errno.h>
#include <dm/device.h>
diff --git a/include/dm/root.h b/include/dm/root.h
index c8d629ba9bfb..f2c735556710 100644
--- a/include/dm/root.h
+++ b/include/dm/root.h
@@ -9,6 +9,7 @@
#ifndef _DM_ROOT_H_
#define _DM_ROOT_H_
+#include <stdbool.h>
struct udevice;
/**
diff --git a/include/dm/uclass-internal.h b/include/dm/uclass-internal.h
index 6e3f15c2b080..0583f1ab57f5 100644
--- a/include/dm/uclass-internal.h
+++ b/include/dm/uclass-internal.h
@@ -9,6 +9,7 @@
#ifndef _DM_UCLASS_INTERNAL_H
#define _DM_UCLASS_INTERNAL_H
+#include <stdbool.h>
#include <dm/ofnode.h>
/**
diff --git a/include/dw_hdmi.h b/include/dw_hdmi.h
index 8acae3839fb3..4c4024ef19fb 100644
--- a/include/dw_hdmi.h
+++ b/include/dw_hdmi.h
@@ -10,6 +10,7 @@
#define _DW_HDMI_H
#include <edid.h>
+#include <stdbool.h>
#define HDMI_EDID_BLOCK_SIZE 128
diff --git a/include/dwmmc.h b/include/dwmmc.h
index d8a8355a0ada..46a9ca25bec2 100644
--- a/include/dwmmc.h
+++ b/include/dwmmc.h
@@ -7,6 +7,7 @@
#ifndef __DWMMC_HW_H
#define __DWMMC_HW_H
+#include <stdbool.h>
#include <asm/cache.h>
#include <asm/io.h>
#include <mmc.h>
diff --git a/include/edid.h b/include/edid.h
index 2562733061c0..9a0612bf0727 100644
--- a/include/edid.h
+++ b/include/edid.h
@@ -12,6 +12,7 @@
#ifndef __EDID_H_
#define __EDID_H_
+#include <stdbool.h>
#include <linux/types.h>
/* Size of the EDID data */
diff --git a/include/efi.h b/include/efi.h
index 0c99e1707d0a..155dbc339cb5 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -17,6 +17,7 @@
#define _EFI_H
#include <stdarg.h>
+#include <stdbool.h>
#include <vsprintf.h>
#include <linux/linkage.h>
#include <linux/string.h>
diff --git a/include/efi_api.h b/include/efi_api.h
index 5744f6aed86d..268d980b11fb 100644
--- a/include/efi_api.h
+++ b/include/efi_api.h
@@ -19,6 +19,7 @@
#include <efi.h>
#include <charset.h>
#include <pe.h>
+#include <stdbool.h>
#ifdef CONFIG_EFI_LOADER
#include <asm/setjmp.h>
diff --git a/include/efi_selftest.h b/include/efi_selftest.h
index 1515fdaa02b0..25e5f56121ef 100644
--- a/include/efi_selftest.h
+++ b/include/efi_selftest.h
@@ -13,6 +13,7 @@
#include <efi_api.h>
#include <efi_loader.h>
#include <linker_lists.h>
+#include <stdbool.h>
#define EFI_ST_SUCCESS 0
#define EFI_ST_FAILURE 1
diff --git a/include/efi_variable.h b/include/efi_variable.h
index 60491cb64025..454325396fab 100644
--- a/include/efi_variable.h
+++ b/include/efi_variable.h
@@ -6,6 +6,7 @@
#ifndef _EFI_VARIABLE_H
#define _EFI_VARIABLE_H
+#include <stdbool.h>
#include <linux/bitops.h>
#define EFI_VARIABLE_READ_ONLY BIT(31)
diff --git a/include/exception.h b/include/exception.h
index 7f4638e42523..53bde10a62b6 100644
--- a/include/exception.h
+++ b/include/exception.h
@@ -6,6 +6,7 @@
*/
#include <command.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static int do_exception(struct cmd_tbl *cmdtp, int flag, int argc,
diff --git a/include/fdtdec.h b/include/fdtdec.h
index 138c1e9b5908..258a171dc7e6 100644
--- a/include/fdtdec.h
+++ b/include/fdtdec.h
@@ -14,6 +14,7 @@
* changes to support FDT are minimized.
*/
+#include <stdbool.h>
#include <asm/u-boot.h>
#include <linux/libfdt.h>
#include <pci.h>
diff --git a/include/fsl-mc/fsl_dpaa_fd.h b/include/fsl-mc/fsl_dpaa_fd.h
index 159756f71af0..5c092af15c8f 100644
--- a/include/fsl-mc/fsl_dpaa_fd.h
+++ b/include/fsl-mc/fsl_dpaa_fd.h
@@ -10,6 +10,7 @@
* is impractical to define One True Struct, because the resulting encoding
* routines (lots of read-modify-writes) would be worst-case performance whether
* or not circumstances required them.) */
+#include <linux/kernel.h>
struct dpaa_fd {
union {
u32 words[8];
diff --git a/include/fsl_ddr_sdram.h b/include/fsl_ddr_sdram.h
index 56c9db2594c0..1523e80d29f1 100644
--- a/include/fsl_ddr_sdram.h
+++ b/include/fsl_ddr_sdram.h
@@ -12,6 +12,7 @@
*/
#include <ddr_spd.h>
#include <fsl_ddrc_version.h>
+#include <stdbool.h>
#define SDRAM_TYPE_DDR1 2
#define SDRAM_TYPE_DDR2 3
diff --git a/include/fsl_errata.h b/include/fsl_errata.h
index 4d3ce3b1eb1c..ad3f299361f5 100644
--- a/include/fsl_errata.h
+++ b/include/fsl_errata.h
@@ -14,6 +14,7 @@
#elif defined(CONFIG_FSL_LAYERSCAPE)
#include <asm/arch/soc.h>
#endif
+#include <stdbool.h>
#ifdef CONFIG_SYS_FSL_ERRATUM_A006379
diff --git a/include/fsl_usb.h b/include/fsl_usb.h
index c0f076b06daf..5e3a935e9d8f 100644
--- a/include/fsl_usb.h
+++ b/include/fsl_usb.h
@@ -52,6 +52,7 @@ struct ccsr_usb_phy {
#define CONFIG_SYS_FSL_USB_PLLPRG2_MFI_INTERNAL_CLK (6 << 16)
#define CONFIG_SYS_FSL_USB_INTERNAL_SOC_CLK_EN (1 << 20)
#endif
+#include <stdbool.h>
#define CONFIG_SYS_FSL_USB_PLLPRG2_REF_DIV (1 << 4)
#define CONFIG_SYS_FSL_USB_PLLPRG2_MFI (5 << 16)
#define CONFIG_SYS_FSL_USB_PLLPRG2_PLL_EN (1 << 21)
diff --git a/include/g_dnl.h b/include/g_dnl.h
index 836ee602c8da..7f78438f1cea 100644
--- a/include/g_dnl.h
+++ b/include/g_dnl.h
@@ -7,6 +7,7 @@
#ifndef __G_DOWNLOAD_H_
#define __G_DOWNLOAD_H_
+#include <stdbool.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
#include <linux/usb/composite.h>
diff --git a/include/generic-phy.h b/include/generic-phy.h
index 5ab34cda03d8..9312711a2b3c 100644
--- a/include/generic-phy.h
+++ b/include/generic-phy.h
@@ -7,6 +7,7 @@
#ifndef __GENERIC_PHY_H
#define __GENERIC_PHY_H
+#include <stdbool.h>
#include <dm/ofnode.h>
struct ofnode_phandle_args;
diff --git a/include/hexdump.h b/include/hexdump.h
index f7b76ff71213..12dd4ad0462c 100644
--- a/include/hexdump.h
+++ b/include/hexdump.h
@@ -7,6 +7,7 @@
#ifndef HEXDUMP_H
#define HEXDUMP_H
+#include <stdbool.h>
#include <linux/ctype.h>
#include <linux/types.h>
diff --git a/include/i2c.h b/include/i2c.h
index 7ea6b9a14cbc..b8ee77d98bce 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -17,6 +17,7 @@
#define _I2C_H_
#include <linker_lists.h>
+#include <stdbool.h>
#include <stdio.h>
/*
diff --git a/include/image-android-dt.h b/include/image-android-dt.h
index 9a3aa8fa30fb..0764eabcb4bb 100644
--- a/include/image-android-dt.h
+++ b/include/image-android-dt.h
@@ -7,6 +7,7 @@
#ifndef IMAGE_ANDROID_DT_H
#define IMAGE_ANDROID_DT_H
+#include <stdbool.h>
#include <linux/types.h>
bool android_dt_check_header(ulong hdr_addr);
diff --git a/include/image-sparse.h b/include/image-sparse.h
index 0572dbd0a283..42b28bb6146e 100644
--- a/include/image-sparse.h
+++ b/include/image-sparse.h
@@ -6,6 +6,7 @@
#include <compiler.h>
#include <part.h>
#include <sparse_format.h>
+#include <linux/kernel.h>
#define ROUNDUP(x, y) (((x) + ((y) - 1)) & ~((y) - 1))
diff --git a/include/input.h b/include/input.h
index 3285a3ffa289..973d13f53b9c 100644
--- a/include/input.h
+++ b/include/input.h
@@ -8,6 +8,7 @@
#ifndef _INPUT_H
#define _INPUT_H
+#include <stdbool.h>
enum {
INPUT_MAX_MODIFIERS = 4,
INPUT_BUFFER_LEN = 16,
diff --git a/include/irq.h b/include/irq.h
index 8527e4dd797b..150d7ce20c24 100644
--- a/include/irq.h
+++ b/include/irq.h
@@ -8,6 +8,7 @@
#ifndef __irq_H
#define __irq_H
+#include <stdbool.h>
struct acpi_irq;
struct ofnode_phandle_args;
diff --git a/include/kendryte/bypass.h b/include/kendryte/bypass.h
index ab85bbcbfca8..439eab81b3aa 100644
--- a/include/kendryte/bypass.h
+++ b/include/kendryte/bypass.h
@@ -5,6 +5,8 @@
#ifndef K210_BYPASS_H
#define K210_BYPASS_H
+#include <linux/kernel.h>
+
struct clk;
struct k210_bypass {
diff --git a/include/kendryte/pll.h b/include/kendryte/pll.h
index c8e3200799ee..083f388c1280 100644
--- a/include/kendryte/pll.h
+++ b/include/kendryte/pll.h
@@ -6,6 +6,7 @@
#define K210_PLL_H
#include <clk.h>
+#include <linux/kernel.h>
#include <test/export.h>
#define K210_PLL_CLKR GENMASK(3, 0)
diff --git a/include/keys/asymmetric-type.h b/include/keys/asymmetric-type.h
index 47d83917df2f..2e8b0224b83f 100644
--- a/include/keys/asymmetric-type.h
+++ b/include/keys/asymmetric-type.h
@@ -85,4 +85,5 @@ extern struct key *find_asymmetric_key(struct key *keyring,
* The payload is at the discretion of the subtype.
*/
+#include <stdbool.h>
#endif /* _KEYS_ASYMMETRIC_TYPE_H */
diff --git a/include/lcd.h b/include/lcd.h
index 9a4c0da5baca..08086008694b 100644
--- a/include/lcd.h
+++ b/include/lcd.h
@@ -11,6 +11,7 @@
#ifndef _LCD_H_
#define _LCD_H_
+#include <compiler.h>
#include <lcd_console.h>
#if defined(CONFIG_CMD_BMP) || defined(CONFIG_SPLASH_SCREEN)
#include <bmp_layout.h>
diff --git a/include/linux/err.h b/include/linux/err.h
index 5ede82432d2d..3fc5a323e8f0 100644
--- a/include/linux/err.h
+++ b/include/linux/err.h
@@ -1,12 +1,12 @@
#ifndef _LINUX_ERR_H
#define _LINUX_ERR_H
+#include <stdbool.h>
#include <linux/compiler.h>
#include <linux/compat.h>
#include <linux/errno.h>
-
/*
* Kernel pointers have redundant information, so we can use a
* scheme where we can return either an error code or a dentry
diff --git a/include/linux/list.h b/include/linux/list.h
index f62afa092c63..d06f14166052 100644
--- a/include/linux/list.h
+++ b/include/linux/list.h
@@ -1,6 +1,7 @@
#ifndef _LINUX_LIST_H
#define _LINUX_LIST_H
+#include <linux/kernel.h>
#include <linux/stddef.h>
#include <linux/poison.h>
diff --git a/include/linux/log2.h b/include/linux/log2.h
index d4e32ecfc644..123bb99447fe 100644
--- a/include/linux/log2.h
+++ b/include/linux/log2.h
@@ -13,6 +13,7 @@
#ifndef _LINUX_LOG2_H
#define _LINUX_LOG2_H
+#include <stdbool.h>
#include <linux/types.h>
#include <linux/bitops.h>
diff --git a/include/linux/soc/ti/cppi5.h b/include/linux/soc/ti/cppi5.h
index 3a55c3ec46f5..7447881eb266 100644
--- a/include/linux/soc/ti/cppi5.h
+++ b/include/linux/soc/ti/cppi5.h
@@ -9,6 +9,7 @@
#define __TI_CPPI5_H__
#include <hexdump.h>
+#include <stdbool.h>
#include <linux/bitops.h>
#include <linux/bug.h>
#include <linux/printk.h>
diff --git a/include/linux/soc/ti/ti_sci_protocol.h b/include/linux/soc/ti/ti_sci_protocol.h
index 0d02ca82aef7..1ae73240c80d 100644
--- a/include/linux/soc/ti/ti_sci_protocol.h
+++ b/include/linux/soc/ti/ti_sci_protocol.h
@@ -20,6 +20,7 @@
* @firmware_revision: Firmware revision (not usually used).
* @firmware_description: Firmware description (not usually used).
*/
+#include <stdbool.h>
#include <linux/bitops.h>
#include <linux/errno.h>
struct ti_sci_version_info {
diff --git a/include/linux/types.h b/include/linux/types.h
index baa2c491ea5b..c9e582edd432 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -3,7 +3,6 @@
#include <linux/posix_types.h>
#include <asm/types.h>
-#include <stdbool.h>
#ifndef __KERNEL_STRICT_NAMES
diff --git a/include/log.h b/include/log.h
index 2859ce1f2e72..2e64a8eab614 100644
--- a/include/log.h
+++ b/include/log.h
@@ -9,6 +9,7 @@
#ifndef __LOG_H
#define __LOG_H
+#include <stdbool.h>
#include <stdio.h>
#include <linker_lists.h>
#include <dm/uclass-id.h>
diff --git a/include/memalign.h b/include/memalign.h
index 44f4a86241ab..cb0dcf39b41c 100644
--- a/include/memalign.h
+++ b/include/memalign.h
@@ -13,6 +13,7 @@
#ifndef __ASSEMBLY__
#include <asm/cache.h>
#include <malloc.h>
+#include <linux/kernel.h>
/*
* The ALLOC_CACHE_ALIGN_BUFFER macro is used to allocate a buffer on the
diff --git a/include/membuff.h b/include/membuff.h
index c992067133b8..d05656ad963d 100644
--- a/include/membuff.h
+++ b/include/membuff.h
@@ -9,6 +9,8 @@
#ifndef _MEMBUFF_H
#define _MEMBUFF_H
+#include <stdbool.h>
+
/**
* @struct membuff: holds the state of a membuff - it is used for input and
* output buffers. The buffer extends from @start to (@start + @size - 1).
diff --git a/include/mipi_dsi.h b/include/mipi_dsi.h
index 33eae9fb6d00..2abbbfa949b0 100644
--- a/include/mipi_dsi.h
+++ b/include/mipi_dsi.h
@@ -16,6 +16,7 @@
#define MIPI_DSI_H
#include <mipi_display.h>
+#include <stdbool.h>
#include <linux/bitops.h>
#include <linux/errno.h>
diff --git a/include/misc.h b/include/misc.h
index 82ec2ce79368..b1c8d307d27d 100644
--- a/include/misc.h
+++ b/include/misc.h
@@ -6,6 +6,7 @@
#ifndef _MISC_H_
#define _MISC_H_
+#include <stdbool.h>
struct udevice;
/**
diff --git a/include/mmc.h b/include/mmc.h
index c1562a61ea5b..d319f46e355f 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -9,6 +9,7 @@
#ifndef _MMC_H_
#define _MMC_H_
+#include <stdbool.h>
#include <asm/u-boot.h>
#include <linux/bitops.h>
#include <linux/list.h>
diff --git a/include/mvebu/comphy.h b/include/mvebu/comphy.h
index cde7a022af1c..4a007ccb0f53 100644
--- a/include/mvebu/comphy.h
+++ b/include/mvebu/comphy.h
@@ -6,6 +6,7 @@
#ifndef _MVEBU_COMPHY_H_
#define _MVEBU_COMPHY_H_
+#include <stdbool.h>
#include <dt-bindings/comphy/comphy_data.h>
struct comphy_map {
diff --git a/include/mxs_nand.h b/include/mxs_nand.h
index c0cefaca90b6..92af891c1871 100644
--- a/include/mxs_nand.h
+++ b/include/mxs_nand.h
@@ -7,6 +7,7 @@
* Stefan Agner <stefan.agner at toradex.com>
*/
+#include <stdbool.h>
#include <linux/mtd/mtd.h>
#include <asm/cache.h>
#include <nand.h>
diff --git a/include/net.h b/include/net.h
index bf6e2f052272..035dcb520ccc 100644
--- a/include/net.h
+++ b/include/net.h
@@ -12,6 +12,7 @@
#ifndef __NET_H__
#define __NET_H__
+#include <stdbool.h>
#include <asm/u-boot.h>
#include <linux/string.h>
#include <linux/types.h>
diff --git a/include/net/ncsi.h b/include/net/ncsi.h
index 2800c842b72e..40563028c259 100644
--- a/include/net/ncsi.h
+++ b/include/net/ncsi.h
@@ -7,6 +7,7 @@
#include <common.h>
#include <phy.h>
+#include <stdbool.h>
bool ncsi_active(void);
void ncsi_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip,
diff --git a/include/net/pcap.h b/include/net/pcap.h
index 512ba982f104..db9b2c4f69fb 100644
--- a/include/net/pcap.h
+++ b/include/net/pcap.h
@@ -12,6 +12,7 @@
*
* @return 0 on success, -ERROR on error
*/
+#include <stdbool.h>
int pcap_init(phys_addr_t paddr, unsigned long size);
/**
diff --git a/include/os.h b/include/os.h
index 1874ae674f2b..22ecb2adfb3a 100644
--- a/include/os.h
+++ b/include/os.h
@@ -11,6 +11,7 @@
#ifndef __OS_H__
#define __OS_H__
+#include <stdbool.h>
#include <linux/types.h>
struct rtc_time;
diff --git a/include/p2sb.h b/include/p2sb.h
index 93e1155dca6c..a0f34496dd76 100644
--- a/include/p2sb.h
+++ b/include/p2sb.h
@@ -8,6 +8,7 @@
#define __p2sb_h
/* Port Id lives in bits 23:16 and register offset lives in 15:0 of address */
+#include <stdbool.h>
#define PCR_PORTID_SHIFT 16
/**
diff --git a/include/pch.h b/include/pch.h
index 620566819ce3..aefd2b69f5c2 100644
--- a/include/pch.h
+++ b/include/pch.h
@@ -7,6 +7,7 @@
#ifndef __pch_h
#define __pch_h
+#include <stdbool.h>
#include <linux/bitops.h>
#define PCH_RCBA 0xf0
diff --git a/include/pci.h b/include/pci.h
index a98ac209eac8..34d97a23a895 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -10,6 +10,8 @@
#ifndef _PCI_H
#define _PCI_H
+#include <stdbool.h>
+
#define PCI_CFG_SPACE_SIZE 256
#define PCI_CFG_SPACE_EXP_SIZE 4096
diff --git a/include/phy-sun4i-usb.h b/include/phy-sun4i-usb.h
index b0a45b205803..33058b1662d8 100644
--- a/include/phy-sun4i-usb.h
+++ b/include/phy-sun4i-usb.h
@@ -13,6 +13,7 @@
* @phy: USB PHY port to detect ID pin
* @return 0 if OK, or a negative error code
*/
+#include <stdbool.h>
int sun4i_usb_phy_id_detect(struct phy *phy);
/**
diff --git a/include/phy.h b/include/phy.h
index 1dbbf6511138..2ac49ea8dbbb 100644
--- a/include/phy.h
+++ b/include/phy.h
@@ -13,6 +13,7 @@
#include <phy_interface.h>
#include <dm/ofnode.h>
#include <dm/read.h>
+#include <stdbool.h>
#include <linux/errno.h>
#include <linux/list.h>
#include <linux/mii.h>
diff --git a/include/phy_interface.h b/include/phy_interface.h
index 841ade311efb..078c4ee16a0c 100644
--- a/include/phy_interface.h
+++ b/include/phy_interface.h
@@ -11,6 +11,8 @@
#define _PHY_INTERFACE_H
#include <string.h>
+#include <stdbool.h>
+#include <linux/kernel.h>
typedef enum {
PHY_INTERFACE_MODE_MII,
diff --git a/include/power/acpi_pmc.h b/include/power/acpi_pmc.h
index 5fbf7451369e..2993edcdb54e 100644
--- a/include/power/acpi_pmc.h
+++ b/include/power/acpi_pmc.h
@@ -196,4 +196,5 @@ int pmc_gpe_init(struct udevice *dev);
#endif /* !__ACPI__ */
+#include <stdbool.h>
#endif
diff --git a/include/power/regulator.h b/include/power/regulator.h
index d9eb9cae2b79..6f5b8b058dfe 100644
--- a/include/power/regulator.h
+++ b/include/power/regulator.h
@@ -7,6 +7,7 @@
#ifndef _INCLUDE_REGULATOR_H_
#define _INCLUDE_REGULATOR_H_
+#include <stdbool.h>
struct udevice;
/**
diff --git a/include/pwm.h b/include/pwm.h
index f9959706ceb6..1791afec5513 100644
--- a/include/pwm.h
+++ b/include/pwm.h
@@ -10,6 +10,7 @@
#ifndef _pwm_h_
#define _pwm_h_
+#include <stdbool.h>
struct udevice;
/* struct pwm_ops: Operations for the PWM uclass */
diff --git a/include/pwrseq.h b/include/pwrseq.h
index fbf6376d24c3..ff208ad25e72 100644
--- a/include/pwrseq.h
+++ b/include/pwrseq.h
@@ -6,6 +6,7 @@
#ifndef __pwrseq_h
#define __pwrseq_h
+#include <stdbool.h>
struct pwrseq_ops {
int (*set_power)(struct udevice *dev, bool enable);
};
diff --git a/include/qfw.h b/include/qfw.h
index cea8e11d4431..cb56ea58192a 100644
--- a/include/qfw.h
+++ b/include/qfw.h
@@ -6,6 +6,7 @@
#ifndef __FW_CFG__
#define __FW_CFG__
+#include <stdbool.h>
#include <linux/list.h>
enum qemu_fwcfg_items {
diff --git a/include/remoteproc.h b/include/remoteproc.h
index 92de5604a800..c8c286e27f12 100644
--- a/include/remoteproc.h
+++ b/include/remoteproc.h
@@ -13,6 +13,7 @@
* initialization *will* be eventually removed once all necessary
* platforms have moved to dm/fdt.
*/
+#include <stdbool.h>
#include <dm/platdata.h> /* For platform data support - non dt world */
#include <linux/errno.h>
diff --git a/include/reset.h b/include/reset.h
index 4fac4e6a202a..dcb7563488c1 100644
--- a/include/reset.h
+++ b/include/reset.h
@@ -6,6 +6,7 @@
#ifndef _RESET_H
#define _RESET_H
+#include <stdbool.h>
#include <dm/ofnode.h>
#include <linux/errno.h>
diff --git a/include/rtc.h b/include/rtc.h
index 1efc0db3de60..5033fde5ac89 100644
--- a/include/rtc.h
+++ b/include/rtc.h
@@ -13,6 +13,7 @@
/* bcd<->bin functions are needed by almost all the RTC drivers, let's include
* it there instead of in evey single driver */
+#include <stdbool.h>
#include <bcd.h>
#include <rtc_def.h>
diff --git a/include/samsung/exynos5-dt-types.h b/include/samsung/exynos5-dt-types.h
index 8fe08fe21183..791f9dca1962 100644
--- a/include/samsung/exynos5-dt-types.h
+++ b/include/samsung/exynos5-dt-types.h
@@ -1,6 +1,7 @@
#ifndef _EXYNOS5_DT_H_
#define _EXYNOS5_DT_H_
+#include <stdbool.h>
enum {
EXYNOS5_BOARD_GENERIC,
diff --git a/include/scsi.h b/include/scsi.h
index 61619e89a7f5..1f427c61101f 100644
--- a/include/scsi.h
+++ b/include/scsi.h
@@ -6,6 +6,7 @@
#ifndef _SCSI_H
#define _SCSI_H
+#include <stdbool.h>
#include <asm/cache.h>
#include <linux/dma-direction.h>
diff --git a/include/sdhci.h b/include/sdhci.h
index 94fc3ed56ace..c47dda8dae3b 100644
--- a/include/sdhci.h
+++ b/include/sdhci.h
@@ -9,6 +9,7 @@
#ifndef __SDHCI_HW_H
#define __SDHCI_HW_H
+#include <stdbool.h>
#include <linux/bitops.h>
#include <linux/types.h>
#include <asm/io.h>
diff --git a/include/serial.h b/include/serial.h
index 6d1e62c6770c..8ce32bc70ef6 100644
--- a/include/serial.h
+++ b/include/serial.h
@@ -1,6 +1,7 @@
#ifndef __SERIAL_H__
#define __SERIAL_H__
+#include <stdbool.h>
#include <post.h>
struct serial_device {
diff --git a/include/spi-mem.h b/include/spi-mem.h
index ca0f55c8fdf3..918e7a1659c6 100644
--- a/include/spi-mem.h
+++ b/include/spi-mem.h
@@ -13,6 +13,8 @@
struct udevice;
+#include <stdbool.h>
+
#define SPI_MEM_OP_CMD(__opcode, __buswidth) \
{ \
.buswidth = __buswidth, \
diff --git a/include/spi_flash.h b/include/spi_flash.h
index 2ee4dbb1322a..559e7e7852ca 100644
--- a/include/spi_flash.h
+++ b/include/spi_flash.h
@@ -9,6 +9,7 @@
#ifndef _SPI_FLASH_H_
#define _SPI_FLASH_H_
+#include <stdbool.h>
#include <stdio.h>
#include <linux/errno.h>
#include <linux/string.h>
diff --git a/include/spl.h b/include/spl.h
index b72dfc7e3d49..7185cc344f04 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -601,4 +601,5 @@ void spl_perform_fixups(struct spl_image_info *spl_image);
struct image_header *spl_get_load_buffer(ssize_t offset, size_t size);
void spl_save_restore_data(void);
+#include <stdbool.h>
#endif
diff --git a/include/stm32_rcc.h b/include/stm32_rcc.h
index a09a09ff9550..dc3039d11ac5 100644
--- a/include/stm32_rcc.h
+++ b/include/stm32_rcc.h
@@ -7,6 +7,7 @@
#ifndef __STM32_RCC_H_
#define __STM32_RCC_H_
+#include <stdbool.h>
#define AHB_PSC_1 0
#define AHB_PSC_2 0x8
#define AHB_PSC_4 0x9
diff --git a/include/tee.h b/include/tee.h
index 99367b258e29..a73ec5a48c23 100644
--- a/include/tee.h
+++ b/include/tee.h
@@ -6,6 +6,7 @@
#ifndef __TEE_H
#define __TEE_H
+#include <stdbool.h>
#include <linux/bitops.h>
#include <linux/list.h>
diff --git a/include/test/ut.h b/include/test/ut.h
index 96456386d214..28c3f3fba750 100644
--- a/include/test/ut.h
+++ b/include/test/ut.h
@@ -11,6 +11,7 @@
#include <command.h>
#include <hexdump.h>
#include <linux/err.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <test/test.h>
diff --git a/include/tlv_eeprom.h b/include/tlv_eeprom.h
index 99cefa61dfa5..f523d972d06e 100644
--- a/include/tlv_eeprom.h
+++ b/include/tlv_eeprom.h
@@ -8,6 +8,7 @@
#define __TLV_EEPROM_H_
#include <compiler.h>
+#include <stdbool.h>
#include <linux/errno.h>
#include <linux/string.h>
diff --git a/include/usb.h b/include/usb.h
index fa9e09607e2c..89b219486c25 100644
--- a/include/usb.h
+++ b/include/usb.h
@@ -12,6 +12,7 @@
#define _USB_H_
#include <fdtdec.h>
+#include <stdbool.h>
#include <usb_defs.h>
#include <linux/usb/ch9.h>
#include <asm/cache.h>
diff --git a/include/usb/dwc2_udc.h b/include/usb/dwc2_udc.h
index a2af381a6677..1d8c624d375f 100644
--- a/include/usb/dwc2_udc.h
+++ b/include/usb/dwc2_udc.h
@@ -8,6 +8,7 @@
#ifndef __DWC2_USB_GADGET
#define __DWC2_USB_GADGET
+#include <stdbool.h>
#include <dm/ofnode.h>
#define PHY0_SLEEP (1 << 5)
diff --git a/include/usb/xhci.h b/include/usb/xhci.h
index 7d34103fd5ca..8d9c7917cb85 100644
--- a/include/usb/xhci.h
+++ b/include/usb/xhci.h
@@ -17,9 +17,11 @@
#define HOST_XHCI_H_
#include <reset.h>
+#include <stdbool.h>
#include <asm/types.h>
#include <asm/cache.h>
#include <asm/io.h>
+#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/compat.h>
diff --git a/include/usb_defs.h b/include/usb_defs.h
index 6dd2c997f9b3..e31ebc5c28c7 100644
--- a/include/usb_defs.h
+++ b/include/usb_defs.h
@@ -11,6 +11,7 @@
/* USB constants */
/* Device and/or Interface Class codes */
+#include <stdbool.h>
#define USB_CLASS_PER_INTERFACE 0 /* for DeviceClass */
#define USB_CLASS_AUDIO 1
#define USB_CLASS_COMM 2
diff --git a/include/vbe.h b/include/vbe.h
index f420f493ee1b..6e71610b8a86 100644
--- a/include/vbe.h
+++ b/include/vbe.h
@@ -11,6 +11,7 @@
#define _VBE_H
/* these structs are for input from and output to OF */
+#include <stdbool.h>
struct __packed vbe_screen_info {
u8 display_type; /* 0=NONE, 1= analog, 2=digital */
u16 screen_width;
diff --git a/include/video.h b/include/video.h
index 1a0ffd80379b..03e342c64051 100644
--- a/include/video.h
+++ b/include/video.h
@@ -243,6 +243,7 @@ static inline int video_sync_copy(struct udevice *dev, void *from, void *to)
}
#endif
+#include <stdbool.h>
#endif /* CONFIG_DM_VIDEO */
#ifndef CONFIG_DM_VIDEO
diff --git a/include/video_bridge.h b/include/video_bridge.h
index 22e93dbb53b3..b47cae664597 100644
--- a/include/video_bridge.h
+++ b/include/video_bridge.h
@@ -7,6 +7,7 @@
#ifndef __VIDEO_BRIDGE
#define __VIDEO_BRIDGE
+#include <stdbool.h>
#include <asm/gpio.h>
/**
diff --git a/include/virtio.h b/include/virtio.h
index 6a2932e391fb..fb8528de283c 100644
--- a/include/virtio.h
+++ b/include/virtio.h
@@ -21,6 +21,7 @@
#define __VIRTIO_H__
#include <compiler.h>
+#include <stdbool.h>
#include <linux/bitops.h>
#include <linux/bug.h>
#include <linux/typecheck.h>
diff --git a/include/virtio_ring.h b/include/virtio_ring.h
index 6fc0593b14b7..fff2d180d1b9 100644
--- a/include/virtio_ring.h
+++ b/include/virtio_ring.h
@@ -9,6 +9,7 @@
#ifndef _LINUX_VIRTIO_RING_H
#define _LINUX_VIRTIO_RING_H
+#include <stdbool.h>
#include <virtio_types.h>
/* This marks a buffer as continuing via the next field */
diff --git a/include/w1.h b/include/w1.h
index 77f439e587f7..a247e87dce15 100644
--- a/include/w1.h
+++ b/include/w1.h
@@ -10,6 +10,8 @@
struct udevice;
+#include <stdbool.h>
+
#define W1_FAMILY_DS24B33 0x23
#define W1_FAMILY_DS2431 0x2d
#define W1_FAMILY_DS2502 0x09
diff --git a/include/wait_bit.h b/include/wait_bit.h
index a9bf4d90a8f9..96a97bc327ef 100644
--- a/include/wait_bit.h
+++ b/include/wait_bit.h
@@ -10,6 +10,7 @@
#include <console.h>
#include <log.h>
+#include <stdbool.h>
#include <stdio.h>
#include <time.h>
#include <watchdog.h>
diff --git a/include/xyzModem.h b/include/xyzModem.h
index a8911b6bf574..eb0be111c149 100644
--- a/include/xyzModem.h
+++ b/include/xyzModem.h
@@ -25,6 +25,7 @@
#ifndef _XYZMODEM_H_
#define _XYZMODEM_H_
+#include <stdbool.h>
#include <linux/delay.h>
#define xyzModem_xmodem 1
diff --git a/lib/acpi/acpi_device.c b/lib/acpi/acpi_device.c
index 9e31a69c20f9..b2cbf9093613 100644
--- a/lib/acpi/acpi_device.c
+++ b/lib/acpi/acpi_device.c
@@ -18,6 +18,7 @@
#include <asm-generic/gpio.h>
#include <dm/acpi.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/**
diff --git a/lib/acpi/acpi_table.c b/lib/acpi/acpi_table.c
index 0f6cb8728cd8..f0b49c96e7f3 100644
--- a/lib/acpi/acpi_table.c
+++ b/lib/acpi/acpi_table.c
@@ -16,6 +16,7 @@
#include <asm/global_data.h>
#include <dm/acpi.h>
#include <linux/errno.h>
+#include <linux/kernel.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 f119de2bca6d..3b04aa992e1a 100644
--- a/lib/acpi/acpigen.c
+++ b/lib/acpi/acpigen.c
@@ -11,6 +11,7 @@
#include <common.h>
#include <dm.h>
#include <log.h>
+#include <stdbool.h>
#include <uuid.h>
#include <acpi/acpigen.h>
#include <acpi/acpi_device.h>
diff --git a/lib/aes/aes-decrypt.c b/lib/aes/aes-decrypt.c
index 3b01d1c8cbb5..de67f0f32a7f 100644
--- a/lib/aes/aes-decrypt.c
+++ b/lib/aes/aes-decrypt.c
@@ -8,6 +8,7 @@
#include <malloc.h>
#include <stdio.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#endif
#include <image.h>
diff --git a/lib/bch.c b/lib/bch.c
index 578f4191309c..0f68568c60bd 100644
--- a/lib/bch.c
+++ b/lib/bch.c
@@ -60,6 +60,7 @@
#include <ubi_uboot.h>
#include <dm/devres.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/bitops.h>
diff --git a/lib/crypto/asymmetric_type.c b/lib/crypto/asymmetric_type.c
index 46d0dd468e5c..d0dd2529536d 100644
--- a/lib/crypto/asymmetric_type.c
+++ b/lib/crypto/asymmetric_type.c
@@ -19,6 +19,7 @@
#include <linux/ctype.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#else
diff --git a/lib/display_options.c b/lib/display_options.c
index 826668505ca4..8dcbd75e9148 100644
--- a/lib/display_options.c
+++ b/lib/display_options.c
@@ -14,6 +14,7 @@
#include <vsprintf.h>
#include <linux/ctype.h>
#include <asm/io.h>
+#include <linux/kernel.h>
char *display_options_get_banner_priv(bool newlines, const char *build_tag,
char *buf, int size)
diff --git a/lib/efi/efi_stub.c b/lib/efi/efi_stub.c
index ef8b80a46257..42b24139dbee 100644
--- a/lib/efi/efi_stub.c
+++ b/lib/efi/efi_stub.c
@@ -21,6 +21,7 @@
#include <asm/io.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>
diff --git a/lib/efi_loader/efi_acpi.c b/lib/efi_loader/efi_acpi.c
index 585b2d2b6365..87a02d59b9c9 100644
--- a/lib/efi_loader/efi_acpi.c
+++ b/lib/efi_loader/efi_acpi.c
@@ -9,6 +9,7 @@
#include <efi_loader.h>
#include <log.h>
#include <acpi/acpi_table.h>
+#include <linux/kernel.h>
static const efi_guid_t acpi_guid = EFI_ACPI_TABLE_GUID;
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index 063067c05c05..05b7cceb3e32 100644
--- a/lib/efi_loader/efi_boottime.c
+++ b/lib/efi_loader/efi_boottime.c
@@ -15,6 +15,7 @@
#include <time.h>
#include <vsprintf.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/libfdt_env.h>
#include <linux/string.h>
#include <u-boot/crc.h>
diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c
index 088e3eacb829..ae0ee7ee9091 100644
--- a/lib/efi_loader/efi_console.c
+++ b/lib/efi_loader/efi_console.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <charset.h>
#include <malloc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <time.h>
#include <dm/device.h>
diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c
index d4820fa5f0b0..68e344ee3448 100644
--- a/lib/efi_loader/efi_device_path.c
+++ b/lib/efi_loader/efi_device_path.c
@@ -19,6 +19,7 @@
#include <vsprintf.h>
#include <asm-generic/unaligned.h>
#include <linux/compat.h> /* U16_MAX */
+#include <linux/kernel.h>
#include <linux/string.h>
#ifdef CONFIG_SANDBOX
diff --git a/lib/efi_loader/efi_device_path_to_text.c b/lib/efi_loader/efi_device_path_to_text.c
index b0f213d72b97..b923ff348483 100644
--- a/lib/efi_loader/efi_device_path_to_text.c
+++ b/lib/efi_loader/efi_device_path_to_text.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <blk.h>
#include <efi_loader.h>
+#include <stdbool.h>
#include <vsprintf.h>
#include <linux/string.h>
diff --git a/lib/efi_loader/efi_device_path_utilities.c b/lib/efi_loader/efi_device_path_utilities.c
index 94015329c8cb..405e87f3a01d 100644
--- a/lib/efi_loader/efi_device_path_utilities.c
+++ b/lib/efi_loader/efi_device_path_utilities.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <efi_loader.h>
+#include <stdbool.h>
const efi_guid_t efi_guid_device_path_utilities_protocol =
EFI_DEVICE_PATH_UTILITIES_PROTOCOL_GUID;
diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_loader/efi_disk.c
index ecbd14817ad3..43704826fb79 100644
--- a/lib/efi_loader/efi_disk.c
+++ b/lib/efi_loader/efi_disk.c
@@ -16,6 +16,7 @@
#include <part.h>
#include <malloc.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
struct efi_system_partition efi_system_partition;
diff --git a/lib/efi_loader/efi_file.c b/lib/efi_loader/efi_file.c
index 0226e65ef54c..023a91a37086 100644
--- a/lib/efi_loader/efi_file.c
+++ b/lib/efi_loader/efi_file.c
@@ -14,6 +14,7 @@
#include <fs.h>
#include <part.h>
#include <stdio.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/* GUID for file system information */
diff --git a/lib/efi_loader/efi_gop.c b/lib/efi_loader/efi_gop.c
index 44ffed05c69f..42d985b25860 100644
--- a/lib/efi_loader/efi_gop.c
+++ b/lib/efi_loader/efi_gop.c
@@ -14,6 +14,7 @@
#include <stdio.h>
#include <video.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/lib/efi_loader/efi_hii.c b/lib/efi_loader/efi_hii.c
index 92ae7e44e0a4..05ad99260980 100644
--- a/lib/efi_loader/efi_hii.c
+++ b/lib/efi_loader/efi_hii.c
@@ -9,6 +9,7 @@
#include <common.h>
#include <efi_loader.h>
#include <malloc.h>
+#include <stdbool.h>
#include <asm/unaligned.h>
#include <linux/string.h>
diff --git a/lib/efi_loader/efi_image_loader.c b/lib/efi_loader/efi_image_loader.c
index ba9a4a3505fc..506a92ea727b 100644
--- a/lib/efi_loader/efi_image_loader.c
+++ b/lib/efi_loader/efi_image_loader.c
@@ -16,6 +16,7 @@
#include <stdio.h>
#include <crypto/pkcs7_parser.h>
#include <linux/err.h>
+#include <linux/kernel.h>
#include <linux/string.h>
const efi_guid_t efi_global_variable_guid = EFI_GLOBAL_VARIABLE_GUID;
diff --git a/lib/efi_loader/efi_load_initrd.c b/lib/efi_loader/efi_load_initrd.c
index 800ff9fc41a6..372654172506 100644
--- a/lib/efi_loader/efi_load_initrd.c
+++ b/lib/efi_loader/efi_load_initrd.c
@@ -11,6 +11,7 @@
#include <fs.h>
#include <efi_loader.h>
#include <efi_load_initrd.h>
+#include <stdbool.h>
#include <linux/string.h>
static const efi_guid_t efi_guid_load_file2_protocol =
diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c
index 169f239de8eb..60af4abd2df7 100644
--- a/lib/efi_loader/efi_memory.c
+++ b/lib/efi_loader/efi_memory.c
@@ -14,6 +14,7 @@
#include <watchdog.h>
#include <asm/cache.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/list_sort.h>
#include <linux/sizes.h>
diff --git a/lib/efi_loader/efi_net.c b/lib/efi_loader/efi_net.c
index 51c1bd2f6065..5c29d00b451e 100644
--- a/lib/efi_loader/efi_net.c
+++ b/lib/efi_loader/efi_net.c
@@ -20,6 +20,7 @@
#include <malloc.h>
#include <net.h>
#include <stdio.h>
+#include <linux/kernel.h>
#include <linux/string.h>
static const efi_guid_t efi_net_guid = EFI_SIMPLE_NETWORK_PROTOCOL_GUID;
diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c
index 5b6ab297cbb7..93bbd2702349 100644
--- a/lib/efi_loader/efi_runtime.c
+++ b/lib/efi_loader/efi_runtime.c
@@ -16,6 +16,7 @@
#include <rtc.h>
#include <stdio.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/crc.h>
diff --git a/lib/efi_loader/efi_signature.c b/lib/efi_loader/efi_signature.c
index 3d18edd04d79..ef652f394c54 100644
--- a/lib/efi_loader/efi_signature.c
+++ b/lib/efi_loader/efi_signature.c
@@ -11,6 +11,7 @@
#include <hexdump.h>
#include <malloc.h>
#include <crypto/pkcs7.h>
+#include <stdbool.h>
#include <crypto/pkcs7_parser.h>
#include <crypto/public_key.h>
#include <linux/compat.h>
diff --git a/lib/efi_loader/efi_smbios.c b/lib/efi_loader/efi_smbios.c
index 719d3e8880ab..b77ac76935a1 100644
--- a/lib/efi_loader/efi_smbios.c
+++ b/lib/efi_loader/efi_smbios.c
@@ -10,6 +10,7 @@
#include <log.h>
#include <mapmem.h>
#include <smbios.h>
+#include <linux/kernel.h>
static const efi_guid_t smbios_guid = SMBIOS_TABLE_GUID;
diff --git a/lib/efi_loader/efi_unicode_collation.c b/lib/efi_loader/efi_unicode_collation.c
index e002ed6a3925..caa65f06d734 100644
--- a/lib/efi_loader/efi_unicode_collation.c
+++ b/lib/efi_loader/efi_unicode_collation.c
@@ -10,6 +10,7 @@
#include <cp1250.h>
#include <cp437.h>
#include <efi_loader.h>
+#include <stdbool.h>
#include <linux/string.h>
/* Characters that may not be used in FAT 8.3 file names */
diff --git a/lib/efi_loader/efi_var_common.c b/lib/efi_loader/efi_var_common.c
index 36860e66e895..2da25766a4db 100644
--- a/lib/efi_loader/efi_var_common.c
+++ b/lib/efi_loader/efi_var_common.c
@@ -10,6 +10,7 @@
#include <efi_loader.h>
#include <efi_variable.h>
#include <stdio.h>
+#include <linux/kernel.h>
enum efi_secure_mode {
EFI_MODE_SETUP,
diff --git a/lib/efi_loader/efi_var_file.c b/lib/efi_loader/efi_var_file.c
index 4a668eab8429..09831b6af3bd 100644
--- a/lib/efi_loader/efi_var_file.c
+++ b/lib/efi_loader/efi_var_file.c
@@ -16,6 +16,7 @@
#include <efi_loader.h>
#include <efi_variable.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/crc.h>
diff --git a/lib/efi_loader/efi_var_mem.c b/lib/efi_loader/efi_var_mem.c
index 33501ad0c061..020d43102b9e 100644
--- a/lib/efi_loader/efi_var_mem.c
+++ b/lib/efi_loader/efi_var_mem.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <efi_loader.h>
#include <efi_variable.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/crc.h>
diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_loader/efi_variable.c
index d613de2ebb34..c76431cc5493 100644
--- a/lib/efi_loader/efi_variable.c
+++ b/lib/efi_loader/efi_variable.c
@@ -17,6 +17,7 @@
#include <malloc.h>
#include <rtc.h>
#include <search.h>
+#include <stdbool.h>
#include <uuid.h>
#include <crypto/pkcs7_parser.h>
#include <linux/compat.h>
diff --git a/lib/efi_loader/efi_variable_tee.c b/lib/efi_loader/efi_variable_tee.c
index c1f88c28244f..783ed90404ad 100644
--- a/lib/efi_loader/efi_variable_tee.c
+++ b/lib/efi_loader/efi_variable_tee.c
@@ -11,6 +11,7 @@
#include <efi_api.h>
#include <efi_loader.h>
#include <efi_variable.h>
+#include <stdbool.h>
#include <tee.h>
#include <malloc.h>
#include <mm_communication.h>
diff --git a/lib/efi_selftest/efi_selftest_loaded_image.c b/lib/efi_selftest/efi_selftest_loaded_image.c
index 01f6dee2ea6e..f10c9348b900 100644
--- a/lib/efi_selftest/efi_selftest_loaded_image.c
+++ b/lib/efi_selftest/efi_selftest_loaded_image.c
@@ -8,6 +8,7 @@
*/
#include <efi_selftest.h>
+#include <stdbool.h>
#include <linux/string.h>
static efi_guid_t loaded_image_protocol_guid =
diff --git a/lib/efi_selftest/efi_selftest_memory.c b/lib/efi_selftest/efi_selftest_memory.c
index 2efb6e42aa25..31ca3f3beb65 100644
--- a/lib/efi_selftest/efi_selftest_memory.c
+++ b/lib/efi_selftest/efi_selftest_memory.c
@@ -11,6 +11,7 @@
*/
#include <efi_selftest.h>
+#include <stdbool.h>
#include <linux/string.h>
#define EFI_ST_NUM_PAGES 8
diff --git a/lib/efi_selftest/efi_selftest_set_virtual_address_map.c b/lib/efi_selftest/efi_selftest_set_virtual_address_map.c
index b9045fe1143b..6a22d99e834e 100644
--- a/lib/efi_selftest/efi_selftest_set_virtual_address_map.c
+++ b/lib/efi_selftest/efi_selftest_set_virtual_address_map.c
@@ -9,6 +9,7 @@
*/
#include <efi_selftest.h>
+#include <stdbool.h>
#include <linux/string.h>
static const struct efi_boot_services *boottime;
diff --git a/lib/efi_selftest/efi_selftest_textinputex.c b/lib/efi_selftest/efi_selftest_textinputex.c
index de44224ce1c0..2b0b3cfd7221 100644
--- a/lib/efi_selftest/efi_selftest_textinputex.c
+++ b/lib/efi_selftest/efi_selftest_textinputex.c
@@ -13,6 +13,7 @@
*/
#include <efi_selftest.h>
+#include <stdbool.h>
static const efi_guid_t text_input_ex_protocol_guid =
EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL_GUID;
diff --git a/lib/efi_selftest/efi_selftest_unicode_collation.c b/lib/efi_selftest/efi_selftest_unicode_collation.c
index 75294307d9f4..b3f7c623e8b4 100644
--- a/lib/efi_selftest/efi_selftest_unicode_collation.c
+++ b/lib/efi_selftest/efi_selftest_unicode_collation.c
@@ -8,6 +8,7 @@
*/
#include <efi_selftest.h>
+#include <stdbool.h>
static const efi_guid_t unicode_collation_protocol_guid =
EFI_UNICODE_COLLATION_PROTOCOL2_GUID;
diff --git a/lib/efi_selftest/efi_selftest_watchdog.c b/lib/efi_selftest/efi_selftest_watchdog.c
index cbc6761721ce..666c0309be19 100644
--- a/lib/efi_selftest/efi_selftest_watchdog.c
+++ b/lib/efi_selftest/efi_selftest_watchdog.c
@@ -17,6 +17,7 @@
*/
#include <efi_selftest.h>
+#include <stdbool.h>
/*
* This is the communication structure for the notification function.
diff --git a/lib/elf.c b/lib/elf.c
index 7b24ca685a49..623e46867cda 100644
--- a/lib/elf.c
+++ b/lib/elf.c
@@ -16,6 +16,7 @@
#include <asm/e820.h>
#include <linux/linkage.h>
#endif
+#include <linux/kernel.h>
#include <linux/string.h>
/*
diff --git a/lib/errno_str.c b/lib/errno_str.c
index d342ed70b603..fb6868f2ff18 100644
--- a/lib/errno_str.c
+++ b/lib/errno_str.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <errno.h>
#include <linux/errno.h>
+#include <linux/kernel.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 3ac889ba730e..ee8ae8d27640 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -24,6 +24,7 @@
#include <gzip.h>
#include <mapmem.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <serial.h>
#include <asm/global_data.h>
diff --git a/lib/fdtdec_test.c b/lib/fdtdec_test.c
index 50e773260ef7..15c60ee08cf6 100644
--- a/lib/fdtdec_test.c
+++ b/lib/fdtdec_test.c
@@ -11,6 +11,7 @@
#include <fdtdec.h>
#include <stdio.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <malloc.h>
#include <os.h>
diff --git a/lib/hexdump.c b/lib/hexdump.c
index 285610562285..74940dd02494 100644
--- a/lib/hexdump.c
+++ b/lib/hexdump.c
@@ -14,6 +14,7 @@
#include <vsprintf.h>
#include <linux/ctype.h>
#include <linux/compat.h>
+#include <linux/kernel.h>
#include <linux/log2.h>
#include <asm/unaligned.h>
diff --git a/lib/image-sparse.c b/lib/image-sparse.c
index 5f985a0aa5c2..24741b8d8eca 100644
--- a/lib/image-sparse.c
+++ b/lib/image-sparse.c
@@ -45,6 +45,7 @@
#include <sparse_format.h>
#include <stdio.h>
#include <asm/cache.h>
+#include <linux/kernel.h>
#include <linux/math64.h>
diff --git a/lib/libavb/avb_sysdeps.h b/lib/libavb/avb_sysdeps.h
index f52428cc622f..85ff8e1de3e8 100644
--- a/lib/libavb/avb_sysdeps.h
+++ b/lib/libavb/avb_sysdeps.h
@@ -20,6 +20,7 @@ extern "C" {
* must be present.
*/
#include <common.h>
+#include <stdbool.h>
/* If you don't have gcc or clang, these attribute macros may need to
* be adjusted.
diff --git a/lib/lmb.c b/lib/lmb.c
index 71665332689d..a9d10b7b26bf 100644
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -13,6 +13,7 @@
#include <malloc.h>
#include <stdio.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
#define LMB_ALLOC_ANYWHERE 0
diff --git a/lib/lzma/LzmaTools.c b/lib/lzma/LzmaTools.c
index 521258e623f5..5ce03bbbb756 100644
--- a/lib/lzma/LzmaTools.c
+++ b/lib/lzma/LzmaTools.c
@@ -21,6 +21,7 @@
#include <common.h>
#include <log.h>
#include <watchdog.h>
+#include <linux/kernel.h>
#ifdef CONFIG_LZMA
diff --git a/lib/lzo/lzo1x_decompress.c b/lib/lzo/lzo1x_decompress.c
index 48800c91ccff..393f31566bd1 100644
--- a/lib/lzo/lzo1x_decompress.c
+++ b/lib/lzo/lzo1x_decompress.c
@@ -12,6 +12,8 @@
*/
#include <common.h>
+#include <stdbool.h>
+#include <linux/kernel.h>
#include <linux/lzo.h>
#include <asm/byteorder.h>
#include <asm/unaligned.h>
diff --git a/lib/membuff.c b/lib/membuff.c
index 6abac4114f96..94f6e25e8266 100644
--- a/lib/membuff.c
+++ b/lib/membuff.c
@@ -11,6 +11,7 @@
#include <log.h>
#include <malloc.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "membuff.h"
diff --git a/lib/of_live.c b/lib/of_live.c
index fd83a6ba420f..208f6ada5717 100644
--- a/lib/of_live.c
+++ b/lib/of_live.c
@@ -11,6 +11,7 @@
#include <common.h>
#include <log.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/libfdt.h>
#include <of_live.h>
#include <malloc.h>
diff --git a/lib/smbios.c b/lib/smbios.c
index 489a0d61ee27..73cd07b599e0 100644
--- a/lib/smbios.c
+++ b/lib/smbios.c
@@ -17,6 +17,7 @@
#include <dm.h>
#include <dm/uclass-internal.h>
#endif
+#include <linux/kernel.h>
#include <linux/string.h>
/**
diff --git a/lib/time.c b/lib/time.c
index 1a2a1166cf8a..733beb7dcc20 100644
--- a/lib/time.c
+++ b/lib/time.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <bootstage.h>
+#include <compiler.h>
#include <dm.h>
#include <errno.h>
#include <init.h>
diff --git a/lib/tiny-printf.c b/lib/tiny-printf.c
index 60a0619aafc9..9e16f5350632 100644
--- a/lib/tiny-printf.c
+++ b/lib/tiny-printf.c
@@ -11,6 +11,7 @@
#include <common.h>
#include <stdarg.h>
#include <serial.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <linux/ctype.h>
diff --git a/lib/tpm-v1.c b/lib/tpm-v1.c
index e7221dd8f2e9..c3f9dde9e865 100644
--- a/lib/tpm-v1.c
+++ b/lib/tpm-v1.c
@@ -10,6 +10,7 @@
#include <dm.h>
#include <log.h>
#include <asm/unaligned.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <u-boot/sha1.h>
#include <tpm-common.h>
diff --git a/lib/tpm-v2.c b/lib/tpm-v2.c
index 594ccb6c2348..d278acfb436e 100644
--- a/lib/tpm-v2.c
+++ b/lib/tpm-v2.c
@@ -9,6 +9,7 @@
#include <tpm-common.h>
#include <tpm-v2.h>
#include <linux/bitops.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include "tpm-utils.h"
diff --git a/lib/trace.c b/lib/trace.c
index 8ab4258b35a9..8f666133caa0 100644
--- a/lib/trace.c
+++ b/lib/trace.c
@@ -13,6 +13,7 @@
#include <asm/io.h>
#include <asm/sections.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/lib/uuid.c b/lib/uuid.c
index 3a6cd7e87fda..3111318808ca 100644
--- a/lib/uuid.c
+++ b/lib/uuid.c
@@ -18,6 +18,7 @@
#include <part_efi.h>
#include <malloc.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/*
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 7be3127c2a10..c8f663cf4da2 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -25,6 +25,7 @@
#include <linux/ctype.h>
#include <linux/err.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/string.h>
diff --git a/net/arp.c b/net/arp.c
index 2a4449489ff9..aaf5d3c27fd6 100644
--- a/net/arp.c
+++ b/net/arp.c
@@ -13,6 +13,7 @@
#include <env.h>
#include <log.h>
#include <net.h>
+#include <stdbool.h>
#include <stdio.h>
#include <time.h>
#include <vsprintf.h>
diff --git a/net/bootp.c b/net/bootp.c
index 6e9f2fc57d15..6fde55fe8628 100644
--- a/net/bootp.c
+++ b/net/bootp.c
@@ -21,6 +21,7 @@
#include <uuid.h>
#include <vsprintf.h>
#include <linux/delay.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <net/tftp.h>
#include "bootp.h"
diff --git a/net/eth-uclass.c b/net/eth-uclass.c
index a20b896170cd..05f35cdfb5fb 100644
--- a/net/eth-uclass.c
+++ b/net/eth-uclass.c
@@ -11,6 +11,7 @@
#include <env.h>
#include <log.h>
#include <net.h>
+#include <stdbool.h>
#include <stdio.h>
#include <vsprintf.h>
#include <asm/global_data.h>
diff --git a/net/eth_legacy.c b/net/eth_legacy.c
index f2e906dfe8cf..46b318a971db 100644
--- a/net/eth_legacy.c
+++ b/net/eth_legacy.c
@@ -19,6 +19,7 @@
#include <asm/u-boot.h>
#include <linux/bug.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <net/pcap.h>
#include "eth_internal.h"
diff --git a/net/fastboot.c b/net/fastboot.c
index 93b4863d476c..b6006ddd2a9d 100644
--- a/net/fastboot.c
+++ b/net/fastboot.c
@@ -9,6 +9,7 @@
#include <net.h>
#include <stdio.h>
#include <time.h>
+#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/string.h>
#include <net/fastboot.h>
diff --git a/net/mdio-mux-uclass.c b/net/mdio-mux-uclass.c
index 1325484e0d99..5766c33ebbd4 100644
--- a/net/mdio-mux-uclass.c
+++ b/net/mdio-mux-uclass.c
@@ -8,6 +8,7 @@
#include <dm.h>
#include <log.h>
#include <miiphy.h>
+#include <stdbool.h>
#include <dm/device-internal.h>
#include <dm/uclass-internal.h>
#include <dm/lists.h>
diff --git a/net/net.c b/net/net.c
index c05117cf6b61..1a17cc7c7a29 100644
--- a/net/net.c
+++ b/net/net.c
@@ -97,6 +97,7 @@
#include <image.h>
#include <log.h>
#include <net.h>
+#include <stdbool.h>
#include <stdio.h>
#include <time.h>
#include <vsprintf.h>
diff --git a/net/pcap.c b/net/pcap.c
index 907aa1cda095..4ddc55801d7f 100644
--- a/net/pcap.c
+++ b/net/pcap.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <net.h>
+#include <stdbool.h>
#include <stdio.h>
#include <linux/errno.h>
#include <linux/string.h>
diff --git a/net/tftp.c b/net/tftp.c
index 5b600800a050..294ab1bbfe6c 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -19,6 +19,7 @@
#include <time.h>
#include <vsprintf.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#include <net/tftp.h>
#include "bootp.h"
diff --git a/post/drivers/memory.c b/post/drivers/memory.c
index 05dbfc144c84..e8cded75223f 100644
--- a/post/drivers/memory.c
+++ b/post/drivers/memory.c
@@ -8,6 +8,7 @@
#include <log.h>
#include <asm/global_data.h>
#include <asm/u-boot.h>
+#include <linux/kernel.h>
/* Memory test
*
diff --git a/post/lib_powerpc/andi.c b/post/lib_powerpc/andi.c
index d4f60aa73880..cea61eb87a60 100644
--- a/post/lib_powerpc/andi.c
+++ b/post/lib_powerpc/andi.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <irq_func.h>
+#include <linux/kernel.h>
/*
* CPU test
diff --git a/post/lib_powerpc/cmp.c b/post/lib_powerpc/cmp.c
index e70869774ceb..bcfd18929914 100644
--- a/post/lib_powerpc/cmp.c
+++ b/post/lib_powerpc/cmp.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <irq_func.h>
+#include <linux/kernel.h>
/*
* CPU test
diff --git a/post/lib_powerpc/cmpi.c b/post/lib_powerpc/cmpi.c
index 85a9b0ad36b2..29a65895306e 100644
--- a/post/lib_powerpc/cmpi.c
+++ b/post/lib_powerpc/cmpi.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <irq_func.h>
+#include <linux/kernel.h>
/*
* CPU test
diff --git a/post/lib_powerpc/cr.c b/post/lib_powerpc/cr.c
index 56ed355dde71..1c1c1e3700bc 100644
--- a/post/lib_powerpc/cr.c
+++ b/post/lib_powerpc/cr.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <irq_func.h>
+#include <linux/kernel.h>
/*
* CPU test
diff --git a/post/lib_powerpc/fpu/mul-subnormal-single-1.c b/post/lib_powerpc/fpu/mul-subnormal-single-1.c
index cb61c9114d7b..2517a4f0af5d 100644
--- a/post/lib_powerpc/fpu/mul-subnormal-single-1.c
+++ b/post/lib_powerpc/fpu/mul-subnormal-single-1.c
@@ -10,6 +10,7 @@
*/
#include <common.h>
+#include <linux/kernel.h>
#include <post.h>
diff --git a/post/lib_powerpc/load.c b/post/lib_powerpc/load.c
index 5269563b1e17..19f88d07d7f0 100644
--- a/post/lib_powerpc/load.c
+++ b/post/lib_powerpc/load.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <irq_func.h>
+#include <linux/kernel.h>
/*
* CPU test
diff --git a/post/lib_powerpc/multi.c b/post/lib_powerpc/multi.c
index 31134a9f1b56..29c102d70ee6 100644
--- a/post/lib_powerpc/multi.c
+++ b/post/lib_powerpc/multi.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <irq_func.h>
#include <log.h>
+#include <linux/kernel.h>
#include <linux/string.h>
/*
diff --git a/post/lib_powerpc/rlwimi.c b/post/lib_powerpc/rlwimi.c
index 7b4dc79fb17d..be63f960ed6c 100644
--- a/post/lib_powerpc/rlwimi.c
+++ b/post/lib_powerpc/rlwimi.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <irq_func.h>
+#include <linux/kernel.h>
/*
* CPU test
diff --git a/post/lib_powerpc/rlwinm.c b/post/lib_powerpc/rlwinm.c
index 8a03e9b9bcb6..13577f858e11 100644
--- a/post/lib_powerpc/rlwinm.c
+++ b/post/lib_powerpc/rlwinm.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <irq_func.h>
+#include <linux/kernel.h>
/*
* CPU test
diff --git a/post/lib_powerpc/rlwnm.c b/post/lib_powerpc/rlwnm.c
index e2beb4e41713..2a3525466c3f 100644
--- a/post/lib_powerpc/rlwnm.c
+++ b/post/lib_powerpc/rlwnm.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <irq_func.h>
+#include <linux/kernel.h>
/*
* CPU test
diff --git a/post/lib_powerpc/srawi.c b/post/lib_powerpc/srawi.c
index d4a8fabc4257..22a747b63ea8 100644
--- a/post/lib_powerpc/srawi.c
+++ b/post/lib_powerpc/srawi.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <irq_func.h>
+#include <linux/kernel.h>
/*
* CPU test
diff --git a/post/lib_powerpc/store.c b/post/lib_powerpc/store.c
index 8e278fee885a..a8bf67ea9e2b 100644
--- a/post/lib_powerpc/store.c
+++ b/post/lib_powerpc/store.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <irq_func.h>
+#include <linux/kernel.h>
/*
* CPU test
diff --git a/post/lib_powerpc/three.c b/post/lib_powerpc/three.c
index fc6f1f5674ad..a4f7262698c1 100644
--- a/post/lib_powerpc/three.c
+++ b/post/lib_powerpc/three.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <irq_func.h>
+#include <linux/kernel.h>
/*
* CPU test
diff --git a/post/lib_powerpc/threei.c b/post/lib_powerpc/threei.c
index f49c85e6b9da..74d6a3f29997 100644
--- a/post/lib_powerpc/threei.c
+++ b/post/lib_powerpc/threei.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <irq_func.h>
+#include <linux/kernel.h>
/*
* CPU test
diff --git a/post/lib_powerpc/threex.c b/post/lib_powerpc/threex.c
index 6bc5a54706b4..e8c6959bf90e 100644
--- a/post/lib_powerpc/threex.c
+++ b/post/lib_powerpc/threex.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <irq_func.h>
+#include <linux/kernel.h>
/*
* CPU test
diff --git a/post/lib_powerpc/two.c b/post/lib_powerpc/two.c
index fa376c76b1bb..a576452f6f25 100644
--- a/post/lib_powerpc/two.c
+++ b/post/lib_powerpc/two.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <irq_func.h>
+#include <linux/kernel.h>
/*
* CPU test
diff --git a/post/lib_powerpc/twox.c b/post/lib_powerpc/twox.c
index 5c36012a9b79..4e53fff27749 100644
--- a/post/lib_powerpc/twox.c
+++ b/post/lib_powerpc/twox.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <irq_func.h>
+#include <linux/kernel.h>
/*
* CPU test
diff --git a/post/post.c b/post/post.c
index dee7ff1ce142..758e4ecba199 100644
--- a/post/post.c
+++ b/post/post.c
@@ -18,6 +18,7 @@
#include <div64.h>
#include <post.h>
#include <asm/global_data.h>
+#include <linux/kernel.h>
#include <linux/string.h>
#ifdef CONFIG_SYS_POST_HOTKEYS_GPIO
diff --git a/post/tests.c b/post/tests.c
index 5c019b643df9..3b9af1cdc543 100644
--- a/post/tests.c
+++ b/post/tests.c
@@ -5,6 +5,7 @@
*/
#include <common.h>
+#include <linux/kernel.h>
#include <post.h>
diff --git a/test/bloblist.c b/test/bloblist.c
index 19b8f65b81b9..fed3e60d2111 100644
--- a/test/bloblist.c
+++ b/test/bloblist.c
@@ -9,6 +9,7 @@
#include <mapmem.h>
#include <asm/global_data.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <test/suites.h>
#include <test/test.h>
#include <test/ut.h>
diff --git a/test/cmd_ut.c b/test/cmd_ut.c
index b49c2e9a1f00..73a499c289f7 100644
--- a/test/cmd_ut.c
+++ b/test/cmd_ut.c
@@ -8,6 +8,7 @@
#include <command.h>
#include <console.h>
#include <stdio.h>
+#include <linux/kernel.h>
#include <test/suites.h>
#include <test/test.h>
diff --git a/test/dm/acpi.c b/test/dm/acpi.c
index 003b0f4ca979..cb6bbd7719d7 100644
--- a/test/dm/acpi.c
+++ b/test/dm/acpi.c
@@ -21,6 +21,7 @@
#include <dm/acpi.h>
#include <dm/test.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <test/ut.h>
#include "acpi.h"
diff --git a/test/dm/acpi_dp.c b/test/dm/acpi_dp.c
index ce96441faa5a..2c2dd20bf9c6 100644
--- a/test/dm/acpi_dp.c
+++ b/test/dm/acpi_dp.c
@@ -15,6 +15,7 @@
#include <dm/acpi.h>
#include <dm/test.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <test/ut.h>
#include "acpi.h"
diff --git a/test/dm/acpigen.c b/test/dm/acpigen.c
index 51c846081f90..1aa614fedc3d 100644
--- a/test/dm/acpigen.c
+++ b/test/dm/acpigen.c
@@ -19,6 +19,7 @@
#include <dm/test.h>
#include <dm/uclass-internal.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <test/ut.h>
#include "acpi.h"
diff --git a/test/dm/axi.c b/test/dm/axi.c
index dc029df5e443..998c1a5b83eb 100644
--- a/test/dm/axi.c
+++ b/test/dm/axi.c
@@ -10,6 +10,7 @@
#include <log.h>
#include <asm/axi.h>
#include <dm/test.h>
+#include <linux/kernel.h>
#include <test/test.h>
#include <test/ut.h>
diff --git a/test/dm/board.c b/test/dm/board.c
index f3e7f63f258c..59291ab8f83b 100644
--- a/test/dm/board.c
+++ b/test/dm/board.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <dm.h>
#include <log.h>
+#include <stdbool.h>
#include <dm/test.h>
#include <board.h>
#include <test/test.h>
diff --git a/test/dm/core.c b/test/dm/core.c
index 7f45bc506ea4..f70263202841 100644
--- a/test/dm/core.c
+++ b/test/dm/core.c
@@ -20,6 +20,7 @@
#include <dm/uclass-internal.h>
#include <test/test.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <test/ut.h>
DECLARE_GLOBAL_DATA_PTR;
diff --git a/test/dm/gpio.c b/test/dm/gpio.c
index 8abf8c7964ed..13df4745402a 100644
--- a/test/dm/gpio.c
+++ b/test/dm/gpio.c
@@ -15,6 +15,7 @@
#include <dm/util.h>
#include <test/test.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <test/ut.h>
/* Test that sandbox GPIOs work correctly */
diff --git a/test/dm/i2s.c b/test/dm/i2s.c
index c2bf4d5604b9..f3ba00aaef56 100644
--- a/test/dm/i2s.c
+++ b/test/dm/i2s.c
@@ -9,6 +9,7 @@
#include <i2s.h>
#include <asm/test.h>
#include <dm/test.h>
+#include <linux/kernel.h>
#include <test/test.h>
#include <test/ut.h>
diff --git a/test/dm/k210_pll.c b/test/dm/k210_pll.c
index 94740ce09261..076dc770b87e 100644
--- a/test/dm/k210_pll.c
+++ b/test/dm/k210_pll.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
/* For DIV_ROUND_DOWN_ULL, defined in linux/kernel.h */
#include <div64.h>
#include <dm/test.h>
diff --git a/test/dm/misc.c b/test/dm/misc.c
index 1506fdefe324..7b0d3e983244 100644
--- a/test/dm/misc.c
+++ b/test/dm/misc.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <dm.h>
+#include <stdbool.h>
#include <dm/test.h>
#include <misc.h>
#include <test/test.h>
diff --git a/test/dm/panel.c b/test/dm/panel.c
index a840fb4951df..7504fd5f5c8a 100644
--- a/test/dm/panel.c
+++ b/test/dm/panel.c
@@ -10,6 +10,7 @@
#include <backlight.h>
#include <dm.h>
#include <panel.h>
+#include <stdbool.h>
#include <video.h>
#include <asm/gpio.h>
#include <asm/test.h>
diff --git a/test/dm/regulator.c b/test/dm/regulator.c
index f713fb8c34fd..5c025541d7aa 100644
--- a/test/dm/regulator.c
+++ b/test/dm/regulator.c
@@ -18,6 +18,7 @@
#include <dm/test.h>
#include <dm/uclass-internal.h>
#include <linux/errno.h>
+#include <linux/kernel.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 d45deec0a0ed..9d22a2d1edbc 100644
--- a/test/dm/remoteproc.c
+++ b/test/dm/remoteproc.c
@@ -11,6 +11,7 @@
#include <asm/io.h>
#include <dm/test.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
#include <test/test.h>
#include <test/ut.h>
diff --git a/test/dm/rtc.c b/test/dm/rtc.c
index 69f712752359..e4f2354af82c 100644
--- a/test/dm/rtc.c
+++ b/test/dm/rtc.c
@@ -10,6 +10,7 @@
#include <i2c.h>
#include <log.h>
#include <rtc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/io.h>
#include <asm/rtc.h>
diff --git a/test/dm/test-main.c b/test/dm/test-main.c
index 2bc27c8b9c48..8eac2190940a 100644
--- a/test/dm/test-main.c
+++ b/test/dm/test-main.c
@@ -10,6 +10,7 @@
#include <errno.h>
#include <log.h>
#include <malloc.h>
+#include <stdbool.h>
#include <stdio.h>
#include <asm/global_data.h>
#include <asm/state.h>
diff --git a/test/lib/test_aes.c b/test/lib/test_aes.c
index d287aedbdd10..2ba300e4a544 100644
--- a/test/lib/test_aes.c
+++ b/test/lib/test_aes.c
@@ -11,6 +11,7 @@
#include <rand.h>
#include <stdio.h>
#include <uboot_aes.h>
+#include <linux/kernel.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 9153d7159188..7ad13a930a21 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 <stdbool.h>
#include <linux/errno.h>
#include <tee/optee.h>
diff --git a/test/str_ut.c b/test/str_ut.c
index ef1205dbbd0f..990f356227cd 100644
--- a/test/str_ut.c
+++ b/test/str_ut.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <test/suites.h>
#include <test/test.h>
#include <test/ut.h>
diff --git a/test/time_ut.c b/test/time_ut.c
index 1670c5d2184b..456186e08e90 100644
--- a/test/time_ut.c
+++ b/test/time_ut.c
@@ -11,6 +11,7 @@
#include <time.h>
#include <linux/delay.h>
#include <linux/errno.h>
+#include <linux/kernel.h>
static int test_get_timer(void)
{
diff --git a/test/unicode_ut.c b/test/unicode_ut.c
index ace35c18a428..cfea5a9798ad 100644
--- a/test/unicode_ut.c
+++ b/test/unicode_ut.c
@@ -12,6 +12,7 @@
#include <log.h>
#include <malloc.h>
#include <vsprintf.h>
+#include <linux/kernel.h>
#include <test/test.h>
#include <test/suites.h>
#include <test/ut.h>
--
2.17.1
More information about the U-Boot
mailing list