diff mbox series

[12/16] common: Drop linux/kernel.h from common header

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

Commit Message

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

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

 arch/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 +
 disk/part_dos.c                                         | 1 +
 disk/part_efi.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                           | 1 +
 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                               | 1 +
 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                                       | 1 +
 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                                            | 1 +
 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 +
 1926 files changed, 1950 insertions(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/arch/arc/lib/cpu.c b/arch/arc/lib/cpu.c
index d3327c939ee..b8d9ab5ab6d 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 ef738d6cd84..c6814a82d76 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 8b74650b364..71e143b8a92 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 ec5f5e12e1e..376ab2eaeac 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 f24378305fc..88386dbb20f 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 a94803ee93d..4d2d988c287 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 35ea71a5ba8..f57e1bb96c8 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 b31ede5eb94..2b036215d1c 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 abdbcb068ee..3c6cba611de 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 8c718bf5f0b..098c5afb731 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 91d38703fa7..6dfc4afb006 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 ee0e7530480..96ce2333cde 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 d1828d6234a..2fb195bf8f9 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 531d9a4f3eb..74780012e24 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 f6d25bb682c..5845cca9a33 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 2dfa3f7e731..19aa6c07358 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 b7ec5ccdd26..5e922953c96 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 684c0c91ef5..aef54ebf3c8 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 8c030be8b36..3d313b1ad76 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 175909b2a44..caba26abcbe 100644
--- a/arch/arm/cpu/armv7/ls102xa/soc.c
+++ b/arch/arm/cpu/armv7/ls102xa/soc.c
@@ -14,6 +14,7 @@ 
 #include <fsl_csu.h>
 #include <fsl_ddr_sdram.h>
 #include <asm/u-boot.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 1ac50f558a4..5f21529bf2e 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 0031bf85975..cf0954cb9b3 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 052ba4d5407..8add6ac333b 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 bf38eacb8eb..38ff2ce207d 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 917ae991a52..f79328394c9 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 84ca91a0cc8..5c378da0636 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 8d7beca7db3..33d9a64e680 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 2d25c92c6ee..4d12ffae1bd 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 80d2910f679..1079dd8b95f 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 3bd993bebfb..780b11aff31 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 6c5e52ebaa6..8a9ef8fef93 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 abd847b5be0..bb0814162e2 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 9347e516bf6..0c1c40d04b3 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 23743ae10cf..0fb0699768d 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 280afbbf98f..fb7680fdc5f 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 7997422840f..b21da530dcf 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 e6403b79526..f4af82abd86 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 3a0ed1fa550..90fe6889b9d 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 a04a370268b..67c8f665146 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 986dd2482dc..0bccb38998c 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/mp.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/mp.c
@@ -17,6 +17,7 @@ 
 #include <asm/arch/soc.h>
 #include <asm/u-boot.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 60f2a4b002d..4aaeda367bf 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 40e748b00a6..1bd6f2111c5 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 <asm/u-boot.h>
diff --git a/arch/arm/cpu/armv8/fwcall.c b/arch/arm/cpu/armv8/fwcall.c
index b29bc30fc25..8085a0351f3 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 3c06a55cb85..24b249b0683 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 020548ac6ce..52f0452cded 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 6f1fc8f999d..12f65718620 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 87cc4d3b2b7..848a93ec3f2 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 3045b78d08f..7baee482114 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 63a51042e1e..86aeb5d5610 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 8ae49715789..4bdb11a5b96 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 9a7c1f8237a..1eac3bec5cb 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 8f0d7006286..25d10fb7d1a 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 71e241db288..b4d92d1ed44 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 86c906bb0ed..08af4f547dd 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 a995bb950d9..b268e456572 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 5108180ea77..2b47b7a9d26 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 7445e64b8c7..3536f444946 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 732ca370403..c76d5751ef5 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 5db0407baa7..c580bf12034 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 cca812d29e4..e7dec3c7c9e 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 eec4815bbc0..97268b8777e 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 ee12fa831f2..ca4d727a6a7 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 412b73e55fa..7affb2f0644 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 226744d67d9..2cd984ad009 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 316c67c62f9..2db4e92301e 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 d941a129f3e..fdeb3735770 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 0ba5ff6a04f..4499b453b68 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 db83d0e7d3b..c60655fcae0 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 979d5470e7a..ea3b6f48d90 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 40cdcf4a45a..a03d3318e02 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 105a335daba..97383fce190 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 1aaec5faecc..0ec09d40b4e 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 d51e29b19ee..0834ae673c2 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 08348d8228a..e540f390d9a 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 fe07d69b428..71eb99246c1 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 d05197670d3..8e80749a76e 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 5f4d9d82249..9e0b9105924 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 d8a46800fd9..663a3fa52e3 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 0079d200780..8e4b3ec481c 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 dd89cd20505..0a7249560f2 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 92bbe34af68..aefbe9b56e1 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 f7b9a0674c1..6227dc0ed5a 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 8553d2eee4c..1b50cd5326e 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 f1096dccced..350559d5054 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 46298165fbc..7f89d7f9211 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 6f6c5c9954f..2aaf66c1ab0 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 9220763fa7f..9dede806843 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 872a158b714..c1aab4219e4 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 ee387127f37..3c3ebfd3a20 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 8002b7efdc1..51c3139a6f9 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 be02655cdd5..ddaa238c279 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 a5a7ebde44e..3420f939f24 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 90216bcfd51..7fca301df96 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 de21dffa55a..9f0f92a3836 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 1d80d9e9461..630287c1b78 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 2fb824b69e2..751f492a085 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 0f86c72b24d..9c010953f5f 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 d8bd77075ae..f89f750169b 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 1de70933550..f6c0044caff 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 c9efede771e..a11fe7ed31e 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 e0e273495b3..39d51859ed7 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 4956942002d..6509052ddcf 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 45c8ae09350..4fc9f9b7833 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 bb251af08ad..5dfa8eff31a 100644
--- a/arch/arm/lib/image.c
+++ b/arch/arm/lib/image.c
@@ -11,6 +11,7 @@ 
 #include <asm/global_data.h>
 #include <asm/u-boot.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 b14222460f3..c2677c51c0c 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 01e00c508a8..f3551832f3a 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 835b47d91ba..24ccea93df3 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 ed724497b0c..0c8cf78c188 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 48b11f7a5c8..41b2c6648ec 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 76bb97e3732..33995ff4ec6 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 1cb8d391e7c..cf83ef9391a 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 18c558f92a9..2cf3c2fa06a 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 ad3fbf2da7a..5d7738ae5ba 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 27f0dac182d..3ed5d10f1ae 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 2ad9e6c5f2b..9058127b2a5 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 beb538677d9..9165140e494 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 7895ee66f8a..95fdf1cd436 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 3f3d47c1300..b576b032ec6 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 bf0742e57e3..1e1b14c1272 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 fb1d067f9c5..f3c370914c6 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 d729c3536e7..55a424f6e2f 100644
--- a/arch/arm/mach-imx/imx8/cpu.c
+++ b/arch/arm/mach-imx/imx8/cpu.c
@@ -29,6 +29,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 239adfc2e5c..eee6e529cdc 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 528a42a5996..4258abecd08 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 6a3a4eaa7c7..a5332358ca5 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 391d2d0e4b1..086e89b0e5c 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 170e6c20853..ac4d0766dab 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 0c74f99f440..95a1dbb7180 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 ad0d553c1cf..4074e1e4c52 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 8fff7f4f95b..f05760771be 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 0ac64e883f7..1e452bffb16 100644
--- a/arch/arm/mach-imx/imxrt/soc.c
+++ b/arch/arm/mach-imx/imxrt/soc.c
@@ -10,6 +10,7 @@ 
 #include <asm/armv7_mpu.h>
 #include <asm/u-boot.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 3b1496b2038..b23315cf90e 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 c6a14a6a7ec..adc7dbee7d3 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 c91259f4bec..7e066d39b2d 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 fc147962939..d5230d516a1 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 5514389ca2a..1e817233dfc 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 569c8dc0b13..c1731a82856 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 ef031364fbf..51d1cbc24de 100644
--- a/arch/arm/mach-imx/mx6/soc.c
+++ b/arch/arm/mach-imx/mx6/soc.c
@@ -26,6 +26,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 ce2f59cd098..c5aea2bffd6 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 f32945ea371..214e4043f44 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 36f3f8f945b..e97aa8ebe75 100644
--- a/arch/arm/mach-imx/mx7/soc.c
+++ b/arch/arm/mach-imx/mx7/soc.c
@@ -21,6 +21,7 @@ 
 #include <asm/setup.h>
 #include <asm/u-boot.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 1fd8b0a540f..9d06260bdfa 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 58bc3df1e78..bc837aae33a 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 be74201f1a0..79a4ef3cbf8 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 62ede7423f5..8e712607044 100644
--- a/arch/arm/mach-imx/spl.c
+++ b/arch/arm/mach-imx/spl.c
@@ -21,6 +21,7 @@ 
 #include <asm/mach-imx/boot_mode.h>
 #include <g_dnl.h>
 #include <asm/u-boot.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 8750fbdaf4e..336b3da6264 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 08001da66f1..9f73a62d7a1 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 7a672c31f23..bda150df9cf 100644
--- a/arch/arm/mach-k3/am6_init.c
+++ b/arch/arm/mach-k3/am6_init.c
@@ -15,6 +15,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 9592303e921..ef1f3b3209b 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 7252a1f5d70..a835309daf1 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 484884819b4..f4aef0a025b 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 bfaf4952071..39a9da1698d 100644
--- a/arch/arm/mach-k3/sysfw-loader.c
+++ b/arch/arm/mach-k3/sysfw-loader.c
@@ -12,6 +12,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 f164f95bf24..0864b37a531 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 6d68ecba4f8..6005cbaeca8 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 a202e83b08f..48d4327be76 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 7db7336494e..fa7a05291bc 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 5cee055f94c..a643810d245 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 a12955a89c0..11fe96f54f3 100644
--- a/arch/arm/mach-mediatek/mt8516/init.c
+++ b/arch/arm/mach-mediatek/mt8516/init.c
@@ -21,6 +21,7 @@ 
 #include <asm/u-boot.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 cdaed763b42..250a9617c0d 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 fdc8df59556..94c523c17fd 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 d529407987e..53c44ede7db 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 38f6b1fc901..cd66248cd65 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 dfba3a2374c..d7fdc968847 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 fecee67265c..2f98bd7fa4a 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 c8c455fef1e..24775bdc41c 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 0809664b7ec..86078f856ed 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 a6428a23db4..15c13463f90 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 d6259434a23..af9717801e4 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 a35218ae600..f6c8eb9f1bd 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 f24e0ad6366..8dcaa1ac6c9 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 4088f33156f..1380dc61eb2 100644
--- a/arch/arm/mach-rmobile/cpu_info.c
+++ b/arch/arm/mach-rmobile/cpu_info.c
@@ -12,6 +12,7 @@ 
 #include <env.h>
 #include <asm/u-boot.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 5d42a68266b..1bc72ee992e 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 55dab7c1389..11b91e3c79e 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 b7835a14a90..e6e6fc5fbe4 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 20d44d424be..69e64fb39c3 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 71ac29ee435..24ba39537cd 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 97900fb3a31..1589ab1b2c7 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 79d3045beb3..f2ad3f5ec13 100644
--- a/arch/arm/mach-rockchip/rk3399/rk3399.c
+++ b/arch/arm/mach-rockchip/rk3399/rk3399.c
@@ -20,6 +20,7 @@ 
 #include <asm/arch-rockchip/hardware.h>
 #include <asm/u-boot.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 40335b8d208..d9cf3255914 100644
--- a/arch/arm/mach-rockchip/sdram.c
+++ b/arch/arm/mach-rockchip/sdram.c
@@ -13,6 +13,7 @@ 
 #include <asm/arch-rockchip/sdram.h>
 #include <asm/u-boot.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 1bf85c2b58a..345e61058d7 100644
--- a/arch/arm/mach-rockchip/spl.c
+++ b/arch/arm/mach-rockchip/spl.c
@@ -18,6 +18,7 @@ 
 #include <asm/io.h>
 #include <asm/u-boot.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 d261129a4dd..42ac25a467a 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 da4a2d3901c..9cd3e1f03a8 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 b1c075a44ac..1587d38cbfb 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 82c90fb526c..9d84871d463 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 69229dc651e..ed411c62c9c 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 561d3408cd8..e994d38ba62 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 a85c5aeef95..32bca6775e2 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 d108eac1e21..e46b48fdbb4 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 033ed6229f7..51e3568a1dd 100644
--- a/arch/arm/mach-socfpga/misc_gen5.c
+++ b/arch/arm/mach-socfpga/misc_gen5.c
@@ -15,6 +15,7 @@ 
 #include <asm/u-boot.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 c5c72acfa20..9fea8e042aa 100644
--- a/arch/arm/mach-socfpga/misc_s10.c
+++ b/arch/arm/mach-socfpga/misc_s10.c
@@ -23,6 +23,7 @@ 
 #include <asm/pl310.h>
 #include <asm/u-boot.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 27c03080113..461c4592800 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 090567e9d8a..e37325f2ac5 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 33ca14c9dc7..f5a425db559 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 0b497ec30c5..8f3688dd19f 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 4ea32e72c7c..50fec073b48 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 3ae6b7c4e9b..ff999e5954c 100644
--- a/arch/arm/mach-stm32/soc.c
+++ b/arch/arm/mach-stm32/soc.c
@@ -9,6 +9,7 @@ 
 #include <asm/io.h>
 #include <asm/armv7_mpu.h>
 #include <asm/u-boot.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 d3c1262ee84..6b5a5c64cb4 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 7ce8a9dee69..a5c94d331e6 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 72da2471fbe..df38f622210 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 4b14326d65f..74b2ba277b3 100644
--- a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
+++ b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
@@ -18,6 +18,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 de1361d9841..46f014cb77f 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 f16bfff2428..55485302012 100644
--- a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c
+++ b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c
@@ -8,6 +8,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 15ca72043a3..a170fdfee94 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 4eadd20f065..50959da323e 100644
--- a/arch/arm/mach-stm32mp/cpu.c
+++ b/arch/arm/mach-stm32mp/cpu.c
@@ -23,6 +23,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 36f07eacaab..77fd34148d7 100644
--- a/arch/arm/mach-stm32mp/dram_init.c
+++ b/arch/arm/mach-stm32mp/dram_init.c
@@ -12,6 +12,7 @@ 
 #include <ram.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.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 1bfa19207d1..e83885440b4 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 252eac3946a..8a98312e126 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 c080b9cc42a..7d59c8a9f24 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 bd9f476543d..7799c5750d3 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 8e84062bd7c..529fdd7754e 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 de04e9d8428..ffadaa42570 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 f85f52898d1..6c406f11156 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 a877d655d86..ea47fa86478 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 9d1620c9758..53f8ac068ae 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 d5d324860e3..5b993afe3ef 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 8a32ea4f0a1..bf627921440 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 e3e40aaa5e6..3fa8509efb9 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 9077f86a8b4..14ee586e147 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 0471e8a49e5..a297d469a90 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 611eaa3024c..6160518efee 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 10008601134..497c59d8ae2 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 bd57e2f6aac..6378bbc22a3 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 15e86cbac8f..f9e1f27363f 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 ecdfcdde921..cd0eb258bf9 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 14f75625cec..8760abbe9d4 100644
--- a/arch/arm/mach-tegra/cboot.c
+++ b/arch/arm/mach-tegra/cboot.c
@@ -18,6 +18,7 @@ 
 #include <asm/global_data.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/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c
index 9056fe0dd31..567ba52ee88 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 237f184b751..d3848f14985 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 13ffade0408..928a00f222c 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 0d4063ad1a2..f4747484f29 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 5b3e3d8f56e..3a96708c304 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 62c10536306..7e529130ad5 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 8dfdd2bc8ad..edca9c3fdc3 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 d5f2683b266..2fce060037a 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 6985515499f..52398eba3fa 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 90fe0cba8ea..827ae4b748b 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 215cf5ae561..f0050a4f821 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 572ba95d5b0..78cea2b9193 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 b3c5c9453b2..d04069993c6 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 09981f6e06f..40a8523eb8e 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 26f3ba9d577..747bc64403d 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 2a3002d1891..5b840aa0ea1 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@socionext.com>
  */
 
+#include <stdbool.h>
 #include <asm/u-boot.h>
 #include <linux/errno.h>
 #include <linux/io.h>
diff --git a/arch/arm/mach-uniphier/dram/umc-pro4.c b/arch/arm/mach-uniphier/dram/umc-pro4.c
index 535545866c8..e1a98e59c05 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@socionext.com>
  */
 
+#include <stdbool.h>
 #include <asm/u-boot.h>
 #include <linux/errno.h>
 #include <linux/io.h>
diff --git a/arch/arm/mach-uniphier/dram/umc-pxs2.c b/arch/arm/mach-uniphier/dram/umc-pxs2.c
index 199e846dc9d..0af7ea38621 100644
--- a/arch/arm/mach-uniphier/dram/umc-pxs2.c
+++ b/arch/arm/mach-uniphier/dram/umc-pxs2.c
@@ -12,6 +12,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 99039617479..28b366ebdea 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@socionext.com>
  */
 
+#include <stdbool.h>
 #include <asm/u-boot.h>
 #include <linux/errno.h>
 #include <linux/io.h>
diff --git a/arch/arm/mach-uniphier/micro-support-card.c b/arch/arm/mach-uniphier/micro-support-card.c
index f3abb855412..07ce46bd9dd 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 45bb10f8eb1..a70a00c7494 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 df196460dd5..001c3e9518a 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 d7c879dc82d..67df265ba96 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 2974ffbc2f5..05c81769d63 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 589f9ec9ab2..b31da25933e 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 68f2eef584b..22048d12d70 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 1caef61d20e..a5b808fbe20 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 86522f84479..9f25c2f3952 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 64ac5bc2851..eb53f0edcdd 100644
--- a/arch/microblaze/cpu/timer.c
+++ b/arch/microblaze/cpu/timer.c
@@ -15,6 +15,7 @@ 
 #include <asm/microblaze_intc.h>
 #include <asm/u-boot.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 5e7a7144d02..aab92ec859b 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 1eb1459184c..7be0b559561 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 6d94491c545..5ce5ea5ba46 100644
--- a/arch/mips/mach-ath79/ar934x/clk.c
+++ b/arch/mips/mach-ath79/ar934x/clk.c
@@ -15,6 +15,7 @@ 
 #include <asm/u-boot.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 709fa7a9c3b..55d051f8cb9 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 9aada2ef15b..ac76a507355 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 d52eabbd2b1..8c1f14773ec 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 762619a960f..1f2f12879b2 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 c0b4387585f..8bf918b3f25 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 8984bfd7445..05a312b2298 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 087a05097d9..d87b8a4bb2f 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 ba897987c59..cdbf1e22636 100644
--- a/arch/powerpc/cpu/mpc83xx/cpu.c
+++ b/arch/powerpc/cpu/mpc83xx/cpu.c
@@ -23,6 +23,7 @@ 
 #include <asm/processor.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 c8c231f887f..8d242792987 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 33ed4895d3b..fd35b5845b0 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/u-boot.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 8a5c9bb0dd3..31883daa469 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/u-boot.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 73009d7a01d..2f1355dfec9 100644
--- a/arch/powerpc/cpu/mpc83xx/speed.c
+++ b/arch/powerpc/cpu/mpc83xx/speed.c
@@ -604,4 +604,5 @@  U_BOOT_CMD(clocks, 1, 0, do_clocks,
 
 #include <stdio.h>
 #include <asm/u-boot.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 3dccc0e1068..dec9438ee8b 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 8e18e12f634..ec18f298747 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/processor.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 e08484324d0..f5c9d1d8175 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 10bc15c45ca..8c61fd471bc 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 2e3b0a21dd7..59fdc8860d9 100644
--- a/arch/powerpc/cpu/mpc85xx/cmd_errata.c
+++ b/arch/powerpc/cpu/mpc85xx/cmd_errata.c
@@ -12,6 +12,7 @@ 
 #include <fsl_errata.h>
 #include <asm/processor.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 afcfc47554d..da578d6c900 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 1366e1f191d..96d00883574 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 5504ded9e05..df1981cc7ae 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 96d6a8e000f..a24e5feb932 100644
--- a/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c
@@ -20,6 +20,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 bc7f1724486..d87150df761 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c
@@ -12,6 +12,7 @@ 
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
 #include <asm/u-boot.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 22d17e2e3b2..0a472d0fd15 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8544_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8544_serdes.c
@@ -11,6 +11,7 @@ 
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
 #include <asm/u-boot.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 798fdb46edb..ae291188f91 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8548_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8548_serdes.c
@@ -11,6 +11,7 @@ 
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
 #include <asm/u-boot.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 df0470700c5..06c47826325 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8568_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8568_serdes.c
@@ -11,6 +11,7 @@ 
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
 #include <asm/u-boot.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 1b88b7afb21..b5c9d829b7b 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8569_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8569_serdes.c
@@ -11,6 +11,7 @@ 
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
 #include <asm/u-boot.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 7d040d32ac8..f9976cce09d 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8572_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8572_serdes.c
@@ -11,6 +11,7 @@ 
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
 #include <asm/u-boot.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 e43d99da15b..7eac3017052 100644
--- a/arch/powerpc/cpu/mpc85xx/p1010_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p1010_serdes.c
@@ -12,6 +12,7 @@ 
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
 #include <asm/u-boot.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 7d054804a02..01e0830d655 100644
--- a/arch/powerpc/cpu/mpc85xx/p1021_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p1021_serdes.c
@@ -12,6 +12,7 @@ 
 #include <asm/fsl_serdes.h>
 #include <asm/u-boot.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 badc694930d..7632fdbaf09 100644
--- a/arch/powerpc/cpu/mpc85xx/p1022_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p1022_serdes.c
@@ -12,6 +12,7 @@ 
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
 #include <asm/u-boot.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 ae8dd356c4c..fbb2573d2c7 100644
--- a/arch/powerpc/cpu/mpc85xx/p1023_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p1023_serdes.c
@@ -12,6 +12,7 @@ 
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
 #include <asm/u-boot.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 6dfe61415a9..f1a60827f8a 100644
--- a/arch/powerpc/cpu/mpc85xx/p2020_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p2020_serdes.c
@@ -11,6 +11,7 @@ 
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
 #include <asm/u-boot.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 8a833466782..b003e5037fa 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 47e30a15e2e..1825720d6f2 100644
--- a/arch/powerpc/cpu/mpc85xx/p2041_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p2041_serdes.c
@@ -8,6 +8,7 @@ 
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/u-boot.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 7db05d9672b..c111fb58497 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 be417c94112..9dbf8463d88 100644
--- a/arch/powerpc/cpu/mpc85xx/p3041_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p3041_serdes.c
@@ -8,6 +8,7 @@ 
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/u-boot.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 5b766f1d517..227d755cf46 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 fdbb3f7a172..feb7d6ddb7a 100644
--- a/arch/powerpc/cpu/mpc85xx/p4080_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p4080_serdes.c
@@ -9,6 +9,7 @@ 
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/u-boot.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 575b604c211..fe274d3f102 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 be417c94112..9dbf8463d88 100644
--- a/arch/powerpc/cpu/mpc85xx/p5020_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p5020_serdes.c
@@ -8,6 +8,7 @@ 
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/u-boot.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 e3d163af9eb..916f1b3a29a 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 a8403d21bbe..5bb7ec0a09a 100644
--- a/arch/powerpc/cpu/mpc85xx/p5040_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p5040_serdes.c
@@ -8,6 +8,7 @@ 
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/u-boot.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 d2744bb9f82..b0679aa3458 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 d803fc6c2b2..b1e1761688d 100644
--- a/arch/powerpc/cpu/mpc85xx/t1024_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/t1024_serdes.c
@@ -8,6 +8,7 @@ 
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/u-boot.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 99b52bacdad..8c427c6ba6d 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 4b77ab66bc9..dc3b660109e 100644
--- a/arch/powerpc/cpu/mpc85xx/t1040_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/t1040_serdes.c
@@ -8,6 +8,7 @@ 
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/u-boot.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 17521dc3a4a..f9cebd94fd0 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 f6fc13c48e1..60c59984508 100644
--- a/arch/powerpc/cpu/mpc85xx/t2080_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/t2080_serdes.c
@@ -9,6 +9,7 @@ 
 #include <asm/fsl_serdes.h>
 #include <asm/processor.h>
 #include <asm/u-boot.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 172dbdbe464..75a017fe774 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 6ee09d78413..e6b59e13313 100644
--- a/arch/powerpc/cpu/mpc85xx/t4240_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/t4240_serdes.c
@@ -8,6 +8,7 @@ 
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/u-boot.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 1678975efb4..56cbec484fc 100644
--- a/arch/powerpc/cpu/mpc85xx/tlb.c
+++ b/arch/powerpc/cpu/mpc85xx/tlb.c
@@ -17,6 +17,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 87a2eab8115..8db7fe91e25 100644
--- a/arch/powerpc/cpu/mpc86xx/cpu.c
+++ b/arch/powerpc/cpu/mpc86xx/cpu.c
@@ -21,6 +21,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/ppc.h>
 #include <asm/u-boot.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 2f755ac2012..e91ebe4b1db 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 1621fd116dd..232f85c2ad9 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 4c9da029304..e9ff1d2aaf9 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 5cdb1363f78..ddb53e6db65 100644
--- a/arch/powerpc/cpu/mpc8xxx/law.c
+++ b/arch/powerpc/cpu/mpc8xxx/law.c
@@ -15,6 +15,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 d917e9dfb62..bf559d0f833 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 39bf7d5a7f9..7064d1f9d61 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 d72da1da2d2..f283c1a9a47 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 56a76170977..5d5b1d523ac 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 <asm/u-boot.h>
 #include <dm/uclass-internal.h>
diff --git a/arch/riscv/lib/cache.c b/arch/riscv/lib/cache.c
index b1d42bcc2bb..4de634b4fbd 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 caa19cd8dd1..932243596cc 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 <asm/u-boot.h>
diff --git a/arch/riscv/lib/image.c b/arch/riscv/lib/image.c
index 88563331b33..2f78b25807a 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 38c0048577c..7b5a0743cce 100644
--- a/arch/riscv/lib/interrupts.c
+++ b/arch/riscv/lib/interrupts.c
@@ -16,6 +16,7 @@ 
 #include <asm/ptrace.h>
 #include <asm/system.h>
 #include <asm/encoding.h>
+#include <linux/kernel.h>
 
 static void show_regs(struct pt_regs *regs)
 {
diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c
index 4b8af862e60..8b5323fc815 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 <asm/u-boot.h>
diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c
index 581a48ea9ed..cce8e911cc3 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 2c6f90740f3..5533100bdec 100644
--- a/arch/sandbox/cpu/start.c
+++ b/arch/sandbox/cpu/start.c
@@ -21,6 +21,7 @@ 
 #include <asm/u-boot.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 35bc7586fa5..849dfbd1d66 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 b313bf57c63..8c3c957b56f 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 2a98a7f49b2..a14e0a8f8a2 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 7f99d07c47f..6ac8c1a8288 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 bea3a259345..c710db39942 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 c6da4bbfce6..433dcf08c77 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 cb46ec6c0bb..99f1b441312 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 1de8c4a9804..07a64502061 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 1a5a985221f..29ec955e19b 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 83d165c0d9b..8adc33bfd30 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 44cbe4590a7..618b20add16 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 f5ae97c88ce..beab06dee95 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 883531712ea..f4b930225bd 100644
--- a/arch/x86/cpu/broadwell/cpu_full.c
+++ b/arch/x86/cpu/broadwell/cpu_full.c
@@ -24,6 +24,7 @@ 
 #include <asm/u-boot.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 9805f8dbed4..68c57f4f18a 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 6a5d9dc345e..f7f975983e6 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 332d45fd088..0bb28739fdc 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 8b768b0d099..e2dfbc1937b 100644
--- a/arch/x86/cpu/coreboot/sdram.c
+++ b/arch/x86/cpu/coreboot/sdram.c
@@ -13,6 +13,7 @@ 
 #include <asm/arch/sysinfo.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/kernel.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index 5942e6b3972..c1e9be4eda8 100644
--- a/arch/x86/cpu/cpu.c
+++ b/arch/x86/cpu/cpu.c
@@ -51,6 +51,7 @@ 
 #include <asm/u-boot.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 f7e5b92da25..f1b56a3a215 100644
--- a/arch/x86/cpu/i386/cpu.c
+++ b/arch/x86/cpu/i386/cpu.c
@@ -35,6 +35,7 @@ 
 #include <asm/processor-flags.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/x86/cpu/intel_common/cpu.c b/arch/x86/cpu/intel_common/cpu.c
index a292dd72a88..b5d907126af 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 cc9111d7fc5..732a4b4c4f4 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 eda4e58d608..7eaea5c77c8 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 abc5f6fbc77..2557a9b2665 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 384e721063f..8770546702b 100644
--- a/arch/x86/cpu/intel_common/mrc.c
+++ b/arch/x86/cpu/intel_common/mrc.c
@@ -22,6 +22,7 @@ 
 #include <asm/report_platform.h>
 #include <asm/u-boot.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 8b62cc5d7be..53e2f21df96 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 2de29bbbe25..9502b145490 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 547eedfbb85..920a799ec8e 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 fefea448ade..7df278ddbc4 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 a579eb3b38e..57c84435982 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 e11aa0001c4..087754a1dd9 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 1a34c2f0375..7bf3935ba94 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 fd86a4e105b..da1f08eff81 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 8fab346f801..a38c4d3f01d 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 d3b237e87e4..cc29f72e745 100644
--- a/arch/x86/cpu/quark/mrc.c
+++ b/arch/x86/cpu/quark/mrc.c
@@ -37,6 +37,7 @@ 
 #include <asm/arch/mrc.h>
 #include <asm/arch/msg_port.h>
 #include <asm/u-boot.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 28176fdd006..6660568899f 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/arch/device.h>
 #include <asm/arch/mrc.h>
 #include <asm/arch/msg_port.h>
diff --git a/arch/x86/cpu/quark/mrc_util.h b/arch/x86/cpu/quark/mrc_util.h
index e6e69c49d09..f4e3e87b6c3 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 af158bab345..584f2cfbaac 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/arch/device.h>
 #include <asm/arch/mrc.h>
 #include <asm/arch/msg_port.h>
diff --git a/arch/x86/cpu/slimbootloader/sdram.c b/arch/x86/cpu/slimbootloader/sdram.c
index e7513d97896..381a88124ff 100644
--- a/arch/x86/cpu/slimbootloader/sdram.c
+++ b/arch/x86/cpu/slimbootloader/sdram.c
@@ -8,6 +8,7 @@ 
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.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 aba74a083d7..41ad198a060 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 b4939519ced..b0510534c8a 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 a32e2db47e1..b5dd5ab4e7f 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 ecdf6d16f94..6b6f10ec6c8 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 5c066294bc2..d2d28746974 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 bd8ce55729c..231d11340ca 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 4a782a22956..67d150b8d91 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 82e3d8f63ef..ed436a89113 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 af1e8857b97..16ffb1922cd 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 b4a4fbbd84d..720d677c05d 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 3e4044593c8..7fcd21ee2d5 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 56e11dbb28f..a58f422de72 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 00868d17258..bae5d22b883 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 fdeb8571132..d54295989e4 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 e5c916070c8..2f5de45dff1 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 f7d32403849..7b63b8435fe 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 d462c2ec610..2dd19a3d6cf 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 d4e56bf37c1..f060389f789 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 b60d1171f77..8b104a2f0b8 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 48db1dd82f7..73edb4d86d3 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 67e5c447ab9..895fa793ef4 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 b76bdf64a30..13052771492 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 83f110ebba8..f21d3e32b57 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 2de8ad0d6f4..db184006830 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 66fc8a69aaa..0b20cdc16ab 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 b0377dcee17..f4736ecfc45 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 12fcff12380..066bf9b154b 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 dfa08867ecd..70aa7bbf885 100644
--- a/arch/x86/lib/fsp/fsp_dram.c
+++ b/arch/x86/lib/fsp/fsp_dram.c
@@ -14,6 +14,7 @@ 
 #include <asm/mtrr.h>
 #include <asm/post.h>
 #include <asm/u-boot.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 81805ae8299..693f3cf0323 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 31702b90fd7..eef321d6208 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 84826bb683e..509483dcad3 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 7d83ae2a1cb..4ab49c5fe6f 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 b962487418b..f597f752213 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 a0e3c092573..c002d103aef 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 cf2b7651e8d..a9c4519b3f2 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 <asm/u-boot.h>
 #include <linux/errno.h>
diff --git a/arch/x86/lib/mpspec.c b/arch/x86/lib/mpspec.c
index bda9b7f1a11..17568a03d5c 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 0488a261c65..63aace5d4fb 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 1589a887350..71039589dfd 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 82de4cbdc43..53228cd2848 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 d99a90fb826..3b5ee3837f8 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 8f2649d9829..314d9f0ecee 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 13029fc08cb..b85a1b17e84 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 6c1464f4fa4..6fd0ded397d 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 a13eb78e222..5e413200268 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 4e546adfc68..b75e968ee1d 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 0dfb8ebc849..021eb0005d8 100644
--- a/board/Arcturus/ucp1020/law.c
+++ b/board/Arcturus/ucp1020/law.c
@@ -11,6 +11,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 fc8bcea302b..bc0467bdb25 100644
--- a/board/Arcturus/ucp1020/tlb.c
+++ b/board/Arcturus/ucp1020/tlb.c
@@ -10,6 +10,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 9429806b673..0c7926b5624 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 b1f6cf67d43..9e3013d2615 100644
--- a/board/CZ.NIC/turris_omnia/turris_omnia.c
+++ b/board/CZ.NIC/turris_omnia/turris_omnia.c
@@ -26,6 +26,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 a0322219d43..1be57c844c8 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 5ad887217c1..fb1128bb61d 100644
--- a/board/LaCie/net2big_v2/net2big_v2.c
+++ b/board/LaCie/net2big_v2/net2big_v2.c
@@ -22,6 +22,7 @@ 
 #include <asm/arch/mpp.h>
 #include <asm/arch/gpio.h>
 #include <asm/u-boot.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 62f59ecb728..0fa0820d7be 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 8fbf78e6d8b..b18ac9c2d0b 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 b818c08838f..b2e9bc4ae39 100644
--- a/board/Synology/ds414/ds414.c
+++ b/board/Synology/ds414/ds414.c
@@ -14,6 +14,7 @@ 
 #include <asm/arch/soc.h>
 #include <asm/u-boot.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 b59f42c6daf..42bfa740f1b 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 a87a8dc07f6..3394126b7ae 100644
--- a/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c
+++ b/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c
@@ -13,6 +13,7 @@ 
 #include <asm/global_data.h>
 #include <asm/u-boot.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 4d2f692b294..8776a94ff07 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 25d2aede99f..112dbd0bea5 100644
--- a/board/alliedtelesis/x530/x530.c
+++ b/board/alliedtelesis/x530/x530.c
@@ -16,6 +16,7 @@ 
 #include <asm/u-boot.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 25c78926b07..dcc8df0be14 100644
--- a/board/aristainetos/aristainetos.c
+++ b/board/aristainetos/aristainetos.c
@@ -37,6 +37,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 ed9069f8f12..67f0941a640 100644
--- a/board/armadeus/apf27/apf27.c
+++ b/board/armadeus/apf27/apf27.c
@@ -20,6 +20,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 f0bedda24a5..75f9d820349 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 29bde60228f..1b509835d76 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 ac9eba85180..47b592117d5 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 b98c577fbba..03720a97d7d 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 3fc29f9e08c..1eae9355bae 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 9f7c93b4d54..b7d7c4e828b 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 9cd88e2a72d..ae293ff42dc 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 e3e26769323..8ea6fe9d733 100644
--- a/board/beacon/imx8mm/spl.c
+++ b/board/beacon/imx8mm/spl.c
@@ -17,6 +17,7 @@ 
 #include <asm/arch/ddr.h>
 #include <asm/u-boot.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 bf472902562..3be2cd5f0ff 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 e5d5c4637b0..d8ee1d0a63e 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 79ba375cd2b..c5a522aea25 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 c7476ba197c..dfc71ba91be 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 95ee7bbfe29..c0b9a1e5db4 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 18f16a48738..4f316fe8b1d 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 e39768378f9..b3862fcf3a7 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 0dab1cbd60a..a66e6016237 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 016c63a509a..14a37b0f568 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 4b580b70fbe..61641aa8375 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 c857a73df74..6b37c27fabc 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 1a878397007..e239eeea145 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 64a13cef305..dd31156e445 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 3e7f7e6e173..825a613aee4 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 14f8f4d89a2..8cc118cde5a 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 3694a034b73..30182d02805 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 40a91da0df2..17dfb85bfd9 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 0aa2be80e00..7eb51d58f0c 100644
--- a/board/ea/mx7ulp_com/mx7ulp_com.c
+++ b/board/ea/mx7ulp_com/mx7ulp_com.c
@@ -12,6 +12,7 @@ 
 #include <asm/arch/iomux.h>
 #include <asm/gpio.h>
 #include <asm/u-boot.h>
+#include <linux/kernel.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/board/el/el6x/el6x.c b/board/el/el6x/el6x.c
index 8272e1459d2..952ec9dae10 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 6bd0b10a9e1..b6d29adc5f4 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 e6c888fcfde..3405c7a09e4 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 7029bf7bf86..e0d90f5f0e6 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 733940860f5..ddcab9f9eef 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 2143395781a..7a74239fb3a 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 d2bb173c183..bfaf8eb2d6f 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 ee8ed616cb5..64eeb1159e7 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 f70ed76386f..b161049c3f6 100644
--- a/board/freescale/common/p_corenet/law.c
+++ b/board/freescale/common/p_corenet/law.c
@@ -10,6 +10,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 6f8d8354e87..addc31060c7 100644
--- a/board/freescale/common/p_corenet/tlb.c
+++ b/board/freescale/common/p_corenet/tlb.c
@@ -9,6 +9,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 e1716676a4a..ee42a53dae1 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 1450baa0725..276b06101dd 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 5f07d28e8ec..f04bec05a41 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 16c17ac3e25..ebcb26b574c 100644
--- a/board/freescale/common/vid.c
+++ b/board/freescale/common/vid.c
@@ -21,6 +21,7 @@ 
 #endif
 #include <asm/u-boot.h>
 #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 2f5f4ab7bba..a27d99820d0 100644
--- a/board/freescale/imx8mm_evk/spl.c
+++ b/board/freescale/imx8mm_evk/spl.c
@@ -22,6 +22,7 @@ 
 #include <asm/arch/ddr.h>
 #include <asm/u-boot.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 2eb2c20071e..67523c404c6 100644
--- a/board/freescale/imx8mn_evk/spl.c
+++ b/board/freescale/imx8mn_evk/spl.c
@@ -22,6 +22,7 @@ 
 #include <asm/mach-imx/boot_mode.h>
 #include <asm/arch/ddr.h>
 #include <asm/u-boot.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 4f16a14cd8e..3d6595c1ab7 100644
--- a/board/freescale/imx8mp_evk/imx8mp_evk.c
+++ b/board/freescale/imx8mp_evk/imx8mp_evk.c
@@ -14,6 +14,7 @@ 
 #include <asm/arch/sys_proto.h>
 #include <asm/mach-imx/gpio.h>
 #include <asm/u-boot.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 18f0b7f3d3b..4e4d917e09d 100644
--- a/board/freescale/imx8mq_evk/imx8mq_evk.c
+++ b/board/freescale/imx8mq_evk/imx8mq_evk.c
@@ -24,6 +24,7 @@ 
 #include <spl.h>
 #include <asm/u-boot.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 6a37467314c..ccb8f44f115 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 4f0b0467da0..3aa6c2d7a23 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 9b70813281b..f0220b13100 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 e43393d323b..1cc32eade56 100644
--- a/board/freescale/imx8qxp_mek/spl.c
+++ b/board/freescale/imx8qxp_mek/spl.c
@@ -24,6 +24,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 1ca23aef0eb..8cc986ab01a 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 09ef96e6bb4..66c701e1e35 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 1b7dcf2d33d..c13ec412700 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 16d9df1b704..4ad4f1eb07a 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 cf9c171889e..8c21393a6e5 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 183fdcf12c3..6b377d0d997 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 52266a59436..1d06c3038a6 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 4182baa4975..1f6fcc116e5 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 e87044f5c0d..765962c89ae 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 ad4caaa5044..d2f88ea9d06 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 d5a1752c055..fe0a890bb0c 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 8d33151cdad..b35266de231 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 7756620bdfd..167bd1475c9 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 39724dcbcba..8a44ea36003 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 3a154564f3f..a69f207c213 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 e592ca12927..74b31f9a877 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 ea2c8c5647a..6c25108c8e3 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 31308525641..55a7e9b6f0b 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 f4b7bde0a81..b2c98f0c44f 100644
--- a/board/freescale/mpc8541cds/law.c
+++ b/board/freescale/mpc8541cds/law.c
@@ -10,6 +10,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 ff596f988df..b8ef8232056 100644
--- a/board/freescale/mpc8541cds/tlb.c
+++ b/board/freescale/mpc8541cds/tlb.c
@@ -9,6 +9,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 8e9c8b4d232..d6ac17af37d 100644
--- a/board/freescale/mpc8544ds/law.c
+++ b/board/freescale/mpc8544ds/law.c
@@ -10,6 +10,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 a07e6834918..a0cf9c5b17f 100644
--- a/board/freescale/mpc8544ds/tlb.c
+++ b/board/freescale/mpc8544ds/tlb.c
@@ -9,6 +9,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 4c8bbed5c39..be00c66821b 100644
--- a/board/freescale/mpc8548cds/law.c
+++ b/board/freescale/mpc8548cds/law.c
@@ -10,6 +10,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 b6869c33078..be08179fd6a 100644
--- a/board/freescale/mpc8548cds/tlb.c
+++ b/board/freescale/mpc8548cds/tlb.c
@@ -9,6 +9,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 f4b7bde0a81..b2c98f0c44f 100644
--- a/board/freescale/mpc8555cds/law.c
+++ b/board/freescale/mpc8555cds/law.c
@@ -10,6 +10,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 b0e0af9b697..f8410ac0dbc 100644
--- a/board/freescale/mpc8555cds/tlb.c
+++ b/board/freescale/mpc8555cds/tlb.c
@@ -9,6 +9,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 f315288611f..8482ef83451 100644
--- a/board/freescale/mpc8568mds/law.c
+++ b/board/freescale/mpc8568mds/law.c
@@ -10,6 +10,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 98864e7716a..dff931cc09b 100644
--- a/board/freescale/mpc8568mds/tlb.c
+++ b/board/freescale/mpc8568mds/tlb.c
@@ -9,6 +9,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 1f0bd1279ef..0a46b40ee0e 100644
--- a/board/freescale/mpc8569mds/law.c
+++ b/board/freescale/mpc8569mds/law.c
@@ -10,6 +10,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 5bec3a1663b..c2fa4ae1821 100644
--- a/board/freescale/mpc8569mds/tlb.c
+++ b/board/freescale/mpc8569mds/tlb.c
@@ -9,6 +9,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 7f9a2c3785a..add70fa0f86 100644
--- a/board/freescale/mpc8572ds/law.c
+++ b/board/freescale/mpc8572ds/law.c
@@ -10,6 +10,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 72f0aa572c1..60f95c1c060 100644
--- a/board/freescale/mpc8572ds/tlb.c
+++ b/board/freescale/mpc8572ds/tlb.c
@@ -9,6 +9,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 7f9a58e7a79..b990910a857 100644
--- a/board/freescale/mpc8610hpcd/law.c
+++ b/board/freescale/mpc8610hpcd/law.c
@@ -10,6 +10,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 0e00138835e..0a1ca2e833b 100644
--- a/board/freescale/mpc8641hpcn/law.c
+++ b/board/freescale/mpc8641hpcn/law.c
@@ -10,6 +10,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 14e9b4a8634..b7c67cc6883 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 f20087328b3..1532003ba0a 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 cc0c8588544..9a3f88abd36 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 940ada7b167..3ef1c781c16 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 0a656179901..d096948d4d3 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 cb4f063e95a..325f1763976 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 37a94605408..1e43ea9cece 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 67bb279104d..02c6f76d3ab 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 45a40a8959c..475dc3e934f 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 6a654934140..24807f62916 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 bdc2e2a146b..d2f659d5732 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 359f5bca17c..2944220a936 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 01d6340c624..6f85ba27724 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 9e7a81d4bb5..da48f7cd674 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 9dc0bdcbe7a..9a696e79929 100644
--- a/board/freescale/mx6sllevk/mx6sllevk.c
+++ b/board/freescale/mx6sllevk/mx6sllevk.c
@@ -19,6 +19,7 @@ 
 #include <common.h>
 #include <asm/u-boot.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 aefc1ab2bd8..3e0e733bde3 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 ad3461c6661..965a3808e73 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 cb903798df5..044d1e97457 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 272348e2423..7f909aae05f 100644
--- a/board/freescale/mx6ullevk/mx6ullevk.c
+++ b/board/freescale/mx6ullevk/mx6ullevk.c
@@ -20,6 +20,7 @@ 
 #include <env.h>
 #include <fsl_esdhc_imx.h>
 #include <asm/u-boot.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 5ebb142e0c7..6787b322db8 100644
--- a/board/freescale/mx7dsabresd/mx7dsabresd.c
+++ b/board/freescale/mx7dsabresd/mx7dsabresd.c
@@ -17,6 +17,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/mx7ulp_evk/mx7ulp_evk.c b/board/freescale/mx7ulp_evk/mx7ulp_evk.c
index da3f9e72d61..9cbb3542499 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 756f0524da0..8adbe1d3591 100644
--- a/board/freescale/p1010rdb/law.c
+++ b/board/freescale/p1010rdb/law.c
@@ -7,6 +7,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 5357bc8e7b0..2081965aa1c 100644
--- a/board/freescale/p1010rdb/tlb.c
+++ b/board/freescale/p1010rdb/tlb.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 69238db8dde..7fc381c3480 100644
--- a/board/freescale/p1023rdb/law.c
+++ b/board/freescale/p1023rdb/law.c
@@ -7,6 +7,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 4c0e668e99b..0dc5e6767dc 100644
--- a/board/freescale/p1023rdb/tlb.c
+++ b/board/freescale/p1023rdb/tlb.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 5aebabcc901..5f0744ee723 100644
--- a/board/freescale/p1_p2_rdb_pc/law.c
+++ b/board/freescale/p1_p2_rdb_pc/law.c
@@ -7,6 +7,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 1254ab4d306..0bd1e8d5323 100644
--- a/board/freescale/p1_p2_rdb_pc/tlb.c
+++ b/board/freescale/p1_p2_rdb_pc/tlb.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 0cb63f80797..20a73ccb932 100644
--- a/board/freescale/t102xrdb/law.c
+++ b/board/freescale/t102xrdb/law.c
@@ -7,6 +7,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 57f5c50bc98..078b6fa0d0f 100644
--- a/board/freescale/t102xrdb/tlb.c
+++ b/board/freescale/t102xrdb/tlb.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 74f6d8a34e3..898f56b2873 100644
--- a/board/freescale/t104xrdb/law.c
+++ b/board/freescale/t104xrdb/law.c
@@ -7,6 +7,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 cbfbf117861..e095fbef4d4 100644
--- a/board/freescale/t104xrdb/tlb.c
+++ b/board/freescale/t104xrdb/tlb.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 646d6ca9b4e..a0c46ee1998 100644
--- a/board/freescale/t208xqds/law.c
+++ b/board/freescale/t208xqds/law.c
@@ -10,6 +10,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 713bcde4566..3a675b0c52d 100644
--- a/board/freescale/t208xqds/tlb.c
+++ b/board/freescale/t208xqds/tlb.c
@@ -9,6 +9,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 62e51a145e2..3124419f887 100644
--- a/board/freescale/t208xrdb/law.c
+++ b/board/freescale/t208xrdb/law.c
@@ -10,6 +10,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 488261828df..29f3979c9e6 100644
--- a/board/freescale/t208xrdb/tlb.c
+++ b/board/freescale/t208xrdb/tlb.c
@@ -9,6 +9,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 4c195d5b023..ef6ef9d0a77 100644
--- a/board/freescale/t4rdb/law.c
+++ b/board/freescale/t4rdb/law.c
@@ -7,6 +7,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 01e8e75825f..255bd058f0e 100644
--- a/board/freescale/t4rdb/tlb.c
+++ b/board/freescale/t4rdb/tlb.c
@@ -6,6 +6,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 342feb42d17..3970f4b87a1 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 c0fe2d546f6..c9c9beb86c7 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 7303e53af92..5bec0684ad6 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 2e446f86753..75677b11dd2 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 299f92f6826..8e3c3e1ad7a 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 800d9e76d38..fe6a7efe3e3 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 d7cc7e3d308..241a36f7a59 100644
--- a/board/gdsys/a38x/controlcenterdc.c
+++ b/board/gdsys/a38x/controlcenterdc.c
@@ -19,6 +19,7 @@ 
 #include <asm-generic/gpio.h>
 #include <asm/u-boot.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 c859024a28b..23525b7ed52 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 245fadd0d79..30dbf298b69 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 1e7d7e71f12..93d8045d53b 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 da983aa452a..154a02761dc 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 c4017a25af3..c784421a701 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 e0e8a9e9d4d..c0f8fdf3936 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 ae82274a896..55be6bc2957 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 b98b54edc52..9f3238638f1 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 a75de339b7a..115f10c30c7 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 53570b936a8..947cdc45032 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 fb9c7b8a6ec..a43031d513d 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 4e8e53ab43c..0367c59ef6b 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 7b969853b3c..cfa681c2e19 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 415eb6e6938..1d21d13e4c9 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 d60a4573c5d..5df68fdd6ca 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 ddf419edab4..713cb6456e8 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 30ff4eb93f7..bb9113d90e7 100644
--- a/board/gdsys/p1022/law.c
+++ b/board/gdsys/p1022/law.c
@@ -9,6 +9,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 5f63fad4cfe..9ba61a35abb 100644
--- a/board/gdsys/p1022/tlb.c
+++ b/board/gdsys/p1022/tlb.c
@@ -8,6 +8,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 36489db79ad..a4ade1a9419 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 a02c8a4de80..bf813303ed4 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 3c56120c032..cf56983925f 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 33ccaa6ff4c..7b1212cd2a9 100644
--- a/board/google/imx8mq_phanbell/imx8mq_phanbell.c
+++ b/board/google/imx8mq_phanbell/imx8mq_phanbell.c
@@ -22,6 +22,7 @@ 
 #include <asm/arch/clock.h>
 #include <spl.h>
 #include <asm/u-boot.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 38045791f13..d309a72a52d 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 e6bcb08aadf..986fbd6ef37 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 8e0c122f367..9137b800f7f 100644
--- a/board/hisilicon/poplar/poplar.c
+++ b/board/hisilicon/poplar/poplar.c
@@ -18,6 +18,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 cbbbf280d8d..6ece140774e 100644
--- a/board/imgtec/boston/ddr.c
+++ b/board/imgtec/boston/ddr.c
@@ -7,6 +7,7 @@ 
 #include <init.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/kernel.h>
 
 #include <asm/io.h>
 
diff --git a/board/imgtec/boston/dt.c b/board/imgtec/boston/dt.c
index 1d7a95073ab..2e899ec2ef2 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 1edbf36ea90..dd64f9dffa9 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 aba11e25be3..cb5e0589a71 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 4eb30ae3374..1028f97ff3a 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 a3ae8753721..2f53925a9cf 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 cb129dca03e..3167b5c097f 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 5aae1db2ad3..af4ccb023d4 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 e447083f13a..4efcc1adee5 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/u-boot.h>
 #include <linux/bitops.h>
 
diff --git a/board/keymile/common/qrio.h b/board/keymile/common/qrio.h
index a04a73266fb..ead6efcca51 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 daba71cd4cd..bd833e54faf 100644
--- a/board/keymile/km_arm/km_arm.c
+++ b/board/keymile/km_arm/km_arm.c
@@ -28,6 +28,7 @@ 
 #include <asm/arch/soc.h>
 #include <asm/arch/mpp.h>
 #include <asm/u-boot.h>
+#include <linux/kernel.h>
 
 #include "../common/common.h"
 
diff --git a/board/keymile/kmp204x/kmp204x.c b/board/keymile/kmp204x/kmp204x.c
index 0a977ca84ae..ffb31b8a0c0 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 2c702dc631b..84fc9031793 100644
--- a/board/keymile/kmp204x/law.c
+++ b/board/keymile/kmp204x/law.c
@@ -13,6 +13,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 169c8bc6edb..7f92d6b322d 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 72efe5044b5..176caeadb67 100644
--- a/board/keymile/kmp204x/tlb.c
+++ b/board/keymile/kmp204x/tlb.c
@@ -12,6 +12,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 560a2e393a4..4dd326402e8 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 eddea6e2915..f79a2d46a69 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 8fc76d6347a..f90a9f990c3 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 5ccd7290ad1..92c13c67ab2 100644
--- a/board/lego/ev3/legoev3.c
+++ b/board/lego/ev3/legoev3.c
@@ -28,6 +28,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 a4bba42d8e4..e6ab33c74ac 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.h>
diff --git a/board/liebherr/xea/spl_xea.c b/board/liebherr/xea/spl_xea.c
index d88b75bb3a4..00c1c078f90 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 f065aa96eca..823d42c953f 100644
--- a/board/logicpd/imx6/imx6logic.c
+++ b/board/logicpd/imx6/imx6logic.c
@@ -20,6 +20,7 @@ 
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/u-boot.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 41751f3d15c..0a81b060b23 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 45b9649336d..b1a71f4c292 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 ace20caf10e..4a11b5a5ed3 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 297ccd080eb..023cdc83998 100644
--- a/board/novtech/meerkat96/meerkat96.c
+++ b/board/novtech/meerkat96/meerkat96.c
@@ -15,6 +15,7 @@ 
 #include <asm/io.h>
 #include <common.h>
 #include <asm/u-boot.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 6848e340046..1fe5f851731 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 21b00855eb5..ac8df9c3806 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 06a8b390a0b..b8fdcb3392a 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 71c71ed6ec2..3923f31f6a7 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 e20a74943ff..7cc163a467e 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 c1d9b79d3e9..b5925f30932 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 f6751b65ab9..868bab22ef4 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 d89bbe5ecce..91380a4da8c 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 248176c23cd..31d148b885b 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 cd8ba35ab9d..8ac6eb01caa 100644
--- a/board/phytec/pcl063/pcl063.c
+++ b/board/phytec/pcl063/pcl063.c
@@ -21,6 +21,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 19c1033c9d7..19e15a7c73e 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 b46bc8939a3..7809c844df7 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 8ed5deadec1..ad8db681bd1 100644
--- a/board/qualcomm/dragonboard820c/dragonboard820c.c
+++ b/board/qualcomm/dragonboard820c/dragonboard820c.c
@@ -14,6 +14,7 @@ 
 #include <asm/global_data.h>
 #include <asm/u-boot.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 45586323f3a..c074726f1ae 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 02e3ed3b563..44a8d6c720e 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 e91cffaa8c5..79bd867c953 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 a181ffd6dcf..d4708c691b9 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 f5be6548738..a690022f97b 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 4dc47ecd5f7..7cb30ba7212 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 9b4e787b5f1..d2a93fc5456 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 27f59ce9e4d..b80c6b421ab 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 f3a5dbc8d0b..10efd09139f 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 efe6363a413..3ca4e925bbc 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 e2d5a7c9ba7..026fc4abf11 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 4438bff523e..30a00892e0c 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 b5052deb7ac..689cd799dd3 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 37f866ccdc3..59464877fbf 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 af281d338f0..3ea7ac93da1 100644
--- a/board/sbc8548/law.c
+++ b/board/sbc8548/law.c
@@ -10,6 +10,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.h>
+#include <linux/kernel.h>
 
 /*
  * LAW(Local Access Window) configuration:
diff --git a/board/sbc8548/tlb.c b/board/sbc8548/tlb.c
index 4fcc1f2710c..1bf9a8e7d5a 100644
--- a/board/sbc8548/tlb.c
+++ b/board/sbc8548/tlb.c
@@ -9,6 +9,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 446d63bf1f0..860fcd03bc0 100644
--- a/board/sbc8641d/law.c
+++ b/board/sbc8641d/law.c
@@ -10,6 +10,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 68758eb9970..a58fde351a1 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 eaf7edf952d..52d06d3638b 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 ebd34939cb4..433fba067b9 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 2da0560bd2b..7be23e97967 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 34c87802403..7632b09c077 100644
--- a/board/sipeed/maix/maix.c
+++ b/board/sipeed/maix/maix.c
@@ -10,6 +10,7 @@ 
 #include <asm/io.h>
 #include <asm/u-boot.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 5010e0cee36..ec3d673b829 100644
--- a/board/socrates/law.c
+++ b/board/socrates/law.c
@@ -13,6 +13,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.h>
+#include <linux/kernel.h>
 
 /*
  * LAW(Local Access Window) configuration:
diff --git a/board/socrates/tlb.c b/board/socrates/tlb.c
index 4dc0f7dbcda..5b921f025ea 100644
--- a/board/socrates/tlb.c
+++ b/board/socrates/tlb.c
@@ -12,6 +12,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 1c84539c120..d72aee47ca9 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 660962364f6..83e789b99f7 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 1daf14812ef..315faeb6140 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 a1432e4b8e1..2d05fa601be 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 fccc88639c5..b523a06b29f 100644
--- a/board/solidrun/mx6cuboxi/mx6cuboxi.c
+++ b/board/solidrun/mx6cuboxi/mx6cuboxi.c
@@ -41,6 +41,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 7c330101bb0..84459dac1ee 100644
--- a/board/somlabs/visionsom-6ull/visionsom-6ull.c
+++ b/board/somlabs/visionsom-6ull/visionsom-6ull.c
@@ -24,6 +24,7 @@ 
 #include <i2c.h>
 #include <miiphy.h>
 #include <asm/u-boot.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 b44af077112..21d21dafd8e 100644
--- a/board/st/common/stm32mp_dfu.c
+++ b/board/st/common/stm32mp_dfu.c
@@ -11,6 +11,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 b7dfd4cb741..7a6db7c14cd 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 042476dc318..7aa85851738 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 d1593e5e4ee..0938906fcb1 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 7a33440f273..995514eab58 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 48c17c4d4f6..b745442775c 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 71eba4842b3..bd6daf11b20 100644
--- a/board/syteco/zmx25/zmx25.c
+++ b/board/syteco/zmx25/zmx25.c
@@ -24,6 +24,7 @@ 
 #include <asm/arch/iomux-mx25.h>
 #include <asm/u-boot.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 6cbb22ef99e..5871e68bfb1 100644
--- a/board/tbs/tbs2910/tbs2910.c
+++ b/board/tbs/tbs2910/tbs2910.c
@@ -23,6 +23,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 87a78f41843..24e8376d786 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 fb3d9ee726a..5ba16bcba58 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 0c5b166b653..55d19728af3 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 70f61c50253..f3efeab26e0 100644
--- a/board/technexion/pico-imx7d/pico-imx7d.c
+++ b/board/technexion/pico-imx7d/pico-imx7d.c
@@ -21,6 +21,7 @@ 
 #include <miiphy.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/technexion/pico-imx7d/spl.c b/board/technexion/pico-imx7d/spl.c
index 3739706dee1..50604f196f2 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 f89bcc2e032..2ef9aa11043 100644
--- a/board/technexion/pico-imx8mq/pico-imx8mq.c
+++ b/board/technexion/pico-imx8mq/pico-imx8mq.c
@@ -25,6 +25,7 @@ 
 #include <asm/u-boot.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 048ffb48d3f..e2d557732f6 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 9bd3eacb0bd..5ef69154254 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 37347949a38..c2a28ccf63b 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 904af3ed2e9..5a34244ea05 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 17096159442..21f90e0e7e8 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 28bc5333c52..e3e13421cd3 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 808b9993703..4458ddec325 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 b8bb6b47581..c34726ac983 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 fe8aeac9e46..15b0d5149f8 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 5519d2d7e61..18b8a967106 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 9f75b5c0044..a74b9468bca 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 b283bb41039..baf47edc304 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 27971506074..81810f50a06 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 1b9b79f65ae..449073b6b7a 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 e79497752a6..eb115a818f4 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 d46ab222f89..cae2b789bc7 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 adc9bef31e7..023c93c0929 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 62ae4dbf922..6b319c043a6 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 a720099f91e..9247a780544 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 bdc0691755e..49fb5d7a370 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 5d787b61902..7f1f1f89ccb 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 d80762aec3c..1a2a23337cf 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 16bb5799137..99342e820e9 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 caaf7553e5a..d1bd0566b2a 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 38fdaf648b8..7bb691350be 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 7a185ef8ec9..729369a96c0 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 071c6b55b82..6361ffedb1f 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 84b20bf1daa..ff52ddffb19 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 <command.h>
diff --git a/board/toradex/verdin-imx8mm/spl.c b/board/toradex/verdin-imx8mm/spl.c
index 0d422b65093..bce63c0574d 100644
--- a/board/toradex/verdin-imx8mm/spl.c
+++ b/board/toradex/verdin-imx8mm/spl.c
@@ -25,6 +25,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 42dd0a8f173..1b2855c9896 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 e50bd9ecebd..67e973ad760 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 70b1626e972..3d2bbb97dd2 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 1853330e2ce..4c004a75553 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 ec1e1d262cf..3f554381e7b 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 7610182b725..bf4c6bd573e 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 80cd3753cbf..d285b0f36cd 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 0391d606f9c..11c6675fa35 100644
--- a/board/varisys/cyrus/law.c
+++ b/board/varisys/cyrus/law.c
@@ -8,6 +8,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 8068ec0ca1d..9af03db7ee0 100644
--- a/board/varisys/cyrus/tlb.c
+++ b/board/varisys/cyrus/tlb.c
@@ -7,6 +7,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 cd773d8f1d8..3a883d5019a 100644
--- a/board/wandboard/wandboard.c
+++ b/board/wandboard/wandboard.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 <miiphy.h>
diff --git a/board/warp/warp.c b/board/warp/warp.c
index a99e74b0c95..2d794b4344c 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 db255f36788..d696fcdaac5 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 973da7099cc..2be421efd51 100644
--- a/board/xes/xpedite517x/ddr.c
+++ b/board/xes/xpedite517x/ddr.c
@@ -10,6 +10,7 @@ 
 #include <fsl_ddr_dimm_params.h>
 #include <log.h>
 #include <asm/u-boot.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 b72cdd0f2ed..cd4a66895cc 100644
--- a/board/xes/xpedite517x/law.c
+++ b/board/xes/xpedite517x/law.c
@@ -10,6 +10,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.h>
+#include <linux/kernel.h>
 
 /*
  * Notes:
diff --git a/board/xes/xpedite520x/law.c b/board/xes/xpedite520x/law.c
index 34173b1d300..f7fa7d1d746 100644
--- a/board/xes/xpedite520x/law.c
+++ b/board/xes/xpedite520x/law.c
@@ -11,6 +11,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.h>
+#include <linux/kernel.h>
 
 /*
  * Notes:
diff --git a/board/xes/xpedite520x/tlb.c b/board/xes/xpedite520x/tlb.c
index 3a10fdb83d5..9b848dfac58 100644
--- a/board/xes/xpedite520x/tlb.c
+++ b/board/xes/xpedite520x/tlb.c
@@ -10,6 +10,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 b34c190ee09..90498fb7045 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/u-boot.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 c69129cdd36..d6307642c1c 100644
--- a/board/xes/xpedite537x/law.c
+++ b/board/xes/xpedite537x/law.c
@@ -11,6 +11,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.h>
+#include <linux/kernel.h>
 
 /*
  * Notes:
diff --git a/board/xes/xpedite537x/tlb.c b/board/xes/xpedite537x/tlb.c
index 6a1db856f43..fbacc934e80 100644
--- a/board/xes/xpedite537x/tlb.c
+++ b/board/xes/xpedite537x/tlb.c
@@ -10,6 +10,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 c4de11b2980..e07927e6e6d 100644
--- a/board/xes/xpedite550x/law.c
+++ b/board/xes/xpedite550x/law.c
@@ -11,6 +11,7 @@ 
 #include <asm/fsl_law.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.h>
+#include <linux/kernel.h>
 
 /*
  * Notes:
diff --git a/board/xes/xpedite550x/tlb.c b/board/xes/xpedite550x/tlb.c
index 3bb913b1d0a..43587fd6f85 100644
--- a/board/xes/xpedite550x/tlb.c
+++ b/board/xes/xpedite550x/tlb.c
@@ -10,6 +10,7 @@ 
 #include <common.h>
 #include <asm/mmu.h>
 #include <asm/u-boot.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 83ff23dacdc..19de01caf0c 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 385f5c752a5..7e21ffc1958 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 372a9c0baa9..04afdb693e8 100644
--- a/board/xilinx/zynq/cmds.c
+++ b/board/xilinx/zynq/cmds.c
@@ -15,6 +15,7 @@ 
 #include <malloc.h>
 #include <asm/u-boot.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 fe4ffba7fb6..52498147aef 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 7c7266caa6f..91eb35436b6 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -38,6 +38,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 73b6053c65d..3c6de9a8e80 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 a11cf5c29ac..c47cfdfd95b 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 e31a5b10b56..ea6230ba1f0 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 db4cd114628..b4a3dcc74c6 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 6cf9648670a..08711e3240a 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 68e8a06ae9e..8a3a5f68669 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 d145856d14f..e95111796c7 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 91202fbd4a9..795b33cd84d 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 632f73a58c0..680bcd700a3 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 a4c8c3f5c06..d2ea39ed67a 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 a1ad62ad419..d96e5099d24 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 35c862768a1..2189593b589 100644
--- a/cmd/bootm.c
+++ b/cmd/bootm.c
@@ -23,6 +23,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 3cf4138e2d4..3649e749cd9 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 5946d527d35..a2bfce12aed 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 0050831accf..50efdcd2695 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 4066f764292..a4b1ee5b577 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 38f89dd05f6..7f089d7644f 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 4285ea0dfeb..a9dfb609514 100644
--- a/cmd/demo.c
+++ b/cmd/demo.c
@@ -13,6 +13,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 1dd19fe45b5..d606a8447c4 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 5d6df466c1c..d5b1ae536bb 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 762d4c1c380..dd48101ae89 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 185300cb0d8..f207e71b09e 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 3eaf1fe137d..325fb19d8fc 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 83a229720de..a9f43c0b09e 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 ba44460ea39..8caff3e45ae 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 b3ec2b25568..d7e20a622d2 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 b06bbc922c9..50d953f7ff3 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 b8f587a26fa..f21ed9ee354 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 0c25c7ae5fe..7c3849bd50b 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 d16bb4f8c61..62141846bab 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 0d0e1521953..5824a7f18d4 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 b2db540e8d1..c550f7643a9 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 88efad8a9f9..d9c76ccdd2b 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 2189318f237..b7b28565a6a 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 6afb9971794..aa7bb2b9f60 100644
--- a/cmd/mii.c
+++ b/cmd/mii.c
@@ -13,6 +13,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 72db2ea1fe6..c3fe18a5907 100644
--- a/cmd/mmc.c
+++ b/cmd/mmc.c
@@ -17,6 +17,7 @@ 
 #include <stdio.h>
 #include <vsprintf.h>
 #include <asm/u-boot.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 70ba0d01c71..24144546f9a 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 45b1bd9c009..992e6106256 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 f52343c42cd..f2f29a326fe 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 e450bb14a54..2fbbe52371b 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 c71b8b98b9d..252636012c1 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 6cccd8968c1..a7527f8a73d 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 796fb65bacc..69bac982440 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 ead55d46c21..1ce1a7a3627 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 84cbf564e8a..1ca963501e1 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 753d7b8fbf0..b73d68b6301 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 8e7956724f6..b26b1310558 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 8804faa170a..43b074ab976 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 af6071ed68a..86f280bb105 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 b5a7d278011..1a25ca4e88e 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 0cb6b85504d..ca60a05f6b1 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 e492da4f03c..e4968b7b372 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 fbb40095aa6..48f0e4684ce 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 66d18b5973f..78af8534e4a 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 16e37c18cb5..c1819d14c2b 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 c6a69422ebd..d57da5f8b0b 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 c01ee4bd4c9..d3f3aecfc66 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 20e783337e8..136bb0ceea1 100644
--- a/cmd/spl.c
+++ b/cmd/spl.c
@@ -13,6 +13,7 @@ 
 #include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
+#include <linux/kernel.h>
 #include <linux/libfdt.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/cmd/test.c b/cmd/test.c
index e95b8cb4406..d16f83ef120 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 ca315dad0cc..da052a9845b 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 00d589fac07..0c96b10f06c 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 56c5aca12c8..2be09f547d5 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 39d1ad2b4af..3a345877a25 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 0de1ac02ae2..46b498700e9 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 54955f5ef2f..80c175eec51 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 ef49b530b55..933fe8af406 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 37f54052165..ed1c42f4934 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 2f2e205d710..a766eca7856 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 11acfaab4d9..68f3d14c5b7 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 4c58f7a75c8..5b0cb0b1d75 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 4ba7e25588a..55bb2ee7adf 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 230d576835d..4c825e8553b 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 20a29c82bb5..234c40e741a 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 4ad67042769..c342404bc0d 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 0c8be80d76e..1fd3ff02162 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 d1687238f2a..08570826e22 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -27,6 +27,7 @@ 
 #endif
 #include <asm/u-boot.h>
 #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 2496a3cc624..16c8a78722a 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 9eaa65b009f..ddb78a5dcea 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 519ca264992..8051c016942 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 88053b58701..a83c606ee9e 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 34facc8397e..828b10db860 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 cbede53f04f..f7ddc1dcafc 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 75fd3e088ef..13a3591b038 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 801d8633bae..0f9e0d94378 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 b047c724630..a1b266e9c18 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 d67b0f4f0b8..7fd2a2fa4fa 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 d506d580914..230e599a44c 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 e44fdedc2fa..91b2fc41eb5 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 74dcbdd1608..456c4c584f0 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 1615f2c415d..a4dea76bde5 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 d9a1230f26f..7a9892b930c 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 e65e27f5109..52e82777e3d 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 bc12b3fe0e6..a0683072b43 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 6cb5bedc8a9..aef02638d79 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 565a5ebeed5..341807059ee 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 319d59b5164..d3059c46bdc 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 63d0cca3a00..d342e317d63 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 f71477c2963..b4352229c5b 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 6c70b88e10e..fe2ef2f5b9e 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 79e23aacece..c8d13365caa 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 805b044515f..b8b9d7608cd 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 671bda67ed7..51d777f4ee7 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 4d588a85c8f..7a65035ba86 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 599243f1823..33311c2813a 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 1121813abf0..0974e9e6f5d 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 174f82486eb..575003e6561 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 9c5c285b76e..be7e90c3880 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 ab92824c70f..f5041c6171a 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 16b51e8f4c7..98e7582c2a2 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 46d074f0b55..5abbb1b0a40 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 3fafbda40fd..b2967330b69 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 46dbf7c7ee6..732548f4f2d 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/disk/part_dos.c b/disk/part_dos.c
index 4c4e5dfe11c..55d5955f738 100644
--- a/disk/part_dos.c
+++ b/disk/part_dos.c
@@ -20,6 +20,7 @@ 
 #include <memalign.h>
 #include <stdio.h>
 #include <vsprintf.h>
+#include <linux/kernel.h>
 #include <linux/string.h>
 #include "part_dos.h"
 #include <part.h>
diff --git a/disk/part_efi.c b/disk/part_efi.c
index f062bc383ea..611df0bcf6c 100644
--- a/disk/part_efi.c
+++ b/disk/part_efi.c
@@ -28,6 +28,7 @@ 
 #include <linux/compiler.h>
 #include <linux/ctype.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/drivers/adc/adc-uclass.c b/drivers/adc/adc-uclass.c
index fa88040126f..f4d108477d7 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 785d37c238f..cf2d0c14408 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 a40de83fd5b..0e624ea222e 100644
--- a/drivers/adc/stm32-adc-core.c
+++ b/drivers/adc/stm32-adc-core.c
@@ -11,6 +11,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 431dfa4c435..8c1229a383d 100644
--- a/drivers/adc/stm32-adc.c
+++ b/drivers/adc/stm32-adc.c
@@ -8,6 +8,7 @@ 
 
 #include <common.h>
 #include <adc.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 e31e280f541..1424708b59c 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 cdc4c678d7a..83395ef22c6 100644
--- a/drivers/ata/fsl_sata.c
+++ b/drivers/ata/fsl_sata.c
@@ -23,6 +23,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 849b6892ba8..b459ac5aa3b 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 fb56b824513..e4ba71f21f1 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 72a4191946e..7342230eb7f 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 d49839542a5..b57d512ebb7 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 5f6c795fb7f..7fe968cb817 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 57a28f065bf..7a83862563c 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 7be676fff58..8c0a70d15b6 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 5de82750418..0ed52a77396 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 0a2fb50efea..82de6f72069 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 e6c01dd7b32..358201e3d98 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 85300e61178..53e28ed76d0 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 291a23d93f7..66464300377 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 e837e0cd19a..038898abbb0 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 a65cadee372..4948f02c42f 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 416a5007f68..3b5fedd9bbe 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 91e57b38777..4b22c819229 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 d2039512b21..fb5029c40a3 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 6f4cd1ecf2a..c2b33b41f84 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 0f31ee73d9e..45ce1995d03 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 5dac14c185e..f2d0981e191 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 d1e2c0dab31..ad68c617407 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 b282735c1d6..b528c635552 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 4d0eadf7e4f..b0d5699e080 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 e7e57ad73a9..a57f3f81f73 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 b73dcc2980d..de309923b10 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 2c8b851295c..e20b668fd84 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 3ebf6223c06..0fb220022ca 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 64756ed9e64..d03e48bfb3c 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 0e3678acc63..f1b06731bce 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 709c2883da5..ddfa3deccbd 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 63fd42a2946..8b09554d3f4 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 68ad6755e80..7a1433d2af6 100644
--- a/drivers/clk/imx/clk-imx8.h
+++ b/drivers/clk/imx/clk-imx8.h
@@ -4,6 +4,7 @@ 
  * Peng Fan <peng.fan@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 081d8aee01b..02a006dd58e 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 c35689bdea4..e8286e5e164 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 883a29a4f31..b6a6ad73a68 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 1a818694d25..e21102c319d 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 755d8518f64..d061f11a756 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 6bf82fee4eb..898dfe31084 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 4127fa75236..fc022f54a75 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 08f1234aab2..9b2fce7174a 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 a9b56b79027..147bf315980 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 a0193e18519..ec690a24981 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 60f287046b9..04b7bb78dae 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 5128cca1060..e8f764d792b 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 d439134ed24..b350a67820f 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 <asm/io.h>
 /* For DIV_ROUND_DOWN_ULL, defined in linux/kernel.h */
diff --git a/drivers/clk/mediatek/clk-mtk.h b/drivers/clk/mediatek/clk-mtk.h
index 95a23d14a8e..57a76e69432 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 99b4da09417..ddf20ab3d8c 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 d66b23c2a90..62e8e35d654 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 f892074d9d6..a72cbeb9723 100644
--- a/drivers/clk/mpc83xx_clk.c
+++ b/drivers/clk/mpc83xx_clk.c
@@ -18,6 +18,7 @@ 
 #include <asm/arch/soc.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 f013c77df28..12ae5a92354 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 dd2b0b9914b..6f279939c51 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 be230d1d923..c4f5a63b7a3 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 8935667736f..f409e666a97 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 7451f53ba39..9eb30d9c9fb 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 25fd4896094..7ddac6d20ad 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 d47ab99e882..0d43004bfc4 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 7093e0d42cb..eda0ae0f9d9 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 dcd96ad0177..89794d2cf6c 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 89dc141239d..029bd54b796 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 6ed88295c98..5962cb03d63 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 df071201718..ec246abf387 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 c8d7a9469ba..0c2050d1b28 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 357e7b534da..e3f62e1bc73 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 d62aeba635b..25bec5ff1a7 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 3beae7d8250..102d6955354 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 e3e5d9640c9..544ea258747 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 b669dec594f..70f6fb825c4 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 8fc3b6e572f..6e99191007d 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 80aa7c2f39a..ec60627ddeb 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 b9c896460f0..4dcb85f5109 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 b77b92e4c5b..7cee0c594f7 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 780fd7e725b..f632dff1a71 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 da40f74d424..ed6b4656e23 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 7106685bb50..151b6be5ee9 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 6c7626ab154..5879541f3ce 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 0d677f55ee1..c391ad02100 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 016633c1382..1078a4c67b7 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 4297934b981..fcc4ba6d94a 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 0aa4ac5eebd..140433da805 100644
--- a/drivers/clk/sifive/fu540-prci.c
+++ b/drivers/clk/sifive/fu540-prci.c
@@ -38,6 +38,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 67507c5ab1d..797878eefa9 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 d11a4b5f038..24c20cf11f7 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 4d562bfe427..312288eef68 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 4a9454eebe7..a3b3528abae 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 d96cb1aac1c..68660cc7ae4 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 80d7407037e..ea38c819ea7 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 d6f23ddc778..ac82f22c746 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 7e844f4ff16..052fd008f59 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 a1cb8952d39..944aa4c55c4 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 ac360b2bebd..1d19c805ade 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 b79446cc4fd..19673e43cf0 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 13f2b76c890..72335f271b8 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 3de629d24df..0263284fc3f 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 ac6ce92bc0f..8198750cd69 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 dcc1e4a4f95..dfb5e1de77a 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 ad9bd7dd5a2..0ecc90890da 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 4fd4ee0c889..a245194db43 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 ecd812566ce..b84c9be2461 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 2d0deea9f78..6eb934c4095 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 7cc1d46009f..aa888b2e0c4 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 11ac1b17733..d8d26d772c7 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 3fae359866f..242d9f4b30d 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 126ae6cf7ae..6f6feee5f2d 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/u-boot.h>
 #include <linux/bitops.h>
diff --git a/drivers/crypto/fsl/desc_constr.h b/drivers/crypto/fsl/desc_constr.h
index 7d6546fd9c0..a11ce812d19 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 9138de69e8a..a83efe585e6 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 5bc0f3d5f22..3cf03106174 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 80640248c37..5bd6604e777 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 e85c2dd01d9..40f06e8f81b 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 b2a1e822feb..4e52852d64b 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 8997980caca..6826011fb31 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 bc20fa09645..723436cadca 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 4c913e9b5b6..8fe96ee2465 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 778528bf863..67fc9c14e3f 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 8d62f02660d..aad40ad398d 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 c72a683ffef..b655c25688d 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 c3409703ea9..e6f85dcf623 100644
--- a/drivers/ddr/fsl/ctrl_regs.c
+++ b/drivers/ddr/fsl/ctrl_regs.c
@@ -24,6 +24,7 @@ 
 #include <asm/arch/clock.h>
 #endif
 #include <asm/u-boot.h>
+#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 698324073db..36669152046 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 95a250c33f4..c654b1fd1f1 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 cc6c034747f..fca5b433eb1 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 e3a7670e3d1..c7d99077d86 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 d6a2ad99c42..cb56229fae2 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 92a29568342..56c0de2004c 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 daf78f0d1ba..45d641ec60f 100644
--- a/drivers/ddr/fsl/util.c
+++ b/drivers/ddr/fsl/util.c
@@ -8,6 +8,7 @@ 
 #include <asm/fsl_law.h>
 #endif
 #include <div64.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
diff --git a/drivers/ddr/imx/imx8m/helper.c b/drivers/ddr/imx/imx8m/helper.c
index 8903ff146fc..fca733ee3b2 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 f96d2bdaeb9..d58d4961658 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 f35bc3e1492..1be18905890 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 4cc2be16bb3..b9d1dcbc1d2 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 94989c2ba23..4431e34c10e 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 b93d9987374..7e5623674ca 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 8a7ef5013e8..697db0d7201 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 e1130f8f9fb..e6fc0ac5ffb 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 cc872831b5f..8a6fd825b13 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 a9d28779ebd..e46544c877b 100644
--- a/drivers/dma/fsl_dma.c
+++ b/drivers/dma/fsl_dma.c
@@ -13,6 +13,7 @@ 
 #include <asm/io.h>
 #include <asm/fsl_dma.h>
 #include <asm/u-boot.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 9a6904cd634..460197ed67a 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 0b6de5bbbcc..4d50dbc76e5 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 b8f4938f9d5..5c188e1b5b5 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 37cef1890f2..5615dffa6d8 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 01d5ac72f8f..0a815ec736a 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 d2e1be9c994..e156d549268 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 9908630c2d4..4ce9a0581ad 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 a163f722515..de0880ff3d8 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 685957626be..357c74675d1 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 cd70cd922f3..360f064dbae 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 95a361b0e86..7374bb6f6b9 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 e4a513171eb..3477ddbfd6b 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 7738cfaf103..eeaa8e0a335 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 fd92b47d67a..9d3eb848266 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 14de9c11d54..c887f3ddca6 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 d738a04033a..f808f5114b7 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 5eaad77dcb6..9b0f551b950 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 2e80196905d..a940b9969c1 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 6407727b453..13f525823ec 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 44ba2ac2b3c..68320c1e27c 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 b3df925c756..be371fdcc30 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 50eb95d2522..9672342bca3 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 0133e14bb73..9b7bb4b0602 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 fd64a7abadf..212516001fc 100644
--- a/drivers/gpio/mxc_gpio.c
+++ b/drivers/gpio/mxc_gpio.c
@@ -15,6 +15,7 @@ 
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <linux/errno.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 310e04dd33e..7a290fba0f7 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 adb2079e083..c3a79b931b8 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 1f7563531e7..a3ae0c49b98 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 de150c44a54..62fb3a39d3e 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 29ef2dc2c85..fa79bacbd07 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 0653171af48..693aa873ba2 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 76e3c702e21..51c3ce610a1 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 9929eed5d1b..8b2057607bc 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 cf973e2d7f2..affabbbf9a6 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 b825599dba5..c656db55706 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 13b9973b543..e894a1a3eb2 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 e32bfbc2c29..5aad1a29977 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 18acf4e841b..0f34cc8b5ab 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 50649710aae..5f2084acda8 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 c334755a276..f34c7112529 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 dad4a5549c1..10cc55ce834 100644
--- a/drivers/i2c/fsl_i2c.c
+++ b/drivers/i2c/fsl_i2c.c
@@ -20,6 +20,7 @@ 
 #include <asm/u-boot.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 abbfdcbcc5c..a5781bcfec2 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 c29e5d7def0..7e47bed9f4b 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 9e2d5dd0b12..f5a1890d5c9 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 a110fe9e8d9..c78378fa183 100644
--- a/drivers/i2c/i2c-uniphier-f.c
+++ b/drivers/i2c/i2c-uniphier-f.c
@@ -5,6 +5,7 @@ 
  *   Author: Masahiro Yamada <yamada.masahiro@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 e7f44e14e9c..c1f1eb0325b 100644
--- a/drivers/i2c/i2c-uniphier.c
+++ b/drivers/i2c/i2c-uniphier.c
@@ -5,6 +5,7 @@ 
  *   Author: Masahiro Yamada <yamada.masahiro@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 31e8cc5d8eb..5550da80622 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 f7186639d18..aa5c65728cd 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 051b238e166..3e4b10aff54 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 683b45bd8fd..dfa84836f53 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 738796788af..54a7bc85f69 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 dd0e921725b..6899a68a847 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 98a0aee9b0e..e430a790df0 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 ae3084d549d..6cc63b528dd 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 ec8f1acaef5..7a37b8071b6 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 2afd17f92fc..10dee15a667 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 a353f063ed9..94c0cf6f342 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 188821bb878..c9446ed783f 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 03687b7532b..5b05290224a 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 60f89562fad..dea52314542 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 e90a38ad97b..c7661b5ab7d 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 <asm/u-boot.h>
diff --git a/drivers/input/input.c b/drivers/input/input.c
index 37dae11d97a..4b54df8a871 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 4a07bcc8a70..84f9a4ceca6 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 019a84813ac..f8fdfcc23de 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 c0f5a1a7bb6..b44232773b6 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 d9516bd59e4..c2c77b64244 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 4dd5371fc19..27d2b7b9976 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 5262c005a04..2df8d1070c0 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 a3ae33acd05..7979989e1a6 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 782ee703eb6..2118afee76a 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 5a5af51eb39..b3282243243 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 bb7b8c1b1de..3c3db889d61 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 4cf609bdad4..8d3a690aa1b 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 a0e979e09e1..1716cf21299 100644
--- a/drivers/misc/fsl_ifc.c
+++ b/drivers/misc/fsl_ifc.c
@@ -9,6 +9,7 @@ 
 #include <part.h>
 #include <stdio.h>
 #include <asm/u-boot.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 be6d03444d5..07c7a492081 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 22afebd9ab0..ebcd4d91e89 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 c56abce4d4c..7cc350d3cc9 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 acf3ec8c017..68f46fd59d9 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 9f0d89673d9..e7f9ccdf848 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 9dbb857101d..fd9c0f937ff 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 6b6813e1fc5..3795f5eaa1b 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 14366febd38..625aa140651 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 c0db58b8967..11ecfc44839 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 4e3e8a4a364..0149e8d9a79 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 925e6ec3ab8..0f182de1568 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 5d7a74afe2c..cce6cb72c5e 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 fa185612b2c..ede9d9e7423 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 149f3d28ebf..eea0e0f528f 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 3c17f6de3f6..ae68cd9c71a 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 220567ee279..8ad5c1b5a6b 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 c5629183f86..cd845a71bf6 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 d5c1a62ba64..ad825e940f1 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 a8563a305d0..6f438c41df5 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 8a5e6b1975e..1bb4120a06d 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 64f29f86baa..fa3ed8671c2 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 24ff0cd120d..96913285927 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 2b1d19a14a7..3a74ffcadda 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 97ca2ce029a..315a829f205 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 95f3cf1d946..ade5dbe4721 100644
--- a/drivers/mmc/dw_mmc.c
+++ b/drivers/mmc/dw_mmc.c
@@ -20,6 +20,7 @@ 
 #include <asm/u-boot.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 f54413aa9e5..9fcb416b042 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 c73ec572f14..0fb2d505c15 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -32,6 +32,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 2e667abf414..995fa6fefd8 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 4c725436de4..3359d67fafa 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 782d92be2f5..2c487b4176d 100644
--- a/drivers/mmc/ftsdc010_mci.h
+++ b/drivers/mmc/ftsdc010_mci.h
@@ -6,6 +6,7 @@ 
  * Macpaul Lin, Andes Technology Corporation <macpaul@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 19ba2b51182..4b1869ae65c 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 61c209cb0a7..b3a8c5d50d8 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 608e5623976..c8c7127cbe8 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 b804a0c8364..2df20418be3 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 cdc93c756c0..da06aa9e7b6 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 93220596896..e38950dd6e0 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 0581adb0841..ac8a127029c 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 68d872fd142..93eb1404def 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 2ec53e853a9..b6632a32d36 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 a54e1e12835..615ed6b1700 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 e5df2920242..35704e74d6b 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 606c4a5c1c6..4de6bb1d972 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 854d346a746..5a4652e2461 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 4e8d2a9e509..1c4ce0ff02a 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 93fdf72f344..b07a10c0f78 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 d4780271fc3..58c79a8821b 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 96901bce72d..fd5b77351a2 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 b7add7f0312..023eede0121 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -24,6 +24,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 e9ff31b4afe..ede46d1b6ac 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 f123d3fe222..5572afa1e48 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 f46c9a8e5bf..62f9c7a6f5d 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 7164db122fa..b562595e2f3 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 ff563cf9773..5e8076fcd97 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 9062300c64f..4160cbe0f5c 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 4dbe71fa2e1..088e1d9a900 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 355b4eecb09..46c8db49547 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 252f49fb4c6..9fed43f05a0 100644
--- a/drivers/mtd/cfi_flash.c
+++ b/drivers/mtd/cfi_flash.c
@@ -38,6 +38,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 1583efd267d..848c5ede413 100644
--- a/drivers/mtd/hbmc-am654.c
+++ b/drivers/mtd/hbmc-am654.c
@@ -4,6 +4,7 @@ 
 // Author: Vignesh Raghavendra <vigneshr@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 790373dac8f..9456c9abbc3 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 51d7efd2200..b2f2154dab6 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 1d9d13dfe1e..57e296f59cf 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 978174ffa8d..c604db376c1 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 89c981096ba..acfe2ba0bd2 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 3223d9aacff..4c886e1533f 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 b8e7b6b2921..a649b1a8963 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 071b16c217a..25bfe253f29 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 e9d23377d47..926c59eb148 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 cefe65654c5..b90f26978ff 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 6946a62b067..2a48dfea90c 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 6c4eb58abb6..c00fc65b6a0 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 ca99aa88b3d..0e84f37784d 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 504f773e4de..ed077fd06bc 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 99749f9e50a..eb95cb00303 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 33c80d03209..291dda8fb48 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 0991a398f45..5994c321cac 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 cfa2510b038..368ce3e54ed 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 5e8e76c3e5f..07a44a565ad 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 a90d30bd100..f012f7329c9 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 ad01cdce260..c3e136899f9 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 d59528e27fd..8ab4dab32c0 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 a6b3504facd..115f5a771be 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 336a341f0a0..36ca2230269 100644
--- a/drivers/mtd/nand/raw/nand_bbt.c
+++ b/drivers/mtd/nand/raw/nand_bbt.c
@@ -65,6 +65,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 94e03e9ba5e..eaca67da1b8 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 f297205bc79..75ded89893a 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 162f6fe1f0c..f753970d9e7 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 e222fb994b0..8678866d3dd 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 8f24ae6d18a..d7304d0b34e 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 2e41efcb5fb..21b5c859467 100644
--- a/drivers/mtd/nand/raw/stm32_fmc2_nand.c
+++ b/drivers/mtd/nand/raw/stm32_fmc2_nand.c
@@ -16,6 +16,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 9b54d007f8e..e24bd384c26 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 ceec8c81e94..49cf29a7abe 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 47435cfdccc..6af6b7bd844 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 7e5aaac2372..f576aea331c 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 463ec9b8d50..69c529e658d 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 cef18a95a42..0531db38831 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 0ab3596a2a1..424c74d74fd 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 c65d62e7cdb..558cf39ba67 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 5f80e115f4d..cf9d79c9557 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 007c27129b4..62b9a78be3f 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 c9777324019..dead5679e89 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 a6c1a0e1c78..6488897b438 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 213061847d7..705a05ae77d 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 23a72d6a325..7f797c517b2 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 df5fab00e1a..4a0f8a3db98 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 6812b122d65..38983fb7356 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 f88bafd35d3..e5dafaf5ff6 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 b9bad95cf6f..6574760288d 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 d91c9effd07..2314ca7df1f 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 96ecaf60c04..fff703a0f6c 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 806abc9122e..c9d28bb4d52 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 91c0589bb62..b8e07872716 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 96afa7dec11..2a1ad2ca157 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 e6f286cfd38..b0e6d02b4af 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 5783c42aa23..fada006f84b 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 67c8498f0f6..8540b13951b 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 f4dbb4e1952..4f81e0431c1 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 eeea3dc579f..afb81ab187b 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 0e6d266f103..3f18c5c5225 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 cd3dac49e7e..ca7888af89c 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 8bc75baf97f..3f45aebcd03 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 485e6c0cdcc..675eb88c3d9 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 c5e22aff5c0..5eb593e9eda 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 1705dde9d2c..3d87e05c5b2 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 641502ea928..2adfd38f273 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 7e37ade1e9c..8200d428615 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 3d7decd126a..d152063008b 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 669f3af7aee..bdf14afcd75 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 c451b136ae3..0728ad6cacf 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 1829517d024..de4db412704 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 6180896d3d4..cb520363278 100644
--- a/drivers/net/fsl-mc/dpio/qbman_private.h
+++ b/drivers/net/fsl-mc/dpio/qbman_private.h
@@ -10,6 +10,7 @@ 
 #include <asm/io.h>
 #include <asm/u-boot.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 d2f8869a340..3a82f4f065f 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 7b9730a8446..a6c6e578193 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 af58d04da23..5a057ebb46b 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 2ff318cb9a9..e7c7a5e885a 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 8aed219d9ed..55ce931cd2d 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 f357fec5cc9..86a97cdf573 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 7c26c60ff2b..559273e6760 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 5da5582200d..4b62225968f 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 e90513e56f9..2b3d31f7043 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 a43623a1adf..dd7b2e5a007 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 3d6b2fa8eb4..783a90cb1fa 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 0e906e85670..21e558ee816 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 63e18789184..64918248131 100644
--- a/drivers/net/mpc8xx_fec.c
+++ b/drivers/net/mpc8xx_fec.c
@@ -18,6 +18,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 0e0a4d7037c..1aff591e3a4 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 6ceb250688a..afc6260577e 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 a2827b5377e..55abd5a984e 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 c880a4e7e6a..df507e518cf 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 b787524af16..170393c03f7 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 9b6e5d8743d..8f5c43660bd 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 eecf6153245..f393ea7f504 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 8cf78422f7d..f2f070548d4 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 44541c0a85e..4376efbfbc0 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 ce7cf045f73..f001ae73208 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 9baa1004bf3..2d53a5cc5a8 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 85da482b8ff..828bc957fca 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 7ed8721bc80..34600b822ba 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 21c1a8c15b5..0d289444b3e 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 b4bbd9429fd..701fc73c91e 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 7e0fdbfd5a3..57d54d4b0d5 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 08536dea67e..429ca879112 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 1395af5444d..cfd2424ff11 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 7577ebdbe83..dab348ccf9c 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 9f07045007c..3951cb00f41 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 4c0b2f4af85..2b7bbc8f419 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 f0d37d1b81f..08214ccc2f6 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 927edb62a2e..7e3c76923cb 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 9f68d14bf53..ed557355b91 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 d9d376c09ec..4fb1c7b5f6b 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 7c0bb2372d3..db9f75de48a 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 9cc5cc8acf9..f3d6ea89b99 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 37eeaab4e82..6e119f77b29 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 69f895f720b..3a1a7fee4bc 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 8b1aae24467..2f3b8fa8079 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 eb422f33b70..21096bd6d32 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 8b94322ae74..3216360db15 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 14956af4580..950d1ca2122 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 02dd3bc984f..52155df2c54 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 272127903f5..f909ee7aa38 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 695855b4d54..d235275772e 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 a6062e33638..af67ec4a1c8 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 afcb170be32..2f9ff5ec07f 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 8e3a96c51ef..f31ce696ff0 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 47a401cc96f..95c1d5065b3 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 0e8cb221a7a..c2914e2cb05 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 be9b89539f0..9bc45b5ddc9 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 8fc6388593f..9eb985225c8 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 c9317f1fda2..28dfc03d793 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 4c77a694ada..612f20714d3 100644
--- a/drivers/pci/fsl_pci_init.c
+++ b/drivers/pci/fsl_pci_init.c
@@ -13,6 +13,7 @@ 
 #include <asm/fsl_serdes.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/drivers/pci/pci-aardvark.c b/drivers/pci/pci-aardvark.c
index f2c2eb3870f..b39a6d715b7 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 9a990a06324..e630a2a6300 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 3cd87c7fc65..1d05207b77d 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 4eac485f278..dea11138003 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 e0e325755e1..7a9ef884c78 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 c0a53dcc929..7b756b7583a 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 8b67cfa92b4..b32f7ea1f83 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 80f11fedd16..bcadf4e4d88 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 04838200a8d..ae312534c87 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 57edb22d819..157924001ab 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 85ad27322f9..7bc1a7f4def 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 5f8cde34bdf..28b6aa026b1 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 10a19bdc950..3f207f0de11 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 287736cd88c..7eb4461ce26 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 00b9a2418ab..cc968fe2a3f 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 6e18d5ba552..4039284f539 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 055c454599d..2c9448c463c 100644
--- a/drivers/pci/pcie_fsl.c
+++ b/drivers/pci/pcie_fsl.c
@@ -18,6 +18,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 dc8368d5592..381185133d8 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 928f624da9a..07c0695409c 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 bc937532642..9af0b8a105f 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 593798e3e3c..a0a1bc3172f 100644
--- a/drivers/pci/pcie_layerscape.h
+++ b/drivers/pci/pcie_layerscape.h
@@ -9,6 +9,7 @@ 
 #define _PCIE_LAYERSCAPE_H_
 #include <pci.h>
 #include <dm.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 680455fb31f..3993c60d1ad 100644
--- a/drivers/pci/pcie_layerscape_ep.c
+++ b/drivers/pci/pcie_layerscape_ep.c
@@ -14,6 +14,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 05b5f76cf2c..d4d5bba8523 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 dcb991596b0..7046960c77a 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 d298a2b8109..8fcc03afba2 100644
--- a/drivers/pci/pcie_layerscape_gen4.h
+++ b/drivers/pci/pcie_layerscape_gen4.h
@@ -10,6 +10,7 @@ 
 #define _PCIE_LAYERSCAPE_GEN4_H_
 #include <pci.h>
 #include <dm.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 442a21c1115..1bce36bc95e 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 aba38c3fe79..8e672e812d1 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 44cce69a9aa..66c7dece310 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 b106fd3e132..696b36d40c9 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 90d2d283c0e..532ae928a8c 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 c66d185cc82..4b7cd602c26 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 93d3696b133..008f1f629a8 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 f018a95497d..00a0e4d4313 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 5b867a6294e..467575d6e84 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 03a4d61434e..91ba53f8bdb 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 3f57aabea1d..040247c68a1 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 9f8ecf49ca4..dce17402440 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 409ab041173..1e11eb863ca 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 7f1aeeda940..18de9f7762c 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 7624a9974fe..ee8430b1629 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 1aa323c009a..4f2a44f6dc5 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 0f5dcb2c639..5bbbbc784f4 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 37640dd2b6d..058754caf27 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 af43754a4d3..d3af578afdf 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 62e339e9310..1aabf11f08d 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 91427aed4b9..c8797773d44 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 9227e5948c8..362c7d47726 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 5e51a9a90c1..def643c5d5b 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 0ed4b50b458..26a9f1e0ebf 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 8f23c8cef1d..a2bed97accf 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 115e8b5616d..2a38e321496 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 90c5e164896..3d896cc1303 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 9e2e1511645..cb755d6cfc5 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 5acc21b9c2e..f28f07bce1a 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 98010cdaf96..eb33d93f506 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 72a9470854e..8bb7ba593e2 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 17fbc53c257..4be36449d37 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 49e026bc98b..39b95cbb710 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 d59f08d4eb7..c9104a6e7bc 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 592b7c547b7..55eb7821da1 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 2e043509cf8..4ea1e853f78 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 b51d8f009c0..25ca19ff6ab 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 c52b8f5df33..52b6c9242ae 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 5bb012b197f..08a97ae378b 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 49eb9078f15..02f8d94f12d 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 aa5d05d93e9..819c5723fa5 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 45b3ad5d793..a8a78020d0a 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 28db1116387..6b6ad35b351 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 e4a05f5cce6..24387e59f1e 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 f6444181671..7549253e061 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 bdf852c5f02..b72374cd09c 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 6f2b34f2813..939760d5bb1 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 faec68c3b2e..98cf5b5aa5b 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 db4dea11104..91d220fe475 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 1a7e686a465..5d7486574cc 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 81c01799482..feea8a45ff6 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 bf1ee07c5fe..bbe50160722 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 11d4e784d02..77bd12e4c79 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 445dbf85d4f..dc44f784080 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 c4ff4e58531..4b919e9cffc 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 3e925837ee8..2ae92e258b7 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 e8cdca1bd28..8c22a56b620 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 088617de5db..afd9bd3e85d 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 342d67d06d9..42075627f96 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 d66b62d9136..5fbc0635964 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 ec33f89bb82..084941c6706 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 389d584078f..f36e49f36a4 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 d969c200826..5231e646521 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 c0fb962ef05..42db3375d04 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 5efaa2f66b0..a1d41cc48ff 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 d3c5833c993..7bd359f95af 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 bf1a9e9e989..ddea6ab9d04 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 f22c046804a..4f9692ac1b6 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 8bae163a8e9..93a57eac769 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 1f4931bcf0d..48a6f854f91 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 038a7dd7be0..7f9387c25ff 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 452d76d721d..a929ef38a98 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 1e38ba16f93..3bb9c292078 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 d713dc81f0a..f13e27f34cb 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 93ba847e2ec..de6afccea12 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 fd85b734145..7999ab593a8 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 bfdc3d93caf..340472d75c7 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 37167b33460..2b07855fb11 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 7e131d32553..f6082f2a4c0 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 cf9227572f9..2ea42860794 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 373db61ba0f..c58b80e63a0 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 707735cf851..3649858e0f2 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 89a170aea60..a0614e229a1 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 b88e79f4314..13b7503aedb 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 1a044ea5b17..ce68fdb043a 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 991a94b41ab..db0968ac0f5 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 0140231214a..175966293c2 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 da25e58dec9..55b61cd7a9f 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 7ebba28a992..2a74bfcc79e 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 ae069e602a3..bfe77d6814a 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 fa8dc96f9da..93aa04f7aee 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 78245de90a6..97cae59bff0 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 bc862179a80..2f344e45dfe 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 c47a4a9a778..38bf4f53b27 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 2275a7367b0..96b0f36c415 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 bcbe257f53f..e4c099fb8b4 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 9f1ae1d246f..5eeed77b29e 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 b874d58961c..1f9eab05cbe 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 451ce106e4f..9bf65e9685f 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 704a33d057a..251fc78bc89 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 ace87764092..c9ab95c9d5a 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 946401f5e24..0d3d05c40b3 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 03e6ffcc978..e6b0bbac7cf 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 ffbc06d9b79..728a67bf8d4 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 7e1d08b8d11..6d4f8caa3bb 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 88c6f3ca3b2..196092c7260 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 38cd18b0d4f..119e8d3ffbb 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 5d7d3d43ed5..44c26e868d3 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 95db2d60e50..cbab544e2bc 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 a2bd9c6c18a..bc9ec2dcb27 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 535d88a7e19..1767a72ac0d 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 acf0d5cfa4f..ac9d0986040 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 5417e95ef7b..59a07e593b9 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 77a1907fd3b..70bf5851e54 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 1459e7fa673..9b997ec88f7 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 866b243c004..cf3c723aceb 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 ab2df85e3ea..e3bfcc837dc 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 04c16ff36d8..afe48071047 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 0e267064b14..44e7f235650 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 d3e714a6ab3..55472103fcc 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 2cfb3787dc4..11378bb2e3b 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 49adc58165d..cb11e99faf8 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 c9beb852def..ff9ed5d01ae 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 66ec3c5a27f..56a1c926985 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 84050d72c4a..1ee052bffb9 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 dc6dd3570e0..c3a308e2af6 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 1c3d95d7d63..9f13363e634 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 fd5763d0a0d..a4f8980bfd7 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 a8db0e34122..cfa6d0ebf19 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 92fe235be5a..89b4fc2acb6 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 4f48da4b4e5..80abe9c9b20 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 e61972e322c..827d52e7a5c 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 45c20b7cfa3..690b8c3f3b2 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 6742aa6a986..d122dadd6dc 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 4998f044394..5f15196b2da 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 34c9af7214b..d45071d3ed3 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 347ff769e40..8b49730e633 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 02ee683303d..00bdbe6762a 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 822c890031a..8da11d0629a 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 d4064a311b5..bb82de08da7 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 950dc3f9b11..e7513240ec5 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 722b9432491..a341ef84e8a 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 beb5cd8fa8c..d1e687bc135 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 531e2cfb5fa..c9cfa6bc7d3 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 8322a48a8ae..ee53df94eca 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 f01b1e53e98..370353e6cba 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 a6936e81877..142724856e6 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 75d972a5fa2..d80e985711e 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 efc1980e449..35f999c447d 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 5ca0e32b50c..dc8e370a402 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 a78dc78cfcc..93b9ecc18db 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 ffed37ad5aa..bda19d6853f 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 ad7ca9e8784..0a68ef4a187 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 6b20d3d487b..bd2b65b028f 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 ea9eb206a10..3d309885c2c 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 270f61cc074..a8faa58f271 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 f6e14cc9021..84bf36f3be5 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 598ae08c668..49ca3ff1320 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 603a8cb5977..b0b69cf96f7 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 aef4c75d388..c811524e357 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 5033298f95a..5176a7395b7 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 6e10e5ec846..c3235135b5b 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 a16d6a6eca6..fdcd62705ad 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 c1be34960ec..4205ffdd0df 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 d9ebb273ddc..6e54e4ca72f 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 efb6eb60b35..f2a35e4b4d0 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 309cbf63af9..a90bfc7f5ed 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 c0beba19f58..001fca79f98 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 df3a0901024..4739c5a20e8 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 d9be526ffe2..b9b947a930a 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 1017981f97c..45ae154b633 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 2d2f07e369b..f1670a0eddd 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 80141642af8..63875c626cd 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 0978930dcd4..ba87240d74c 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 0809f1ff8a9..a86563e8d8f 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 74b5cc880c1..c028d760f2f 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 7e4cd6c4b49..a5674e6b13b 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 1c08f3ec795..d13dbeb3cef 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 c92ae698088..f7ce9f5b511 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 d721e24e4bf..4ac5d78753b 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 8e420fb764b..f1473d6cffa 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 a472e8ca5de..1f4e54628fa 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 c5c706b153e..a2d696e6c27 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 e20f0c87540..459ce781712 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 1a939628a5a..0e800633452 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 e596c042ca6..e87f1d0ecfe 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 0cb53d7ae3f..d3d1b74478a 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 5cd4c815cfd..c5d8d3f3dde 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 57376518880..0c541ead06e 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 4004cb8d48a..95d378ec28f 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 fd9e227557f..f91be0c220a 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 f0b64809560..4e2e09edd3f 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 ba9d108173c..3a5ee3bbce0 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 29d586e0bcd..417a682e649 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 21c4b3fe194..c9a8b1ed019 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 c121fec52d4..68fa28a6f80 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 41aa338b55f..e9d56b1f869 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 6c2caf3f77f..d1d560ae6da 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 db52ccdea3b..18632511499 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 8fbcf80abcb..318dfe76e39 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 a20c8e78b88..37fb5a5d340 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 bfe78ff6b4f..3eb99f31a4a 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 1c30f06350f..b1c1fca004f 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 cb27be0a7cb..345d9746f25 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 c37c787549d..e8ec0517d15 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 aed5f64eabb..ab60a47945d 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 f270eea61e8..c69d7154cb5 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 1a95cfb9f65..5e4ae989c18 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 f45214fbda4..6e2c476d281 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 539abcfd953..27ed0203add 100644
--- a/drivers/spi/bcmstb_spi.c
+++ b/drivers/spi/bcmstb_spi.c
@@ -5,6 +5,7 @@ 
  * Author: Thomas Fitzsimmons <fitzsim@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 ae459c74a19..0ecd461b79a 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 d97b299a93c..dc066f17e3d 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 7058ba9acf5..4ea77a15051 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 f6c63435147..a960c61f350 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 cec59208395..400269fa39d 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 190b60b3c4f..b5f7d3e08a7 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 fb82228c92b..ec500d86184 100644
--- a/drivers/spi/fsl_espi.c
+++ b/drivers/spi/fsl_espi.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 <malloc.h>
diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c
index 195808c4066..314d3f89484 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 51d283c5e6f..bf6cd061b53 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 3659e5e8ade..a127135323d 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 08b3859678f..f61bcd5e2de 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 eedb29216cb..f5ceeaac97d 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 0454410ee9b..0e6e1bf0143 100644
--- a/drivers/spi/mscc_bb_spi.c
+++ b/drivers/spi/mscc_bb_spi.c
@@ -12,6 +12,7 @@ 
 #include <malloc.h>
 #include <spi.h>
 #include <dm.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 581a9bd44c4..f4b5ad89245 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 502f5153cc4..f3e28d0ed69 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 00e3b596227..db1673fa57d 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 8c541dc03e6..abc7f014d7d 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 222c30a1ebd..e1fc5257839 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 236de5b54a3..5618ab21638 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 9090667bf0f..95fcb5723f2 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 c5363c24190..ec998eda082 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 49f3fdb6928..bf3a7bf919c 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 42a6126dd7b..6cc908dcdf8 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 5580b34f34f..4081a50eaaf 100644
--- a/drivers/spi/spi-mem.c
+++ b/drivers/spi/spi-mem.c
@@ -17,6 +17,7 @@ 
 #include <spi.h>
 #include <spi-mem.h>
 #include <linux/errno.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 bfc02ec1dc3..cf94407759e 100644
--- a/drivers/spi/spi-sifive.c
+++ b/drivers/spi/spi-sifive.c
@@ -16,6 +16,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 c19a24a1c64..80c406d7b36 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 c59ae3ff9b3..6d397f2ebd2 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 34bfd99bead..e18e599e3b0 100644
--- a/drivers/spi/stm32_qspi.c
+++ b/drivers/spi/stm32_qspi.c
@@ -18,6 +18,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 d37404f0c8c..635ead98dbd 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 742554a09ab..22cf974a905 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 1386dc86ed6..de988f4e975 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 d06fc34c697..9212449a7ee 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 f1e0d691503..e2f6fc17e71 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 f2b2fc89c61..0027efd4864 100644
--- a/drivers/sysreset/sysreset_mpc83xx.c
+++ b/drivers/sysreset/sysreset_mpc83xx.c
@@ -15,6 +15,7 @@ 
 #include <asm/global_data.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 a92fd9c9562..545bb3fe222 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 c1460999cbe..fb656bed92f 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 4d643b2599d..ba8a43d5c09 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 0804fc963cf..a9ea53854fc 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 14df3ce0130..3a5d106f956 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 f42cc1becb8..1dc806db89b 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 17c92ae0635..6b822f18854 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 279ea5a322e..8a67d9aa58c 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 2120b02d444..fd047248530 100644
--- a/drivers/timer/sandbox_timer.c
+++ b/drivers/timer/sandbox_timer.c
@@ -4,6 +4,7 @@