[RFCv2 08/16] common: Drop stdio.h from common header

Tom Rini trini at konsulko.com
Wed Aug 19 15:09:00 CEST 2020


From: Simon Glass <sjg at chromium.org>

Move this out of the common header and include it only where needed.

Signed-off-by: Simon Glass <sjg at chromium.org>
---
 api/api.c                                                  | 1 +
 api/api_net.c                                              | 1 +
 api/api_storage.c                                          | 1 +
 arch/arc/lib/bootm.c                                       | 1 +
 arch/arc/lib/cpu.c                                         | 1 +
 arch/arc/lib/interrupts.c                                  | 1 +
 arch/arc/lib/reset.c                                       | 1 +
 arch/arm/cpu/arm1136/mx31/generic.c                        | 1 +
 arch/arm/cpu/arm1136/mx35/generic.c                        | 1 +
 arch/arm/cpu/arm926ejs/armada100/cpu.c                     | 1 +
 arch/arm/cpu/arm926ejs/armada100/dram.c                    | 1 +
 arch/arm/cpu/arm926ejs/mx25/generic.c                      | 1 +
 arch/arm/cpu/arm926ejs/mx27/generic.c                      | 1 +
 arch/arm/cpu/arm926ejs/mxs/mxs.c                           | 1 +
 arch/arm/cpu/arm926ejs/spear/cpu.c                         | 1 +
 arch/arm/cpu/arm926ejs/spear/reset.c                       | 1 +
 arch/arm/cpu/arm926ejs/spear/spl.c                         | 1 +
 arch/arm/cpu/arm926ejs/spear/spr_misc.c                    | 1 +
 arch/arm/cpu/armv7/bcm235xx/clk-bsc.c                      | 1 +
 arch/arm/cpu/armv7/bcm235xx/clk-core.c                     | 1 +
 arch/arm/cpu/armv7/bcm235xx/clk-core.h                     | 1 +
 arch/arm/cpu/armv7/bcm235xx/clk-eth.c                      | 1 +
 arch/arm/cpu/armv7/bcm235xx/clk-sdio.c                     | 1 +
 arch/arm/cpu/armv7/bcm235xx/clk-usb-otg.c                  | 1 +
 arch/arm/cpu/armv7/bcm281xx/clk-bsc.c                      | 1 +
 arch/arm/cpu/armv7/bcm281xx/clk-core.c                     | 1 +
 arch/arm/cpu/armv7/bcm281xx/clk-core.h                     | 1 +
 arch/arm/cpu/armv7/bcm281xx/clk-eth.c                      | 1 +
 arch/arm/cpu/armv7/bcm281xx/clk-sdio.c                     | 1 +
 arch/arm/cpu/armv7/bcm281xx/clk-usb-otg.c                  | 1 +
 arch/arm/cpu/armv7/iproc-common/armpll.c                   | 1 +
 arch/arm/cpu/armv7/ls102xa/clock.c                         | 1 +
 arch/arm/cpu/armv7/ls102xa/cpu.c                           | 1 +
 arch/arm/cpu/armv7/ls102xa/fdt.c                           | 1 +
 arch/arm/cpu/armv7/ls102xa/fsl_ls1_serdes.c                | 1 +
 arch/arm/cpu/armv7/s5p-common/cpu_info.c                   | 1 +
 arch/arm/cpu/armv7/stv0991/reset.c                         | 1 +
 arch/arm/cpu/armv7/vf610/generic.c                         | 1 +
 arch/arm/cpu/armv7/virt-v7.c                               | 1 +
 arch/arm/cpu/armv7m/cache.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/fdt.c                    | 1 +
 arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_serdes.c       | 1 +
 arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c        | 1 +
 arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c       | 1 +
 arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c        | 1 +
 arch/arm/cpu/armv8/fsl-layerscape/icid.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/s32v234/cpu.c                           | 1 +
 arch/arm/cpu/armv8/s32v234/generic.c                       | 1 +
 arch/arm/cpu/armv8/sec_firmware.c                          | 1 +
 arch/arm/cpu/armv8/spin_table.c                            | 1 +
 arch/arm/cpu/pxa/cpuinfo.c                                 | 1 +
 arch/arm/include/asm/arch-mx7ulp/scg.h                     | 2 ++
 arch/arm/lib/bdinfo.c                                      | 1 +
 arch/arm/lib/bootm.c                                       | 1 +
 arch/arm/lib/cache-cp15.c                                  | 1 +
 arch/arm/lib/cache-pl310.c                                 | 1 +
 arch/arm/lib/cache.c                                       | 1 +
 arch/arm/lib/eabi_compat.c                                 | 1 +
 arch/arm/lib/image.c                                       | 1 +
 arch/arm/lib/interrupts.c                                  | 1 +
 arch/arm/lib/interrupts_64.c                               | 1 +
 arch/arm/lib/interrupts_m.c                                | 1 +
 arch/arm/lib/psci-dt.c                                     | 1 +
 arch/arm/lib/semihosting.c                                 | 1 +
 arch/arm/lib/zimage.c                                      | 1 +
 arch/arm/mach-at91/arm920t/clock.c                         | 1 +
 arch/arm/mach-at91/arm926ejs/clock.c                       | 1 +
 arch/arm/mach-at91/arm926ejs/cpu.c                         | 1 +
 arch/arm/mach-at91/arm926ejs/eflash.c                      | 1 +
 arch/arm/mach-at91/armv7/clock.c                           | 1 +
 arch/arm/mach-at91/armv7/cpu.c                             | 1 +
 arch/arm/mach-at91/clock.c                                 | 1 +
 arch/arm/mach-at91/phy.c                                   | 1 +
 arch/arm/mach-at91/spl.c                                   | 1 +
 arch/arm/mach-bcm283x/mbox.c                               | 1 +
 arch/arm/mach-bcm283x/msg.c                                | 1 +
 arch/arm/mach-davinci/misc.c                               | 1 +
 arch/arm/mach-davinci/spl.c                                | 1 +
 arch/arm/mach-exynos/clock.c                               | 1 +
 arch/arm/mach-imx/cache.c                                  | 1 +
 arch/arm/mach-imx/cmd_nandbcb.c                            | 1 +
 arch/arm/mach-imx/cpu.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/clock.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/iomux.c                             | 1 +
 arch/arm/mach-imx/imx8/misc.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/soc.c                              | 1 +
 arch/arm/mach-imx/imx_bootaux.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/mp.c                                 | 1 +
 arch/arm/mach-imx/mx7/clock.c                              | 1 +
 arch/arm/mach-imx/mx7/clock_slice.c                        | 1 +
 arch/arm/mach-imx/mx7ulp/clock.c                           | 1 +
 arch/arm/mach-imx/mx7ulp/pcc.c                             | 1 +
 arch/arm/mach-imx/mx7ulp/scg.c                             | 1 +
 arch/arm/mach-imx/mx7ulp/soc.c                             | 1 +
 arch/arm/mach-imx/spl.c                                    | 1 +
 arch/arm/mach-imx/spl_imx_romapi.c                         | 1 +
 arch/arm/mach-imx/video.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-keystone/cmd_clock.c                         | 1 +
 arch/arm/mach-keystone/cmd_mon.c                           | 1 +
 arch/arm/mach-keystone/ddr3.c                              | 1 +
 arch/arm/mach-keystone/ddr3_spd.c                          | 1 +
 arch/arm/mach-keystone/init.c                              | 1 +
 arch/arm/mach-keystone/keystone.c                          | 1 +
 arch/arm/mach-keystone/mon.c                               | 1 +
 arch/arm/mach-keystone/psc.c                               | 1 +
 arch/arm/mach-kirkwood/cpu.c                               | 1 +
 arch/arm/mach-lpc32xx/cpu.c                                | 1 +
 arch/arm/mach-mediatek/mt7622/init.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-mediatek/mt8518/init.c                       | 1 +
 arch/arm/mach-meson/board-axg.c                            | 1 +
 arch/arm/mach-meson/board-common.c                         | 1 +
 arch/arm/mach-meson/board-g12a.c                           | 1 +
 arch/arm/mach-meson/board-gx.c                             | 1 +
 arch/arm/mach-meson/board-info.c                           | 1 +
 arch/arm/mach-meson/sm.c                                   | 1 +
 arch/arm/mach-mvebu/armada3700/cpu.c                       | 1 +
 arch/arm/mach-mvebu/cpu.c                                  | 1 +
 arch/arm/mach-mvebu/dram.c                                 | 1 +
 arch/arm/mach-mvebu/mbus.c                                 | 1 +
 arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec-38x.c  | 1 +
 arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c      | 1 +
 arch/arm/mach-mvebu/serdes/a38x/seq_exec.c                 | 1 +
 arch/arm/mach-mvebu/serdes/a38x/sys_env_lib.c              | 1 +
 arch/arm/mach-omap2/abb.c                                  | 1 +
 arch/arm/mach-omap2/am33xx/chilisom.c                      | 1 +
 arch/arm/mach-omap2/am33xx/clk_synthesizer.c               | 1 +
 arch/arm/mach-omap2/am33xx/clock.c                         | 1 +
 arch/arm/mach-omap2/am33xx/clock_am33xx.c                  | 1 +
 arch/arm/mach-omap2/am33xx/ddr.c                           | 1 +
 arch/arm/mach-omap2/am33xx/fdt.c                           | 1 +
 arch/arm/mach-omap2/am33xx/sys_info.c                      | 1 +
 arch/arm/mach-omap2/clocks-common.c                        | 1 +
 arch/arm/mach-omap2/emif-common.c                          | 1 +
 arch/arm/mach-omap2/fdt-common.c                           | 1 +
 arch/arm/mach-omap2/hwinit-common.c                        | 1 +
 arch/arm/mach-omap2/omap3/am35x_musb.c                     | 1 +
 arch/arm/mach-omap2/omap3/board.c                          | 1 +
 arch/arm/mach-omap2/omap3/sys_info.c                       | 1 +
 arch/arm/mach-omap2/omap4/hw_data.c                        | 1 +
 arch/arm/mach-omap2/omap5/dra7xx_iodelay.c                 | 1 +
 arch/arm/mach-omap2/omap5/fdt.c                            | 1 +
 arch/arm/mach-omap2/omap5/hw_data.c                        | 1 +
 arch/arm/mach-omap2/omap5/sdram.c                          | 1 +
 arch/arm/mach-omap2/pipe3-phy.c                            | 1 +
 arch/arm/mach-omap2/sec-common.c                           | 1 +
 arch/arm/mach-omap2/utils.c                                | 1 +
 arch/arm/mach-omap2/vc.c                                   | 1 +
 arch/arm/mach-orion5x/cpu.c                                | 1 +
 arch/arm/mach-owl/soc.c                                    | 1 +
 arch/arm/mach-rmobile/board.c                              | 1 +
 arch/arm/mach-rmobile/cpu_info.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/cpu-info.c                          | 1 +
 arch/arm/mach-rockchip/misc.c                              | 1 +
 arch/arm/mach-rockchip/rk3288/rk3288.c                     | 1 +
 arch/arm/mach-rockchip/rk3308/rk3308.c                     | 1 +
 arch/arm/mach-rockchip/spl.c                               | 1 +
 arch/arm/mach-rockchip/tpl.c                               | 1 +
 arch/arm/mach-s5pc1xx/clock.c                              | 1 +
 arch/arm/mach-snapdragon/dram.c                            | 1 +
 arch/arm/mach-socfpga/board.c                              | 1 +
 arch/arm/mach-socfpga/clock_manager_agilex.c               | 1 +
 arch/arm/mach-socfpga/clock_manager_arria10.c              | 1 +
 arch/arm/mach-socfpga/clock_manager_gen5.c                 | 1 +
 arch/arm/mach-socfpga/clock_manager_s10.c                  | 1 +
 arch/arm/mach-socfpga/mailbox_s10.c                        | 1 +
 arch/arm/mach-socfpga/misc_arria10.c                       | 1 +
 arch/arm/mach-socfpga/misc_gen5.c                          | 1 +
 arch/arm/mach-socfpga/misc_s10.c                           | 1 +
 arch/arm/mach-socfpga/reset_manager_gen5.c                 | 1 +
 arch/arm/mach-socfpga/spl_a10.c                            | 1 +
 arch/arm/mach-socfpga/spl_gen5.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_serial.c     | 1 +
 arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c        | 1 +
 arch/arm/mach-stm32mp/cpu.c                                | 1 +
 arch/arm/mach-stm32mp/fdt.c                                | 1 +
 arch/arm/mach-stm32mp/spl.c                                | 1 +
 arch/arm/mach-sunxi/clock_sun4i.c                          | 1 +
 arch/arm/mach-sunxi/cpu_info.c                             | 1 +
 arch/arm/mach-sunxi/dram_sun9i.c                           | 1 +
 arch/arm/mach-tegra/ap.c                                   | 1 +
 arch/arm/mach-tegra/board2.c                               | 1 +
 arch/arm/mach-tegra/cboot.c                                | 1 +
 arch/arm/mach-tegra/clock.c                                | 1 +
 arch/arm/mach-tegra/cmd_enterrcm.c                         | 1 +
 arch/arm/mach-tegra/cpu.c                                  | 1 +
 arch/arm/mach-tegra/pinmux-common.c                        | 1 +
 arch/arm/mach-tegra/pmc.c                                  | 1 +
 arch/arm/mach-tegra/sys_info.c                             | 1 +
 arch/arm/mach-tegra/tegra114/clock.c                       | 1 +
 arch/arm/mach-tegra/tegra124/clock.c                       | 1 +
 arch/arm/mach-tegra/tegra20/clock.c                        | 1 +
 arch/arm/mach-tegra/tegra20/warmboot.c                     | 1 +
 arch/arm/mach-tegra/tegra210/clock.c                       | 1 +
 arch/arm/mach-tegra/tegra30/clock.c                        | 1 +
 arch/arm/mach-u8500/cpuinfo.c                              | 1 +
 arch/arm/mach-uniphier/micro-support-card.c                | 1 +
 arch/arm/mach-versal/cpu.c                                 | 1 +
 arch/arm/mach-versal/mp.c                                  | 1 +
 arch/arm/mach-zynq/clk.c                                   | 1 +
 arch/arm/mach-zynq/cpu.c                                   | 1 +
 arch/arm/mach-zynq/ddrc.c                                  | 1 +
 arch/arm/mach-zynq/spl.c                                   | 1 +
 arch/arm/mach-zynqmp/cpu.c                                 | 1 +
 arch/arm/mach-zynqmp/mp.c                                  | 1 +
 arch/arm/mach-zynqmp/spl.c                                 | 1 +
 arch/m68k/cpu/mcf5227x/cpu.c                               | 1 +
 arch/m68k/cpu/mcf523x/cpu.c                                | 1 +
 arch/m68k/cpu/mcf52x2/cpu.c                                | 1 +
 arch/m68k/cpu/mcf530x/cpu.c                                | 1 +
 arch/m68k/cpu/mcf532x/cpu.c                                | 1 +
 arch/m68k/cpu/mcf5445x/cpu.c                               | 1 +
 arch/m68k/cpu/mcf547x_8x/cpu.c                             | 1 +
 arch/m68k/lib/bootm.c                                      | 1 +
 arch/m68k/lib/fec.c                                        | 1 +
 arch/m68k/lib/traps.c                                      | 1 +
 arch/microblaze/cpu/exception.c                            | 1 +
 arch/microblaze/cpu/interrupts.c                           | 1 +
 arch/microblaze/lib/bootm.c                                | 1 +
 arch/mips/lib/cache.c                                      | 1 +
 arch/mips/lib/traps.c                                      | 1 +
 arch/mips/mach-ath79/ar934x/clk.c                          | 1 +
 arch/mips/mach-ath79/cpu.c                                 | 1 +
 arch/mips/mach-ath79/reset.c                               | 1 +
 arch/mips/mach-jz47xx/jz4780/jz4780.c                      | 1 +
 arch/mips/mach-jz47xx/jz4780/pll.c                         | 1 +
 arch/mips/mach-mscc/dram.c                                 | 1 +
 arch/mips/mach-mtmips/cpu.c                                | 1 +
 arch/mips/mach-mtmips/mt7628/init.c                        | 1 +
 arch/mips/mach-octeon/cpu.c                                | 1 +
 arch/mips/mach-pic32/cpu.c                                 | 1 +
 arch/nds32/lib/bootm.c                                     | 1 +
 arch/nds32/lib/interrupts.c                                | 1 +
 arch/nios2/cpu/cpu.c                                       | 1 +
 arch/powerpc/cpu/mpc83xx/cpu.c                             | 1 +
 arch/powerpc/cpu/mpc83xx/cpu_init.c                        | 1 +
 arch/powerpc/cpu/mpc83xx/ecc.c                             | 1 +
 arch/powerpc/cpu/mpc83xx/pci.c                             | 1 +
 arch/powerpc/cpu/mpc83xx/pcie.c                            | 1 +
 arch/powerpc/cpu/mpc83xx/spd_sdram.c                       | 1 +
 arch/powerpc/cpu/mpc83xx/speed.c                           | 1 +
 arch/powerpc/cpu/mpc83xx/spl_minimal.c                     | 1 +
 arch/powerpc/cpu/mpc83xx/traps.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/fdt.c                             | 1 +
 arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c             | 1 +
 arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c              | 1 +
 arch/powerpc/cpu/mpc85xx/liodn.c                           | 1 +
 arch/powerpc/cpu/mpc85xx/mp.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/pci.c                             | 1 +
 arch/powerpc/cpu/mpc85xx/portals.c                         | 1 +
 arch/powerpc/cpu/mpc85xx/speed.c                           | 1 +
 arch/powerpc/cpu/mpc85xx/tlb.c                             | 1 +
 arch/powerpc/cpu/mpc85xx/traps.c                           | 1 +
 arch/powerpc/cpu/mpc86xx/cpu.c                             | 1 +
 arch/powerpc/cpu/mpc86xx/fdt.c                             | 1 +
 arch/powerpc/cpu/mpc86xx/interrupts.c                      | 1 +
 arch/powerpc/cpu/mpc86xx/mp.c                              | 1 +
 arch/powerpc/cpu/mpc86xx/mpc8610_serdes.c                  | 1 +
 arch/powerpc/cpu/mpc86xx/mpc8641_serdes.c                  | 1 +
 arch/powerpc/cpu/mpc86xx/traps.c                           | 1 +
 arch/powerpc/cpu/mpc8xx/cpu.c                              | 1 +
 arch/powerpc/cpu/mpc8xx/immap.c                            | 1 +
 arch/powerpc/cpu/mpc8xx/interrupts.c                       | 1 +
 arch/powerpc/cpu/mpc8xx/traps.c                            | 1 +
 arch/powerpc/cpu/mpc8xxx/fdt.c                             | 1 +
 arch/powerpc/cpu/mpc8xxx/fsl_lbc.c                         | 1 +
 arch/powerpc/cpu/mpc8xxx/fsl_pamu.c                        | 1 +
 arch/powerpc/cpu/mpc8xxx/law.c                             | 1 +
 arch/powerpc/cpu/mpc8xxx/srio.c                            | 1 +
 arch/powerpc/lib/bat_rw.c                                  | 1 +
 arch/powerpc/lib/bdinfo.c                                  | 1 +
 arch/powerpc/lib/bootm.c                                   | 1 +
 arch/riscv/lib/bootm.c                                     | 1 +
 arch/riscv/lib/fdt_fixup.c                                 | 1 +
 arch/riscv/lib/image.c                                     | 1 +
 arch/riscv/lib/interrupts.c                                | 1 +
 arch/riscv/lib/reset.c                                     | 1 +
 arch/sandbox/cpu/cpu.c                                     | 1 +
 arch/sandbox/cpu/sdl.c                                     | 1 +
 arch/sandbox/cpu/spl.c                                     | 1 +
 arch/sandbox/cpu/start.c                                   | 1 +
 arch/sandbox/cpu/state.c                                   | 1 +
 arch/sandbox/lib/bootm.c                                   | 1 +
 arch/sh/cpu/sh4/cpu.c                                      | 1 +
 arch/sh/lib/bootm.c                                        | 1 +
 arch/x86/cpu/apollolake/cpu_spl.c                          | 1 +
 arch/x86/cpu/broadwell/cpu.c                               | 1 +
 arch/x86/cpu/broadwell/iobp.c                              | 1 +
 arch/x86/cpu/broadwell/northbridge.c                       | 1 +
 arch/x86/cpu/broadwell/sdram.c                             | 1 +
 arch/x86/cpu/coreboot/coreboot.c                           | 1 +
 arch/x86/cpu/coreboot/sdram.c                              | 1 +
 arch/x86/cpu/cpu.c                                         | 1 +
 arch/x86/cpu/efi/payload.c                                 | 1 +
 arch/x86/cpu/i386/cpu.c                                    | 1 +
 arch/x86/cpu/i386/interrupt.c                              | 1 +
 arch/x86/cpu/intel_common/cpu.c                            | 1 +
 arch/x86/cpu/intel_common/microcode.c                      | 1 +
 arch/x86/cpu/intel_common/mrc.c                            | 1 +
 arch/x86/cpu/irq.c                                         | 1 +
 arch/x86/cpu/ivybridge/bd82x6x.c                           | 1 +
 arch/x86/cpu/ivybridge/cpu.c                               | 1 +
 arch/x86/cpu/ivybridge/early_me.c                          | 1 +
 arch/x86/cpu/ivybridge/lpc.c                               | 1 +
 arch/x86/cpu/ivybridge/sdram.c                             | 1 +
 arch/x86/cpu/mp_init.c                                     | 1 +
 arch/x86/cpu/qfw_cpu.c                                     | 1 +
 arch/x86/lib/acpi_s3.c                                     | 1 +
 arch/x86/lib/acpi_table.c                                  | 1 +
 arch/x86/lib/bios_interrupts.c                             | 1 +
 arch/x86/lib/bootm.c                                       | 1 +
 arch/x86/lib/fsp/fsp_graphics.c                            | 1 +
 arch/x86/lib/fsp2/fsp_meminit.c                            | 1 +
 arch/x86/lib/interrupts.c                                  | 1 +
 arch/x86/lib/mrccache.c                                    | 1 +
 arch/x86/lib/pirq_routing.c                                | 1 +
 arch/x86/lib/pmu.c                                         | 1 +
 arch/x86/lib/relocate.c                                    | 1 +
 arch/x86/lib/scu.c                                         | 1 +
 arch/x86/lib/spl.c                                         | 1 +
 arch/x86/lib/tables.c                                      | 1 +
 arch/x86/lib/tpl.c                                         | 1 +
 arch/x86/lib/zimage.c                                      | 1 +
 arch/xtensa/cpu/cpu.c                                      | 1 +
 arch/xtensa/cpu/exceptions.c                               | 1 +
 arch/xtensa/lib/bootm.c                                    | 1 +
 board/AndesTech/adp-ae3xx/adp-ae3xx.c                      | 1 +
 board/AndesTech/adp-ag101p/adp-ag101p.c                    | 1 +
 board/Arcturus/ucp1020/cmd_arc.c                           | 1 +
 board/Arcturus/ucp1020/ddr.c                               | 1 +
 board/Arcturus/ucp1020/spl.c                               | 1 +
 board/Arcturus/ucp1020/spl_minimal.c                       | 1 +
 board/Arcturus/ucp1020/ucp1020.c                           | 1 +
 board/BuR/brppt1/board.c                                   | 1 +
 board/BuR/brppt2/board.c                                   | 1 +
 board/BuR/brsmarc1/board.c                                 | 1 +
 board/BuR/brxre1/board.c                                   | 1 +
 board/BuR/common/br_resetc.c                               | 1 +
 board/BuR/common/common.c                                  | 1 +
 board/BuS/eb_cpu5282/eb_cpu5282.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/common/common.c                                | 1 +
 board/LaCie/net2big_v2/net2big_v2.c                        | 1 +
 board/Marvell/db-88f6720/db-88f6720.c                      | 1 +
 board/Marvell/db-88f6820-amc/db-88f6820-amc.c              | 1 +
 board/Marvell/db-88f6820-gp/db-88f6820-gp.c                | 1 +
 board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c                | 1 +
 board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c                | 1 +
 board/Marvell/dreamplug/dreamplug.c                        | 1 +
 board/Marvell/gplugd/gplugd.c                              | 1 +
 board/Marvell/guruplug/guruplug.c                          | 1 +
 board/Marvell/mvebu_armada-37xx/board.c                    | 1 +
 board/Marvell/mvebu_armada-8k/board.c                      | 1 +
 board/Marvell/openrd/openrd.c                              | 1 +
 board/Marvell/sheevaplug/sheevaplug.c                      | 1 +
 board/Seagate/dockstar/dockstar.c                          | 1 +
 board/Seagate/goflexhome/goflexhome.c                      | 1 +
 board/Seagate/nas220/nas220.c                              | 1 +
 board/Synology/ds109/ds109.c                               | 1 +
 board/Synology/ds414/cmd_syno.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/armadeus/opos6uldev/board.c                          | 1 +
 board/armltd/integrator/integrator.c                       | 1 +
 board/armltd/vexpress/vexpress_common.c                    | 1 +
 board/armltd/vexpress/vexpress_tc2.c                       | 1 +
 board/armltd/vexpress64/pcie.c                             | 1 +
 board/armltd/vexpress64/vexpress64.c                       | 1 +
 board/astro/mcf5373l/fpga.c                                | 1 +
 board/astro/mcf5373l/mcf5373l.c                            | 1 +
 board/atmel/common/board.c                                 | 1 +
 board/bachmann/ot1200/ot1200.c                             | 1 +
 board/barco/platinum/platinum.c                            | 1 +
 board/barco/titanium/titanium.c                            | 1 +
 board/beacon/imx8mm/spl.c                                  | 1 +
 board/beckhoff/mx53cx9020/mx53cx9020.c                     | 1 +
 board/bluegiga/apx4devkit/apx4devkit.c                     | 1 +
 board/bluewater/gurnard/gurnard.c                          | 1 +
 board/bosch/guardian/board.c                               | 1 +
 board/bosch/shc/board.c                                    | 1 +
 board/bosch/shc/mux.c                                      | 1 +
 board/boundary/nitrogen6x/nitrogen6x.c                     | 1 +
 board/broadcom/bcm23550_w1d/bcm23550_w1d.c                 | 1 +
 board/broadcom/bcm28155_ap/bcm28155_ap.c                   | 1 +
 board/broadcom/bcm963158/bcm963158.c                       | 1 +
 board/broadcom/bcm968360bg/bcm968360bg.c                   | 1 +
 board/broadcom/bcm968580xref/bcm968580xref.c               | 1 +
 board/broadcom/bcm_ep/board.c                              | 1 +
 board/buffalo/lsxl/lsxl.c                                  | 1 +
 board/cadence/xtfpga/xtfpga.c                              | 1 +
 board/cavium/thunderx/atf.c                                | 1 +
 board/cavium/thunderx/thunderx.c                           | 1 +
 board/ccv/xpress/xpress.c                                  | 1 +
 board/cirrus/edb93xx/edb93xx.c                             | 1 +
 board/cloudengines/pogo_e02/pogo_e02.c                     | 1 +
 board/compulab/cl-som-imx7/cl-som-imx7.c                   | 1 +
 board/compulab/cl-som-imx7/spl.c                           | 1 +
 board/compulab/cm_fx6/cm_fx6.c                             | 1 +
 board/compulab/cm_fx6/spl.c                                | 1 +
 board/compulab/cm_t335/cm_t335.c                           | 1 +
 board/compulab/cm_t335/spl.c                               | 1 +
 board/compulab/cm_t43/cm_t43.c                             | 1 +
 board/compulab/common/common.c                             | 1 +
 board/compulab/common/eeprom.c                             | 1 +
 board/compulab/common/omap3_display.c                      | 1 +
 board/compulab/common/omap3_smc911x.c                      | 1 +
 board/congatec/cgtqmx6eval/cgtqmx6eval.c                   | 1 +
 board/congatec/conga-qeval20-qa3-e3845/conga-qeval20-qa3.c | 1 +
 board/corscience/tricorder/tricorder-eeprom.c              | 1 +
 board/corscience/tricorder/tricorder.c                     | 1 +
 board/cortina/presidio-asic/presidio.c                     | 1 +
 board/cssi/MCR3000/MCR3000.c                               | 1 +
 board/d-link/dns325/dns325.c                               | 1 +
 board/davinci/da8xxevm/da850evm.c                          | 1 +
 board/davinci/da8xxevm/omapl138_lcdk.c                     | 1 +
 board/dhelectronics/dh_imx6/dh_imx6.c                      | 1 +
 board/dhelectronics/dh_imx6/dh_imx6_spl.c                  | 1 +
 board/dhelectronics/dh_stm32mp1/board.c                    | 1 +
 board/egnite/ethernut5/ethernut5_pwrman.c                  | 1 +
 board/el/el6x/el6x.c                                       | 1 +
 board/embest/mx6boards/mx6boards.c                         | 1 +
 board/engicam/common/spl.c                                 | 1 +
 board/esd/meesc/meesc.c                                    | 1 +
 board/esd/vme8349/caddy.c                                  | 1 +
 board/esd/vme8349/pci.c                                    | 1 +
 board/esd/vme8349/vme8349.c                                | 1 +
 board/firefly/firefly-rk3308/roc_cc_rk3308.c               | 1 +
 board/freescale/common/cmd_esbc_validate.c                 | 1 +
 board/freescale/common/dcu_sii9022a.c                      | 1 +
 board/freescale/common/diu_ch7301.c                        | 1 +
 board/freescale/common/emc2305.c                           | 1 +
 board/freescale/common/fsl_chain_of_trust.c                | 1 +
 board/freescale/common/fsl_validate.c                      | 1 +
 board/freescale/common/mc34vr500.c                         | 1 +
 board/freescale/common/ngpixis.c                           | 1 +
 board/freescale/common/pfuze.c                             | 1 +
 board/freescale/common/pixis.c                             | 1 +
 board/freescale/common/pq-mds-pib.c                        | 1 +
 board/freescale/common/qixis.c                             | 1 +
 board/freescale/common/sys_eeprom.c                        | 1 +
 board/freescale/common/vid.c                               | 1 +
 board/freescale/corenet_ds/corenet_ds.c                    | 1 +
 board/freescale/corenet_ds/ddr.c                           | 1 +
 board/freescale/corenet_ds/eth_hydra.c                     | 1 +
 board/freescale/corenet_ds/eth_p4080.c                     | 1 +
 board/freescale/corenet_ds/eth_superhydra.c                | 1 +
 board/freescale/imx8mm_evk/spl.c                           | 1 +
 board/freescale/imx8mn_evk/spl.c                           | 1 +
 board/freescale/imx8mp_evk/spl.c                           | 1 +
 board/freescale/imx8mq_evk/spl.c                           | 1 +
 board/freescale/imx8qm_mek/imx8qm_mek.c                    | 1 +
 board/freescale/imx8qm_mek/spl.c                           | 1 +
 board/freescale/imx8qxp_mek/imx8qxp_mek.c                  | 1 +
 board/freescale/imx8qxp_mek/spl.c                          | 1 +
 board/freescale/ls1012afrdm/eth.c                          | 1 +
 board/freescale/ls1012afrdm/ls1012afrdm.c                  | 1 +
 board/freescale/ls1012aqds/eth.c                           | 1 +
 board/freescale/ls1012aqds/ls1012aqds.c                    | 1 +
 board/freescale/ls1012ardb/eth.c                           | 1 +
 board/freescale/ls1012ardb/ls1012ardb.c                    | 1 +
 board/freescale/ls1021aiot/dcu.c                           | 1 +
 board/freescale/ls1021aiot/ls1021aiot.c                    | 1 +
 board/freescale/ls1021aqds/dcu.c                           | 1 +
 board/freescale/ls1021aqds/ddr.c                           | 1 +
 board/freescale/ls1021aqds/eth.c                           | 1 +
 board/freescale/ls1021aqds/ls1021aqds.c                    | 1 +
 board/freescale/ls1021atwr/dcu.c                           | 1 +
 board/freescale/ls1021atwr/ls1021atwr.c                    | 1 +
 board/freescale/ls1028a/ls1028a.c                          | 1 +
 board/freescale/ls1043aqds/ddr.c                           | 1 +
 board/freescale/ls1043aqds/eth.c                           | 1 +
 board/freescale/ls1043aqds/ls1043aqds.c                    | 1 +
 board/freescale/ls1043ardb/cpld.c                          | 1 +
 board/freescale/ls1043ardb/ddr.c                           | 1 +
 board/freescale/ls1043ardb/eth.c                           | 1 +
 board/freescale/ls1043ardb/ls1043ardb.c                    | 1 +
 board/freescale/ls1046afrwy/eth.c                          | 1 +
 board/freescale/ls1046afrwy/ls1046afrwy.c                  | 1 +
 board/freescale/ls1046aqds/ddr.c                           | 1 +
 board/freescale/ls1046aqds/eth.c                           | 1 +
 board/freescale/ls1046aqds/ls1046aqds.c                    | 1 +
 board/freescale/ls1046ardb/cpld.c                          | 1 +
 board/freescale/ls1046ardb/ddr.c                           | 1 +
 board/freescale/ls1046ardb/eth.c                           | 1 +
 board/freescale/ls1046ardb/ls1046ardb.c                    | 1 +
 board/freescale/ls1088a/ddr.c                              | 1 +
 board/freescale/ls1088a/eth_ls1088aqds.c                   | 1 +
 board/freescale/ls1088a/eth_ls1088ardb.c                   | 1 +
 board/freescale/ls1088a/ls1088a.c                          | 1 +
 board/freescale/ls2080a/ddr.c                              | 1 +
 board/freescale/ls2080a/ls2080a.c                          | 1 +
 board/freescale/ls2080aqds/ddr.c                           | 1 +
 board/freescale/ls2080aqds/eth.c                           | 1 +
 board/freescale/ls2080aqds/ls2080aqds.c                    | 1 +
 board/freescale/ls2080ardb/ddr.c                           | 1 +
 board/freescale/ls2080ardb/eth_ls2080rdb.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/m5208evbe/m5208evbe.c                      | 1 +
 board/freescale/m52277evb/m52277evb.c                      | 1 +
 board/freescale/m5235evb/m5235evb.c                        | 1 +
 board/freescale/m5249evb/m5249evb.c                        | 1 +
 board/freescale/m5253demo/flash.c                          | 1 +
 board/freescale/m5253demo/m5253demo.c                      | 1 +
 board/freescale/m5275evb/m5275evb.c                        | 1 +
 board/freescale/m53017evb/m53017evb.c                      | 1 +
 board/freescale/m5329evb/m5329evb.c                        | 1 +
 board/freescale/m5373evb/m5373evb.c                        | 1 +
 board/freescale/m54418twr/m54418twr.c                      | 1 +
 board/freescale/m54451evb/m54451evb.c                      | 1 +
 board/freescale/m54455evb/m54455evb.c                      | 1 +
 board/freescale/m547xevb/m547xevb.c                        | 1 +
 board/freescale/m548xevb/m548xevb.c                        | 1 +
 board/freescale/mpc8308rdb/mpc8308rdb.c                    | 1 +
 board/freescale/mpc8313erdb/mpc8313erdb.c                  | 1 +
 board/freescale/mpc8313erdb/sdram.c                        | 1 +
 board/freescale/mpc8315erdb/mpc8315erdb.c                  | 1 +
 board/freescale/mpc8315erdb/sdram.c                        | 1 +
 board/freescale/mpc8323erdb/mpc8323erdb.c                  | 1 +
 board/freescale/mpc832xemds/mpc832xemds.c                  | 1 +
 board/freescale/mpc832xemds/pci.c                          | 1 +
 board/freescale/mpc8349emds/ddr.c                          | 1 +
 board/freescale/mpc8349emds/mpc8349emds.c                  | 1 +
 board/freescale/mpc8349emds/pci.c                          | 1 +
 board/freescale/mpc8349itx/mpc8349itx.c                    | 1 +
 board/freescale/mpc837xemds/mpc837xemds.c                  | 1 +
 board/freescale/mpc837xerdb/mpc837xerdb.c                  | 1 +
 board/freescale/mpc8541cds/mpc8541cds.c                    | 1 +
 board/freescale/mpc8544ds/mpc8544ds.c                      | 1 +
 board/freescale/mpc8548cds/mpc8548cds.c                    | 1 +
 board/freescale/mpc8555cds/mpc8555cds.c                    | 1 +
 board/freescale/mpc8568mds/mpc8568mds.c                    | 1 +
 board/freescale/mpc8569mds/mpc8569mds.c                    | 1 +
 board/freescale/mpc8572ds/ddr.c                            | 1 +
 board/freescale/mpc8572ds/mpc8572ds.c                      | 1 +
 board/freescale/mpc8610hpcd/mpc8610hpcd.c                  | 1 +
 board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c              | 1 +
 board/freescale/mpc8641hpcn/ddr.c                          | 1 +
 board/freescale/mpc8641hpcn/mpc8641hpcn.c                  | 1 +
 board/freescale/mx23evk/mx23evk.c                          | 1 +
 board/freescale/mx25pdk/mx25pdk.c                          | 1 +
 board/freescale/mx28evk/mx28evk.c                          | 1 +
 board/freescale/mx35pdk/mx35pdk.c                          | 1 +
 board/freescale/mx51evk/mx51evk.c                          | 1 +
 board/freescale/mx51evk/mx51evk_video.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/mx6memcal/mx6memcal.c                      | 1 +
 board/freescale/mx6memcal/spl.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/ddr.c                             | 1 +
 board/freescale/p1010rdb/p1010rdb.c                        | 1 +
 board/freescale/p1010rdb/spl.c                             | 1 +
 board/freescale/p1010rdb/spl_minimal.c                     | 1 +
 board/freescale/p1023rdb/p1023rdb.c                        | 1 +
 board/freescale/p1_p2_rdb_pc/ddr.c                         | 1 +
 board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c                | 1 +
 board/freescale/p1_p2_rdb_pc/spl.c                         | 1 +
 board/freescale/p1_p2_rdb_pc/spl_minimal.c                 | 1 +
 board/freescale/p2041rdb/cpld.c                            | 1 +
 board/freescale/p2041rdb/ddr.c                             | 1 +
 board/freescale/p2041rdb/eth.c                             | 1 +
 board/freescale/p2041rdb/p2041rdb.c                        | 1 +
 board/freescale/qemu-ppce500/qemu-ppce500.c                | 1 +
 board/freescale/s32v234evb/s32v234evb.c                    | 1 +
 board/freescale/t102xrdb/cpld.c                            | 1 +
 board/freescale/t102xrdb/ddr.c                             | 1 +
 board/freescale/t102xrdb/eth_t102xrdb.c                    | 1 +
 board/freescale/t102xrdb/spl.c                             | 1 +
 board/freescale/t102xrdb/t102xrdb.c                        | 1 +
 board/freescale/t104xrdb/cpld.c                            | 1 +
 board/freescale/t104xrdb/ddr.c                             | 1 +
 board/freescale/t104xrdb/diu.c                             | 1 +
 board/freescale/t104xrdb/eth.c                             | 1 +
 board/freescale/t104xrdb/spl.c                             | 1 +
 board/freescale/t104xrdb/t104xrdb.c                        | 1 +
 board/freescale/t208xqds/ddr.c                             | 1 +
 board/freescale/t208xqds/eth_t208xqds.c                    | 1 +
 board/freescale/t208xqds/spl.c                             | 1 +
 board/freescale/t208xqds/t208xqds.c                        | 1 +
 board/freescale/t208xrdb/ddr.c                             | 1 +
 board/freescale/t208xrdb/eth_t208xrdb.c                    | 1 +
 board/freescale/t208xrdb/spl.c                             | 1 +
 board/freescale/t208xrdb/t208xrdb.c                        | 1 +
 board/freescale/t4rdb/cpld.c                               | 1 +
 board/freescale/t4rdb/ddr.c                                | 1 +
 board/freescale/t4rdb/eth.c                                | 1 +
 board/freescale/t4rdb/spl.c                                | 1 +
 board/freescale/t4rdb/t4240rdb.c                           | 1 +
 board/freescale/vf610twr/vf610twr.c                        | 1 +
 board/gardena/smart-gateway-mt7688/board.c                 | 1 +
 board/gateworks/gw_ventana/common.c                        | 1 +
 board/gateworks/gw_ventana/eeprom.c                        | 1 +
 board/gateworks/gw_ventana/gsc.c                           | 1 +
 board/gateworks/gw_ventana/gw_ventana.c                    | 1 +
 board/gateworks/gw_ventana/gw_ventana_spl.c                | 1 +
 board/gdsys/a38x/controlcenterdc.c                         | 1 +
 board/gdsys/a38x/hre.c                                     | 1 +
 board/gdsys/a38x/hydra.c                                   | 1 +
 board/gdsys/a38x/ihs_phys.c                                | 1 +
 board/gdsys/a38x/keyprogram.c                              | 1 +
 board/gdsys/a38x/spl.c                                     | 1 +
 board/gdsys/common/cmd_ioloop.c                            | 1 +
 board/gdsys/common/dp501.c                                 | 1 +
 board/gdsys/common/ihs_mdio.c                              | 1 +
 board/gdsys/common/ioep-fpga.c                             | 1 +
 board/gdsys/common/osd.c                                   | 1 +
 board/gdsys/common/osd_cmd.c                               | 1 +
 board/gdsys/common/phy.c                                   | 1 +
 board/gdsys/mpc8308/gazerbeam.c                            | 1 +
 board/gdsys/mpc8308/hrcon.c                                | 1 +
 board/gdsys/mpc8308/strider.c                              | 1 +
 board/gdsys/p1022/controlcenterd-id.c                      | 1 +
 board/gdsys/p1022/controlcenterd.c                         | 1 +
 board/gdsys/p1022/ddr.c                                    | 1 +
 board/gdsys/p1022/diu.c                                    | 1 +
 board/ge/bx50v3/bx50v3.c                                   | 1 +
 board/ge/mx53ppd/mx53ppd.c                                 | 1 +
 board/ge/mx53ppd/mx53ppd_video.c                           | 1 +
 board/google/chromebook_coral/coral.c                      | 1 +
 board/google/imx8mq_phanbell/spl.c                         | 1 +
 board/grinn/chiliboard/board.c                             | 1 +
 board/grinn/liteboard/board.c                              | 1 +
 board/hisilicon/hikey/hikey.c                              | 1 +
 board/hisilicon/hikey960/hikey960.c                        | 1 +
 board/hisilicon/poplar/poplar.c                            | 1 +
 board/ids/ids8313/ids8313.c                                | 1 +
 board/imgtec/boston/checkboard.c                           | 1 +
 board/imgtec/ci20/ci20.c                                   | 1 +
 board/imgtec/malta/malta.c                                 | 1 +
 board/intel/edison/edison.c                                | 1 +
 board/inversepath/usbarmory/usbarmory.c                    | 1 +
 board/isee/igep003x/board.c                                | 1 +
 board/k+p/kp_imx53/kp_id_rev.c                             | 1 +
 board/k+p/kp_imx53/kp_imx53.c                              | 1 +
 board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c                      | 1 +
 board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c                  | 1 +
 board/keymile/common/common.c                              | 1 +
 board/keymile/common/ivm.c                                 | 1 +
 board/keymile/km83xx/km83xx.c                              | 1 +
 board/keymile/km83xx/km83xx_i2c.c                          | 1 +
 board/keymile/km_arm/fpga_config.c                         | 1 +
 board/keymile/km_arm/km_arm.c                              | 1 +
 board/keymile/kmp204x/ddr.c                                | 1 +
 board/keymile/kmp204x/eth.c                                | 1 +
 board/keymile/kmp204x/kmp204x.c                            | 1 +
 board/keymile/kmp204x/pci.c                                | 1 +
 board/keymile/secu1/socfpga.c                              | 1 +
 board/kobol/helios4/helios4.c                              | 1 +
 board/kosagi/novena/novena.c                               | 1 +
 board/kosagi/novena/video.c                                | 1 +
 board/lego/ev3/legoev3.c                                   | 1 +
 board/liebherr/display5/display5.c                         | 1 +
 board/liebherr/display5/spl.c                              | 1 +
 board/liebherr/mccmon6/mccmon6.c                           | 1 +
 board/liebherr/mccmon6/spl.c                               | 1 +
 board/liebherr/xea/xea.c                                   | 1 +
 board/maxbcm/maxbcm.c                                      | 1 +
 board/mediatek/mt7623/mt7623_rfb.c                         | 1 +
 board/menlo/m53menlo/m53menlo.c                            | 1 +
 board/microchip/pic32mzda/pic32mzda.c                      | 1 +
 board/mikrotik/crs3xx-98dx3236/crs3xx-98dx3236.c           | 1 +
 board/mpc8308_p1m/mpc8308_p1m.c                            | 1 +
 board/novtech/meerkat96/meerkat96.c                        | 1 +
 board/nvidia/dalmore/dalmore.c                             | 1 +
 board/nvidia/e2220-1170/e2220-1170.c                       | 1 +
 board/nvidia/p2371-0000/p2371-0000.c                       | 1 +
 board/nvidia/p2371-2180/p2371-2180.c                       | 1 +
 board/nvidia/p2571/p2571.c                                 | 1 +
 board/nvidia/p2771-0000/p2771-0000.c                       | 1 +
 board/nvidia/p3450-0000/p3450-0000.c                       | 1 +
 board/phytec/pcl063/pcl063.c                               | 1 +
 board/phytec/pcl063/spl.c                                  | 1 +
 board/phytec/pcm052/pcm052.c                               | 1 +
 board/phytec/pcm058/pcm058.c                               | 1 +
 board/phytec/pfla02/pfla02.c                               | 1 +
 board/phytec/phycore_rk3288/phycore-rk3288.c               | 1 +
 board/phytium/durian/durian.c                              | 1 +
 board/ppcag/bg0900/bg0900.c                                | 1 +
 board/qemu-mips/qemu-mips.c                                | 1 +
 board/qualcomm/dragonboard410c/dragonboard410c.c           | 1 +
 board/qualcomm/dragonboard820c/dragonboard820c.c           | 1 +
 board/raspberrypi/rpi/rpi.c                                | 1 +
 board/renesas/MigoR/migo_r.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/r2dplus/r2dplus.c                            | 1 +
 board/renesas/r7780mp/r7780mp.c                            | 1 +
 board/renesas/rcar-common/common.c                         | 1 +
 board/renesas/sh7752evb/sh7752evb.c                        | 1 +
 board/renesas/sh7753evb/sh7753evb.c                        | 1 +
 board/renesas/sh7757lcr/sh7757lcr.c                        | 1 +
 board/renesas/sh7763rdp/sh7763rdp.c                        | 1 +
 board/renesas/silk/silk_spl.c                              | 1 +
 board/renesas/stout/cpld.c                                 | 1 +
 board/renesas/stout/stout_spl.c                            | 1 +
 board/renesas/ulcb/cpld.c                                  | 1 +
 board/rockchip/evb_rk3308/evb_rk3308.c                     | 1 +
 board/rockchip/kylin_rk3036/kylin_rk3036.c                 | 1 +
 board/ronetix/pm9263/pm9263.c                              | 1 +
 board/samsung/arndale/arndale.c                            | 1 +
 board/samsung/common/board.c                               | 1 +
 board/samsung/common/misc.c                                | 1 +
 board/samsung/goni/goni.c                                  | 1 +
 board/samsung/smdkc100/smdkc100.c                          | 1 +
 board/samsung/smdkv310/smdkv310.c                          | 1 +
 board/samsung/trats/trats.c                                | 1 +
 board/samsung/trats2/trats2.c                              | 1 +
 board/samsung/universal_c210/universal.c                   | 1 +
 board/sandbox/sandbox.c                                    | 1 +
 board/sbc8349/sbc8349.c                                    | 1 +
 board/sbc8548/ddr.c                                        | 1 +
 board/sbc8548/sbc8548.c                                    | 1 +
 board/schulercontrol/sc_sps_1/sc_sps_1.c                   | 1 +
 board/seco/common/mx6.c                                    | 1 +
 board/seco/mx6quq7/mx6quq7.c                               | 1 +
 board/siemens/capricorn/board.c                            | 1 +
 board/siemens/common/board.c                               | 1 +
 board/siemens/common/factoryset.c                          | 1 +
 board/siemens/draco/board.c                                | 1 +
 board/siemens/draco/board.h                                | 1 +
 board/siemens/pxm2/board.c                                 | 1 +
 board/siemens/rut/board.c                                  | 1 +
 board/siemens/taurus/taurus.c                              | 1 +
 board/sifive/fu540/fu540.c                                 | 1 +
 board/sks-kinkel/sksimx6/sksimx6.c                         | 1 +
 board/socrates/nand.c                                      | 1 +
 board/socrates/socrates.c                                  | 1 +
 board/softing/vining_2000/vining_2000.c                    | 1 +
 board/softing/vining_fpga/socfpga.c                        | 1 +
 board/solidrun/clearfog/clearfog.c                         | 1 +
 board/solidrun/mx6cuboxi/mx6cuboxi.c                       | 1 +
 board/somlabs/visionsom-6ull/visionsom-6ull.c              | 1 +
 board/spear/x600/x600.c                                    | 1 +
 board/st/common/stm32mp_dfu.c                              | 1 +
 board/st/common/stpmic1.c                                  | 1 +
 board/st/stm32f746-disco/stm32f746-disco.c                 | 1 +
 board/st/stm32mp1/stm32mp1.c                               | 1 +
 board/st/stv0991/stv0991.c                                 | 1 +
 board/sunxi/board.c                                        | 1 +
 board/synopsys/axs10x/axs10x.c                             | 1 +
 board/synopsys/emsdp/emsdp.c                               | 1 +
 board/synopsys/hsdk/clk-lib.c                              | 1 +
 board/synopsys/hsdk/hsdk.c                                 | 1 +
 board/synopsys/iot_devkit/iot_devkit.c                     | 1 +
 board/synopsys/nsim/nsim.c                                 | 1 +
 board/sysam/amcore/amcore.c                                | 1 +
 board/sysam/stmark2/stmark2.c                              | 1 +
 board/tbs/tbs2910/tbs2910.c                                | 1 +
 board/tcl/sl50/board.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-imx8mq/pico-imx8mq.c                 | 1 +
 board/technexion/pico-imx8mq/spl.c                         | 1 +
 board/technexion/tao3530/tao3530.c                         | 1 +
 board/technologic/ts4600/ts4600.c                          | 1 +
 board/technologic/ts4800/ts4800.c                          | 1 +
 board/theadorable/theadorable.c                            | 1 +
 board/ti/am335x/board.c                                    | 1 +
 board/ti/am335x/mux.c                                      | 1 +
 board/ti/am43xx/board.c                                    | 1 +
 board/ti/am43xx/mux.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/dra7xx/evm.c                                      | 1 +
 board/ti/evm/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/ti/ks2_evm/ddr3_k2e.c                                | 1 +
 board/ti/ks2_evm/ddr3_k2hk.c                               | 1 +
 board/ti/ks2_evm/ddr3_k2l.c                                | 1 +
 board/ti/ks2_evm/mux-k2g.h                                 | 1 +
 board/ti/omap5_uevm/evm.c                                  | 1 +
 board/ti/ti816x/evm.c                                      | 1 +
 board/timll/devkit8000/devkit8000.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_pxa270/colibri_pxa270.c              | 1 +
 board/toradex/colibri_t20/colibri_t20.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/common/tdx-common.c                          | 1 +
 board/toradex/verdin-imx8mm/spl.c                          | 1 +
 board/tqc/tqm834x/tqm834x.c                                | 1 +
 board/tqc/tqma6/tqma6.c                                    | 1 +
 board/tqc/tqma6/tqma6_wru4.c                               | 1 +
 board/udoo/neo/neo.c                                       | 1 +
 board/udoo/udoo.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/cyrus.c                                | 1 +
 board/varisys/cyrus/ddr.c                                  | 1 +
 board/varisys/cyrus/eth.c                                  | 1 +
 board/ve8313/ve8313.c                                      | 1 +
 board/vscom/baltos/board.c                                 | 1 +
 board/wandboard/spl.c                                      | 1 +
 board/wandboard/wandboard.c                                | 1 +
 board/warp/warp.c                                          | 1 +
 board/warp7/warp7.c                                        | 1 +
 board/work-microwave/work_92105/work_92105_display.c       | 1 +
 board/xes/common/board.c                                   | 1 +
 board/xes/common/fsl_8xxx_pci.c                            | 1 +
 board/xes/xpedite517x/xpedite517x.c                        | 1 +
 board/xes/xpedite520x/xpedite520x.c                        | 1 +
 board/xes/xpedite537x/xpedite537x.c                        | 1 +
 board/xes/xpedite550x/ddr.c                                | 1 +
 board/xes/xpedite550x/xpedite550x.c                        | 1 +
 board/xilinx/microblaze-generic/microblaze-generic.c       | 1 +
 board/xilinx/versal/board.c                                | 1 +
 board/xilinx/zynq/bootimg.c                                | 1 +
 board/xilinx/zynq/cmds.c                                   | 1 +
 board/xilinx/zynqmp/cmds.c                                 | 1 +
 board/xilinx/zynqmp/zynqmp.c                               | 1 +
 board/zyxel/nsa310s/nsa310s.c                              | 1 +
 cmd/ab_select.c                                            | 1 +
 cmd/abootimg.c                                             | 1 +
 cmd/acpi.c                                                 | 1 +
 cmd/adc.c                                                  | 1 +
 cmd/adtimg.c                                               | 1 +
 cmd/armflash.c                                             | 1 +
 cmd/avb.c                                                  | 1 +
 cmd/axi.c                                                  | 1 +
 cmd/bcb.c                                                  | 1 +
 cmd/bdinfo.c                                               | 1 +
 cmd/bind.c                                                 | 1 +
 cmd/binop.c                                                | 1 +
 cmd/blk_common.c                                           | 1 +
 cmd/blkcache.c                                             | 1 +
 cmd/bmp.c                                                  | 1 +
 cmd/bootcount.c                                            | 1 +
 cmd/booti.c                                                | 1 +
 cmd/bootm.c                                                | 1 +
 cmd/bootmenu.c                                             | 1 +
 cmd/bootstage.c                                            | 1 +
 cmd/bootz.c                                                | 1 +
 cmd/cache.c                                                | 1 +
 cmd/cbfs.c                                                 | 1 +
 cmd/clk.c                                                  | 1 +
 cmd/config.c                                               | 1 +
 cmd/conitrace.c                                            | 1 +
 cmd/cpu.c                                                  | 1 +
 cmd/cramfs.c                                               | 1 +
 cmd/cros_ec.c                                              | 1 +
 cmd/date.c                                                 | 1 +
 cmd/demo.c                                                 | 1 +
 cmd/disk.c                                                 | 1 +
 cmd/echo.c                                                 | 1 +
 cmd/eeprom.c                                               | 1 +
 cmd/efi.c                                                  | 1 +
 cmd/efidebug.c                                             | 1 +
 cmd/elf.c                                                  | 1 +
 cmd/ethsw.c                                                | 1 +
 cmd/fastboot.c                                             | 1 +
 cmd/fat.c                                                  | 1 +
 cmd/fdt.c                                                  | 1 +
 cmd/flash.c                                                | 1 +
 cmd/fpga.c                                                 | 1 +
 cmd/fuse.c                                                 | 1 +
 cmd/gettime.c                                              | 1 +
 cmd/gpio.c                                                 | 1 +
 cmd/gpt.c                                                  | 1 +
 cmd/host.c                                                 | 1 +
 cmd/i2c.c                                                  | 1 +
 cmd/ide.c                                                  | 1 +
 cmd/ini.c                                                  | 1 +
 cmd/iotrace.c                                              | 1 +
 cmd/itest.c                                                | 1 +
 cmd/jffs2.c                                                | 1 +
 cmd/led.c                                                  | 1 +
 cmd/legacy-mtd-utils.c                                     | 1 +
 cmd/license.c                                              | 1 +
 cmd/load.c                                                 | 1 +
 cmd/log.c                                                  | 1 +
 cmd/lsblk.c                                                | 1 +
 cmd/lzmadec.c                                              | 1 +
 cmd/md5sum.c                                               | 1 +
 cmd/mdio.c                                                 | 1 +
 cmd/mem.c                                                  | 1 +
 cmd/mii.c                                                  | 1 +
 cmd/misc.c                                                 | 1 +
 cmd/mmc.c                                                  | 1 +
 cmd/mp.c                                                   | 1 +
 cmd/mtd.c                                                  | 1 +
 cmd/mtdparts.c                                             | 1 +
 cmd/mvebu/bubt.c                                           | 1 +
 cmd/nand.c                                                 | 1 +
 cmd/net.c                                                  | 1 +
 cmd/nvedit.c                                               | 1 +
 cmd/nvedit_efi.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/qfw.c                                                  | 1 +
 cmd/read.c                                                 | 1 +
 cmd/regulator.c                                            | 1 +
 cmd/reiser.c                                               | 1 +
 cmd/remoteproc.c                                           | 1 +
 cmd/rng.c                                                  | 1 +
 cmd/rockusb.c                                              | 1 +
 cmd/rtc.c                                                  | 1 +
 cmd/sata.c                                                 | 1 +
 cmd/sb.c                                                   | 1 +
 cmd/scsi.c                                                 | 1 +
 cmd/setexpr.c                                              | 1 +
 cmd/sf.c                                                   | 1 +
 cmd/smccc.c                                                | 1 +
 cmd/sound.c                                                | 1 +
 cmd/source.c                                               | 1 +
 cmd/spi.c                                                  | 1 +
 cmd/spl.c                                                  | 1 +
 cmd/strings.c                                              | 1 +
 cmd/sysboot.c                                              | 1 +
 cmd/terminal.c                                             | 1 +
 cmd/thordown.c                                             | 1 +
 cmd/ti/ddr3.c                                              | 1 +
 cmd/time.c                                                 | 1 +
 cmd/tlv_eeprom.c                                           | 1 +
 cmd/tpm-common.c                                           | 1 +
 cmd/tpm-v1.c                                               | 1 +
 cmd/tpm-v2.c                                               | 1 +
 cmd/tpm_test.c                                             | 1 +
 cmd/trace.c                                                | 1 +
 cmd/tsi148.c                                               | 1 +
 cmd/ubi.c                                                  | 1 +
 cmd/ubifs.c                                                | 1 +
 cmd/universe.c                                             | 1 +
 cmd/unlz4.c                                                | 1 +
 cmd/unzip.c                                                | 1 +
 cmd/usb.c                                                  | 1 +
 cmd/usb_mass_storage.c                                     | 1 +
 cmd/version.c                                              | 1 +
 cmd/w1.c                                                   | 1 +
 cmd/wdt.c                                                  | 1 +
 cmd/x86/fsp.c                                              | 1 +
 cmd/x86/hob.c                                              | 1 +
 cmd/x86/mtrr.c                                             | 1 +
 cmd/ximg.c                                                 | 1 +
 cmd/yaffs2.c                                               | 1 +
 cmd/zfs.c                                                  | 1 +
 cmd/zip.c                                                  | 1 +
 common/autoboot.c                                          | 1 +
 common/avb_verify.c                                        | 1 +
 common/board_f.c                                           | 1 +
 common/board_info.c                                        | 1 +
 common/board_r.c                                           | 1 +
 common/bootm.c                                             | 1 +
 common/bootm_os.c                                          | 1 +
 common/bootretry.c                                         | 1 +
 common/bootstage.c                                         | 1 +
 common/cli.c                                               | 1 +
 common/cli_readline.c                                      | 1 +
 common/cli_simple.c                                        | 1 +
 common/command.c                                           | 1 +
 common/common_fit.c                                        | 1 +
 common/console.c                                           | 1 +
 common/ddr_spd.c                                           | 1 +
 common/dlmalloc.c                                          | 1 +
 common/edid.c                                              | 1 +
 common/eeprom/eeprom_field.c                               | 1 +
 common/eeprom/eeprom_layout.c                              | 1 +
 common/fdt_support.c                                       | 1 +
 common/flash.c                                             | 1 +
 common/hash.c                                              | 1 +
 common/image-android-dt.c                                  | 1 +
 common/image-android.c                                     | 1 +
 common/image-cipher.c                                      | 1 +
 common/image-fdt.c                                         | 1 +
 common/image-fit-sig.c                                     | 1 +
 common/image-fit.c                                         | 1 +
 common/image.c                                             | 1 +
 common/iomux.c                                             | 1 +
 common/kgdb.c                                              | 1 +
 common/kgdb_stubs.c                                        | 1 +
 common/lcd.c                                               | 1 +
 common/lcd_console_rotation.c                              | 1 +
 common/log_console.c                                       | 1 +
 common/menu.c                                              | 1 +
 common/miiphyutil.c                                        | 1 +
 common/spl/spl.c                                           | 1 +
 common/spl/spl_ext.c                                       | 1 +
 common/spl/spl_fat.c                                       | 1 +
 common/spl/spl_fit.c                                       | 1 +
 common/spl/spl_legacy.c                                    | 1 +
 common/spl/spl_mmc.c                                       | 1 +
 common/spl/spl_nand.c                                      | 1 +
 common/spl/spl_net.c                                       | 1 +
 common/spl/spl_nor.c                                       | 1 +
 common/spl/spl_sata.c                                      | 1 +
 common/spl/spl_spi.c                                       | 1 +
 common/spl/spl_ubi.c                                       | 1 +
 common/spl/spl_usb.c                                       | 1 +
 common/spl/spl_ymodem.c                                    | 1 +
 common/splash.c                                            | 1 +
 common/splash_source.c                                     | 1 +
 common/stdio.c                                             | 1 +
 common/update.c                                            | 1 +
 common/usb.c                                               | 1 +
 common/usb_hub.c                                           | 1 +
 common/usb_kbd.c                                           | 1 +
 common/usb_storage.c                                       | 1 +
 disk/part.c                                                | 1 +
 disk/part_amiga.c                                          | 1 +
 disk/part_dos.c                                            | 1 +
 disk/part_efi.c                                            | 1 +
 disk/part_iso.c                                            | 1 +
 disk/part_mac.c                                            | 1 +
 drivers/adc/adc-uclass.c                                   | 1 +
 drivers/adc/meson-saradc.c                                 | 1 +
 drivers/ata/ahci.c                                         | 1 +
 drivers/ata/ahci_sunxi.c                                   | 1 +
 drivers/ata/dwc_ahsata.c                                   | 1 +
 drivers/ata/fsl_sata.c                                     | 1 +
 drivers/ata/libata.c                                       | 1 +
 drivers/ata/sata.c                                         | 1 +
 drivers/ata/sata_mv.c                                      | 1 +
 drivers/ata/sata_sil.c                                     | 1 +
 drivers/bios_emulator/atibios.c                            | 1 +
 drivers/bios_emulator/besys.c                              | 1 +
 drivers/bios_emulator/bios.c                               | 1 +
 drivers/bios_emulator/biosemu.c                            | 1 +
 drivers/bios_emulator/include/x86emu.h                     | 1 +
 drivers/bios_emulator/include/x86emu/debug.h               | 2 ++
 drivers/bios_emulator/x86emu/ops.c                         | 1 +
 drivers/block/blk-uclass.c                                 | 1 +
 drivers/block/blk_legacy.c                                 | 1 +
 drivers/block/ide.c                                        | 1 +
 drivers/block/sandbox.c                                    | 1 +
 drivers/bootcount/bootcount_ext.c                          | 1 +
 drivers/bootcount/bootcount_i2c.c                          | 1 +
 drivers/cache/cache-ncore.c                                | 1 +
 drivers/cache/cache-v5l2.c                                 | 1 +
 drivers/clk/at91/clk-utmi.c                                | 1 +
 drivers/clk/clk-mux.c                                      | 1 +
 drivers/clk/clk-uclass.c                                   | 1 +
 drivers/clk/clk.c                                          | 1 +
 drivers/clk/clk_pic32.c                                    | 1 +
 drivers/clk/clk_stm32mp1.c                                 | 1 +
 drivers/clk/clk_versal.c                                   | 1 +
 drivers/clk/clk_zynqmp.c                                   | 1 +
 drivers/clk/ics8n3qv01.c                                   | 1 +
 drivers/clk/imx/clk-imx6q.c                                | 1 +
 drivers/clk/imx/clk-imx8.c                                 | 1 +
 drivers/clk/imx/clk-imx8qm.c                               | 1 +
 drivers/clk/imx/clk-imx8qxp.c                              | 1 +
 drivers/clk/mpc83xx_clk.c                                  | 1 +
 drivers/clk/mvebu/armada-37xx-periph.c                     | 1 +
 drivers/clk/mvebu/armada-37xx-tbg.c                        | 1 +
 drivers/clk/renesas/clk-rcar-gen2.c                        | 1 +
 drivers/clk/renesas/clk-rcar-gen3.c                        | 1 +
 drivers/clk/rockchip/clk_pll.c                             | 1 +
 drivers/clk/rockchip/clk_px30.c                            | 1 +
 drivers/clk/rockchip/clk_rk3128.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_rk3399.c                          | 1 +
 drivers/clk/rockchip/clk_rv1108.c                          | 1 +
 drivers/clk/sunxi/clk_sunxi.c                              | 1 +
 drivers/core/acpi.c                                        | 1 +
 drivers/core/devres.c                                      | 1 +
 drivers/core/dump.c                                        | 1 +
 drivers/core/util.c                                        | 1 +
 drivers/cpu/bmips_cpu.c                                    | 1 +
 drivers/cpu/imx8_cpu.c                                     | 1 +
 drivers/crypto/fsl/desc_constr.h                           | 1 +
 drivers/crypto/fsl/fsl_blob.c                              | 1 +
 drivers/crypto/fsl/fsl_hash.c                              | 1 +
 drivers/crypto/fsl/jobdesc.c                               | 1 +
 drivers/crypto/fsl/jr.c                                    | 1 +
 drivers/crypto/fsl/sec.c                                   | 1 +
 drivers/ddr/altera/sdram_agilex.c                          | 1 +
 drivers/ddr/altera/sdram_arria10.c                         | 1 +
 drivers/ddr/altera/sdram_gen5.c                            | 1 +
 drivers/ddr/altera/sdram_s10.c                             | 1 +
 drivers/ddr/altera/sdram_soc64.c                           | 1 +
 drivers/ddr/fsl/arm_ddr_gen3.c                             | 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/ddr3_dimm_params.c                         | 1 +
 drivers/ddr/fsl/ddr4_dimm_params.c                         | 1 +
 drivers/ddr/fsl/fsl_ddr_gen4.c                             | 1 +
 drivers/ddr/fsl/fsl_mmdc.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/mpc85xx_ddr_gen1.c                         | 1 +
 drivers/ddr/fsl/mpc85xx_ddr_gen2.c                         | 1 +
 drivers/ddr/fsl/mpc85xx_ddr_gen3.c                         | 1 +
 drivers/ddr/fsl/mpc86xx_ddr.c                              | 1 +
 drivers/ddr/fsl/options.c                                  | 1 +
 drivers/ddr/fsl/util.c                                     | 1 +
 drivers/ddr/imx/imx8m/helper.c                             | 1 +
 drivers/ddr/marvell/a38x/ddr_ml_wrapper.h                  | 1 +
 drivers/ddr/marvell/axp/ddr3_dfs.c                         | 1 +
 drivers/ddr/marvell/axp/ddr3_dqs.c                         | 1 +
 drivers/ddr/marvell/axp/ddr3_hw_training.c                 | 1 +
 drivers/ddr/marvell/axp/ddr3_init.c                        | 1 +
 drivers/ddr/marvell/axp/ddr3_pbs.c                         | 1 +
 drivers/ddr/marvell/axp/ddr3_read_leveling.c               | 1 +
 drivers/ddr/marvell/axp/ddr3_spd.c                         | 1 +
 drivers/ddr/marvell/axp/ddr3_write_leveling.c              | 1 +
 drivers/ddr/microchip/ddr2.c                               | 1 +
 drivers/demo/demo-shape.c                                  | 1 +
 drivers/demo/demo-simple.c                                 | 1 +
 drivers/dfu/dfu.c                                          | 1 +
 drivers/dfu/dfu_mmc.c                                      | 1 +
 drivers/dfu/dfu_mtd.c                                      | 1 +
 drivers/dfu/dfu_nand.c                                     | 1 +
 drivers/dfu/dfu_sf.c                                       | 1 +
 drivers/dma/MCD_dmaApi.c                                   | 1 +
 drivers/dma/apbh_dma.c                                     | 1 +
 drivers/dma/ti/k3-udma.c                                   | 1 +
 drivers/fastboot/fb_command.c                              | 1 +
 drivers/fastboot/fb_common.c                               | 1 +
 drivers/fastboot/fb_mmc.c                                  | 1 +
 drivers/fastboot/fb_nand.c                                 | 1 +
 drivers/firmware/firmware-zynqmp.c                         | 1 +
 drivers/firmware/psci.c                                    | 1 +
 drivers/fpga/altera.c                                      | 1 +
 drivers/fpga/cyclon2.c                                     | 1 +
 drivers/fpga/fpga.c                                        | 1 +
 drivers/fpga/ivm_core.c                                    | 1 +
 drivers/fpga/lattice.c                                     | 1 +
 drivers/fpga/socfpga_arria10.c                             | 1 +
 drivers/fpga/socfpga_gen5.c                                | 1 +
 drivers/fpga/stratix10.c                                   | 1 +
 drivers/fpga/stratixv.c                                    | 1 +
 drivers/fpga/versalpl.c                                    | 1 +
 drivers/fpga/virtex2.c                                     | 1 +
 drivers/fpga/xilinx.c                                      | 1 +
 drivers/fpga/zynqmppl.c                                    | 1 +
 drivers/fpga/zynqpl.c                                      | 1 +
 drivers/gpio/adi_gpio2.c                                   | 1 +
 drivers/gpio/at91_gpio.c                                   | 1 +
 drivers/gpio/atmel_pio4.c                                  | 1 +
 drivers/gpio/da8xx_gpio.c                                  | 1 +
 drivers/gpio/db8500_gpio.c                                 | 1 +
 drivers/gpio/gpio-uclass.c                                 | 1 +
 drivers/gpio/kona_gpio.c                                   | 1 +
 drivers/gpio/kw_gpio.c                                     | 1 +
 drivers/gpio/mpc83xx_gpio.c                                | 1 +
 drivers/gpio/mvgpio.c                                      | 1 +
 drivers/gpio/mxs_gpio.c                                    | 1 +
 drivers/gpio/omap_gpio.c                                   | 1 +
 drivers/gpio/pca953x.c                                     | 1 +
 drivers/gpio/pcf8575_gpio.c                                | 1 +
 drivers/gpio/sandbox.c                                     | 1 +
 drivers/gpio/tca642x.c                                     | 1 +
 drivers/gpio/xilinx_gpio.c                                 | 1 +
 drivers/gpio/zynq_gpio.c                                   | 1 +
 drivers/i2c/davinci_i2c.c                                  | 1 +
 drivers/i2c/designware_i2c.c                               | 1 +
 drivers/i2c/i2c-cdns.c                                     | 1 +
 drivers/i2c/i2c-cortina.c                                  | 1 +
 drivers/i2c/i2c-uclass.c                                   | 1 +
 drivers/i2c/i2c_core.c                                     | 1 +
 drivers/i2c/imx_lpi2c.c                                    | 1 +
 drivers/i2c/intel_i2c.c                                    | 1 +
 drivers/i2c/kona_i2c.c                                     | 1 +
 drivers/i2c/muxes/i2c-arb-gpio-challenge.c                 | 1 +
 drivers/i2c/mv_i2c.c                                       | 1 +
 drivers/i2c/mvtwsi.c                                       | 1 +
 drivers/i2c/mxc_i2c.c                                      | 1 +
 drivers/i2c/omap24xx_i2c.c                                 | 1 +
 drivers/input/keyboard-uclass.c                            | 1 +
 drivers/mailbox/k3-sec-proxy.c                             | 1 +
 drivers/memory/ti-aemif.c                                  | 1 +
 drivers/misc/altera_sysid.c                                | 1 +
 drivers/misc/cros_ec.c                                     | 1 +
 drivers/misc/cros_ec_i2c.c                                 | 1 +
 drivers/misc/cros_ec_lpc.c                                 | 1 +
 drivers/misc/cros_ec_sandbox.c                             | 1 +
 drivers/misc/cros_ec_spi.c                                 | 1 +
 drivers/misc/ds4510.c                                      | 1 +
 drivers/misc/fsl_ifc.c                                     | 1 +
 drivers/misc/fsl_iim.c                                     | 1 +
 drivers/misc/fsl_portals.c                                 | 1 +
 drivers/misc/fsl_sec_mon.c                                 | 1 +
 drivers/misc/gpio_led.c                                    | 1 +
 drivers/misc/ihs_fpga.c                                    | 1 +
 drivers/misc/imx8/fuse.c                                   | 1 +
 drivers/misc/imx8/scu.c                                    | 1 +
 drivers/misc/imx8/scu_api.c                                | 1 +
 drivers/misc/k3_avs.c                                      | 1 +
 drivers/misc/mc9sdz60.c                                    | 1 +
 drivers/misc/mxc_ocotp.c                                   | 1 +
 drivers/misc/mxs_ocotp.c                                   | 1 +
 drivers/misc/qfw.c                                         | 1 +
 drivers/misc/rockchip-efuse.c                              | 1 +
 drivers/misc/rockchip-otp.c                                | 1 +
 drivers/misc/sifive-otp.c                                  | 1 +
 drivers/misc/spltest_sandbox.c                             | 1 +
 drivers/misc/stm32mp_fuse.c                                | 1 +
 drivers/mmc/atmel_sdhci.c                                  | 1 +
 drivers/mmc/bcm2835_sdhost.c                               | 1 +
 drivers/mmc/davinci_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.c                                 | 1 +
 drivers/mmc/gen_atmel_mci.c                                | 1 +
 drivers/mmc/iproc_sdhci.c                                  | 1 +
 drivers/mmc/kona_sdhci.c                                   | 1 +
 drivers/mmc/mmc-uclass.c                                   | 1 +
 drivers/mmc/mmc.c                                          | 1 +
 drivers/mmc/mmc_legacy.c                                   | 1 +
 drivers/mmc/mmc_write.c                                    | 1 +
 drivers/mmc/msm_sdhci.c                                    | 1 +
 drivers/mmc/mv_sdhci.c                                     | 1 +
 drivers/mmc/mvebu_mmc.c                                    | 1 +
 drivers/mmc/mxcmmc.c                                       | 1 +
 drivers/mmc/mxsmmc.c                                       | 1 +
 drivers/mmc/omap_hsmmc.c                                   | 1 +
 drivers/mmc/pic32_sdhci.c                                  | 1 +
 drivers/mmc/pxa_mmc_gen.c                                  | 1 +
 drivers/mmc/rockchip_sdhci.c                               | 1 +
 drivers/mmc/rpmb.c                                         | 1 +
 drivers/mmc/s5p_sdhci.c                                    | 1 +
 drivers/mmc/sdhci.c                                        | 1 +
 drivers/mmc/sh_mmcif.c                                     | 1 +
 drivers/mmc/sh_sdhi.c                                      | 1 +
 drivers/mmc/socfpga_dw_mmc.c                               | 1 +
 drivers/mmc/stm32_sdmmc2.c                                 | 1 +
 drivers/mmc/sunxi_mmc.c                                    | 1 +
 drivers/mmc/tegra_mmc.c                                    | 1 +
 drivers/mmc/xenon_sdhci.c                                  | 1 +
 drivers/mmc/zynq_sdhci.c                                   | 1 +
 drivers/mtd/altera_qspi.c                                  | 1 +
 drivers/mtd/cfi_flash.c                                    | 1 +
 drivers/mtd/jedec_flash.c                                  | 1 +
 drivers/mtd/mtd_uboot.c                                    | 1 +
 drivers/mtd/mtdpart.c                                      | 1 +
 drivers/mtd/mw_eeprom.c                                    | 1 +
 drivers/mtd/nand/raw/arasan_nfc.c                          | 1 +
 drivers/mtd/nand/raw/fsl_elbc_nand.c                       | 1 +
 drivers/mtd/nand/raw/fsl_elbc_spl.c                        | 1 +
 drivers/mtd/nand/raw/fsl_ifc_nand.c                        | 1 +
 drivers/mtd/nand/raw/fsl_ifc_spl.c                         | 1 +
 drivers/mtd/nand/raw/fsmc_nand.c                           | 1 +
 drivers/mtd/nand/raw/mxs_nand.c                            | 1 +
 drivers/mtd/nand/raw/mxs_nand_spl.c                        | 1 +
 drivers/mtd/nand/raw/nand_util.c                           | 1 +
 drivers/mtd/nand/raw/omap_elm.c                            | 1 +
 drivers/mtd/nand/raw/omap_gpmc.c                           | 1 +
 drivers/mtd/nand/raw/sunxi_nand_spl.c                      | 1 +
 drivers/mtd/nand/raw/tegra_nand.c                          | 1 +
 drivers/mtd/nand/raw/vf610_nfc.c                           | 1 +
 drivers/mtd/nand/raw/zynq_nand.c                           | 1 +
 drivers/mtd/onenand/onenand_uboot.c                        | 1 +
 drivers/mtd/onenand/samsung.c                              | 1 +
 drivers/mtd/pic32_flash.c                                  | 1 +
 drivers/mtd/renesas_rpc_hf.c                               | 1 +
 drivers/mtd/spi/fsl_espi_spl.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/sf_probe.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/stm32_flash.c                                  | 1 +
 drivers/mtd/ubi/debug.c                                    | 1 +
 drivers/net/ag7xxx.c                                       | 1 +
 drivers/net/altera_tse.c                                   | 1 +
 drivers/net/armada100_fec.c                                | 1 +
 drivers/net/at91_emac.c                                    | 1 +
 drivers/net/ax88180.c                                      | 1 +
 drivers/net/bcm-sf2-eth-gmac.c                             | 1 +
 drivers/net/bcm-sf2-eth.c                                  | 1 +
 drivers/net/bcmgenet.c                                     | 1 +
 drivers/net/calxedaxgmac.c                                 | 1 +
 drivers/net/dc2114x.c                                      | 1 +
 drivers/net/designware.c                                   | 1 +
 drivers/net/dm9000x.c                                      | 1 +
 drivers/net/dnet.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/ep93xx_eth.c                                   | 1 +
 drivers/net/eth-phy-uclass.c                               | 1 +
 drivers/net/ethoc.c                                        | 1 +
 drivers/net/fec_mxc.c                                      | 1 +
 drivers/net/fm/eth.c                                       | 1 +
 drivers/net/fm/fdt.c                                       | 1 +
 drivers/net/fm/fm.c                                        | 1 +
 drivers/net/fm/memac_phy.c                                 | 1 +
 drivers/net/fm/tgec_phy.c                                  | 1 +
 drivers/net/fsl-mc/dpio/qbman_portal.c                     | 1 +
 drivers/net/fsl-mc/dpio/qbman_sys.h                        | 1 +
 drivers/net/fsl-mc/mc.c                                    | 1 +
 drivers/net/fsl-mc/mc_sys.c                                | 1 +
 drivers/net/fsl_enetc_mdio.c                               | 1 +
 drivers/net/fsl_mcdmafec.c                                 | 1 +
 drivers/net/fsl_mdio.c                                     | 1 +
 drivers/net/ftgmac100.c                                    | 1 +
 drivers/net/ftmac100.c                                     | 1 +
 drivers/net/ftmac110.c                                     | 1 +
 drivers/net/ks8851_mll.c                                   | 1 +
 drivers/net/lan91c96.c                                     | 1 +
 drivers/net/ldpaa_eth/ldpaa_eth.c                          | 1 +
 drivers/net/lpc32xx_eth.c                                  | 1 +
 drivers/net/macb.c                                         | 1 +
 drivers/net/mcffec.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/servalt_switch.c                  | 1 +
 drivers/net/mt7628-eth.c                                   | 1 +
 drivers/net/mtk_eth.c                                      | 1 +
 drivers/net/mvgbe.c                                        | 1 +
 drivers/net/mvneta.c                                       | 1 +
 drivers/net/mvpp2.c                                        | 1 +
 drivers/net/natsemi.c                                      | 1 +
 drivers/net/ne2000.c                                       | 1 +
 drivers/net/ne2000_base.c                                  | 1 +
 drivers/net/ne2000_base.h                                  | 1 +
 drivers/net/ns8382x.c                                      | 1 +
 drivers/net/pch_gbe.c                                      | 1 +
 drivers/net/pcnet.c                                        | 1 +
 drivers/net/pfe_eth/pfe_cmd.c                              | 1 +
 drivers/net/pfe_eth/pfe_driver.c                           | 1 +
 drivers/net/pfe_eth/pfe_eth.c                              | 1 +
 drivers/net/pfe_eth/pfe_firmware.c                         | 1 +
 drivers/net/pfe_eth/pfe_hw.c                               | 1 +
 drivers/net/pfe_eth/pfe_mdio.c                             | 1 +
 drivers/net/phy/aquantia.c                                 | 1 +
 drivers/net/phy/b53.c                                      | 1 +
 drivers/net/phy/broadcom.c                                 | 1 +
 drivers/net/phy/cortina.c                                  | 1 +
 drivers/net/phy/fixed.c                                    | 1 +
 drivers/net/phy/marvell.c                                  | 1 +
 drivers/net/phy/meson-gxl.c                                | 1 +
 drivers/net/phy/miiphybb.c                                 | 1 +
 drivers/net/phy/mscc.c                                     | 1 +
 drivers/net/phy/mv88e61xx.c                                | 1 +
 drivers/net/phy/mv88e6352.c                                | 1 +
 drivers/net/phy/ncsi.c                                     | 1 +
 drivers/net/phy/phy.c                                      | 1 +
 drivers/net/phy/realtek.c                                  | 1 +
 drivers/net/phy/teranetics.c                               | 1 +
 drivers/net/phy/vitesse.c                                  | 1 +
 drivers/net/phy/xilinx_gmii2rgmii.c                        | 1 +
 drivers/net/pic32_eth.c                                    | 1 +
 drivers/net/pic32_mdio.c                                   | 1 +
 drivers/net/rtl8139.c                                      | 1 +
 drivers/net/rtl8169.c                                      | 1 +
 drivers/net/sandbox-raw.c                                  | 1 +
 drivers/net/sandbox.c                                      | 1 +
 drivers/net/sh_eth.c                                       | 1 +
 drivers/net/smc91111.c                                     | 1 +
 drivers/net/smc911x.c                                      | 1 +
 drivers/net/sun8i_emac.c                                   | 1 +
 drivers/net/sunxi_emac.c                                   | 1 +
 drivers/net/ti/am65-cpsw-nuss.c                            | 1 +
 drivers/net/ti/cpsw.c                                      | 1 +
 drivers/net/ti/davinci_emac.c                              | 1 +
 drivers/net/ti/keystone_net.c                              | 1 +
 drivers/net/tsec.c                                         | 1 +
 drivers/net/uli526x.c                                      | 1 +
 drivers/net/vsc7385.c                                      | 1 +
 drivers/net/vsc9953.c                                      | 1 +
 drivers/net/xilinx_axi_emac.c                              | 1 +
 drivers/net/xilinx_emaclite.c                              | 1 +
 drivers/net/zynq_gem.c                                     | 1 +
 drivers/nvme/nvme.c                                        | 1 +
 drivers/nvme/nvme_show.c                                   | 1 +
 drivers/pci/fsl_pci_init.c                                 | 1 +
 drivers/pci/pci-aardvark.c                                 | 1 +
 drivers/pci/pci-uclass.c                                   | 1 +
 drivers/pci/pci.c                                          | 1 +
 drivers/pci/pci_auto.c                                     | 1 +
 drivers/pci/pci_common.c                                   | 1 +
 drivers/pci/pci_ftpci100.c                                 | 1 +
 drivers/pci/pci_mpc85xx.c                                  | 1 +
 drivers/pci/pci_mvebu.c                                    | 1 +
 drivers/pci/pci_rom.c                                      | 1 +
 drivers/pci/pci_sh4.c                                      | 1 +
 drivers/pci/pci_sh7751.c                                   | 1 +
 drivers/pci/pci_sh7780.c                                   | 1 +
 drivers/pci/pcie_brcmstb.c                                 | 1 +
 drivers/pci/pcie_dw_mvebu.c                                | 1 +
 drivers/pci/pcie_dw_ti.c                                   | 1 +
 drivers/pci/pcie_fsl.c                                     | 1 +
 drivers/pci/pcie_imx.c                                     | 1 +
 drivers/pci/pcie_layerscape_ep.c                           | 1 +
 drivers/pci/pcie_layerscape_gen4.c                         | 1 +
 drivers/pci/pcie_layerscape_rc.c                           | 1 +
 drivers/phy/marvell/comphy_a3700.c                         | 1 +
 drivers/phy/marvell/comphy_core.c                          | 1 +
 drivers/phy/marvell/comphy_core.h                          | 1 +
 drivers/phy/marvell/comphy_cp110.c                         | 1 +
 drivers/phy/omap-usb2-phy.c                                | 1 +
 drivers/phy/ti-pipe3-phy.c                                 | 1 +
 drivers/pinctrl/broadcom/pinctrl-bcm283x.c                 | 1 +
 drivers/pinctrl/intel/pinctrl.c                            | 1 +
 drivers/pinctrl/meson/pinctrl-meson.c                      | 1 +
 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c                | 1 +
 drivers/pinctrl/nxp/pinctrl-scu.c                          | 1 +
 drivers/pinctrl/pinctrl-at91-pio4.c                        | 1 +
 drivers/pinctrl/pinctrl_pic32.c                            | 1 +
 drivers/pinctrl/renesas/pfc-r7s72100.c                     | 1 +
 drivers/pinctrl/renesas/pfc.c                              | 1 +
 drivers/power/acpi_pmc/acpi-pmc-uclass.c                   | 1 +
 drivers/power/battery/bat_trats.c                          | 1 +
 drivers/power/battery/bat_trats2.c                         | 1 +
 drivers/power/domain/imx8-power-domain-legacy.c            | 1 +
 drivers/power/domain/imx8-power-domain.c                   | 1 +
 drivers/power/domain/imx8m-power-domain.c                  | 1 +
 drivers/power/fuel_gauge/fg_max17042.c                     | 1 +
 drivers/power/mfd/fg_max77693.c                            | 1 +
 drivers/power/mfd/muic_max77693.c                          | 1 +
 drivers/power/mfd/pmic_max77693.c                          | 1 +
 drivers/power/mt6323.c                                     | 1 +
 drivers/power/palmas.c                                     | 1 +
 drivers/power/pmic/lp873x.c                                | 1 +
 drivers/power/pmic/lp87565.c                               | 1 +
 drivers/power/pmic/mc34708.c                               | 1 +
 drivers/power/pmic/muic_max8997.c                          | 1 +
 drivers/power/pmic/pmic_hi6553.c                           | 1 +
 drivers/power/pmic/pmic_ltc3676.c                          | 1 +
 drivers/power/pmic/pmic_max77696.c                         | 1 +
 drivers/power/pmic/pmic_max8997.c                          | 1 +
 drivers/power/pmic/pmic_max8998.c                          | 1 +
 drivers/power/pmic/pmic_mc34vr500.c                        | 1 +
 drivers/power/pmic/pmic_pca9450.c                          | 1 +
 drivers/power/pmic/pmic_pfuze100.c                         | 1 +
 drivers/power/pmic/pmic_pfuze3000.c                        | 1 +
 drivers/power/pmic/pmic_tps62362.c                         | 1 +
 drivers/power/pmic/pmic_tps65218.c                         | 1 +
 drivers/power/pmic/rk8xx.c                                 | 1 +
 drivers/power/pmic/tps65941.c                              | 1 +
 drivers/power/power_core.c                                 | 1 +
 drivers/power/power_dialog.c                               | 1 +
 drivers/power/power_fsl.c                                  | 1 +
 drivers/power/power_i2c.c                                  | 1 +
 drivers/power/regulator/lp873x_regulator.c                 | 1 +
 drivers/power/regulator/lp87565_regulator.c                | 1 +
 drivers/power/regulator/palmas_regulator.c                 | 1 +
 drivers/power/regulator/pwm_regulator.c                    | 1 +
 drivers/power/regulator/regulator-uclass.c                 | 1 +
 drivers/power/regulator/tps65941_regulator.c               | 1 +
 drivers/power/twl4030.c                                    | 1 +
 drivers/power/twl6030.c                                    | 1 +
 drivers/pwm/pwm-imx-util.c                                 | 1 +
 drivers/pwm/pwm-mtk.c                                      | 1 +
 drivers/qe/qe.c                                            | 1 +
 drivers/qe/uccf.c                                          | 1 +
 drivers/qe/uec.c                                           | 1 +
 drivers/qe/uec_phy.c                                       | 1 +
 drivers/ram/k3-am654-ddrss.c                               | 1 +
 drivers/ram/k3-j721e/k3-j721e-ddrss.c                      | 1 +
 drivers/ram/rockchip/dmc-rk3368.c                          | 1 +
 drivers/ram/rockchip/sdram_common.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/sifive/fu540_ddr.c                             | 1 +
 drivers/ram/stm32mp1/stm32mp1_ddr.c                        | 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/ti_k3_r5f_rproc.c                       | 1 +
 drivers/reset/reset-socfpga.c                              | 1 +
 drivers/reset/reset-sunxi.c                                | 1 +
 drivers/rng/stm32mp1_rng.c                                 | 1 +
 drivers/rtc/davinci.c                                      | 1 +
 drivers/rtc/ds1302.c                                       | 1 +
 drivers/rtc/ds1307.c                                       | 1 +
 drivers/rtc/ds1337.c                                       | 1 +
 drivers/rtc/ds1374.c                                       | 1 +
 drivers/rtc/ds1556.c                                       | 1 +
 drivers/rtc/ds164x.c                                       | 1 +
 drivers/rtc/ds174x.c                                       | 1 +
 drivers/rtc/ds3231.c                                       | 1 +
 drivers/rtc/imxdi.c                                        | 1 +
 drivers/rtc/isl1208.c                                      | 1 +
 drivers/rtc/m41t11.c                                       | 1 +
 drivers/rtc/m41t60.c                                       | 1 +
 drivers/rtc/m41t62.c                                       | 1 +
 drivers/rtc/mc146818.c                                     | 1 +
 drivers/rtc/mcfrtc.c                                       | 1 +
 drivers/rtc/mvrtc.c                                        | 1 +
 drivers/rtc/mxsrtc.c                                       | 1 +
 drivers/rtc/pcf2127.c                                      | 1 +
 drivers/rtc/pcf8563.c                                      | 1 +
 drivers/rtc/pt7c4338.c                                     | 1 +
 drivers/rtc/rs5c372.c                                      | 1 +
 drivers/rtc/rv3029.c                                       | 1 +
 drivers/rtc/rv8803.c                                       | 1 +
 drivers/rtc/rx8010sj.c                                     | 1 +
 drivers/rtc/rx8025.c                                       | 1 +
 drivers/rtc/s35392a.c                                      | 1 +
 drivers/rtc/s3c24x0_rtc.c                                  | 1 +
 drivers/scsi/scsi.c                                        | 1 +
 drivers/serial/serial-uclass.c                             | 1 +
 drivers/serial/serial.c                                    | 1 +
 drivers/soc/ti/keystone_serdes.c                           | 1 +
 drivers/sound/hda_codec.c                                  | 1 +
 drivers/spi/atcspi200_spi.c                                | 1 +
 drivers/spi/bcm63xx_hsspi.c                                | 1 +
 drivers/spi/bcm63xx_spi.c                                  | 1 +
 drivers/spi/bcmstb_spi.c                                   | 1 +
 drivers/spi/cadence_qspi.c                                 | 1 +
 drivers/spi/cadence_qspi_apb.c                             | 1 +
 drivers/spi/cf_spi.c                                       | 1 +
 drivers/spi/davinci_spi.c                                  | 1 +
 drivers/spi/designware_spi.c                               | 1 +
 drivers/spi/kirkwood_spi.c                                 | 1 +
 drivers/spi/mpc8xx_spi.c                                   | 1 +
 drivers/spi/mpc8xxx_spi.c                                  | 1 +
 drivers/spi/mt7621_spi.c                                   | 1 +
 drivers/spi/mtk_snfi_spi.c                                 | 1 +
 drivers/spi/mxc_spi.c                                      | 1 +
 drivers/spi/mxs_spi.c                                      | 1 +
 drivers/spi/omap3_spi.c                                    | 1 +
 drivers/spi/pic32_spi.c                                    | 1 +
 drivers/spi/renesas_rpc_spi.c                              | 1 +
 drivers/spi/sandbox_spi.c                                  | 1 +
 drivers/spi/sh_qspi.c                                      | 1 +
 drivers/spi/spi-sifive.c                                   | 1 +
 drivers/spi/spi-sunxi.c                                    | 1 +
 drivers/spi/spi-uclass.c                                   | 1 +
 drivers/spi/spi.c                                          | 1 +
 drivers/spi/tegra114_spi.c                                 | 1 +
 drivers/spi/tegra20_sflash.c                               | 1 +
 drivers/spi/tegra20_slink.c                                | 1 +
 drivers/spi/tegra210_qspi.c                                | 1 +
 drivers/spi/ti_qspi.c                                      | 1 +
 drivers/spi/xilinx_spi.c                                   | 1 +
 drivers/spi/zynq_qspi.c                                    | 1 +
 drivers/spi/zynq_spi.c                                     | 1 +
 drivers/spi/zynqmp_gqspi.c                                 | 1 +
 drivers/spmi/spmi-msm.c                                    | 1 +
 drivers/sysreset/sysreset-uclass.c                         | 1 +
 drivers/sysreset/sysreset_microblaze.c                     | 1 +
 drivers/sysreset/sysreset_mpc83xx.c                        | 1 +
 drivers/sysreset/sysreset_socfpga_s10.c                    | 1 +
 drivers/tee/sandbox.c                                      | 1 +
 drivers/thermal/imx_scu_thermal.c                          | 1 +
 drivers/thermal/imx_thermal.c                              | 1 +
 drivers/thermal/imx_tmu.c                                  | 1 +
 drivers/tpm/cr50_i2c.c                                     | 1 +
 drivers/tpm/tpm2_tis_sandbox.c                             | 1 +
 drivers/tpm/tpm_atmel_twi.c                                | 1 +
 drivers/tpm/tpm_tis_lpc.c                                  | 1 +
 drivers/tpm/tpm_tis_sandbox.c                              | 1 +
 drivers/ufs/ufs.c                                          | 1 +
 drivers/usb/cdns3/core.c                                   | 1 +
 drivers/usb/common/fsl-dt-fixup.c                          | 1 +
 drivers/usb/eth/asix.c                                     | 1 +
 drivers/usb/eth/asix88179.c                                | 1 +
 drivers/usb/eth/lan7x.c                                    | 1 +
 drivers/usb/eth/lan7x.h                                    | 1 +
 drivers/usb/eth/r8152.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/atmel_usba_udc.c                        | 1 +
 drivers/usb/gadget/ci_udc.c                                | 1 +
 drivers/usb/gadget/dwc2_udc_otg.c                          | 1 +
 drivers/usb/gadget/dwc2_udc_otg_phy.c                      | 1 +
 drivers/usb/gadget/dwc2_udc_otg_xfer_dma.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/udc/udc-core.c                          | 1 +
 drivers/usb/host/dwc2.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-mx5.c                                | 1 +
 drivers/usb/host/ehci-mx6.c                                | 1 +
 drivers/usb/host/ehci-mxs.c                                | 1 +
 drivers/usb/host/ehci-omap.c                               | 1 +
 drivers/usb/host/ehci-pci.c                                | 1 +
 drivers/usb/host/ehci-rmobile.c                            | 1 +
 drivers/usb/host/ehci-spear.c                              | 1 +
 drivers/usb/host/ehci-tegra.c                              | 1 +
 drivers/usb/host/ehci-zynq.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/sl811.h                                   | 1 +
 drivers/usb/host/usb-uclass.c                              | 1 +
 drivers/usb/host/xhci-dwc3.c                               | 1 +
 drivers/usb/host/xhci-exynos5.c                            | 1 +
 drivers/usb/host/xhci-fsl.c                                | 1 +
 drivers/usb/host/xhci-mem.c                                | 1 +
 drivers/usb/host/xhci-mvebu.c                              | 1 +
 drivers/usb/host/xhci-omap.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_uboot.c                          | 1 +
 drivers/usb/musb-new/pic32.c                               | 1 +
 drivers/usb/musb-new/sunxi.c                               | 1 +
 drivers/usb/phy/twl4030.c                                  | 1 +
 drivers/usb/ulpi/ulpi-viewport.c                           | 1 +
 drivers/usb/ulpi/ulpi.c                                    | 1 +
 drivers/video/am335x-fb.c                                  | 1 +
 drivers/video/anx9804.c                                    | 1 +
 drivers/video/ati_radeon_fb.c                              | 1 +
 drivers/video/ati_radeon_fb.h                              | 1 +
 drivers/video/atmel_hlcdfb.c                               | 1 +
 drivers/video/broadwell_igd.c                              | 1 +
 drivers/video/bus_vcxk.c                                   | 1 +
 drivers/video/cfb_console.c                                | 1 +
 drivers/video/coreboot.c                                   | 1 +
 drivers/video/da8xx-fb.c                                   | 1 +
 drivers/video/efi.c                                        | 1 +
 drivers/video/exynos/exynos_dp.c                           | 1 +
 drivers/video/exynos/exynos_dp_lowlevel.c                  | 1 +
 drivers/video/exynos/exynos_fb.c                           | 1 +
 drivers/video/exynos/exynos_mipi_dsi.c                     | 1 +
 drivers/video/exynos/exynos_mipi_dsi_lowlevel.c            | 1 +
 drivers/video/formike.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/imx/ipu_common.c                             | 1 +
 drivers/video/imx/ipu_disp.c                               | 1 +
 drivers/video/imx/ipu_regs.h                               | 1 +
 drivers/video/imx/mxc_ipuv3_fb.c                           | 1 +
 drivers/video/ivybridge_igd.c                              | 1 +
 drivers/video/lg4573.c                                     | 1 +
 drivers/video/logicore_dp_tx.c                             | 1 +
 drivers/video/mali_dp.c                                    | 1 +
 drivers/video/mb862xx.c                                    | 1 +
 drivers/video/meson/meson_vclk.c                           | 1 +
 drivers/video/mx3fb.c                                      | 1 +
 drivers/video/mxsfb.c                                      | 1 +
 drivers/video/pxa_lcd.c                                    | 1 +
 drivers/video/rockchip/rk_edp.c                            | 1 +
 drivers/video/sandbox_sdl.c                                | 1 +
 drivers/video/scf0403_lcd.c                                | 1 +
 drivers/video/simplefb.c                                   | 1 +
 drivers/video/ssd2828.c                                    | 1 +
 drivers/video/sunxi/sunxi_display.c                        | 1 +
 drivers/video/sunxi/sunxi_dw_hdmi.c                        | 1 +
 drivers/video/tda19988.c                                   | 1 +
 drivers/video/tegra.c                                      | 1 +
 drivers/video/tegra124/display.c                           | 1 +
 drivers/video/tegra124/dp.c                                | 1 +
 drivers/video/tegra124/sor.c                               | 1 +
 drivers/video/video-uclass.c                               | 1 +
 drivers/video/video_bmp.c                                  | 1 +
 drivers/video/videomodes.c                                 | 1 +
 drivers/virtio/virtio_pci_legacy.c                         | 1 +
 drivers/virtio/virtio_pci_modern.c                         | 1 +
 drivers/virtio/virtio_ring.c                               | 1 +
 drivers/w1-eeprom/w1-eeprom-uclass.c                       | 1 +
 drivers/w1/w1-gpio.c                                       | 1 +
 drivers/w1/w1-uclass.c                                     | 1 +
 drivers/watchdog/at91sam9_wdt.c                            | 1 +
 drivers/watchdog/ftwdt010_wdt.c                            | 1 +
 drivers/watchdog/wdt-uclass.c                              | 1 +
 env/common.c                                               | 1 +
 env/env.c                                                  | 1 +
 env/ext4.c                                                 | 1 +
 env/fat.c                                                  | 1 +
 env/flash.c                                                | 1 +
 env/mmc.c                                                  | 1 +
 env/nand.c                                                 | 1 +
 env/onenand.c                                              | 1 +
 env/remote.c                                               | 1 +
 env/sata.c                                                 | 1 +
 env/sf.c                                                   | 1 +
 env/ubi.c                                                  | 1 +
 examples/api/demo.c                                        | 1 +
 examples/api/libgenwrap.c                                  | 1 +
 examples/standalone/atmel_df_pow2.c                        | 1 +
 examples/standalone/hello_world.c                          | 1 +
 examples/standalone/sched.c                                | 1 +
 fs/btrfs/dir-item.c                                        | 1 +
 fs/btrfs/inode.c                                           | 1 +
 fs/btrfs/root.c                                            | 1 +
 fs/btrfs/subvolume.c                                       | 1 +
 fs/btrfs/super.c                                           | 1 +
 fs/cramfs/uncompress.c                                     | 1 +
 fs/ext4/ext4_common.c                                      | 1 +
 fs/ext4/ext4_journal.c                                     | 1 +
 fs/ext4/ext4_write.c                                       | 1 +
 fs/ext4/ext4fs.c                                           | 1 +
 fs/fat/fat.c                                               | 1 +
 fs/fat/fat_write.c                                         | 1 +
 fs/fs.c                                                    | 1 +
 fs/fs_internal.c                                           | 1 +
 fs/jffs2/jffs2_1pass.c                                     | 1 +
 fs/reiserfs/reiserfs.c                                     | 1 +
 fs/sandbox/sandboxfs.c                                     | 1 +
 fs/squashfs/sqfs_filesystem.h                              | 1 +
 fs/ubifs/super.c                                           | 1 +
 fs/ubifs/ubifs.c                                           | 1 +
 fs/yaffs2/yaffs_uboot_glue.c                               | 1 +
 fs/yaffs2/yaffsfs.c                                        | 1 +
 fs/yaffs2/ydirectenv.h                                     | 1 +
 fs/zfs/zfs.c                                               | 1 +
 fs/zfs/zfs_lzjb.c                                          | 1 +
 include/bootcount.h                                        | 1 +
 include/common.h                                           | 1 -
 include/dfu.h                                              | 1 +
 include/exports.h                                          | 1 +
 include/i2c.h                                              | 1 +
 include/initcall.h                                         | 1 +
 include/spi_flash.h                                        | 1 +
 include/wait_bit.h                                         | 1 +
 lib/aes.c                                                  | 1 +
 lib/aes/aes-decrypt.c                                      | 1 +
 lib/bzip2/bzlib.c                                          | 1 +
 lib/charset.c                                              | 1 +
 lib/dhry/cmd_dhry.c                                        | 1 +
 lib/dhry/dhry_1.c                                          | 1 +
 lib/display_options.c                                      | 1 +
 lib/efi/efi_app.c                                          | 1 +
 lib/efi/efi_stub.c                                         | 1 +
 lib/efi_driver/efi_uclass.c                                | 1 +
 lib/efi_loader/efi_boottime.c                              | 1 +
 lib/efi_loader/efi_console.c                               | 1 +
 lib/efi_loader/efi_file.c                                  | 1 +
 lib/efi_loader/efi_gop.c                                   | 1 +
 lib/efi_loader/efi_image_loader.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_setup.c                                 | 1 +
 lib/efi_loader/efi_var_common.c                            | 1 +
 lib/efi_loader/efi_watchdog.c                              | 1 +
 lib/efi_selftest/efi_selftest_devicepath_util.c            | 1 +
 lib/efi_selftest/efi_selftest_fdt.c                        | 1 +
 lib/efi_selftest/efi_selftest_manageprotocols.c            | 1 +
 lib/elf.c                                                  | 1 +
 lib/fdtdec.c                                               | 1 +
 lib/fdtdec_test.c                                          | 1 +
 lib/gunzip.c                                               | 1 +
 lib/gzip.c                                                 | 1 +
 lib/hang.c                                                 | 1 +
 lib/hashtable.c                                            | 1 +
 lib/hexdump.c                                              | 1 +
 lib/image-sparse.c                                         | 1 +
 lib/libavb/avb_sysdeps_posix.c                             | 1 +
 lib/lmb.c                                                  | 1 +
 lib/optee/optee.c                                          | 1 +
 lib/panic.c                                                | 1 +
 lib/rsa/rsa-verify.c                                       | 1 +
 lib/smbios.c                                               | 1 +
 lib/tiny-printf.c                                          | 1 +
 lib/trace.c                                                | 1 +
 lib/uuid.c                                                 | 1 +
 lib/vsprintf.c                                             | 1 +
 net/arp.c                                                  | 1 +
 net/bootp.c                                                | 1 +
 net/cdp.c                                                  | 1 +
 net/dns.c                                                  | 1 +
 net/eth-uclass.c                                           | 1 +
 net/eth_legacy.c                                           | 1 +
 net/fastboot.c                                             | 1 +
 net/link_local.c                                           | 1 +
 net/net.c                                                  | 1 +
 net/nfs.c                                                  | 1 +
 net/pcap.c                                                 | 1 +
 net/rarp.c                                                 | 1 +
 net/sntp.c                                                 | 1 +
 net/tftp.c                                                 | 1 +
 post/cpu/mpc83xx/ecc.c                                     | 1 +
 post/drivers/flash.c                                       | 1 +
 post/post.c                                                | 1 +
 test/cmd_ut.c                                              | 1 +
 test/command_ut.c                                          | 1 +
 test/compression.c                                         | 1 +
 test/dm/core.c                                             | 1 +
 test/dm/osd.c                                              | 1 +
 test/dm/rtc.c                                              | 1 +
 test/dm/test-fdt.c                                         | 1 +
 test/dm/test-main.c                                        | 1 +
 test/dm/usb.c                                              | 1 +
 test/lib/sscanf.c                                          | 1 +
 test/lib/test_aes.c                                        | 1 +
 test/log/log_test.c                                        | 1 +
 test/print_ut.c                                            | 1 +
 test/stdint/int-types.c                                    | 1 +
 test/time_ut.c                                             | 1 +
 test/ut.c                                                  | 1 +
 1893 files changed, 1894 insertions(+), 1 deletion(-)

diff --git a/api/api.c b/api/api.c
index 05f0203584df..d6b5b60c2255 100644
--- a/api/api.c
+++ b/api/api.c
@@ -11,6 +11,7 @@
 #include <env.h>
 #include <malloc.h>
 #include <env_internal.h>
+#include <stdio.h>
 #include <time.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/api/api_net.c b/api/api_net.c
index 63ac3ee09c74..0982ec778eab 100644
--- a/api/api_net.c
+++ b/api/api_net.c
@@ -8,6 +8,7 @@
 #include <config.h>
 #include <common.h>
 #include <net.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include <linux/types.h>
 #include <api_public.h>
diff --git a/api/api_storage.c b/api/api_storage.c
index a0dacad1a55e..d4474d7d55cf 100644
--- a/api/api_storage.c
+++ b/api/api_storage.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <api_public.h>
 #include <part.h>
+#include <stdio.h>
 
 #if defined(CONFIG_CMD_USB) && defined(CONFIG_USB_STORAGE)
 #include <usb.h>
diff --git a/arch/arc/lib/bootm.c b/arch/arc/lib/bootm.c
index 8a8d394a5f0c..28550041984f 100644
--- a/arch/arc/lib/bootm.c
+++ b/arch/arc/lib/bootm.c
@@ -10,6 +10,7 @@
 #include <irq_func.h>
 #include <lmb.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 
diff --git a/arch/arc/lib/cpu.c b/arch/arc/lib/cpu.c
index 07f57878ef14..903824615131 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 <stdio.h>
 #include <vsprintf.h>
 #include <asm/arcregs.h>
 #include <asm/cache.h>
diff --git a/arch/arc/lib/interrupts.c b/arch/arc/lib/interrupts.c
index db21fbb11428..988e04aea0bb 100644
--- a/arch/arc/lib/interrupts.c
+++ b/arch/arc/lib/interrupts.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <irq_func.h>
+#include <stdio.h>
 #include <asm/arcregs.h>
 #include <asm/ptrace.h>
 
diff --git a/arch/arc/lib/reset.c b/arch/arc/lib/reset.c
index fbb56ec83af0..4869fa936bfb 100644
--- a/arch/arc/lib/reset.c
+++ b/arch/arc/lib/reset.c
@@ -6,6 +6,7 @@
 #include <command.h>
 #include <common.h>
 #include <cpu_func.h>
+#include <stdio.h>
 
 __weak void reset_cpu(ulong addr)
 {
diff --git a/arch/arm/cpu/arm1136/mx31/generic.c b/arch/arm/cpu/arm1136/mx31/generic.c
index a3d4f1479623..ef738d6cd845 100644
--- a/arch/arm/cpu/arm1136/mx31/generic.c
+++ b/arch/arm/cpu/arm1136/mx31/generic.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <div64.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
 #include <asm/io.h>
diff --git a/arch/arm/cpu/arm1136/mx35/generic.c b/arch/arm/cpu/arm1136/mx35/generic.c
index b0dccac64b6b..a001dee838d6 100644
--- a/arch/arm/cpu/arm1136/mx35/generic.c
+++ b/arch/arm/cpu/arm1136/mx35/generic.c
@@ -12,6 +12,7 @@
 #include <div64.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
diff --git a/arch/arm/cpu/arm926ejs/armada100/cpu.c b/arch/arm/cpu/arm926ejs/armada100/cpu.c
index 96726b3144ec..734e4d92a8fc 100644
--- a/arch/arm/cpu/arm926ejs/armada100/cpu.c
+++ b/arch/arm/cpu/arm926ejs/armada100/cpu.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/armada100.h>
 
diff --git a/arch/arm/cpu/arm926ejs/armada100/dram.c b/arch/arm/cpu/arm926ejs/armada100/dram.c
index c97b5b1940a5..4b50d448ab11 100644
--- a/arch/arm/cpu/arm926ejs/armada100/dram.c
+++ b/arch/arm/cpu/arm926ejs/armada100/dram.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/armada100.h>
diff --git a/arch/arm/cpu/arm926ejs/mx25/generic.c b/arch/arm/cpu/arm926ejs/mx25/generic.c
index 5b745880b9c3..e9ebda4317c9 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 <stdio.h>
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/arch/arm/cpu/arm926ejs/mx27/generic.c b/arch/arm/cpu/arm926ejs/mx27/generic.c
index 0c804b8bad21..ec5f5e12e1e7 100644
--- a/arch/arm/cpu/arm926ejs/mx27/generic.c
+++ b/arch/arm/cpu/arm926ejs/mx27/generic.c
@@ -8,6 +8,7 @@
 #include <div64.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
diff --git a/arch/arm/cpu/arm926ejs/mxs/mxs.c b/arch/arm/cpu/arm926ejs/mxs/mxs.c
index 8d5a3d750536..84d672286312 100644
--- a/arch/arm/cpu/arm926ejs/mxs/mxs.c
+++ b/arch/arm/cpu/arm926ejs/mxs/mxs.c
@@ -15,6 +15,7 @@
 #include <hang.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
diff --git a/arch/arm/cpu/arm926ejs/spear/cpu.c b/arch/arm/cpu/arm926ejs/spear/cpu.c
index 93fd7a6d8dfd..3b1e80252512 100644
--- a/arch/arm/cpu/arm926ejs/spear/cpu.c
+++ b/arch/arm/cpu/arm926ejs/spear/cpu.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <command.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/spr_misc.h>
diff --git a/arch/arm/cpu/arm926ejs/spear/reset.c b/arch/arm/cpu/arm926ejs/spear/reset.c
index a316540d52a8..7c3ba8b2dbd5 100644
--- a/arch/arm/cpu/arm926ejs/spear/reset.c
+++ b/arch/arm/cpu/arm926ejs/spear/reset.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/spr_syscntl.h>
diff --git a/arch/arm/cpu/arm926ejs/spear/spl.c b/arch/arm/cpu/arm926ejs/spear/spl.c
index 08b98a2d0683..54c540b7bf25 100644
--- a/arch/arm/cpu/arm926ejs/spear/spl.c
+++ b/arch/arm/cpu/arm926ejs/spear/spl.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <init.h>
 #include <spl.h>
+#include <stdio.h>
 #include <version.h>
 #include <asm/io.h>
 #include <asm/ptrace.h>
diff --git a/arch/arm/cpu/arm926ejs/spear/spr_misc.c b/arch/arm/cpu/arm926ejs/spear/spr_misc.c
index a910b7134f38..7c780c07c310 100644
--- a/arch/arm/cpu/arm926ejs/spear/spr_misc.c
+++ b/arch/arm/cpu/arm926ejs/spear/spr_misc.c
@@ -11,6 +11,7 @@
 #include <i2c.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/mtd/st_smi.h>
 #include <asm/io.h>
diff --git a/arch/arm/cpu/armv7/bcm235xx/clk-bsc.c b/arch/arm/cpu/armv7/bcm235xx/clk-bsc.c
index 1b3f36aebe11..c8a8e358f744 100644
--- a/arch/arm/cpu/armv7/bcm235xx/clk-bsc.c
+++ b/arch/arm/cpu/armv7/bcm235xx/clk-bsc.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/sysmap.h>
diff --git a/arch/arm/cpu/armv7/bcm235xx/clk-core.c b/arch/arm/cpu/armv7/bcm235xx/clk-core.c
index a6bd627e20e4..8c718bf5f0bd 100644
--- a/arch/arm/cpu/armv7/bcm235xx/clk-core.c
+++ b/arch/arm/cpu/armv7/bcm235xx/clk-core.c
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
diff --git a/arch/arm/cpu/armv7/bcm235xx/clk-core.h b/arch/arm/cpu/armv7/bcm235xx/clk-core.h
index ace384dea782..91d38703fa77 100644
--- a/arch/arm/cpu/armv7/bcm235xx/clk-core.h
+++ b/arch/arm/cpu/armv7/bcm235xx/clk-core.h
@@ -3,6 +3,7 @@
  * Copyright 2013 Broadcom Corporation.
  */
 
+#include <stdio.h>
 #include <linux/stddef.h>
 #include <linux/stringify.h>
 
diff --git a/arch/arm/cpu/armv7/bcm235xx/clk-eth.c b/arch/arm/cpu/armv7/bcm235xx/clk-eth.c
index 209ceca9a06e..0b564fbf12be 100644
--- a/arch/arm/cpu/armv7/bcm235xx/clk-eth.c
+++ b/arch/arm/cpu/armv7/bcm235xx/clk-eth.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
diff --git a/arch/arm/cpu/armv7/bcm235xx/clk-sdio.c b/arch/arm/cpu/armv7/bcm235xx/clk-sdio.c
index f2ba354c24f8..c21a23c2abeb 100644
--- a/arch/arm/cpu/armv7/bcm235xx/clk-sdio.c
+++ b/arch/arm/cpu/armv7/bcm235xx/clk-sdio.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/sysmap.h>
diff --git a/arch/arm/cpu/armv7/bcm235xx/clk-usb-otg.c b/arch/arm/cpu/armv7/bcm235xx/clk-usb-otg.c
index f604aec62fa6..f065560d2d0b 100644
--- a/arch/arm/cpu/armv7/bcm235xx/clk-usb-otg.c
+++ b/arch/arm/cpu/armv7/bcm235xx/clk-usb-otg.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/errno.h>
 #include <asm/arch/sysmap.h>
 #include "clk-core.h"
diff --git a/arch/arm/cpu/armv7/bcm281xx/clk-bsc.c b/arch/arm/cpu/armv7/bcm281xx/clk-bsc.c
index 1b3f36aebe11..c8a8e358f744 100644
--- a/arch/arm/cpu/armv7/bcm281xx/clk-bsc.c
+++ b/arch/arm/cpu/armv7/bcm281xx/clk-bsc.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/sysmap.h>
diff --git a/arch/arm/cpu/armv7/bcm281xx/clk-core.c b/arch/arm/cpu/armv7/bcm281xx/clk-core.c
index a70979d09331..d1828d6234a9 100644
--- a/arch/arm/cpu/armv7/bcm281xx/clk-core.c
+++ b/arch/arm/cpu/armv7/bcm281xx/clk-core.c
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
diff --git a/arch/arm/cpu/armv7/bcm281xx/clk-core.h b/arch/arm/cpu/armv7/bcm281xx/clk-core.h
index f0fbff081d02..531d9a4f3eb7 100644
--- a/arch/arm/cpu/armv7/bcm281xx/clk-core.h
+++ b/arch/arm/cpu/armv7/bcm281xx/clk-core.h
@@ -3,6 +3,7 @@
  * Copyright 2013 Broadcom Corporation.
  */
 
+#include <stdio.h>
 #include <linux/stddef.h>
 #include <linux/stringify.h>
 
diff --git a/arch/arm/cpu/armv7/bcm281xx/clk-eth.c b/arch/arm/cpu/armv7/bcm281xx/clk-eth.c
index 209ceca9a06e..0b564fbf12be 100644
--- a/arch/arm/cpu/armv7/bcm281xx/clk-eth.c
+++ b/arch/arm/cpu/armv7/bcm281xx/clk-eth.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
diff --git a/arch/arm/cpu/armv7/bcm281xx/clk-sdio.c b/arch/arm/cpu/armv7/bcm281xx/clk-sdio.c
index f2ba354c24f8..c21a23c2abeb 100644
--- a/arch/arm/cpu/armv7/bcm281xx/clk-sdio.c
+++ b/arch/arm/cpu/armv7/bcm281xx/clk-sdio.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/sysmap.h>
diff --git a/arch/arm/cpu/armv7/bcm281xx/clk-usb-otg.c b/arch/arm/cpu/armv7/bcm281xx/clk-usb-otg.c
index f604aec62fa6..f065560d2d0b 100644
--- a/arch/arm/cpu/armv7/bcm281xx/clk-usb-otg.c
+++ b/arch/arm/cpu/armv7/bcm281xx/clk-usb-otg.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/errno.h>
 #include <asm/arch/sysmap.h>
 #include "clk-core.h"
diff --git a/arch/arm/cpu/armv7/iproc-common/armpll.c b/arch/arm/cpu/armv7/iproc-common/armpll.c
index efa3d9e5a9bd..2ac598cee7bb 100644
--- a/arch/arm/cpu/armv7/iproc-common/armpll.c
+++ b/arch/arm/cpu/armv7/iproc-common/armpll.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/iproc-common/armpll.h>
 #include <asm/iproc-common/sysmap.h>
diff --git a/arch/arm/cpu/armv7/ls102xa/clock.c b/arch/arm/cpu/armv7/ls102xa/clock.c
index 940995ef5af1..d0f349618d4b 100644
--- a/arch/arm/cpu/armv7/ls102xa/clock.c
+++ b/arch/arm/cpu/armv7/ls102xa/clock.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <clock_legacy.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/immap_ls102xa.h>
diff --git a/arch/arm/cpu/armv7/ls102xa/cpu.c b/arch/arm/cpu/armv7/ls102xa/cpu.c
index 61b80261f521..b7ec5ccdd267 100644
--- a/arch/arm/cpu/armv7/ls102xa/cpu.c
+++ b/arch/arm/cpu/armv7/ls102xa/cpu.c
@@ -7,6 +7,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <asm/arch/clock.h>
 #include <asm/global_data.h>
diff --git a/arch/arm/cpu/armv7/ls102xa/fdt.c b/arch/arm/cpu/armv7/ls102xa/fdt.c
index 0ab9e9092d04..ea068727f57a 100644
--- a/arch/arm/cpu/armv7/ls102xa/fdt.c
+++ b/arch/arm/cpu/armv7/ls102xa/fdt.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <clock_legacy.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/libfdt.h>
diff --git a/arch/arm/cpu/armv7/ls102xa/fsl_ls1_serdes.c b/arch/arm/cpu/armv7/ls102xa/fsl_ls1_serdes.c
index caf51e17b359..2683b59a2a0a 100644
--- a/arch/arm/cpu/armv7/ls102xa/fsl_ls1_serdes.c
+++ b/arch/arm/cpu/armv7/ls102xa/fsl_ls1_serdes.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/arch/fsl_serdes.h>
 #include <asm/arch/immap_ls102xa.h>
 #include <linux/errno.h>
diff --git a/arch/arm/cpu/armv7/s5p-common/cpu_info.c b/arch/arm/cpu/armv7/s5p-common/cpu_info.c
index fb2920950d42..722810276dec 100644
--- a/arch/arm/cpu/armv7/s5p-common/cpu_info.c
+++ b/arch/arm/cpu/armv7/s5p-common/cpu_info.c
@@ -7,6 +7,7 @@
 #include <display_options.h>
 #include <fdtdec.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clk.h>
diff --git a/arch/arm/cpu/armv7/stv0991/reset.c b/arch/arm/cpu/armv7/stv0991/reset.c
index fb67de10f483..1be1dc486d44 100644
--- a/arch/arm/cpu/armv7/stv0991/reset.c
+++ b/arch/arm/cpu/armv7/stv0991/reset.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/stv0991_wdru.h>
 #include <linux/delay.h>
diff --git a/arch/arm/cpu/armv7/vf610/generic.c b/arch/arm/cpu/armv7/vf610/generic.c
index 83459204a8f5..297a3d2378a9 100644
--- a/arch/arm/cpu/armv7/vf610/generic.c
+++ b/arch/arm/cpu/armv7/vf610/generic.c
@@ -9,6 +9,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/arch/arm/cpu/armv7/virt-v7.c b/arch/arm/cpu/armv7/virt-v7.c
index 8731af9f6871..0031bf859754 100644
--- a/arch/arm/cpu/armv7/virt-v7.c
+++ b/arch/arm/cpu/armv7/virt-v7.c
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <asm/armv7.h>
 #include <asm/cache.h>
 #include <asm/gic.h>
diff --git a/arch/arm/cpu/armv7m/cache.c b/arch/arm/cpu/armv7m/cache.c
index d1aecf6a85cf..f87e1d393676 100644
--- a/arch/arm/cpu/armv7m/cache.c
+++ b/arch/arm/cpu/armv7m/cache.c
@@ -8,6 +8,7 @@
 #include <cpu_func.h>
 #include <errno.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/armv7m.h>
 #include <asm/cache.h>
 #include <asm/io.h>
diff --git a/arch/arm/cpu/armv8/cache_v8.c b/arch/arm/cpu/armv8/cache_v8.c
index 0930d206ccdd..ad019f4fe2e0 100644
--- a/arch/arm/cpu/armv8/cache_v8.c
+++ b/arch/arm/cpu/armv8/cache_v8.c
@@ -11,6 +11,7 @@
 #include <cpu_func.h>
 #include <hang.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/system.h>
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
index f19b02dc4733..bf38eacb8eb9 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
@@ -12,6 +12,7 @@
 #include <hang.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
index 0553faf90e05..09750dc2e884 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
@@ -8,6 +8,7 @@
 #include <clock_legacy.h>
 #include <efi_loader.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/u-boot.h>
 #include <linux/libfdt.h>
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_serdes.c b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_serdes.c
index 4a2f22d03661..86b2d335ab08 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_serdes.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_serdes.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
index 63d34e1ec039..c32e7f20962e 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clock_legacy.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/compiler.h>
 #include <asm/io.h>
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 f14636a0f5dc..34d5fe81d0e1 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 <stdio.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c
index 767359fa5bd6..3240f8ef97f8 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <clock_legacy.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/compiler.h>
 #include <fsl_ifc.h>
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/icid.c b/arch/arm/cpu/armv8/fsl-layerscape/icid.c
index 82c5a8b123a1..84ca91a0cc8e 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/icid.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/icid.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/mp.c b/arch/arm/cpu/armv8/fsl-layerscape/mp.c
index 8675007da513..fb5d8a2a6346 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/mp.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/mp.c
@@ -7,6 +7,7 @@
 #include <cpu_func.h>
 #include <image.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ppa.c b/arch/arm/cpu/armv8/fsl-layerscape/ppa.c
index f26be5a25b02..0d458d0273ef 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/ppa.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/ppa.c
@@ -7,6 +7,7 @@
 #include <malloc.h>
 #include <config.h>
 #include <errno.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/system.h>
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/soc.c b/arch/arm/cpu/armv8/fsl-layerscape/soc.c
index fde893e8c9bd..a4882d8599c5 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 <stdio.h>
 #include <linux/sizes.h>
 #include <log.h>
 #include <asm/arch/fsl_serdes.h>
diff --git a/arch/arm/cpu/armv8/s32v234/cpu.c b/arch/arm/cpu/armv8/s32v234/cpu.c
index 8ee3adc80584..8912eb725e20 100644
--- a/arch/arm/cpu/armv8/s32v234/cpu.c
+++ b/arch/arm/cpu/armv8/s32v234/cpu.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/system.h>
diff --git a/arch/arm/cpu/armv8/s32v234/generic.c b/arch/arm/cpu/armv8/s32v234/generic.c
index 5a49a8a4a0de..59900958cd20 100644
--- a/arch/arm/cpu/armv8/s32v234/generic.c
+++ b/arch/arm/cpu/armv8/s32v234/generic.c
@@ -8,6 +8,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
diff --git a/arch/arm/cpu/armv8/sec_firmware.c b/arch/arm/cpu/armv8/sec_firmware.c
index 46d58d176c53..8f7eef0d4c0e 100644
--- a/arch/arm/cpu/armv8/sec_firmware.c
+++ b/arch/arm/cpu/armv8/sec_firmware.c
@@ -9,6 +9,7 @@
 #include <fdt_support.h>
 #include <image.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/ptrace.h>
diff --git a/arch/arm/cpu/armv8/spin_table.c b/arch/arm/cpu/armv8/spin_table.c
index 6aafb3b6ea3c..f687b54d0e19 100644
--- a/arch/arm/cpu/armv8/spin_table.c
+++ b/arch/arm/cpu/armv8/spin_table.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/libfdt.h>
 #include <asm/spin_table.h>
 #include <linux/string.h>
diff --git a/arch/arm/cpu/pxa/cpuinfo.c b/arch/arm/cpu/pxa/cpuinfo.c
index 0d9542f998e4..582c1fcaa7a7 100644
--- a/arch/arm/cpu/pxa/cpuinfo.c
+++ b/arch/arm/cpu/pxa/cpuinfo.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <errno.h>
 #include <linux/compiler.h>
diff --git a/arch/arm/include/asm/arch-mx7ulp/scg.h b/arch/arm/include/asm/arch-mx7ulp/scg.h
index 3b5b7f6803ce..71e241db288f 100644
--- a/arch/arm/include/asm/arch-mx7ulp/scg.h
+++ b/arch/arm/include/asm/arch-mx7ulp/scg.h
@@ -6,6 +6,8 @@
 #ifndef _ASM_ARCH_SCG_H
 #define _ASM_ARCH_SCG_H
 
+#include <stdio.h>
+
 #ifdef CONFIG_CLK_DEBUG
 #define clk_debug(fmt, args...)	printf(fmt, ##args)
 #else
diff --git a/arch/arm/lib/bdinfo.c b/arch/arm/lib/bdinfo.c
index 73b9ed0815ab..3cca68e24fc0 100644
--- a/arch/arm/lib/bdinfo.c
+++ b/arch/arm/lib/bdinfo.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index 9dbca39b52ad..613e7abeaae5 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 <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <dm/root.h>
diff --git a/arch/arm/lib/cache-cp15.c b/arch/arm/lib/cache-cp15.c
index d33136a9dbc1..e0e273495b30 100644
--- a/arch/arm/lib/cache-cp15.c
+++ b/arch/arm/lib/cache-cp15.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/system.h>
 #include <asm/cache.h>
diff --git a/arch/arm/lib/cache-pl310.c b/arch/arm/lib/cache-pl310.c
index bbaaaa4157a5..7976d854c983 100644
--- a/arch/arm/lib/cache-pl310.c
+++ b/arch/arm/lib/cache-pl310.c
@@ -4,6 +4,7 @@
  * Texas Instruments, <www.ti.com>
  * Aneesh V <aneesh at ti.com>
  */
+#include <stdio.h>
 #include <linux/types.h>
 #include <asm/io.h>
 #include <asm/armv7.h>
diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c
index b494611d6e8d..4956942002da 100644
--- a/arch/arm/lib/cache.c
+++ b/arch/arm/lib/cache.c
@@ -10,6 +10,7 @@
 #include <cpu_func.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 
diff --git a/arch/arm/lib/eabi_compat.c b/arch/arm/lib/eabi_compat.c
index 35ce83a6facd..9e2912ffe393 100644
--- a/arch/arm/lib/eabi_compat.c
+++ b/arch/arm/lib/eabi_compat.c
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 int raise (int signum)
diff --git a/arch/arm/lib/image.c b/arch/arm/lib/image.c
index e394c1ad9093..044fe573c127 100644
--- a/arch/arm/lib/image.c
+++ b/arch/arm/lib/image.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <image.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
 #include <linux/sizes.h>
diff --git a/arch/arm/lib/interrupts.c b/arch/arm/lib/interrupts.c
index 05bb1a38b35e..af65144f7a78 100644
--- a/arch/arm/lib/interrupts.c
+++ b/arch/arm/lib/interrupts.c
@@ -22,6 +22,7 @@
 #include <cpu_func.h>
 #include <efi_loader.h>
 #include <irq_func.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/proc-armv/ptrace.h>
 #include <asm/ptrace.h>
diff --git a/arch/arm/lib/interrupts_64.c b/arch/arm/lib/interrupts_64.c
index c653e67db286..6c6a81529f06 100644
--- a/arch/arm/lib/interrupts_64.c
+++ b/arch/arm/lib/interrupts_64.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/ptrace.h>
 #include <irq_func.h>
diff --git a/arch/arm/lib/interrupts_m.c b/arch/arm/lib/interrupts_m.c
index 2ae1c5ba76c9..5561f3475c7d 100644
--- a/arch/arm/lib/interrupts_m.c
+++ b/arch/arm/lib/interrupts_m.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <irq_func.h>
+#include <stdio.h>
 
 /*
  * Upon exception entry ARMv7-M processors automatically save stack
diff --git a/arch/arm/lib/psci-dt.c b/arch/arm/lib/psci-dt.c
index 6acefab42c02..5c6f7bfe4b09 100644
--- a/arch/arm/lib/psci-dt.c
+++ b/arch/arm/lib/psci-dt.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
diff --git a/arch/arm/lib/semihosting.c b/arch/arm/lib/semihosting.c
index 73c860dbb3dd..d186584c3794 100644
--- a/arch/arm/lib/semihosting.c
+++ b/arch/arm/lib/semihosting.c
@@ -15,6 +15,7 @@
 #include <command.h>
 #include <env.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #define SYSOPEN		0x01
diff --git a/arch/arm/lib/zimage.c b/arch/arm/lib/zimage.c
index 477ea94997de..b5155c2a9143 100644
--- a/arch/arm/lib/zimage.c
+++ b/arch/arm/lib/zimage.c
@@ -8,6 +8,7 @@
  */
 #include <common.h>
 #include <image.h>
+#include <stdio.h>
 
 #define	LINUX_ARM_ZIMAGE_MAGIC	0x016f2818
 #define	BAREBOX_IMAGE_MAGIC	0x00786f62
diff --git a/arch/arm/mach-at91/arm920t/clock.c b/arch/arm/mach-at91/arm920t/clock.c
index 2c8fbe6d2846..57cb159d1f60 100644
--- a/arch/arm/mach-at91/arm920t/clock.c
+++ b/arch/arm/mach-at91/arm920t/clock.c
@@ -8,6 +8,7 @@
  * Copyright (C) 2009 Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
  */
 #include <common.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-at91/arm926ejs/clock.c b/arch/arm/mach-at91/arm926ejs/clock.c
index 9b97987fecb8..97e45fffd1d1 100644
--- a/arch/arm/mach-at91/arm926ejs/clock.c
+++ b/arch/arm/mach-at91/arm926ejs/clock.c
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-at91/arm926ejs/cpu.c b/arch/arm/mach-at91/arm926ejs/cpu.c
index 761edb6df589..4dbb806979de 100644
--- a/arch/arm/mach-at91/arm926ejs/cpu.c
+++ b/arch/arm/mach-at91/arm926ejs/cpu.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
diff --git a/arch/arm/mach-at91/arm926ejs/eflash.c b/arch/arm/mach-at91/arm926ejs/eflash.c
index ef579e6089ce..ca52791d5bc4 100644
--- a/arch/arm/mach-at91/arm926ejs/eflash.c
+++ b/arch/arm/mach-at91/arm926ejs/eflash.c
@@ -46,6 +46,7 @@
 #include <display_options.h>
 #include <flash.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/at91_common.h>
diff --git a/arch/arm/mach-at91/armv7/clock.c b/arch/arm/mach-at91/armv7/clock.c
index aa6bb6bf31e0..7fab52d1e7e3 100644
--- a/arch/arm/mach-at91/armv7/clock.c
+++ b/arch/arm/mach-at91/armv7/clock.c
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
diff --git a/arch/arm/mach-at91/armv7/cpu.c b/arch/arm/mach-at91/armv7/cpu.c
index a8f4356ce94f..22a03c82a2a0 100644
--- a/arch/arm/mach-at91/armv7/cpu.c
+++ b/arch/arm/mach-at91/armv7/cpu.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <init.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
diff --git a/arch/arm/mach-at91/clock.c b/arch/arm/mach-at91/clock.c
index 5b8ce52f5c1e..f9723bd145e4 100644
--- a/arch/arm/mach-at91/clock.c
+++ b/arch/arm/mach-at91/clock.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <stdio.h>
 #include <time.h>
 #include <wdt.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-at91/phy.c b/arch/arm/mach-at91/phy.c
index b68e4bd355fb..c9e2db787dfe 100644
--- a/arch/arm/mach-at91/phy.c
+++ b/arch/arm/mach-at91/phy.c
@@ -12,6 +12,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/hardware.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-at91/spl.c b/arch/arm/mach-at91/spl.c
index 156150c89c8b..217fcfa66895 100644
--- a/arch/arm/mach-at91/spl.c
+++ b/arch/arm/mach-at91/spl.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <hang.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/at91_common.h>
 #include <asm/arch/at91_wdt.h>
diff --git a/arch/arm/mach-bcm283x/mbox.c b/arch/arm/mach-bcm283x/mbox.c
index 940699337f1e..ed724497b0c5 100644
--- a/arch/arm/mach-bcm283x/mbox.c
+++ b/arch/arm/mach-bcm283x/mbox.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-bcm283x/msg.c b/arch/arm/mach-bcm283x/msg.c
index 347aece3cd8d..ac43d51e64d4 100644
--- a/arch/arm/mach-bcm283x/msg.c
+++ b/arch/arm/mach-bcm283x/msg.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <memalign.h>
 #include <phys2bus.h>
+#include <stdio.h>
 #include <asm/arch/mbox.h>
 #include <linux/delay.h>
 
diff --git a/arch/arm/mach-davinci/misc.c b/arch/arm/mach-davinci/misc.c
index 90b38b7e020e..d8a424fd028f 100644
--- a/arch/arm/mach-davinci/misc.c
+++ b/arch/arm/mach-davinci/misc.c
@@ -14,6 +14,7 @@
 #include <init.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/hardware.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-davinci/spl.c b/arch/arm/mach-davinci/spl.c
index 5fea935d6e4e..9e14284ab02f 100644
--- a/arch/arm/mach-davinci/spl.c
+++ b/arch/arm/mach-davinci/spl.c
@@ -8,6 +8,7 @@
 #include <hang.h>
 #include <init.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <asm/utils.h>
 #include <nand.h>
diff --git a/arch/arm/mach-exynos/clock.c b/arch/arm/mach-exynos/clock.c
index 6c21fd642cd4..76bb97e37325 100644
--- a/arch/arm/mach-exynos/clock.c
+++ b/arch/arm/mach-exynos/clock.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/arch/arm/mach-imx/cache.c b/arch/arm/mach-imx/cache.c
index 4e3b49a3fdfc..ce49253d0b40 100644
--- a/arch/arm/mach-imx/cache.c
+++ b/arch/arm/mach-imx/cache.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <asm/armv7.h>
 #include <asm/cache.h>
 #include <asm/pl310.h>
diff --git a/arch/arm/mach-imx/cmd_nandbcb.c b/arch/arm/mach-imx/cmd_nandbcb.c
index 21010d455abe..c2ca33888b50 100644
--- a/arch/arm/mach-imx/cmd_nandbcb.c
+++ b/arch/arm/mach-imx/cmd_nandbcb.c
@@ -16,6 +16,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <nand.h>
+#include <stdio.h>
 #include <dm/devres.h>
 #include <linux/bug.h>
 #include <linux/string.h>
diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c
index 3bd60a5cdbab..c2f0f510e83a 100644
--- a/arch/arm/mach-imx/cpu.c
+++ b/arch/arm/mach-imx/cpu.c
@@ -13,6 +13,7 @@
 #include <log.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/errno.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-imx/hab.c b/arch/arm/mach-imx/hab.c
index 7510735bf463..0d2cbf989635 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 <stdio.h>
 #include <asm/io.h>
 #include <asm/system.h>
 #include <asm/arch/clock.h>
diff --git a/arch/arm/mach-imx/i2c-mxv7.c b/arch/arm/mach-imx/i2c-mxv7.c
index 5e3d79b887f0..5f5103a12a62 100644
--- a/arch/arm/mach-imx/i2c-mxv7.c
+++ b/arch/arm/mach-imx/i2c-mxv7.c
@@ -4,6 +4,7 @@
  */
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
diff --git a/arch/arm/mach-imx/imx8/ahab.c b/arch/arm/mach-imx/imx8/ahab.c
index 0df61fca4769..69033420ee5a 100644
--- a/arch/arm/mach-imx/imx8/ahab.c
+++ b/arch/arm/mach-imx/imx8/ahab.c
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <errno.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/sci/sci.h>
diff --git a/arch/arm/mach-imx/imx8/clock.c b/arch/arm/mach-imx/imx8/clock.c
index 9941b57b4be5..9288282dfb03 100644
--- a/arch/arm/mach-imx/imx8/clock.c
+++ b/arch/arm/mach-imx/imx8/clock.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/errno.h>
 #include <asm/arch/clock.h>
diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c
index 293c931b2ffa..b9cbdc64164d 100644
--- a/arch/arm/mach-imx/imx8/cpu.c
+++ b/arch/arm/mach-imx/imx8/cpu.c
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <dm/device-internal.h>
diff --git a/arch/arm/mach-imx/imx8/fdt.c b/arch/arm/mach-imx/imx8/fdt.c
index 6c473ddcc9c9..0fd0c4bca097 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 <stdio.h>
 #include <asm/arch/sci/sci.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/global_data.h>
diff --git a/arch/arm/mach-imx/imx8/image.c b/arch/arm/mach-imx/imx8/image.c
index 638aac2eafe5..9b4fc6f09059 100644
--- a/arch/arm/mach-imx/imx8/image.c
+++ b/arch/arm/mach-imx/imx8/image.c
@@ -7,6 +7,7 @@
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <mmc.h>
 #include <spi_flash.h>
diff --git a/arch/arm/mach-imx/imx8/iomux.c b/arch/arm/mach-imx/imx8/iomux.c
index 9c3cfbf0068c..0f4f0cac1077 100644
--- a/arch/arm/mach-imx/imx8/iomux.c
+++ b/arch/arm/mach-imx/imx8/iomux.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/iomux.h>
diff --git a/arch/arm/mach-imx/imx8/misc.c b/arch/arm/mach-imx/imx8/misc.c
index de19955e2f77..e83c0517fca7 100644
--- a/arch/arm/mach-imx/imx8/misc.c
+++ b/arch/arm/mach-imx/imx8/misc.c
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0+
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/sci/sci.h>
 #include <asm/mach-imx/sys_proto.h>
 #include <imx_sip.h>
diff --git a/arch/arm/mach-imx/imx8/parse-container.c b/arch/arm/mach-imx/imx8/parse-container.c
index ed69abc76d8c..3a1c8c7a5e5f 100644
--- a/arch/arm/mach-imx/imx8/parse-container.c
+++ b/arch/arm/mach-imx/imx8/parse-container.c
@@ -7,6 +7,7 @@
 #include <errno.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/arch/image.h>
 #include <asm/arch/sci/sci.h>
 #include <linux/string.h>
diff --git a/arch/arm/mach-imx/imx8/snvs_security_sc.c b/arch/arm/mach-imx/imx8/snvs_security_sc.c
index 6f9b1c99fcd2..84d400f02837 100644
--- a/arch/arm/mach-imx/imx8/snvs_security_sc.c
+++ b/arch/arm/mach-imx/imx8/snvs_security_sc.c
@@ -15,6 +15,7 @@
 #include <log.h>
 #include <stddef.h>
 #include <common.h>
+#include <stdio.h>
 #include <asm/arch/sci/sci.h>
 #include <asm/arch-imx8/imx8-pins.h>
 #include <asm/arch-imx8/snvs_security_sc.h>
diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mm.c b/arch/arm/mach-imx/imx8m/clock_imx8mm.c
index 7f99c5c4b916..ff3943e5106c 100644
--- a/arch/arm/mach-imx/imx8m/clock_imx8mm.c
+++ b/arch/arm/mach-imx/imx8m/clock_imx8mm.c
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/sys_proto.h>
diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mq.c b/arch/arm/mach-imx/imx8m/clock_imx8mq.c
index 759ec6d114eb..444e9b7feee4 100644
--- a/arch/arm/mach-imx/imx8m/clock_imx8mq.c
+++ b/arch/arm/mach-imx/imx8m/clock_imx8mq.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c
index a6e386fda798..4b02c70e6d52 100644
--- a/arch/arm/mach-imx/imx8m/soc.c
+++ b/arch/arm/mach-imx/imx8m/soc.c
@@ -9,6 +9,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-imx/imx_bootaux.c b/arch/arm/mach-imx/imx_bootaux.c
index e1fc4b3e19af..46a4d3661d10 100644
--- a/arch/arm/mach-imx/imx_bootaux.c
+++ b/arch/arm/mach-imx/imx_bootaux.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/mach-imx/sys_proto.h>
 #include <command.h>
diff --git a/arch/arm/mach-imx/mx5/clock.c b/arch/arm/mach-imx/mx5/clock.c
index cc93716c74e4..c6a14a6a7ec9 100644
--- a/arch/arm/mach-imx/mx5/clock.c
+++ b/arch/arm/mach-imx/mx5/clock.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <command.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/imx-regs.h>
diff --git a/arch/arm/mach-imx/mx6/clock.c b/arch/arm/mach-imx/mx6/clock.c
index c40d8855125f..c91259f4bec3 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 <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 #include <linux/errno.h>
diff --git a/arch/arm/mach-imx/mx6/ddr.c b/arch/arm/mach-imx/mx6/ddr.c
index 16df71083db0..fc1479629396 100644
--- a/arch/arm/mach-imx/mx6/ddr.c
+++ b/arch/arm/mach-imx/mx6/ddr.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <hang.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/types.h>
 #include <asm/arch/clock.h>
diff --git a/arch/arm/mach-imx/mx6/litesom.c b/arch/arm/mach-imx/mx6/litesom.c
index 17108a839814..5514389ca2af 100644
--- a/arch/arm/mach-imx/mx6/litesom.c
+++ b/arch/arm/mach-imx/mx6/litesom.c
@@ -5,6 +5,7 @@
  */
 
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/imx-regs.h>
diff --git a/arch/arm/mach-imx/mx6/module_fuse.c b/arch/arm/mach-imx/mx6/module_fuse.c
index ced49dcad33d..569c8dc0b139 100644
--- a/arch/arm/mach-imx/mx6/module_fuse.c
+++ b/arch/arm/mach-imx/mx6/module_fuse.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <fdt_support.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/imx-regs.h>
diff --git a/arch/arm/mach-imx/mx6/mp.c b/arch/arm/mach-imx/mx6/mp.c
index 2fdf070a08b4..fe591a8ffc39 100644
--- a/arch/arm/mach-imx/mx6/mp.c
+++ b/arch/arm/mach-imx/mx6/mp.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/sys_proto.h>
diff --git a/arch/arm/mach-imx/mx7/clock.c b/arch/arm/mach-imx/mx7/clock.c
index 56e0cfa98876..b2d566737a40 100644
--- a/arch/arm/mach-imx/mx7/clock.c
+++ b/arch/arm/mach-imx/mx7/clock.c
@@ -11,6 +11,7 @@
 #include <command.h>
 #include <div64.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-imx/mx7/clock_slice.c b/arch/arm/mach-imx/mx7/clock_slice.c
index dd731d949621..ce2f59cd098e 100644
--- a/arch/arm/mach-imx/mx7/clock_slice.c
+++ b/arch/arm/mach-imx/mx7/clock_slice.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <div64.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/imx-regs.h>
diff --git a/arch/arm/mach-imx/mx7ulp/clock.c b/arch/arm/mach-imx/mx7ulp/clock.c
index 467832074afb..10390a74165b 100644
--- a/arch/arm/mach-imx/mx7ulp/clock.c
+++ b/arch/arm/mach-imx/mx7ulp/clock.c
@@ -7,6 +7,7 @@
 #include <clock_legacy.h>
 #include <command.h>
 #include <div64.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <errno.h>
diff --git a/arch/arm/mach-imx/mx7ulp/pcc.c b/arch/arm/mach-imx/mx7ulp/pcc.c
index aa7ea86a443e..a70131dfa3b3 100644
--- a/arch/arm/mach-imx/mx7ulp/pcc.c
+++ b/arch/arm/mach-imx/mx7ulp/pcc.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <div64.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <errno.h>
 #include <asm/arch/imx-regs.h>
diff --git a/arch/arm/mach-imx/mx7ulp/scg.c b/arch/arm/mach-imx/mx7ulp/scg.c
index 4c066557c1ca..6c24ec2d819a 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 <stdio.h>
 #include <asm/io.h>
 #include <errno.h>
 #include <asm/arch/imx-regs.h>
diff --git a/arch/arm/mach-imx/mx7ulp/soc.c b/arch/arm/mach-imx/mx7ulp/soc.c
index 8dd6b4d40e77..e67121c55237 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 <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c
index 982fb47bc89d..e78d2515e2bf 100644
--- a/arch/arm/mach-imx/spl.c
+++ b/arch/arm/mach-imx/spl.c
@@ -10,6 +10,7 @@
 #include <hang.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
diff --git a/arch/arm/mach-imx/spl_imx_romapi.c b/arch/arm/mach-imx/spl_imx_romapi.c
index dc13a397ea8b..8750fbdaf4e9 100644
--- a/arch/arm/mach-imx/spl_imx_romapi.c
+++ b/arch/arm/mach-imx/spl_imx_romapi.c
@@ -7,6 +7,7 @@
 #include <errno.h>
 #include <image.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/libfdt.h>
 #include <spl.h>
diff --git a/arch/arm/mach-imx/video.c b/arch/arm/mach-imx/video.c
index 4d76ecc29694..fbf2a73ea1de 100644
--- a/arch/arm/mach-imx/video.c
+++ b/arch/arm/mach-imx/video.c
@@ -2,6 +2,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <stdio.h>
 #include <linux/errno.h>
 #include <asm/mach-imx/video.h>
 #include <linux/string.h>
diff --git a/arch/arm/mach-k3/am6_init.c b/arch/arm/mach-k3/am6_init.c
index 603834e5078b..d4c9780c6bb8 100644
--- a/arch/arm/mach-k3/am6_init.c
+++ b/arch/arm/mach-k3/am6_init.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <fdt_support.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <spl.h>
 #include <asm/arch/hardware.h>
diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c
index 97c52dacea80..572b7116c8c3 100644
--- a/arch/arm/mach-k3/common.c
+++ b/arch/arm/mach-k3/common.c
@@ -12,6 +12,7 @@
 #include <init.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/printk.h>
 #include <linux/string.h>
diff --git a/arch/arm/mach-k3/j721e_init.c b/arch/arm/mach-k3/j721e_init.c
index a36e4ed603b1..df899fa0fb3a 100644
--- a/arch/arm/mach-k3/j721e_init.c
+++ b/arch/arm/mach-k3/j721e_init.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <init.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/armv7_mpu.h>
 #include <asm/arch/hardware.h>
diff --git a/arch/arm/mach-k3/security.c b/arch/arm/mach-k3/security.c
index 66f90a5a34df..484884819b4d 100644
--- a/arch/arm/mach-k3/security.c
+++ b/arch/arm/mach-k3/security.c
@@ -12,6 +12,7 @@
 #include <hang.h>
 #include <image.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include <mach/spl.h>
diff --git a/arch/arm/mach-keystone/cmd_clock.c b/arch/arm/mach-keystone/cmd_clock.c
index 15fa0ebddeaa..22277b5987e0 100644
--- a/arch/arm/mach-keystone/cmd_clock.c
+++ b/arch/arm/mach-keystone/cmd_clock.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/psc_defs.h>
diff --git a/arch/arm/mach-keystone/cmd_mon.c b/arch/arm/mach-keystone/cmd_mon.c
index f9d5cda827f3..94e55331d5c7 100644
--- a/arch/arm/mach-keystone/cmd_mon.c
+++ b/arch/arm/mach-keystone/cmd_mon.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <command.h>
 #include <image.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include <mach/mon.h>
 asm(".arch_extension sec\n\t");
diff --git a/arch/arm/mach-keystone/ddr3.c b/arch/arm/mach-keystone/ddr3.c
index 7dea600d509b..b646599587a9 100644
--- a/arch/arm/mach-keystone/ddr3.c
+++ b/arch/arm/mach-keystone/ddr3.c
@@ -8,6 +8,7 @@
 
 #include <cpu_func.h>
 #include <env.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <common.h>
 #include <asm/arch/msmc.h>
diff --git a/arch/arm/mach-keystone/ddr3_spd.c b/arch/arm/mach-keystone/ddr3_spd.c
index e84f3253b394..a7aa7f365210 100644
--- a/arch/arm/mach-keystone/ddr3_spd.c
+++ b/arch/arm/mach-keystone/ddr3_spd.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #include <i2c.h>
diff --git a/arch/arm/mach-keystone/init.c b/arch/arm/mach-keystone/init.c
index 88e8912959fa..1c67a1fdfe8c 100644
--- a/arch/arm/mach-keystone/init.c
+++ b/arch/arm/mach-keystone/init.c
@@ -10,6 +10,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <ns16550.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/arch/msmc.h>
diff --git a/arch/arm/mach-keystone/keystone.c b/arch/arm/mach-keystone/keystone.c
index efaabca5a7e7..2337adb6ef2d 100644
--- a/arch/arm/mach-keystone/keystone.c
+++ b/arch/arm/mach-keystone/keystone.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <env.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/psc_defs.h>
 #include <asm/arch/hardware.h>
diff --git a/arch/arm/mach-keystone/mon.c b/arch/arm/mach-keystone/mon.c
index bbae14c58f1e..af038dec7ae6 100644
--- a/arch/arm/mach-keystone/mon.c
+++ b/arch/arm/mach-keystone/mon.c
@@ -7,6 +7,7 @@
 
 #include <hang.h>
 #include <image.h>
+#include <stdio.h>
 #include <asm/unaligned.h>
 #include <common.h>
 #include <command.h>
diff --git a/arch/arm/mach-keystone/psc.c b/arch/arm/mach-keystone/psc.c
index 145aff8ac66f..6d68ecba4f8c 100644
--- a/arch/arm/mach-keystone/psc.c
+++ b/arch/arm/mach-keystone/psc.c
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-kirkwood/cpu.c b/arch/arm/mach-kirkwood/cpu.c
index beee83b22498..087240b4d3f6 100644
--- a/arch/arm/mach-kirkwood/cpu.c
+++ b/arch/arm/mach-kirkwood/cpu.c
@@ -13,6 +13,7 @@
 #include <log.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/arch/arm/mach-lpc32xx/cpu.c b/arch/arm/mach-lpc32xx/cpu.c
index df5006207612..cdc069639d5b 100644
--- a/arch/arm/mach-lpc32xx/cpu.c
+++ b/arch/arm/mach-lpc32xx/cpu.c
@@ -8,6 +8,7 @@
 #include <init.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/wdt.h>
diff --git a/arch/arm/mach-mediatek/mt7622/init.c b/arch/arm/mach-mediatek/mt7622/init.c
index 7f6ce80f37b2..ff07936be34c 100644
--- a/arch/arm/mach-mediatek/mt7622/init.c
+++ b/arch/arm/mach-mediatek/mt7622/init.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <fdtdec.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/armv8/mmu.h>
 #include <asm/cache.h>
 
diff --git a/arch/arm/mach-mediatek/mt7623/init.c b/arch/arm/mach-mediatek/mt7623/init.c
index 5d837e059719..7db7336494e3 100644
--- a/arch/arm/mach-mediatek/mt7623/init.c
+++ b/arch/arm/mach-mediatek/mt7623/init.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
diff --git a/arch/arm/mach-mediatek/mt7629/init.c b/arch/arm/mach-mediatek/mt7629/init.c
index 617a77e98003..5cee055f94c1 100644
--- a/arch/arm/mach-mediatek/mt7629/init.c
+++ b/arch/arm/mach-mediatek/mt7629/init.c
@@ -11,6 +11,7 @@
 #include <init.h>
 #include <log.h>
 #include <ram.h>
+#include <stdio.h>
 #include <asm/arch/misc.h>
 #include <asm/global_data.h>
 #include <asm/sections.h>
diff --git a/arch/arm/mach-mediatek/mt8516/init.c b/arch/arm/mach-mediatek/mt8516/init.c
index 0eb65aa76b5f..a09874280a91 100644
--- a/arch/arm/mach-mediatek/mt8516/init.c
+++ b/arch/arm/mach-mediatek/mt8516/init.c
@@ -12,6 +12,7 @@
 #include <fdtdec.h>
 #include <init.h>
 #include <ram.h>
+#include <stdio.h>
 #include <asm/arch/misc.h>
 #include <asm/armv8/mmu.h>
 #include <asm/cache.h>
diff --git a/arch/arm/mach-mediatek/mt8518/init.c b/arch/arm/mach-mediatek/mt8518/init.c
index 28b00c3dec89..2e4ab1fa37ab 100644
--- a/arch/arm/mach-mediatek/mt8518/init.c
+++ b/arch/arm/mach-mediatek/mt8518/init.c
@@ -13,6 +13,7 @@
 #include <fdtdec.h>
 #include <init.h>
 #include <ram.h>
+#include <stdio.h>
 #include <asm/arch/misc.h>
 #include <asm/armv8/mmu.h>
 #include <asm/cache.h>
diff --git a/arch/arm/mach-meson/board-axg.c b/arch/arm/mach-meson/board-axg.c
index 9ec63141ab15..7e07465d2540 100644
--- a/arch/arm/mach-meson/board-axg.c
+++ b/arch/arm/mach-meson/board-axg.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/boot.h>
 #include <asm/arch/eth.h>
 #include <asm/arch/axg.h>
diff --git a/arch/arm/mach-meson/board-common.c b/arch/arm/mach-meson/board-common.c
index 67d85d4e1ce2..a8d0254d5766 100644
--- a/arch/arm/mach-meson/board-common.c
+++ b/arch/arm/mach-meson/board-common.c
@@ -7,6 +7,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/boot.h>
 #include <env.h>
 #include <asm/cache.h>
diff --git a/arch/arm/mach-meson/board-g12a.c b/arch/arm/mach-meson/board-g12a.c
index bb75d4f8ad37..b698298e13e6 100644
--- a/arch/arm/mach-meson/board-g12a.c
+++ b/arch/arm/mach-meson/board-g12a.c
@@ -8,6 +8,7 @@
 #include <init.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/boot.h>
 #include <asm/arch/eth.h>
 #include <asm/arch/g12a.h>
diff --git a/arch/arm/mach-meson/board-gx.c b/arch/arm/mach-meson/board-gx.c
index 53756cc6875d..ec2f1c07314f 100644
--- a/arch/arm/mach-meson/board-gx.c
+++ b/arch/arm/mach-meson/board-gx.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/boot.h>
 #include <asm/arch/eth.h>
 #include <asm/arch/gx.h>
diff --git a/arch/arm/mach-meson/board-info.c b/arch/arm/mach-meson/board-info.c
index 28385488995a..fdc8df595568 100644
--- a/arch/arm/mach-meson/board-info.c
+++ b/arch/arm/mach-meson/board-info.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm.h>
diff --git a/arch/arm/mach-meson/sm.c b/arch/arm/mach-meson/sm.c
index e8036b94a0aa..a2a30eb80b00 100644
--- a/arch/arm/mach-meson/sm.c
+++ b/arch/arm/mach-meson/sm.c
@@ -9,6 +9,7 @@
 #include <command.h>
 #include <env.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/sm.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/arch/arm/mach-mvebu/armada3700/cpu.c b/arch/arm/mach-mvebu/armada3700/cpu.c
index 7ab5c653f1e1..2551c69d1959 100644
--- a/arch/arm/mach-mvebu/armada3700/cpu.c
+++ b/arch/arm/mach-mvebu/armada3700/cpu.c
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
 #include <linux/libfdt.h>
diff --git a/arch/arm/mach-mvebu/cpu.c b/arch/arm/mach-mvebu/cpu.c
index 19886c5f1399..d529407987e9 100644
--- a/arch/arm/mach-mvebu/cpu.c
+++ b/arch/arm/mach-mvebu/cpu.c
@@ -7,6 +7,7 @@
 #include <ahci.h>
 #include <cpu_func.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
diff --git a/arch/arm/mach-mvebu/dram.c b/arch/arm/mach-mvebu/dram.c
index 349e0cc4c180..8241926fad01 100644
--- a/arch/arm/mach-mvebu/dram.c
+++ b/arch/arm/mach-mvebu/dram.c
@@ -8,6 +8,7 @@
 #include <config.h>
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/arch/arm/mach-mvebu/mbus.c b/arch/arm/mach-mvebu/mbus.c
index f29abe591109..e754f122b1c4 100644
--- a/arch/arm/mach-mvebu/mbus.c
+++ b/arch/arm/mach-mvebu/mbus.c
@@ -48,6 +48,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec-38x.c b/arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec-38x.c
index 12596ec2d8bd..98354da9b273 100644
--- a/arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec-38x.c
+++ b/arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec-38x.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
diff --git a/arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c b/arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c
index 2454730e6d86..e4bec786429b 100644
--- a/arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c
+++ b/arch/arm/mach-mvebu/serdes/a38x/high_speed_env_spec.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
diff --git a/arch/arm/mach-mvebu/serdes/a38x/seq_exec.c b/arch/arm/mach-mvebu/serdes/a38x/seq_exec.c
index 2a51b7113ce4..a8f491b5b414 100644
--- a/arch/arm/mach-mvebu/serdes/a38x/seq_exec.c
+++ b/arch/arm/mach-mvebu/serdes/a38x/seq_exec.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
diff --git a/arch/arm/mach-mvebu/serdes/a38x/sys_env_lib.c b/arch/arm/mach-mvebu/serdes/a38x/sys_env_lib.c
index 3c4c7e01a1cd..1be86bc4ae1d 100644
--- a/arch/arm/mach-mvebu/serdes/a38x/sys_env_lib.c
+++ b/arch/arm/mach-mvebu/serdes/a38x/sys_env_lib.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
diff --git a/arch/arm/mach-omap2/abb.c b/arch/arm/mach-omap2/abb.c
index 722e6db0566d..c8c455fef1e0 100644
--- a/arch/arm/mach-omap2/abb.c
+++ b/arch/arm/mach-omap2/abb.c
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/omap_common.h>
 #include <asm/arch/clock.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-omap2/am33xx/chilisom.c b/arch/arm/mach-omap2/am33xx/chilisom.c
index 15b6b35ae7c1..8ab9b49a2f72 100644
--- a/arch/arm/mach-omap2/am33xx/chilisom.c
+++ b/arch/arm/mach-omap2/am33xx/chilisom.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/clk_synthesizer.h>
 #include <asm/arch/cpu.h>
diff --git a/arch/arm/mach-omap2/am33xx/clk_synthesizer.c b/arch/arm/mach-omap2/am33xx/clk_synthesizer.c
index ff1bfaf84b69..b2493d8179be 100644
--- a/arch/arm/mach-omap2/am33xx/clk_synthesizer.c
+++ b/arch/arm/mach-omap2/am33xx/clk_synthesizer.c
@@ -9,6 +9,7 @@
 
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/arch/clk_synthesizer.h>
 #include <i2c.h>
 
diff --git a/arch/arm/mach-omap2/am33xx/clock.c b/arch/arm/mach-omap2/am33xx/clock.c
index 8819062aaadd..4339817b556a 100644
--- a/arch/arm/mach-omap2/am33xx/clock.c
+++ b/arch/arm/mach-omap2/am33xx/clock.c
@@ -11,6 +11,7 @@
 #include <hang.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/hardware.h>
diff --git a/arch/arm/mach-omap2/am33xx/clock_am33xx.c b/arch/arm/mach-omap2/am33xx/clock_am33xx.c
index 2427933c8ba7..b5136f8f46c9 100644
--- a/arch/arm/mach-omap2/am33xx/clock_am33xx.c
+++ b/arch/arm/mach-omap2/am33xx/clock_am33xx.c
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/clock.h>
diff --git a/arch/arm/mach-omap2/am33xx/ddr.c b/arch/arm/mach-omap2/am33xx/ddr.c
index f8434ecf5758..4caa2d62ab25 100644
--- a/arch/arm/mach-omap2/am33xx/ddr.c
+++ b/arch/arm/mach-omap2/am33xx/ddr.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/ddr_defs.h>
 #include <asm/arch/sys_proto.h>
diff --git a/arch/arm/mach-omap2/am33xx/fdt.c b/arch/arm/mach-omap2/am33xx/fdt.c
index 2b4fd731db09..e5787df566b0 100644
--- a/arch/arm/mach-omap2/am33xx/fdt.c
+++ b/arch/arm/mach-omap2/am33xx/fdt.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <hang.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
diff --git a/arch/arm/mach-omap2/am33xx/sys_info.c b/arch/arm/mach-omap2/am33xx/sys_info.c
index 338f6afcae38..0809664b7ecd 100644
--- a/arch/arm/mach-omap2/am33xx/sys_info.c
+++ b/arch/arm/mach-omap2/am33xx/sys_info.c
@@ -13,6 +13,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/cpu.h>
diff --git a/arch/arm/mach-omap2/clocks-common.c b/arch/arm/mach-omap2/clocks-common.c
index 757fa3801a14..a151358f6e0f 100644
--- a/arch/arm/mach-omap2/clocks-common.c
+++ b/arch/arm/mach-omap2/clocks-common.c
@@ -17,6 +17,7 @@
 #include <i2c.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/omap_common.h>
 #include <asm/gpio.h>
 #include <asm/arch/clock.h>
diff --git a/arch/arm/mach-omap2/emif-common.c b/arch/arm/mach-omap2/emif-common.c
index 8346d899e475..7405d692e7b9 100644
--- a/arch/arm/mach-omap2/emif-common.c
+++ b/arch/arm/mach-omap2/emif-common.c
@@ -13,6 +13,7 @@
 #include <init.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/emif.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
diff --git a/arch/arm/mach-omap2/fdt-common.c b/arch/arm/mach-omap2/fdt-common.c
index b122db8bf7a9..e1d3a72ec6d7 100644
--- a/arch/arm/mach-omap2/fdt-common.c
+++ b/arch/arm/mach-omap2/fdt-common.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
diff --git a/arch/arm/mach-omap2/hwinit-common.c b/arch/arm/mach-omap2/hwinit-common.c
index 3da50f974dc0..b3ada7af6b86 100644
--- a/arch/arm/mach-omap2/hwinit-common.c
+++ b/arch/arm/mach-omap2/hwinit-common.c
@@ -15,6 +15,7 @@
 #include <fdtdec.h>
 #include <init.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/global_data.h>
 #include <linux/sizes.h>
diff --git a/arch/arm/mach-omap2/omap3/am35x_musb.c b/arch/arm/mach-omap2/omap3/am35x_musb.c
index ada70743a335..23b55d8d7059 100644
--- a/arch/arm/mach-omap2/omap3/am35x_musb.c
+++ b/arch/arm/mach-omap2/omap3/am35x_musb.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/am35x_def.h>
diff --git a/arch/arm/mach-omap2/omap3/board.c b/arch/arm/mach-omap2/omap3/board.c
index c741652f241f..30a3b02bb289 100644
--- a/arch/arm/mach-omap2/omap3/board.c
+++ b/arch/arm/mach-omap2/omap3/board.c
@@ -20,6 +20,7 @@
 #include <dm.h>
 #include <init.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/mem.h>
diff --git a/arch/arm/mach-omap2/omap3/sys_info.c b/arch/arm/mach-omap2/omap3/sys_info.c
index ac72633c20f8..5ed2c6bdeeeb 100644
--- a/arch/arm/mach-omap2/omap3/sys_info.c
+++ b/arch/arm/mach-omap2/omap3/sys_info.c
@@ -12,6 +12,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/mem.h>	/* get mem tables */
 #include <asm/arch/sys_proto.h>
diff --git a/arch/arm/mach-omap2/omap4/hw_data.c b/arch/arm/mach-omap2/omap4/hw_data.c
index d587a4d4def0..5f15e086c644 100644
--- a/arch/arm/mach-omap2/omap4/hw_data.c
+++ b/arch/arm/mach-omap2/omap4/hw_data.c
@@ -9,6 +9,7 @@
  * Sricharan R <r.sricharan at ti.com>
  */
 #include <common.h>
+#include <stdio.h>
 #include <asm/arch/omap.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/omap_common.h>
diff --git a/arch/arm/mach-omap2/omap5/dra7xx_iodelay.c b/arch/arm/mach-omap2/omap5/dra7xx_iodelay.c
index 8569eff31ab5..c5d51aabfc94 100644
--- a/arch/arm/mach-omap2/omap5/dra7xx_iodelay.c
+++ b/arch/arm/mach-omap2/omap5/dra7xx_iodelay.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <hang.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/utils.h>
 #include <asm/arch/dra7xx_iodelay.h>
 #include <asm/arch/omap.h>
diff --git a/arch/arm/mach-omap2/omap5/fdt.c b/arch/arm/mach-omap2/omap5/fdt.c
index bf4f015cf520..d6259434a235 100644
--- a/arch/arm/mach-omap2/omap5/fdt.c
+++ b/arch/arm/mach-omap2/omap5/fdt.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <hang.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
diff --git a/arch/arm/mach-omap2/omap5/hw_data.c b/arch/arm/mach-omap2/omap5/hw_data.c
index fa4e27063c53..d9c447c0e8d2 100644
--- a/arch/arm/mach-omap2/omap5/hw_data.c
+++ b/arch/arm/mach-omap2/omap5/hw_data.c
@@ -10,6 +10,7 @@
  */
 #include <common.h>
 #include <palmas.h>
+#include <stdio.h>
 #include <asm/arch/omap.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/omap_common.h>
diff --git a/arch/arm/mach-omap2/omap5/sdram.c b/arch/arm/mach-omap2/omap5/sdram.c
index 786da45fac83..a35218ae600f 100644
--- a/arch/arm/mach-omap2/omap5/sdram.c
+++ b/arch/arm/mach-omap2/omap5/sdram.c
@@ -11,6 +11,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/emif.h>
 #include <asm/arch/sys_proto.h>
 
diff --git a/arch/arm/mach-omap2/pipe3-phy.c b/arch/arm/mach-omap2/pipe3-phy.c
index 35ec81d31468..fb64961db4ba 100644
--- a/arch/arm/mach-omap2/pipe3-phy.c
+++ b/arch/arm/mach-omap2/pipe3-phy.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <sata.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-omap2/sec-common.c b/arch/arm/mach-omap2/sec-common.c
index 4fca91ffbd0f..03375321a471 100644
--- a/arch/arm/mach-omap2/sec-common.c
+++ b/arch/arm/mach-omap2/sec-common.c
@@ -19,6 +19,7 @@
 #include <init.h>
 #include <log.h>
 #include <stdarg.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #include <asm/arch/sys_proto.h>
diff --git a/arch/arm/mach-omap2/utils.c b/arch/arm/mach-omap2/utils.c
index 095b5d3c36f2..2e10ab983ebd 100644
--- a/arch/arm/mach-omap2/utils.c
+++ b/arch/arm/mach-omap2/utils.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <env.h>
 #include <part.h>
+#include <stdio.h>
 #include <asm/setup.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/omap_common.h>
diff --git a/arch/arm/mach-omap2/vc.c b/arch/arm/mach-omap2/vc.c
index b7f79800de57..5888bc86752c 100644
--- a/arch/arm/mach-omap2/vc.c
+++ b/arch/arm/mach-omap2/vc.c
@@ -15,6 +15,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/omap_common.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/clock.h>
diff --git a/arch/arm/mach-orion5x/cpu.c b/arch/arm/mach-orion5x/cpu.c
index aef399860060..f2c925b2d113 100644
--- a/arch/arm/mach-orion5x/cpu.c
+++ b/arch/arm/mach-orion5x/cpu.c
@@ -13,6 +13,7 @@
 #include <init.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
diff --git a/arch/arm/mach-owl/soc.c b/arch/arm/mach-owl/soc.c
index 4d2b9d0b0ebc..8ac35b56d42b 100644
--- a/arch/arm/mach-owl/soc.c
+++ b/arch/arm/mach-owl/soc.c
@@ -7,6 +7,7 @@
 
 #include <cpu_func.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <linux/arm-smccc.h>
diff --git a/arch/arm/mach-rmobile/board.c b/arch/arm/mach-rmobile/board.c
index a10371f74e0c..b10ac4a630fe 100644
--- a/arch/arm/mach-rmobile/board.c
+++ b/arch/arm/mach-rmobile/board.c
@@ -5,6 +5,7 @@
  */
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/io.h>
 
 #ifdef CONFIG_ARCH_RMOBILE_BOARD_STRING
diff --git a/arch/arm/mach-rmobile/cpu_info.c b/arch/arm/mach-rmobile/cpu_info.c
index fdbbd72e2857..afecb6388c95 100644
--- a/arch/arm/mach-rmobile/cpu_info.c
+++ b/arch/arm/mach-rmobile/cpu_info.c
@@ -5,6 +5,7 @@
  */
 #include <common.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <init.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-rockchip/board.c b/arch/arm/mach-rockchip/board.c
index 2c41e58f598d..fa7adacd5953 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 <stdio.h>
 #include <syscon.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/arch/arm/mach-rockchip/boot_mode.c b/arch/arm/mach-rockchip/boot_mode.c
index 10d8a1ac5e98..fefffc71ffaf 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 <stdio.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/boot_mode.h>
 #include <dm/device.h>
diff --git a/arch/arm/mach-rockchip/bootrom.c b/arch/arm/mach-rockchip/bootrom.c
index b36e559e8719..71ac29ee435a 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 <stdio.h>
 #include <asm/arch-rockchip/bootrom.h>
 #include <asm/arch-rockchip/boot_mode.h>
 #include <asm/cache.h>
diff --git a/arch/arm/mach-rockchip/cpu-info.c b/arch/arm/mach-rockchip/cpu-info.c
index d0f030109f45..8bde5bdd2980 100644
--- a/arch/arm/mach-rockchip/cpu-info.c
+++ b/arch/arm/mach-rockchip/cpu-info.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <env.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru.h>
diff --git a/arch/arm/mach-rockchip/misc.c b/arch/arm/mach-rockchip/misc.c
index 3cbb1794254d..ce75e7c1f2c3 100644
--- a/arch/arm/mach-rockchip/misc.c
+++ b/arch/arm/mach-rockchip/misc.c
@@ -14,6 +14,7 @@
 #include <dm.h>
 #include <hash.h>
 #include <log.h>
+#include <stdio.h>
 #include <dm/uclass-internal.h>
 #include <misc.h>
 #include <linux/string.h>
diff --git a/arch/arm/mach-rockchip/rk3288/rk3288.c b/arch/arm/mach-rockchip/rk3288/rk3288.c
index d54eedb6a588..97900fb3a311 100644
--- a/arch/arm/mach-rockchip/rk3288/rk3288.c
+++ b/arch/arm/mach-rockchip/rk3288/rk3288.c
@@ -9,6 +9,7 @@
 #include <clk.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/armv7.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-rockchip/rk3308/rk3308.c b/arch/arm/mach-rockchip/rk3308/rk3308.c
index 70fe0d0ac350..60566d092f62 100644
--- a/arch/arm/mach-rockchip/rk3308/rk3308.c
+++ b/arch/arm/mach-rockchip/rk3308/rk3308.c
@@ -5,6 +5,7 @@
 #include <common.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/grf_rk3308.h>
diff --git a/arch/arm/mach-rockchip/spl.c b/arch/arm/mach-rockchip/spl.c
index 4b5c22dc1382..6addcf4d962c 100644
--- a/arch/arm/mach-rockchip/spl.c
+++ b/arch/arm/mach-rockchip/spl.c
@@ -12,6 +12,7 @@
 #include <log.h>
 #include <ram.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/arch-rockchip/bootrom.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-rockchip/tpl.c b/arch/arm/mach-rockchip/tpl.c
index cc908e1b0e81..df052b82f2f4 100644
--- a/arch/arm/mach-rockchip/tpl.c
+++ b/arch/arm/mach-rockchip/tpl.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <ram.h>
 #include <spl.h>
+#include <stdio.h>
 #include <version.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/bootrom.h>
diff --git a/arch/arm/mach-s5pc1xx/clock.c b/arch/arm/mach-s5pc1xx/clock.c
index 555228a52083..e8809aa8ce2b 100644
--- a/arch/arm/mach-s5pc1xx/clock.c
+++ b/arch/arm/mach-s5pc1xx/clock.c
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/clk.h>
diff --git a/arch/arm/mach-snapdragon/dram.c b/arch/arm/mach-snapdragon/dram.c
index 2a161be137cc..c3e61007417a 100644
--- a/arch/arm/mach-snapdragon/dram.c
+++ b/arch/arm/mach-snapdragon/dram.c
@@ -12,6 +12,7 @@
 #include <part.h>
 #include <smem.h>
 #include <fdt_support.h>
+#include <stdio.h>
 #include <asm/arch/dram.h>
 
 #define SMEM_USABLE_RAM_PARTITION_TABLE 402
diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach-socfpga/board.c
index bdd5b863c459..a3733207d6ab 100644
--- a/arch/arm/mach-socfpga/board.c
+++ b/arch/arm/mach-socfpga/board.c
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <fdtdec.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/reset_manager.h>
 #include <asm/arch/clock_manager.h>
 #include <asm/arch/misc.h>
diff --git a/arch/arm/mach-socfpga/clock_manager_agilex.c b/arch/arm/mach-socfpga/clock_manager_agilex.c
index 4bf01f3c8ae4..0582b0b08573 100644
--- a/arch/arm/mach-socfpga/clock_manager_agilex.c
+++ b/arch/arm/mach-socfpga/clock_manager_agilex.c
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/arch/clock_manager.h>
 #include <asm/arch/system_manager.h>
 #include <asm/global_data.h>
diff --git a/arch/arm/mach-socfpga/clock_manager_arria10.c b/arch/arm/mach-socfpga/clock_manager_arria10.c
index 9f46df6b2f95..9379005444dc 100644
--- a/arch/arm/mach-socfpga/clock_manager_arria10.c
+++ b/arch/arm/mach-socfpga/clock_manager_arria10.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fdtdec.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <clk.h>
diff --git a/arch/arm/mach-socfpga/clock_manager_gen5.c b/arch/arm/mach-socfpga/clock_manager_gen5.c
index 8fa2760798b8..85a3d1926c1d 100644
--- a/arch/arm/mach-socfpga/clock_manager_gen5.c
+++ b/arch/arm/mach-socfpga/clock_manager_gen5.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 #include <dm.h>
diff --git a/arch/arm/mach-socfpga/clock_manager_s10.c b/arch/arm/mach-socfpga/clock_manager_s10.c
index 642dcbb0ac04..6355a3128330 100644
--- a/arch/arm/mach-socfpga/clock_manager_s10.c
+++ b/arch/arm/mach-socfpga/clock_manager_s10.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clock_manager.h>
diff --git a/arch/arm/mach-socfpga/mailbox_s10.c b/arch/arm/mach-socfpga/mailbox_s10.c
index 82dfcd124ca8..58d94694b7ed 100644
--- a/arch/arm/mach-socfpga/mailbox_s10.c
+++ b/arch/arm/mach-socfpga/mailbox_s10.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <hang.h>
+#include <stdio.h>
 #include <wait_bit.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-socfpga/misc_arria10.c b/arch/arm/mach-socfpga/misc_arria10.c
index bf978053ca64..dffe53a1a2e5 100644
--- a/arch/arm/mach-socfpga/misc_arria10.c
+++ b/arch/arm/mach-socfpga/misc_arria10.c
@@ -11,6 +11,7 @@
 #include <miiphy.h>
 #include <netdev.h>
 #include <ns16550.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <asm/arch/misc.h>
 #include <asm/arch/pinmux.h>
diff --git a/arch/arm/mach-socfpga/misc_gen5.c b/arch/arm/mach-socfpga/misc_gen5.c
index 4edf4f9b5c16..eed510d66e7d 100644
--- a/arch/arm/mach-socfpga/misc_gen5.c
+++ b/arch/arm/mach-socfpga/misc_gen5.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <env.h>
diff --git a/arch/arm/mach-socfpga/misc_s10.c b/arch/arm/mach-socfpga/misc_s10.c
index 1e9a3f62059f..abf0109ba3c1 100644
--- a/arch/arm/mach-socfpga/misc_s10.c
+++ b/arch/arm/mach-socfpga/misc_s10.c
@@ -13,6 +13,7 @@
 #include <log.h>
 #include <miiphy.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/reset_manager.h>
diff --git a/arch/arm/mach-socfpga/reset_manager_gen5.c b/arch/arm/mach-socfpga/reset_manager_gen5.c
index a65860ef021a..090567e9d8ab 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 <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/fpga_manager.h>
 #include <asm/arch/reset_manager.h>
diff --git a/arch/arm/mach-socfpga/spl_a10.c b/arch/arm/mach-socfpga/spl_a10.c
index 92231b5ba3c6..daf75addde71 100644
--- a/arch/arm/mach-socfpga/spl_a10.c
+++ b/arch/arm/mach-socfpga/spl_a10.c
@@ -7,6 +7,7 @@
 #include <cpu_func.h>
 #include <hang.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/pl310.h>
diff --git a/arch/arm/mach-socfpga/spl_gen5.c b/arch/arm/mach-socfpga/spl_gen5.c
index 7c716117685c..2cffc2ef778a 100644
--- a/arch/arm/mach-socfpga/spl_gen5.c
+++ b/arch/arm/mach-socfpga/spl_gen5.c
@@ -7,6 +7,7 @@
 #include <hang.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
diff --git a/arch/arm/mach-stm32mp/cmd_stm32key.c b/arch/arm/mach-stm32mp/cmd_stm32key.c
index ad857e95c462..d12e24f0fefc 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 <stdio.h>
 #include <dm/device.h>
 #include <dm/uclass.h>
 #include <linux/printk.h>
diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c b/arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c
index 0264eafed5eb..9ede9388f6dd 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 <stdio.h>
 #include <asm/arch/stm32prog.h>
 #include <linux/printk.h>
 #include <linux/string.h>
diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
index 3ac36bcc8d30..4da58041c057 100644
--- a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
+++ b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c
@@ -10,6 +10,7 @@
 #include <misc.h>
 #include <mmc.h>
 #include <part.h>
+#include <stdio.h>
 #include <asm/arch/stm32mp1_smc.h>
 #include <asm/global_data.h>
 #include <dm/uclass.h>
diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c
index 194bdbd75f40..c37dca677ead 100644
--- a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c
+++ b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c
@@ -9,6 +9,7 @@
 #include <dfu.h>
 #include <malloc.h>
 #include <serial.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <asm/global_data.h>
 #include <dm/lists.h>
diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_usb.c
index 33bf7a44b38b..bcc9239ba92f 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 <stdio.h>
 #include <usb.h>
 #include <asm/arch/stm32prog.h>
 #include <asm/arch/sys_proto.h>
diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm32mp/cpu.c
index cd27a774d446..4ded59569708 100644
--- a/arch/arm/mach-stm32mp/cpu.c
+++ b/arch/arm/mach-stm32mp/cpu.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <misc.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/bsec.h>
diff --git a/arch/arm/mach-stm32mp/fdt.c b/arch/arm/mach-stm32mp/fdt.c
index ded804403e31..1bfa19207d11 100644
--- a/arch/arm/mach-stm32mp/fdt.c
+++ b/arch/arm/mach-stm32mp/fdt.c
@@ -7,6 +7,7 @@
 #include <fdtdec.h>
 #include <fdt_support.h>
 #include <log.h>
+#include <stdio.h>
 #include <tee.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/u-boot.h>
diff --git a/arch/arm/mach-stm32mp/spl.c b/arch/arm/mach-stm32mp/spl.c
index ab467de231ab..9d951ce15f96 100644
--- a/arch/arm/mach-stm32mp/spl.c
+++ b/arch/arm/mach-stm32mp/spl.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-sunxi/clock_sun4i.c b/arch/arm/mach-sunxi/clock_sun4i.c
index 57ee018eaa2b..bd9f476543d8 100644
--- a/arch/arm/mach-sunxi/clock_sun4i.c
+++ b/arch/arm/mach-sunxi/clock_sun4i.c
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/gpio.h>
diff --git a/arch/arm/mach-sunxi/cpu_info.c b/arch/arm/mach-sunxi/cpu_info.c
index 875e5a1a8a8e..5198fb555a9c 100644
--- a/arch/arm/mach-sunxi/cpu_info.c
+++ b/arch/arm/mach-sunxi/cpu_info.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/clock.h>
diff --git a/arch/arm/mach-sunxi/dram_sun9i.c b/arch/arm/mach-sunxi/dram_sun9i.c
index 14be212e891d..e2ab5d2fafb8 100644
--- a/arch/arm/mach-sunxi/dram_sun9i.c
+++ b/arch/arm/mach-sunxi/dram_sun9i.c
@@ -16,6 +16,7 @@
 #include <init.h>
 #include <log.h>
 #include <ram.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/dram.h>
diff --git a/arch/arm/mach-tegra/ap.c b/arch/arm/mach-tegra/ap.c
index 532730fe7270..f3876927e3a1 100644
--- a/arch/arm/mach-tegra/ap.c
+++ b/arch/arm/mach-tegra/ap.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/bug.h>
 #include <asm/io.h>
 #include <asm/arch/gp_padctrl.h>
diff --git a/arch/arm/mach-tegra/board2.c b/arch/arm/mach-tegra/board2.c
index 66376dd39a2e..1ae686dbd05c 100644
--- a/arch/arm/mach-tegra/board2.c
+++ b/arch/arm/mach-tegra/board2.c
@@ -11,6 +11,7 @@
 #include <init.h>
 #include <log.h>
 #include <ns16550.h>
+#include <stdio.h>
 #include <usb.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-tegra/cboot.c b/arch/arm/mach-tegra/cboot.c
index b89f7badb525..384e81bac073 100644
--- a/arch/arm/mach-tegra/cboot.c
+++ b/arch/arm/mach-tegra/cboot.c
@@ -12,6 +12,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <net.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <asm/global_data.h>
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c
index 18c19dbf6061..6b587209c1c6 100644
--- a/arch/arm/mach-tegra/clock.c
+++ b/arch/arm/mach-tegra/clock.c
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/arch/arm/mach-tegra/cmd_enterrcm.c b/arch/arm/mach-tegra/cmd_enterrcm.c
index 25df31a3b858..32091e04b919 100644
--- a/arch/arm/mach-tegra/cmd_enterrcm.c
+++ b/arch/arm/mach-tegra/cmd_enterrcm.c
@@ -28,6 +28,7 @@
 #include <command.h>
 #include <cpu_func.h>
 #include <irq_func.h>
+#include <stdio.h>
 #include <asm/arch/tegra.h>
 #include <asm/arch-tegra/pmc.h>
 #include <linux/delay.h>
diff --git a/arch/arm/mach-tegra/cpu.c b/arch/arm/mach-tegra/cpu.c
index 65b15b79fe9b..216e307ccb2c 100644
--- a/arch/arm/mach-tegra/cpu.c
+++ b/arch/arm/mach-tegra/cpu.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/gp_padctrl.h>
diff --git a/arch/arm/mach-tegra/pinmux-common.c b/arch/arm/mach-tegra/pinmux-common.c
index 16b03bfe7b06..64c397fa4979 100644
--- a/arch/arm/mach-tegra/pinmux-common.c
+++ b/arch/arm/mach-tegra/pinmux-common.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/pinmux.h>
 
diff --git a/arch/arm/mach-tegra/pmc.c b/arch/arm/mach-tegra/pmc.c
index 93db63e104a1..0d4063ad1a27 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 <stdio.h>
 #include <asm/global_data.h>
 
 #include <linux/arm-smccc.h>
diff --git a/arch/arm/mach-tegra/sys_info.c b/arch/arm/mach-tegra/sys_info.c
index 5ad586ac17fb..956a2e1730ff 100644
--- a/arch/arm/mach-tegra/sys_info.c
+++ b/arch/arm/mach-tegra/sys_info.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <linux/ctype.h>
 #if defined(CONFIG_TEGRA124) || defined(CONFIG_TEGRA30)
 #include <asm/arch-tegra/pmc.h>
diff --git a/arch/arm/mach-tegra/tegra114/clock.c b/arch/arm/mach-tegra/tegra114/clock.c
index 167589d1bb76..53d958e82dd6 100644
--- a/arch/arm/mach-tegra/tegra114/clock.c
+++ b/arch/arm/mach-tegra/tegra114/clock.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sysctr.h>
diff --git a/arch/arm/mach-tegra/tegra124/clock.c b/arch/arm/mach-tegra/tegra124/clock.c
index 79e67f5194ea..8dfdd2bc8add 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 <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sysctr.h>
diff --git a/arch/arm/mach-tegra/tegra20/clock.c b/arch/arm/mach-tegra/tegra20/clock.c
index b1e2c87e6296..fc197a050c54 100644
--- a/arch/arm/mach-tegra/tegra20/clock.c
+++ b/arch/arm/mach-tegra/tegra20/clock.c
@@ -11,6 +11,7 @@
 #include <errno.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/tegra.h>
diff --git a/arch/arm/mach-tegra/tegra20/warmboot.c b/arch/arm/mach-tegra/tegra20/warmboot.c
index b36b2f652ba7..215cf5ae5613 100644
--- a/arch/arm/mach-tegra/tegra20/warmboot.c
+++ b/arch/arm/mach-tegra/tegra20/warmboot.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <linux/errno.h>
diff --git a/arch/arm/mach-tegra/tegra210/clock.c b/arch/arm/mach-tegra/tegra210/clock.c
index 711d02c036ff..7f8c3c3a7c7b 100644
--- a/arch/arm/mach-tegra/tegra210/clock.c
+++ b/arch/arm/mach-tegra/tegra210/clock.c
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-tegra/tegra30/clock.c b/arch/arm/mach-tegra/tegra30/clock.c
index d516ac5f4cbd..38b53cbbe480 100644
--- a/arch/arm/mach-tegra/tegra30/clock.c
+++ b/arch/arm/mach-tegra/tegra30/clock.c
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/tegra.h>
diff --git a/arch/arm/mach-u8500/cpuinfo.c b/arch/arm/mach-u8500/cpuinfo.c
index ab05b8a51b23..bc3fd036035d 100644
--- a/arch/arm/mach-u8500/cpuinfo.c
+++ b/arch/arm/mach-u8500/cpuinfo.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/io.h>
 
 #define U8500_BOOTROM_BASE	0x90000000
diff --git a/arch/arm/mach-uniphier/micro-support-card.c b/arch/arm/mach-uniphier/micro-support-card.c
index dbd156ffceca..f3abb8554125 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 <stdio.h>
 #include <linux/ctype.h>
 #include <linux/delay.h>
 #include <linux/io.h>
diff --git a/arch/arm/mach-versal/cpu.c b/arch/arm/mach-versal/cpu.c
index a35aac2c02c2..2417a60025ce 100644
--- a/arch/arm/mach-versal/cpu.c
+++ b/arch/arm/mach-versal/cpu.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/armv8/mmu.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/arch/arm/mach-versal/mp.c b/arch/arm/mach-versal/mp.c
index 540c010f52c6..df196460dd55 100644
--- a/arch/arm/mach-versal/mp.c
+++ b/arch/arm/mach-versal/mp.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
diff --git a/arch/arm/mach-zynq/clk.c b/arch/arm/mach-zynq/clk.c
index 9bab393e2112..4ef3f39f0523 100644
--- a/arch/arm/mach-zynq/clk.c
+++ b/arch/arm/mach-zynq/clk.c
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/arch/clk.h>
 #include <asm/global_data.h>
 
diff --git a/arch/arm/mach-zynq/cpu.c b/arch/arm/mach-zynq/cpu.c
index 77b7cb130712..a193e5c5b607 100644
--- a/arch/arm/mach-zynq/cpu.c
+++ b/arch/arm/mach-zynq/cpu.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <init.h>
+#include <stdio.h>
 #include <zynqpl.h>
 #include <asm/cache.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-zynq/ddrc.c b/arch/arm/mach-zynq/ddrc.c
index 65c255da209a..f601c927f1ae 100644
--- a/arch/arm/mach-zynq/ddrc.c
+++ b/arch/arm/mach-zynq/ddrc.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware.h>
diff --git a/arch/arm/mach-zynq/spl.c b/arch/arm/mach-zynq/spl.c
index eceb6e114c07..dd5535a06508 100644
--- a/arch/arm/mach-zynq/spl.c
+++ b/arch/arm/mach-zynq/spl.c
@@ -9,6 +9,7 @@
 #include <init.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <generated/dt.h>
 #include <linux/string.h>
 
diff --git a/arch/arm/mach-zynqmp/cpu.c b/arch/arm/mach-zynqmp/cpu.c
index a03b29acb83f..943b601ef8e4 100644
--- a/arch/arm/mach-zynqmp/cpu.c
+++ b/arch/arm/mach-zynqmp/cpu.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
diff --git a/arch/arm/mach-zynqmp/mp.c b/arch/arm/mach-zynqmp/mp.c
index b699f36f1d39..b2fcae619dca 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 <stdio.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/io.h>
diff --git a/arch/arm/mach-zynqmp/spl.c b/arch/arm/mach-zynqmp/spl.c
index 9dd61e25f6f5..cddc8a3fc1e8 100644
--- a/arch/arm/mach-zynqmp/spl.c
+++ b/arch/arm/mach-zynqmp/spl.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <linux/delay.h>
 
 #include <asm/io.h>
diff --git a/arch/m68k/cpu/mcf5227x/cpu.c b/arch/m68k/cpu/mcf5227x/cpu.c
index a7adf64f0de0..e4c7041c4214 100644
--- a/arch/m68k/cpu/mcf5227x/cpu.c
+++ b/arch/m68k/cpu/mcf5227x/cpu.c
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <watchdog.h>
 #include <command.h>
diff --git a/arch/m68k/cpu/mcf523x/cpu.c b/arch/m68k/cpu/mcf523x/cpu.c
index c091d39ef675..bf3acb8f8930 100644
--- a/arch/m68k/cpu/mcf523x/cpu.c
+++ b/arch/m68k/cpu/mcf523x/cpu.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <watchdog.h>
 #include <command.h>
diff --git a/arch/m68k/cpu/mcf52x2/cpu.c b/arch/m68k/cpu/mcf52x2/cpu.c
index 9a6a77e13c04..82f5b3c2f801 100644
--- a/arch/m68k/cpu/mcf52x2/cpu.c
+++ b/arch/m68k/cpu/mcf52x2/cpu.c
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <watchdog.h>
 #include <command.h>
diff --git a/arch/m68k/cpu/mcf530x/cpu.c b/arch/m68k/cpu/mcf530x/cpu.c
index 0659bf655811..4b8d2bd833e9 100644
--- a/arch/m68k/cpu/mcf530x/cpu.c
+++ b/arch/m68k/cpu/mcf530x/cpu.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <command.h>
 #include <init.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <asm/immap.h>
 #include <asm/io.h>
diff --git a/arch/m68k/cpu/mcf532x/cpu.c b/arch/m68k/cpu/mcf532x/cpu.c
index cc56cdebb250..776543f06a96 100644
--- a/arch/m68k/cpu/mcf532x/cpu.c
+++ b/arch/m68k/cpu/mcf532x/cpu.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <watchdog.h>
 #include <command.h>
diff --git a/arch/m68k/cpu/mcf5445x/cpu.c b/arch/m68k/cpu/mcf5445x/cpu.c
index 1bdf983ac2eb..aa9af8a5a2a8 100644
--- a/arch/m68k/cpu/mcf5445x/cpu.c
+++ b/arch/m68k/cpu/mcf5445x/cpu.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <watchdog.h>
 #include <command.h>
diff --git a/arch/m68k/cpu/mcf547x_8x/cpu.c b/arch/m68k/cpu/mcf547x_8x/cpu.c
index 4df8459f6987..e1a7f360e777 100644
--- a/arch/m68k/cpu/mcf547x_8x/cpu.c
+++ b/arch/m68k/cpu/mcf547x_8x/cpu.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <watchdog.h>
 #include <command.h>
diff --git a/arch/m68k/lib/bootm.c b/arch/m68k/lib/bootm.c
index 6dbb86ee396f..20ff33f7532a 100644
--- a/arch/m68k/lib/bootm.c
+++ b/arch/m68k/lib/bootm.c
@@ -11,6 +11,7 @@
 #include <image.h>
 #include <lmb.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <u-boot/zlib.h>
diff --git a/arch/m68k/lib/fec.c b/arch/m68k/lib/fec.c
index eecea7a02354..3b76d1392bf9 100644
--- a/arch/m68k/lib/fec.c
+++ b/arch/m68k/lib/fec.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
diff --git a/arch/m68k/lib/traps.c b/arch/m68k/lib/traps.c
index c49141f376d3..f724be3a63c9 100644
--- a/arch/m68k/lib/traps.c
+++ b/arch/m68k/lib/traps.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <command.h>
 #include <asm/processor.h>
diff --git a/arch/microblaze/cpu/exception.c b/arch/microblaze/cpu/exception.c
index b8dedc4e1958..dd35f8c16f11 100644
--- a/arch/microblaze/cpu/exception.c
+++ b/arch/microblaze/cpu/exception.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <hang.h>
+#include <stdio.h>
 #include <asm/asm.h>
 
 void _hw_exception_handler (void)
diff --git a/arch/microblaze/cpu/interrupts.c b/arch/microblaze/cpu/interrupts.c
index fe65f3728fdb..e86f0cda9dfd 100644
--- a/arch/microblaze/cpu/interrupts.c
+++ b/arch/microblaze/cpu/interrupts.c
@@ -13,6 +13,7 @@
 #include <irq_func.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/microblaze_intc.h>
 #include <asm/asm.h>
diff --git a/arch/microblaze/lib/bootm.c b/arch/microblaze/lib/bootm.c
index 6695ac63c774..1a30635c87f5 100644
--- a/arch/microblaze/lib/bootm.c
+++ b/arch/microblaze/lib/bootm.c
@@ -17,6 +17,7 @@
 #include <image.h>
 #include <lmb.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <u-boot/zlib.h>
diff --git a/arch/mips/lib/cache.c b/arch/mips/lib/cache.c
index 51a8f4334750..1eb1459184cb 100644
--- a/arch/mips/lib/cache.c
+++ b/arch/mips/lib/cache.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/cacheops.h>
 #include <asm/cm.h>
diff --git a/arch/mips/lib/traps.c b/arch/mips/lib/traps.c
index 510ef4c6c090..76d50f99a14c 100644
--- a/arch/mips/lib/traps.c
+++ b/arch/mips/lib/traps.c
@@ -11,6 +11,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/ptrace.h>
 #include <cpu_func.h>
diff --git a/arch/mips/mach-ath79/ar934x/clk.c b/arch/mips/mach-ath79/ar934x/clk.c
index 6ed4057353a8..c2ccd35e8bb2 100644
--- a/arch/mips/mach-ath79/ar934x/clk.c
+++ b/arch/mips/mach-ath79/ar934x/clk.c
@@ -7,6 +7,7 @@
 #include <clock_legacy.h>
 #include <command.h>
 #include <hang.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
diff --git a/arch/mips/mach-ath79/cpu.c b/arch/mips/mach-ath79/cpu.c
index ed190e8f9b02..709fa7a9c3b0 100644
--- a/arch/mips/mach-ath79/cpu.c
+++ b/arch/mips/mach-ath79/cpu.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/addrspace.h>
diff --git a/arch/mips/mach-ath79/reset.c b/arch/mips/mach-ath79/reset.c
index 6cd5e77fd15a..6ecde8a39ff1 100644
--- a/arch/mips/mach-ath79/reset.c
+++ b/arch/mips/mach-ath79/reset.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
diff --git a/arch/mips/mach-jz47xx/jz4780/jz4780.c b/arch/mips/mach-jz47xx/jz4780/jz4780.c
index de9bd05fcfde..63a87635c25a 100644
--- a/arch/mips/mach-jz47xx/jz4780/jz4780.c
+++ b/arch/mips/mach-jz47xx/jz4780/jz4780.c
@@ -12,6 +12,7 @@
 #include <hang.h>
 #include <image.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/sections.h>
diff --git a/arch/mips/mach-jz47xx/jz4780/pll.c b/arch/mips/mach-jz47xx/jz4780/pll.c
index 323c634fb322..9aada2ef15b9 100644
--- a/arch/mips/mach-jz47xx/jz4780/pll.c
+++ b/arch/mips/mach-jz47xx/jz4780/pll.c
@@ -8,6 +8,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
diff --git a/arch/mips/mach-mscc/dram.c b/arch/mips/mach-mscc/dram.c
index c53a4202e0d9..4aa5c90a3b1b 100644
--- a/arch/mips/mach-mscc/dram.c
+++ b/arch/mips/mach-mscc/dram.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 
 #include <asm/io.h>
diff --git a/arch/mips/mach-mtmips/cpu.c b/arch/mips/mach-mtmips/cpu.c
index f9cdce5ff8d8..1cb59178018f 100644
--- a/arch/mips/mach-mtmips/cpu.c
+++ b/arch/mips/mach-mtmips/cpu.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
 #include <linux/io.h>
diff --git a/arch/mips/mach-mtmips/mt7628/init.c b/arch/mips/mach-mtmips/mt7628/init.c
index 3fa0e139e751..c0b4387585fa 100644
--- a/arch/mips/mach-mtmips/mt7628/init.c
+++ b/arch/mips/mach-mtmips/mt7628/init.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <dm/uclass.h>
diff --git a/arch/mips/mach-octeon/cpu.c b/arch/mips/mach-octeon/cpu.c
index 2680a2e6ed67..1831f1dfa8c2 100644
--- a/arch/mips/mach-octeon/cpu.c
+++ b/arch/mips/mach-octeon/cpu.c
@@ -3,6 +3,7 @@
  * Copyright (C) 2020 Marvell International Ltd.
  */
 
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/bitfield.h>
 #include <linux/bitops.h>
diff --git a/arch/mips/mach-pic32/cpu.c b/arch/mips/mach-pic32/cpu.c
index eac2fe5f8c94..bc76152ed3da 100644
--- a/arch/mips/mach-pic32/cpu.c
+++ b/arch/mips/mach-pic32/cpu.c
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <mach/pic32.h>
 #include <mach/ddr.h>
diff --git a/arch/nds32/lib/bootm.c b/arch/nds32/lib/bootm.c
index 957599304549..3afd1c5cff24 100644
--- a/arch/nds32/lib/bootm.c
+++ b/arch/nds32/lib/bootm.c
@@ -12,6 +12,7 @@
 #include <hang.h>
 #include <image.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/string.h>
diff --git a/arch/nds32/lib/interrupts.c b/arch/nds32/lib/interrupts.c
index 1481e055007b..dcff67d0eb6a 100644
--- a/arch/nds32/lib/interrupts.c
+++ b/arch/nds32/lib/interrupts.c
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <irq_func.h>
+#include <stdio.h>
 #include <asm/ptrace.h>
 #include <asm/system.h>
 #undef INTERRUPT_MODE
diff --git a/arch/nios2/cpu/cpu.c b/arch/nios2/cpu/cpu.c
index c670d51f1dfb..0203348df010 100644
--- a/arch/nios2/cpu/cpu.c
+++ b/arch/nios2/cpu/cpu.c
@@ -12,6 +12,7 @@
 #include <errno.h>
 #include <init.h>
 #include <irq_func.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/system.h>
diff --git a/arch/powerpc/cpu/mpc83xx/cpu.c b/arch/powerpc/cpu/mpc83xx/cpu.c
index 3043a38f8b29..5d3ff0e4d372 100644
--- a/arch/powerpc/cpu/mpc83xx/cpu.c
+++ b/arch/powerpc/cpu/mpc83xx/cpu.c
@@ -13,6 +13,7 @@
 #include <cpu_func.h>
 #include <irq_func.h>
 #include <net.h>
+#include <stdio.h>
 #include <time.h>
 #include <vsprintf.h>
 #include <watchdog.h>
diff --git a/arch/powerpc/cpu/mpc83xx/cpu_init.c b/arch/powerpc/cpu/mpc83xx/cpu_init.c
index af51fbd69063..b23647e91729 100644
--- a/arch/powerpc/cpu/mpc83xx/cpu_init.c
+++ b/arch/powerpc/cpu/mpc83xx/cpu_init.c
@@ -7,6 +7,7 @@
 #include <asm-offsets.h>
 #include <mpc83xx.h>
 #include <ioports.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/ppc.h>
diff --git a/arch/powerpc/cpu/mpc83xx/ecc.c b/arch/powerpc/cpu/mpc83xx/ecc.c
index 9ebfe1ab1fd6..5c843e4fafd9 100644
--- a/arch/powerpc/cpu/mpc83xx/ecc.c
+++ b/arch/powerpc/cpu/mpc83xx/ecc.c
@@ -10,6 +10,7 @@
 #include <irq_func.h>
 #include <mpc83xx.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/ppc.h>
 #include <linux/string.h>
 
diff --git a/arch/powerpc/cpu/mpc83xx/pci.c b/arch/powerpc/cpu/mpc83xx/pci.c
index 0c618f0ad4de..4d3bbc1dfc91 100644
--- a/arch/powerpc/cpu/mpc83xx/pci.c
+++ b/arch/powerpc/cpu/mpc83xx/pci.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <init.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 #include <asm/global_data.h>
 #include <asm/ppc.h>
diff --git a/arch/powerpc/cpu/mpc83xx/pcie.c b/arch/powerpc/cpu/mpc83xx/pcie.c
index aa8cded66167..5b8322fadb87 100644
--- a/arch/powerpc/cpu/mpc83xx/pcie.c
+++ b/arch/powerpc/cpu/mpc83xx/pcie.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <pci.h>
 #include <mpc83xx.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/ppc.h>
diff --git a/arch/powerpc/cpu/mpc83xx/spd_sdram.c b/arch/powerpc/cpu/mpc83xx/spd_sdram.c
index d101c2fcce42..7c8cfd7f2346 100644
--- a/arch/powerpc/cpu/mpc83xx/spd_sdram.c
+++ b/arch/powerpc/cpu/mpc83xx/spd_sdram.c
@@ -15,6 +15,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <vsprintf.h>
 #include <asm/ppc.h>
diff --git a/arch/powerpc/cpu/mpc83xx/speed.c b/arch/powerpc/cpu/mpc83xx/speed.c
index 17577e96307b..a595c58e5bf8 100644
--- a/arch/powerpc/cpu/mpc83xx/speed.c
+++ b/arch/powerpc/cpu/mpc83xx/speed.c
@@ -602,4 +602,5 @@ U_BOOT_CMD(clocks, 1, 0, do_clocks,
 	"    clocks"
 );
 
+#include <stdio.h>
 #endif
diff --git a/arch/powerpc/cpu/mpc83xx/spl_minimal.c b/arch/powerpc/cpu/mpc83xx/spl_minimal.c
index d51d1f6700f0..d116b6c43297 100644
--- a/arch/powerpc/cpu/mpc83xx/spl_minimal.c
+++ b/arch/powerpc/cpu/mpc83xx/spl_minimal.c
@@ -7,6 +7,7 @@
 #include <asm-offsets.h>
 #include <clock_legacy.h>
 #include <mpc83xx.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/ppc.h>
diff --git a/arch/powerpc/cpu/mpc83xx/traps.c b/arch/powerpc/cpu/mpc83xx/traps.c
index f1d47cbd3ba9..8bbf8407764e 100644
--- a/arch/powerpc/cpu/mpc83xx/traps.c
+++ b/arch/powerpc/cpu/mpc83xx/traps.c
@@ -12,6 +12,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/ptrace.h>
 #include <command.h>
diff --git a/arch/powerpc/cpu/mpc85xx/bsc9132_serdes.c b/arch/powerpc/cpu/mpc85xx/bsc9132_serdes.c
index b972cf3b5e45..e08484324d0e 100644
--- a/arch/powerpc/cpu/mpc85xx/bsc9132_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/bsc9132_serdes.c
@@ -7,6 +7,7 @@
 #include <config.h>
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
diff --git a/arch/powerpc/cpu/mpc85xx/c29x_serdes.c b/arch/powerpc/cpu/mpc85xx/c29x_serdes.c
index 34b58bb7f9e4..10bc15c45ca8 100644
--- a/arch/powerpc/cpu/mpc85xx/c29x_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/c29x_serdes.c
@@ -6,6 +6,7 @@
 #include <config.h>
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
diff --git a/arch/powerpc/cpu/mpc85xx/cmd_errata.c b/arch/powerpc/cpu/mpc85xx/cmd_errata.c
index 8a98717125b3..42fcfb249966 100644
--- a/arch/powerpc/cpu/mpc85xx/cmd_errata.c
+++ b/arch/powerpc/cpu/mpc85xx/cmd_errata.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <init.h>
+#include <stdio.h>
 #include <linux/compiler.h>
 #include <fsl_errata.h>
 #include <asm/immap_85xx.h>
diff --git a/arch/powerpc/cpu/mpc85xx/cpu.c b/arch/powerpc/cpu/mpc85xx/cpu.c
index ea3554af7817..afcfc47554df 100644
--- a/arch/powerpc/cpu/mpc85xx/cpu.c
+++ b/arch/powerpc/cpu/mpc85xx/cpu.c
@@ -15,6 +15,7 @@
 #include <init.h>
 #include <irq_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <vsprintf.h>
 #include <watchdog.h>
diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init.c b/arch/powerpc/cpu/mpc85xx/cpu_init.c
index ad6e79396e76..397a118140e9 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 <stdio.h>
 #include <watchdog.h>
 #include <asm/processor.h>
 #include <ioports.h>
diff --git a/arch/powerpc/cpu/mpc85xx/ether_fcc.c b/arch/powerpc/cpu/mpc85xx/ether_fcc.c
index d458d0e135e9..2a6e07f28347 100644
--- a/arch/powerpc/cpu/mpc85xx/ether_fcc.c
+++ b/arch/powerpc/cpu/mpc85xx/ether_fcc.c
@@ -26,6 +26,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/cpm_85xx.h>
 #include <command.h>
 #include <config.h>
diff --git a/arch/powerpc/cpu/mpc85xx/fdt.c b/arch/powerpc/cpu/mpc85xx/fdt.c
index 41bbddf81d41..c8388da6331d 100644
--- a/arch/powerpc/cpu/mpc85xx/fdt.c
+++ b/arch/powerpc/cpu/mpc85xx/fdt.c
@@ -10,6 +10,7 @@
 #include <clock_legacy.h>
 #include <env.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
diff --git a/arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c b/arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c
index 2cfcc92f15b9..c6a7995e873d 100644
--- a/arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/fsl_serdes.h>
 #include <asm/io.h>
 #include <asm/ppc.h>
diff --git a/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c b/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c
index a370faf0fe01..59785c562918 100644
--- a/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <env.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #ifdef CONFIG_SYS_P4080_ERRATUM_SERDES8
 #include <hwconfig.h>
diff --git a/arch/powerpc/cpu/mpc85xx/liodn.c b/arch/powerpc/cpu/mpc85xx/liodn.c
index a85c81179205..188318f66ceb 100644
--- a/arch/powerpc/cpu/mpc85xx/liodn.c
+++ b/arch/powerpc/cpu/mpc85xx/liodn.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <linux/string.h>
diff --git a/arch/powerpc/cpu/mpc85xx/mp.c b/arch/powerpc/cpu/mpc85xx/mp.c
index c9854a82a960..cd348bf6ee63 100644
--- a/arch/powerpc/cpu/mpc85xx/mp.c
+++ b/arch/powerpc/cpu/mpc85xx/mp.c
@@ -7,6 +7,7 @@
 #include <cpu_func.h>
 #include <env.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/processor.h>
 #include <env.h>
diff --git a/arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c b/arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c
index 111692f15d18..433d5cb136bb 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c
@@ -7,6 +7,7 @@
 #include <config.h>
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
diff --git a/arch/powerpc/cpu/mpc85xx/mpc8544_serdes.c b/arch/powerpc/cpu/mpc85xx/mpc8544_serdes.c
index f3b5450ad55c..1eb446eef182 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8544_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8544_serdes.c
@@ -6,6 +6,7 @@
 #include <config.h>
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
diff --git a/arch/powerpc/cpu/mpc85xx/mpc8548_serdes.c b/arch/powerpc/cpu/mpc85xx/mpc8548_serdes.c
index 2a5c3e32002a..2e21f69e5ad1 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8548_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8548_serdes.c
@@ -6,6 +6,7 @@
 #include <config.h>
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
diff --git a/arch/powerpc/cpu/mpc85xx/mpc8568_serdes.c b/arch/powerpc/cpu/mpc85xx/mpc8568_serdes.c
index 81b66c3fa6a2..dd6231a47b9d 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8568_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8568_serdes.c
@@ -6,6 +6,7 @@
 #include <config.h>
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
diff --git a/arch/powerpc/cpu/mpc85xx/mpc8569_serdes.c b/arch/powerpc/cpu/mpc85xx/mpc8569_serdes.c
index eb54b8252b20..148b4cd98192 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8569_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8569_serdes.c
@@ -6,6 +6,7 @@
 #include <config.h>
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
diff --git a/arch/powerpc/cpu/mpc85xx/mpc8572_serdes.c b/arch/powerpc/cpu/mpc85xx/mpc8572_serdes.c
index 1b4e6149184d..d625f9041e98 100644
--- a/arch/powerpc/cpu/mpc85xx/mpc8572_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/mpc8572_serdes.c
@@ -6,6 +6,7 @@
 #include <config.h>
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
diff --git a/arch/powerpc/cpu/mpc85xx/p1010_serdes.c b/arch/powerpc/cpu/mpc85xx/p1010_serdes.c
index 8cba4222c4fc..185445e46b93 100644
--- a/arch/powerpc/cpu/mpc85xx/p1010_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p1010_serdes.c
@@ -7,6 +7,7 @@
 #include <config.h>
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
diff --git a/arch/powerpc/cpu/mpc85xx/p1021_serdes.c b/arch/powerpc/cpu/mpc85xx/p1021_serdes.c
index 6b8e447e94a4..62e76c0c70ec 100644
--- a/arch/powerpc/cpu/mpc85xx/p1021_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p1021_serdes.c
@@ -6,6 +6,7 @@
 #include <config.h>
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
diff --git a/arch/powerpc/cpu/mpc85xx/p1022_serdes.c b/arch/powerpc/cpu/mpc85xx/p1022_serdes.c
index 719cb4f3d4e4..9fe4eb57cea4 100644
--- a/arch/powerpc/cpu/mpc85xx/p1022_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p1022_serdes.c
@@ -7,6 +7,7 @@
 #include <config.h>
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
diff --git a/arch/powerpc/cpu/mpc85xx/p1023_serdes.c b/arch/powerpc/cpu/mpc85xx/p1023_serdes.c
index bf5cac619920..591637e2cfd6 100644
--- a/arch/powerpc/cpu/mpc85xx/p1023_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p1023_serdes.c
@@ -7,6 +7,7 @@
 #include <config.h>
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
diff --git a/arch/powerpc/cpu/mpc85xx/p2020_serdes.c b/arch/powerpc/cpu/mpc85xx/p2020_serdes.c
index f36b1b64ede7..eb2324887537 100644
--- a/arch/powerpc/cpu/mpc85xx/p2020_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/p2020_serdes.c
@@ -6,6 +6,7 @@
 #include <config.h>
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_serdes.h>
diff --git a/arch/powerpc/cpu/mpc85xx/pci.c b/arch/powerpc/cpu/mpc85xx/pci.c
index 9a6fc13b73f1..af340f2a63bb 100644
--- a/arch/powerpc/cpu/mpc85xx/pci.c
+++ b/arch/powerpc/cpu/mpc85xx/pci.c
@@ -9,6 +9,7 @@
  * PCI Configuration space access support for MPC85xx PCI Bridge
  */
 #include <common.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 #include <asm/cpm_85xx.h>
 #include <pci.h>
diff --git a/arch/powerpc/cpu/mpc85xx/portals.c b/arch/powerpc/cpu/mpc85xx/portals.c
index c0f18d924b61..5fc672d153dc 100644
--- a/arch/powerpc/cpu/mpc85xx/portals.c
+++ b/arch/powerpc/cpu/mpc85xx/portals.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <linux/string.h>
diff --git a/arch/powerpc/cpu/mpc85xx/speed.c b/arch/powerpc/cpu/mpc85xx/speed.c
index 09653c70125f..f3c6da306c49 100644
--- a/arch/powerpc/cpu/mpc85xx/speed.c
+++ b/arch/powerpc/cpu/mpc85xx/speed.c
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <ppc_asm.tmpl>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/compiler.h>
 #include <asm/processor.h>
diff --git a/arch/powerpc/cpu/mpc85xx/tlb.c b/arch/powerpc/cpu/mpc85xx/tlb.c
index 927df4e5b660..522454631300 100644
--- a/arch/powerpc/cpu/mpc85xx/tlb.c
+++ b/arch/powerpc/cpu/mpc85xx/tlb.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <display_options.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 #include <asm/global_data.h>
 #include <asm/processor.h>
diff --git a/arch/powerpc/cpu/mpc85xx/traps.c b/arch/powerpc/cpu/mpc85xx/traps.c
index 080451ec567c..569aca6474a7 100644
--- a/arch/powerpc/cpu/mpc85xx/traps.c
+++ b/arch/powerpc/cpu/mpc85xx/traps.c
@@ -20,6 +20,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/ptrace.h>
 #include <command.h>
diff --git a/arch/powerpc/cpu/mpc86xx/cpu.c b/arch/powerpc/cpu/mpc86xx/cpu.c
index 051607785667..a14214ecb868 100644
--- a/arch/powerpc/cpu/mpc86xx/cpu.c
+++ b/arch/powerpc/cpu/mpc86xx/cpu.c
@@ -9,6 +9,7 @@
 #include <cpu_func.h>
 #include <display_options.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <vsprintf.h>
 #include <watchdog.h>
diff --git a/arch/powerpc/cpu/mpc86xx/fdt.c b/arch/powerpc/cpu/mpc86xx/fdt.c
index a5c313b8a25d..be6292dd6a3e 100644
--- a/arch/powerpc/cpu/mpc86xx/fdt.c
+++ b/arch/powerpc/cpu/mpc86xx/fdt.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
diff --git a/arch/powerpc/cpu/mpc86xx/interrupts.c b/arch/powerpc/cpu/mpc86xx/interrupts.c
index b139abe936d5..3288f3913cc1 100644
--- a/arch/powerpc/cpu/mpc86xx/interrupts.c
+++ b/arch/powerpc/cpu/mpc86xx/interrupts.c
@@ -19,6 +19,7 @@
 #include <log.h>
 #include <mpc86xx.h>
 #include <command.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/ppc.h>
 #ifdef CONFIG_POST
diff --git a/arch/powerpc/cpu/mpc86xx/mp.c b/arch/powerpc/cpu/mpc86xx/mp.c
index e404ef367c16..9f41a32d29a9 100644
--- a/arch/powerpc/cpu/mpc86xx/mp.c
+++ b/arch/powerpc/cpu/mpc86xx/mp.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/ppc.h>
 #include <asm/mmu.h>
diff --git a/arch/powerpc/cpu/mpc86xx/mpc8610_serdes.c b/arch/powerpc/cpu/mpc86xx/mpc8610_serdes.c
index ecc88ba43746..2f755ac2012a 100644
--- a/arch/powerpc/cpu/mpc86xx/mpc8610_serdes.c
+++ b/arch/powerpc/cpu/mpc86xx/mpc8610_serdes.c
@@ -6,6 +6,7 @@
 #include <config.h>
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/immap_86xx.h>
 #include <asm/fsl_serdes.h>
diff --git a/arch/powerpc/cpu/mpc86xx/mpc8641_serdes.c b/arch/powerpc/cpu/mpc86xx/mpc8641_serdes.c
index 4df446618c09..1621fd116ddd 100644
--- a/arch/powerpc/cpu/mpc86xx/mpc8641_serdes.c
+++ b/arch/powerpc/cpu/mpc86xx/mpc8641_serdes.c
@@ -6,6 +6,7 @@
 #include <config.h>
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/immap_86xx.h>
 #include <asm/fsl_serdes.h>
diff --git a/arch/powerpc/cpu/mpc86xx/traps.c b/arch/powerpc/cpu/mpc86xx/traps.c
index 0d258b3a97f8..ce29b0f4a79b 100644
--- a/arch/powerpc/cpu/mpc86xx/traps.c
+++ b/arch/powerpc/cpu/mpc86xx/traps.c
@@ -14,6 +14,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/ptrace.h>
 #include <command.h>
diff --git a/arch/powerpc/cpu/mpc8xx/cpu.c b/arch/powerpc/cpu/mpc8xx/cpu.c
index e77789a7f2fe..dbebe7b30e12 100644
--- a/arch/powerpc/cpu/mpc8xx/cpu.c
+++ b/arch/powerpc/cpu/mpc8xx/cpu.c
@@ -20,6 +20,7 @@
 #include <cpu_func.h>
 #include <display_options.h>
 #include <net.h>
+#include <stdio.h>
 #include <time.h>
 #include <vsprintf.h>
 #include <watchdog.h>
diff --git a/arch/powerpc/cpu/mpc8xx/immap.c b/arch/powerpc/cpu/mpc8xx/immap.c
index 40793c26e120..56cd33ee4b93 100644
--- a/arch/powerpc/cpu/mpc8xx/immap.c
+++ b/arch/powerpc/cpu/mpc8xx/immap.c
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 
 #include <asm/immap_8xx.h>
diff --git a/arch/powerpc/cpu/mpc8xx/interrupts.c b/arch/powerpc/cpu/mpc8xx/interrupts.c
index a0d1853e7471..c2627aa9791e 100644
--- a/arch/powerpc/cpu/mpc8xx/interrupts.c
+++ b/arch/powerpc/cpu/mpc8xx/interrupts.c
@@ -8,6 +8,7 @@
 #include <irq_func.h>
 #include <mpc8xx.h>
 #include <mpc8xx_irq.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/cpm_8xx.h>
 #include <asm/ppc.h>
diff --git a/arch/powerpc/cpu/mpc8xx/traps.c b/arch/powerpc/cpu/mpc8xx/traps.c
index 56794b08a155..6aeb20c4c99f 100644
--- a/arch/powerpc/cpu/mpc8xx/traps.c
+++ b/arch/powerpc/cpu/mpc8xx/traps.c
@@ -16,6 +16,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/ptrace.h>
 #include <command.h>
 #include <asm/processor.h>
diff --git a/arch/powerpc/cpu/mpc8xxx/fdt.c b/arch/powerpc/cpu/mpc8xxx/fdt.c
index 67f8b1000183..5322c64808e5 100644
--- a/arch/powerpc/cpu/mpc8xxx/fdt.c
+++ b/arch/powerpc/cpu/mpc8xxx/fdt.c
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <asm/mp.h>
diff --git a/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c b/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
index 29489b46e6cd..6f2b64948a52 100644
--- a/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
+++ b/arch/powerpc/cpu/mpc8xxx/fsl_lbc.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <hang.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/fsl_lbc.h>
 
 #ifdef CONFIG_MPC83xx
diff --git a/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c b/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c
index c2c2d22572c6..a10969576b12 100644
--- a/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c
+++ b/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/log2.h>
 #include <malloc.h>
diff --git a/arch/powerpc/cpu/mpc8xxx/law.c b/arch/powerpc/cpu/mpc8xxx/law.c
index ff4b878aa9c1..0fba380cd40e 100644
--- a/arch/powerpc/cpu/mpc8xxx/law.c
+++ b/arch/powerpc/cpu/mpc8xxx/law.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <display_options.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 #include <asm/global_data.h>
 #include <linux/compiler.h>
diff --git a/arch/powerpc/cpu/mpc8xxx/srio.c b/arch/powerpc/cpu/mpc8xxx/srio.c
index 3db592d040ce..71178b47bc18 100644
--- a/arch/powerpc/cpu/mpc8xxx/srio.c
+++ b/arch/powerpc/cpu/mpc8xxx/srio.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <config.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/fsl_law.h>
 #include <asm/fsl_serdes.h>
diff --git a/arch/powerpc/lib/bat_rw.c b/arch/powerpc/lib/bat_rw.c
index 24dd30615bd3..2eae204f2947 100644
--- a/arch/powerpc/lib/bat_rw.c
+++ b/arch/powerpc/lib/bat_rw.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
diff --git a/arch/powerpc/lib/bdinfo.c b/arch/powerpc/lib/bdinfo.c
index 914127457234..22acf76dedb0 100644
--- a/arch/powerpc/lib/bdinfo.c
+++ b/arch/powerpc/lib/bdinfo.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 
diff --git a/arch/powerpc/lib/bootm.c b/arch/powerpc/lib/bootm.c
index a43126e39745..d72da1da2d28 100644
--- a/arch/powerpc/lib/bootm.c
+++ b/arch/powerpc/lib/bootm.c
@@ -14,6 +14,7 @@
 #include <init.h>
 #include <lmb.h>
 #include <log.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <command.h>
 #include <image.h>
diff --git a/arch/riscv/lib/bootm.c b/arch/riscv/lib/bootm.c
index 41e0504c6468..14a09eee717f 100644
--- a/arch/riscv/lib/bootm.c
+++ b/arch/riscv/lib/bootm.c
@@ -13,6 +13,7 @@
 #include <fdt_support.h>
 #include <hang.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/root.h>
 #include <image.h>
diff --git a/arch/riscv/lib/fdt_fixup.c b/arch/riscv/lib/fdt_fixup.c
index d0a334744974..f83f49c67762 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 <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 
diff --git a/arch/riscv/lib/image.c b/arch/riscv/lib/image.c
index 47f2edcf7fc2..636b6597c062 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 <stdio.h>
 #include <asm/global_data.h>
 #include <linux/sizes.h>
 #include <linux/stddef.h>
diff --git a/arch/riscv/lib/interrupts.c b/arch/riscv/lib/interrupts.c
index 0ae9c00635f9..7a961f937aec 100644
--- a/arch/riscv/lib/interrupts.c
+++ b/arch/riscv/lib/interrupts.c
@@ -13,6 +13,7 @@
 #include <efi_loader.h>
 #include <hang.h>
 #include <irq_func.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/ptrace.h>
 #include <asm/system.h>
diff --git a/arch/riscv/lib/reset.c b/arch/riscv/lib/reset.c
index 8779c619cc5a..76ffdb904392 100644
--- a/arch/riscv/lib/reset.c
+++ b/arch/riscv/lib/reset.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <hang.h>
+#include <stdio.h>
 
 int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c
index edd48e2c1b74..c58a5ef7d1f7 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 <stdio.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
 #include <linux/libfdt.h>
diff --git a/arch/sandbox/cpu/sdl.c b/arch/sandbox/cpu/sdl.c
index 813fdcdac604..8673e601e5e2 100644
--- a/arch/sandbox/cpu/sdl.c
+++ b/arch/sandbox/cpu/sdl.c
@@ -4,6 +4,7 @@
  */
 
 #include <errno.h>
+#include <stdio.h>
 #include <unistd.h>
 #include <stdbool.h>
 #include <linux/input.h>
diff --git a/arch/sandbox/cpu/spl.c b/arch/sandbox/cpu/spl.c
index 8998f92858e1..41591d6528cb 100644
--- a/arch/sandbox/cpu/spl.c
+++ b/arch/sandbox/cpu/spl.c
@@ -10,6 +10,7 @@
 #include <log.h>
 #include <os.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/spl.h>
 #include <asm/state.h>
diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c
index 9845d3e8fcb9..5759651b9a4a 100644
--- a/arch/sandbox/cpu/start.c
+++ b/arch/sandbox/cpu/start.c
@@ -10,6 +10,7 @@
 #include <os.h>
 #include <cli.h>
 #include <sort.h>
+#include <stdio.h>
 #include <asm/getopt.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/arch/sandbox/cpu/state.c b/arch/sandbox/cpu/state.c
index ec432d06429f..bfc4f0b8defb 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 <stdio.h>
 #include <asm/malloc.h>
 #include <asm/state.h>
 #include <linux/string.h>
diff --git a/arch/sandbox/lib/bootm.c b/arch/sandbox/lib/bootm.c
index ab9f8a5f9c9c..d9378f019c09 100644
--- a/arch/sandbox/lib/bootm.c
+++ b/arch/sandbox/lib/bootm.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <bootstage.h>
 #include <image.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/string.h>
 
diff --git a/arch/sh/cpu/sh4/cpu.c b/arch/sh/cpu/sh4/cpu.c
index d4cdfb61ab52..edab955079ef 100644
--- a/arch/sh/cpu/sh4/cpu.c
+++ b/arch/sh/cpu/sh4/cpu.c
@@ -10,6 +10,7 @@
 #include <cpu_func.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/u-boot.h>
 
diff --git a/arch/sh/lib/bootm.c b/arch/sh/lib/bootm.c
index 71d964586c5a..b6e961f70834 100644
--- a/arch/sh/lib/bootm.c
+++ b/arch/sh/lib/bootm.c
@@ -11,6 +11,7 @@
 #include <command.h>
 #include <env.h>
 #include <image.h>
+#include <stdio.h>
 #include <asm/byteorder.h>
 #include <asm/zimage.h>
 #include <linux/string.h>
diff --git a/arch/x86/cpu/apollolake/cpu_spl.c b/arch/x86/cpu/apollolake/cpu_spl.c
index a52bc288617d..00cfcd2f4a2d 100644
--- a/arch/x86/cpu/apollolake/cpu_spl.c
+++ b/arch/x86/cpu/apollolake/cpu_spl.c
@@ -12,6 +12,7 @@
 #include <log.h>
 #include <spi_flash.h>
 #include <spl.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <acpi/acpi_s3.h>
 #include <asm/cpu.h>
diff --git a/arch/x86/cpu/broadwell/cpu.c b/arch/x86/cpu/broadwell/cpu.c
index 3832a97f2c73..ec9592c5aa7a 100644
--- a/arch/x86/cpu/broadwell/cpu.c
+++ b/arch/x86/cpu/broadwell/cpu.c
@@ -10,6 +10,7 @@
 #include <cpu.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/cpu.h>
 #include <asm/cpu_x86.h>
 #include <asm/cpu_common.h>
diff --git a/arch/x86/cpu/broadwell/iobp.c b/arch/x86/cpu/broadwell/iobp.c
index cb5595c930e1..16c840690bcc 100644
--- a/arch/x86/cpu/broadwell/iobp.c
+++ b/arch/x86/cpu/broadwell/iobp.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <stdio.h>
 #include <asm/intel_regs.h>
 #include <asm/io.h>
 #include <asm/arch/pch.h>
diff --git a/arch/x86/cpu/broadwell/northbridge.c b/arch/x86/cpu/broadwell/northbridge.c
index 4f3ccf589e57..4b0dd46f7fe4 100644
--- a/arch/x86/cpu/broadwell/northbridge.c
+++ b/arch/x86/cpu/broadwell/northbridge.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/mrc_common.h>
diff --git a/arch/x86/cpu/broadwell/sdram.c b/arch/x86/cpu/broadwell/sdram.c
index 874b2034b9f6..b118116e3e66 100644
--- a/arch/x86/cpu/broadwell/sdram.c
+++ b/arch/x86/cpu/broadwell/sdram.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <log.h>
 #include <pci.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <asm/cpu.h>
 #include <asm/global_data.h>
diff --git a/arch/x86/cpu/coreboot/coreboot.c b/arch/x86/cpu/coreboot/coreboot.c
index 15c3ad879a00..cfd97a153199 100644
--- a/arch/x86/cpu/coreboot/coreboot.c
+++ b/arch/x86/cpu/coreboot/coreboot.c
@@ -9,6 +9,7 @@
 #include <cpu_func.h>
 #include <fdtdec.h>
 #include <init.h>
+#include <stdio.h>
 #include <usb.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/arch/x86/cpu/coreboot/sdram.c b/arch/x86/cpu/coreboot/sdram.c
index a2e47d196a2e..21dbcd91e039 100644
--- a/arch/x86/cpu/coreboot/sdram.c
+++ b/arch/x86/cpu/coreboot/sdram.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/e820.h>
 #include <asm/arch/sysinfo.h>
 #include <asm/global_data.h>
diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index 078607a435c1..4c8c586fc8b6 100644
--- a/arch/x86/cpu/cpu.c
+++ b/arch/x86/cpu/cpu.c
@@ -28,6 +28,7 @@
 #include <irq.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <acpi/acpi_s3.h>
 #include <acpi/acpi_table.h>
diff --git a/arch/x86/cpu/efi/payload.c b/arch/x86/cpu/efi/payload.c
index d9955bb47149..ab78059e76e8 100644
--- a/arch/x86/cpu/efi/payload.c
+++ b/arch/x86/cpu/efi/payload.c
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <usb.h>
 #include <asm/bootparam.h>
 #include <asm/e820.h>
diff --git a/arch/x86/cpu/i386/cpu.c b/arch/x86/cpu/i386/cpu.c
index f0a01c2295f2..2f61ea8e5bb2 100644
--- a/arch/x86/cpu/i386/cpu.c
+++ b/arch/x86/cpu/i386/cpu.c
@@ -24,6 +24,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/control_regs.h>
 #include <asm/coreboot_tables.h>
 #include <asm/cpu.h>
diff --git a/arch/x86/cpu/i386/interrupt.c b/arch/x86/cpu/i386/interrupt.c
index 67a72146de8a..5ade3712e7ca 100644
--- a/arch/x86/cpu/i386/interrupt.c
+++ b/arch/x86/cpu/i386/interrupt.c
@@ -17,6 +17,7 @@
 #include <init.h>
 #include <irq.h>
 #include <irq_func.h>
+#include <stdio.h>
 #include <asm/control_regs.h>
 #include <asm/global_data.h>
 #include <asm/i8259.h>
diff --git a/arch/x86/cpu/intel_common/cpu.c b/arch/x86/cpu/intel_common/cpu.c
index 3a4fd35cff17..87da5feaf616 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 <stdio.h>
 #include <asm/cpu.h>
 #include <asm/cpu_common.h>
 #include <asm/global_data.h>
diff --git a/arch/x86/cpu/intel_common/microcode.c b/arch/x86/cpu/intel_common/microcode.c
index 4d8e1d210838..919d146940af 100644
--- a/arch/x86/cpu/intel_common/microcode.c
+++ b/arch/x86/cpu/intel_common/microcode.c
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <fdtdec.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/libfdt.h>
 #include <asm/cpu.h>
diff --git a/arch/x86/cpu/intel_common/mrc.c b/arch/x86/cpu/intel_common/mrc.c
index eb27f8f18839..e5bf4b225cf3 100644
--- a/arch/x86/cpu/intel_common/mrc.c
+++ b/arch/x86/cpu/intel_common/mrc.c
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <time.h>
 #include <asm/cpu.h>
diff --git a/arch/x86/cpu/irq.c b/arch/x86/cpu/irq.c
index 001c8913fadb..0775c5cddac2 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 <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/irq.h>
diff --git a/arch/x86/cpu/ivybridge/bd82x6x.c b/arch/x86/cpu/ivybridge/bd82x6x.c
index 0540b021618f..84d719e6c4ef 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 <stdio.h>
 #include <asm/cpu.h>
 #include <asm/global_data.h>
 #include <asm/intel_regs.h>
diff --git a/arch/x86/cpu/ivybridge/cpu.c b/arch/x86/cpu/ivybridge/cpu.c
index bddba3eddecd..f5d0993bf214 100644
--- a/arch/x86/cpu/ivybridge/cpu.c
+++ b/arch/x86/cpu/ivybridge/cpu.c
@@ -18,6 +18,7 @@
 #include <init.h>
 #include <log.h>
 #include <pch.h>
+#include <stdio.h>
 #include <asm/cpu.h>
 #include <asm/cpu_common.h>
 #include <asm/global_data.h>
diff --git a/arch/x86/cpu/ivybridge/early_me.c b/arch/x86/cpu/ivybridge/early_me.c
index bee1671baf8b..4f43986926ac 100644
--- a/arch/x86/cpu/ivybridge/early_me.c
+++ b/arch/x86/cpu/ivybridge/early_me.c
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
+#include <stdio.h>
 #include <sysreset.h>
 #include <asm/pci.h>
 #include <asm/cpu.h>
diff --git a/arch/x86/cpu/ivybridge/lpc.c b/arch/x86/cpu/ivybridge/lpc.c
index f931d2be1b52..2d82984dbdf1 100644
--- a/arch/x86/cpu/ivybridge/lpc.c
+++ b/arch/x86/cpu/ivybridge/lpc.c
@@ -12,6 +12,7 @@
 #include <log.h>
 #include <rtc.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/intel_regs.h>
 #include <asm/interrupt.h>
diff --git a/arch/x86/cpu/ivybridge/sdram.c b/arch/x86/cpu/ivybridge/sdram.c
index b9cec969be87..de0f0071fc0c 100644
--- a/arch/x86/cpu/ivybridge/sdram.c
+++ b/arch/x86/cpu/ivybridge/sdram.c
@@ -20,6 +20,7 @@
 #include <rtc.h>
 #include <spi.h>
 #include <spi_flash.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <sysreset.h>
 #include <asm/cpu.h>
diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c
index 22cd1dbe52af..a32283a7e8a2 100644
--- a/arch/x86/cpu/mp_init.c
+++ b/arch/x86/cpu/mp_init.c
@@ -12,6 +12,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <qfw.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/atomic.h>
 #include <asm/cpu.h>
diff --git a/arch/x86/cpu/qfw_cpu.c b/arch/x86/cpu/qfw_cpu.c
index 2747cb312c75..cfa70c10e07a 100644
--- a/arch/x86/cpu/qfw_cpu.c
+++ b/arch/x86/cpu/qfw_cpu.c
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <malloc.h>
 #include <qfw.h>
+#include <stdio.h>
 #include <dm/lists.h>
 #include <dm/uclass-internal.h>
 #include <dm/root.h>
diff --git a/arch/x86/lib/acpi_s3.c b/arch/x86/lib/acpi_s3.c
index 244764152b23..06b15825fc14 100644
--- a/arch/x86/lib/acpi_s3.c
+++ b/arch/x86/lib/acpi_s3.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <acpi/acpi_s3.h>
 #include <acpi/acpi_table.h>
 #include <asm/acpi.h>
diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c
index c6500f62ad80..0d0b8edfcaf2 100644
--- a/arch/x86/lib/acpi_table.c
+++ b/arch/x86/lib/acpi_table.c
@@ -10,6 +10,7 @@
 #include <cpu.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/uclass-internal.h>
 #include <mapmem.h>
diff --git a/arch/x86/lib/bios_interrupts.c b/arch/x86/lib/bios_interrupts.c
index d6b4da7e2502..2582ac1b8408 100644
--- a/arch/x86/lib/bios_interrupts.c
+++ b/arch/x86/lib/bios_interrupts.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/pci.h>
 #include "bios_emul.h"
 
diff --git a/arch/x86/lib/bootm.c b/arch/x86/lib/bootm.c
index e8d252abcd6d..a4bd65d3b7b3 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 <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <dm/device.h>
diff --git a/arch/x86/lib/fsp/fsp_graphics.c b/arch/x86/lib/fsp/fsp_graphics.c
index 32995e2df60e..c5129ff1f304 100644
--- a/arch/x86/lib/fsp/fsp_graphics.c
+++ b/arch/x86/lib/fsp/fsp_graphics.c
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <vbe.h>
 #include <video.h>
 #include <asm/fsp/fsp_support.h>
diff --git a/arch/x86/lib/fsp2/fsp_meminit.c b/arch/x86/lib/fsp2/fsp_meminit.c
index abbe1a011dda..70d0070e6b58 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 <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mrccache.h>
 #include <asm/fsp/fsp_infoheader.h>
diff --git a/arch/x86/lib/interrupts.c b/arch/x86/lib/interrupts.c
index a81e4291105e..11c1a01f0715 100644
--- a/arch/x86/lib/interrupts.c
+++ b/arch/x86/lib/interrupts.c
@@ -32,6 +32,7 @@
 #include <common.h>
 #include <command.h>
 #include <irq_func.h>
+#include <stdio.h>
 #include <asm/interrupt.h>
 
 #if !CONFIG_IS_ENABLED(X86_64)
diff --git a/arch/x86/lib/mrccache.c b/arch/x86/lib/mrccache.c
index 12c24e1e46fb..3582f42733f1 100644
--- a/arch/x86/lib/mrccache.c
+++ b/arch/x86/lib/mrccache.c
@@ -15,6 +15,7 @@
 #include <net.h>
 #include <spi.h>
 #include <spi_flash.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mrccache.h>
 #include <dm/device-internal.h>
diff --git a/arch/x86/lib/pirq_routing.c b/arch/x86/lib/pirq_routing.c
index 8aeba8496a9f..d99a90fb8269 100644
--- a/arch/x86/lib/pirq_routing.c
+++ b/arch/x86/lib/pirq_routing.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <log.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/pci.h>
 #include <asm/pirq_routing.h>
diff --git a/arch/x86/lib/pmu.c b/arch/x86/lib/pmu.c
index 3cd7b1f536e5..8f2649d9829b 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 <stdio.h>
 #include <syscon.h>
 #include <asm/cpu.h>
 #include <asm/pmu.h>
diff --git a/arch/x86/lib/relocate.c b/arch/x86/lib/relocate.c
index ffccbf54dfcd..8a5082d6f30c 100644
--- a/arch/x86/lib/relocate.c
+++ b/arch/x86/lib/relocate.c
@@ -17,6 +17,7 @@
 #include <common.h>
 #include <log.h>
 #include <relocate.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot-x86.h>
 #include <asm/sections.h>
diff --git a/arch/x86/lib/scu.c b/arch/x86/lib/scu.c
index a9d06d82bb45..792b87c2f1b2 100644
--- a/arch/x86/lib/scu.c
+++ b/arch/x86/lib/scu.c
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <dm.h>
 #include <regmap.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <asm/cpu.h>
 #include <asm/scu.h>
diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c
index 96885c6cc55f..ad167be31c47 100644
--- a/arch/x86/lib/spl.c
+++ b/arch/x86/lib/spl.c
@@ -14,6 +14,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <spl.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <asm/cpu.h>
 #include <asm/cpu_common.h>
diff --git a/arch/x86/lib/tables.c b/arch/x86/lib/tables.c
index e4ed0f4aae17..6c1464f4fa4e 100644
--- a/arch/x86/lib/tables.c
+++ b/arch/x86/lib/tables.c
@@ -7,6 +7,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <smbios.h>
+#include <stdio.h>
 #include <acpi/acpi_table.h>
 #include <asm/global_data.h>
 #include <asm/sfi.h>
diff --git a/arch/x86/lib/tpl.c b/arch/x86/lib/tpl.c
index 789472bc9a2a..db07d88dbc4a 100644
--- a/arch/x86/lib/tpl.c
+++ b/arch/x86/lib/tpl.c
@@ -11,6 +11,7 @@
 #include <init.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/cpu.h>
 #include <asm/global_data.h>
 #include <asm/mtrr.h>
diff --git a/arch/x86/lib/zimage.c b/arch/x86/lib/zimage.c
index e7c0ff321208..d467657f8793 100644
--- a/arch/x86/lib/zimage.c
+++ b/arch/x86/lib/zimage.c
@@ -17,6 +17,7 @@
 #include <env.h>
 #include <irq_func.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <acpi/acpi_table.h>
 #include <asm/io.h>
 #include <asm/ptrace.h>
diff --git a/arch/xtensa/cpu/cpu.c b/arch/xtensa/cpu/cpu.c
index 85d3464607df..50e330686652 100644
--- a/arch/xtensa/cpu/cpu.c
+++ b/arch/xtensa/cpu/cpu.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <command.h>
 #include <init.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <linux/stringify.h>
 #include <asm/global_data.h>
diff --git a/arch/xtensa/cpu/exceptions.c b/arch/xtensa/cpu/exceptions.c
index cf9af4326a29..7047b1938d2a 100644
--- a/arch/xtensa/cpu/exceptions.c
+++ b/arch/xtensa/cpu/exceptions.c
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <command.h>
 #include <irq_func.h>
+#include <stdio.h>
 #include <asm/ptrace.h>
 #include <asm/string.h>
 #include <asm/regs.h>
diff --git a/arch/xtensa/lib/bootm.c b/arch/xtensa/lib/bootm.c
index 61ae08517566..0299534728ca 100644
--- a/arch/xtensa/lib/bootm.c
+++ b/arch/xtensa/lib/bootm.c
@@ -9,6 +9,7 @@
 #include <command.h>
 #include <cpu_func.h>
 #include <env.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/string.h>
diff --git a/board/AndesTech/adp-ae3xx/adp-ae3xx.c b/board/AndesTech/adp-ae3xx/adp-ae3xx.c
index 1c142b80a5ae..69611c788320 100644
--- a/board/AndesTech/adp-ae3xx/adp-ae3xx.c
+++ b/board/AndesTech/adp-ae3xx/adp-ae3xx.c
@@ -7,6 +7,7 @@
 
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mach-types.h>
 #include <common.h>
diff --git a/board/AndesTech/adp-ag101p/adp-ag101p.c b/board/AndesTech/adp-ag101p/adp-ag101p.c
index 97f25fa42ed4..9ba4f732223e 100644
--- a/board/AndesTech/adp-ag101p/adp-ag101p.c
+++ b/board/AndesTech/adp-ag101p/adp-ag101p.c
@@ -12,6 +12,7 @@
 #if defined(CONFIG_FTMAC100) && !defined(CONFIG_DM_ETH)
 #include <netdev.h>
 #endif
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/io.h>
diff --git a/board/Arcturus/ucp1020/cmd_arc.c b/board/Arcturus/ucp1020/cmd_arc.c
index 99652dde928a..2cd51d0aa873 100644
--- a/board/Arcturus/ucp1020/cmd_arc.c
+++ b/board/Arcturus/ucp1020/cmd_arc.c
@@ -17,6 +17,7 @@
 #include <malloc.h>
 #include <spi_flash.h>
 #include <mmc.h>
+#include <stdio.h>
 #include <version.h>
 #include <asm/io.h>
 #include <linux/string.h>
diff --git a/board/Arcturus/ucp1020/ddr.c b/board/Arcturus/ucp1020/ddr.c
index 712023faf7d0..7549d4341bbe 100644
--- a/board/Arcturus/ucp1020/ddr.c
+++ b/board/Arcturus/ucp1020/ddr.c
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <asm/mmu.h>
 #include <asm/immap_85xx.h>
diff --git a/board/Arcturus/ucp1020/spl.c b/board/Arcturus/ucp1020/spl.c
index 1f9206aa6147..9a6b465bf96d 100644
--- a/board/Arcturus/ucp1020/spl.c
+++ b/board/Arcturus/ucp1020/spl.c
@@ -20,6 +20,7 @@
 #include <i2c.h>
 #include <fsl_esdhc.h>
 #include <spi_flash.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/string.h>
diff --git a/board/Arcturus/ucp1020/spl_minimal.c b/board/Arcturus/ucp1020/spl_minimal.c
index cd0022a73e17..718139688bf4 100644
--- a/board/Arcturus/ucp1020/spl_minimal.c
+++ b/board/Arcturus/ucp1020/spl_minimal.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <init.h>
 #include <ns16550.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <nand.h>
 #include <linux/compiler.h>
diff --git a/board/Arcturus/ucp1020/ucp1020.c b/board/Arcturus/ucp1020/ucp1020.c
index 838b7995693b..791c91d0e0da 100644
--- a/board/Arcturus/ucp1020/ucp1020.c
+++ b/board/Arcturus/ucp1020/ucp1020.c
@@ -18,6 +18,7 @@
 #include <pci.h>
 #include <i2c.h>
 #include <miiphy.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
diff --git a/board/BuR/brppt1/board.c b/board/BuR/brppt1/board.c
index 7df37e4e66ac..b5a1dccb19bd 100644
--- a/board/BuR/brppt1/board.c
+++ b/board/BuR/brppt1/board.c
@@ -15,6 +15,7 @@
 #include <errno.h>
 #include <init.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/omap.h>
diff --git a/board/BuR/brppt2/board.c b/board/BuR/brppt2/board.c
index e6eb403fc3d9..01bdbc12abb0 100644
--- a/board/BuR/brppt2/board.c
+++ b/board/BuR/brppt2/board.c
@@ -13,6 +13,7 @@
 #include <spl.h>
 #include <dm.h>
 #include <miiphy.h>
+#include <stdio.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/iomux.h>
diff --git a/board/BuR/brsmarc1/board.c b/board/BuR/brsmarc1/board.c
index 738a5d2ff944..b4b1c327f947 100644
--- a/board/BuR/brsmarc1/board.c
+++ b/board/BuR/brsmarc1/board.c
@@ -12,6 +12,7 @@
 #include <errno.h>
 #include <init.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/omap.h>
diff --git a/board/BuR/brxre1/board.c b/board/BuR/brxre1/board.c
index ef692b006d51..6e36a4bb60e8 100644
--- a/board/BuR/brxre1/board.c
+++ b/board/BuR/brxre1/board.c
@@ -13,6 +13,7 @@
 #include <errno.h>
 #include <init.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/omap.h>
diff --git a/board/BuR/common/br_resetc.c b/board/BuR/common/br_resetc.c
index 5006687fbf0d..6bbea816a0e5 100644
--- a/board/BuR/common/br_resetc.c
+++ b/board/BuR/common/br_resetc.c
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <errno.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <dm/uclass.h>
 #include <linux/delay.h>
 #include "br_resetc.h"
diff --git a/board/BuR/common/common.c b/board/BuR/common/common.c
index 377d3f41fe67..b6e763b77fa9 100644
--- a/board/BuR/common/common.c
+++ b/board/BuR/common/common.c
@@ -9,6 +9,7 @@
  *
  */
 #include <log.h>
+#include <stdio.h>
 #include <version.h>
 #include <common.h>
 #include <env.h>
diff --git a/board/BuS/eb_cpu5282/eb_cpu5282.c b/board/BuS/eb_cpu5282/eb_cpu5282.c
index fb612c70752f..7768aeb59df1 100644
--- a/board/BuS/eb_cpu5282/eb_cpu5282.c
+++ b/board/BuS/eb_cpu5282/eb_cpu5282.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 #include "asm/m5282.h"
diff --git a/board/CZ.NIC/turris_mox/turris_mox.c b/board/CZ.NIC/turris_mox/turris_mox.c
index f7f5c1174313..f5fcb93262b7 100644
--- a/board/CZ.NIC/turris_mox/turris_mox.c
+++ b/board/CZ.NIC/turris_mox/turris_mox.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
 #include <net.h>
diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c
index b84227a56e0e..fdce33e157d0 100644
--- a/board/CZ.NIC/turris_omnia/turris_omnia.c
+++ b/board/CZ.NIC/turris_omnia/turris_omnia.c
@@ -15,6 +15,7 @@
 #include <miiphy.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/board/CarMediaLab/flea3/flea3.c b/board/CarMediaLab/flea3/flea3.c
index a5beea9e5506..a0322219d438 100644
--- a/board/CarMediaLab/flea3/flea3.c
+++ b/board/CarMediaLab/flea3/flea3.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <env.h>
diff --git a/board/LaCie/common/common.c b/board/LaCie/common/common.c
index 52880a16fad3..325bc9b3bf7d 100644
--- a/board/LaCie/common/common.c
+++ b/board/LaCie/common/common.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <miiphy.h>
+#include <stdio.h>
 
 #if defined(CONFIG_CMD_NET) && defined(CONFIG_RESET_PHY_R)
 
diff --git a/board/LaCie/net2big_v2/net2big_v2.c b/board/LaCie/net2big_v2/net2big_v2.c
index 695d6f6ed470..f3710681e51c 100644
--- a/board/LaCie/net2big_v2/net2big_v2.c
+++ b/board/LaCie/net2big_v2/net2big_v2.c
@@ -14,6 +14,7 @@
 #include <i2c.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mach-types.h>
 #include <asm/arch/cpu.h>
diff --git a/board/Marvell/db-88f6720/db-88f6720.c b/board/Marvell/db-88f6720/db-88f6720.c
index 8f2b0f55b0ef..82b7ce568e4c 100644
--- a/board/Marvell/db-88f6720/db-88f6720.c
+++ b/board/Marvell/db-88f6720/db-88f6720.c
@@ -8,6 +8,7 @@
 #include <miiphy.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/board/Marvell/db-88f6820-amc/db-88f6820-amc.c b/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
index 948988c788dd..62f59ecb7280 100644
--- a/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
+++ b/board/Marvell/db-88f6820-amc/db-88f6820-amc.c
@@ -9,6 +9,7 @@
 #include <miiphy.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/board/Marvell/db-88f6820-gp/db-88f6820-gp.c b/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
index 508f007d52e6..8fbf78e6d8b6 100644
--- a/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
+++ b/board/Marvell/db-88f6820-gp/db-88f6820-gp.c
@@ -9,6 +9,7 @@
 #include <miiphy.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c b/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
index 66c308bda54a..39a1a52f704d 100644
--- a/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
+++ b/board/Marvell/db-mv784mp-gp/db-mv784mp-gp.c
@@ -8,6 +8,7 @@
 #include <miiphy.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c b/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c
index 0abdca1cd210..23def38e35b3 100644
--- a/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c
+++ b/board/Marvell/db-xc3-24g4xg/db-xc3-24g4xg.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <linux/bitops.h>
diff --git a/board/Marvell/dreamplug/dreamplug.c b/board/Marvell/dreamplug/dreamplug.c
index e1c64b52246b..ff02a72b3bb8 100644
--- a/board/Marvell/dreamplug/dreamplug.c
+++ b/board/Marvell/dreamplug/dreamplug.c
@@ -12,6 +12,7 @@
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
 #include <asm/arch/mpp.h>
diff --git a/board/Marvell/gplugd/gplugd.c b/board/Marvell/gplugd/gplugd.c
index f8d1b9cc13a3..8909fba88374 100644
--- a/board/Marvell/gplugd/gplugd.c
+++ b/board/Marvell/gplugd/gplugd.c
@@ -15,6 +15,7 @@
 #include <init.h>
 #include <log.h>
 #include <mvmfp.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/mfp.h>
 #include <asm/arch/armada100.h>
diff --git a/board/Marvell/guruplug/guruplug.c b/board/Marvell/guruplug/guruplug.c
index 8e7dbb3f3f60..ee4aa24150ca 100644
--- a/board/Marvell/guruplug/guruplug.c
+++ b/board/Marvell/guruplug/guruplug.c
@@ -9,6 +9,7 @@
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mach-types.h>
 #include <asm/arch/cpu.h>
diff --git a/board/Marvell/mvebu_armada-37xx/board.c b/board/Marvell/mvebu_armada-37xx/board.c
index 73e2c3723a36..89b0973389f7 100644
--- a/board/Marvell/mvebu_armada-37xx/board.c
+++ b/board/Marvell/mvebu_armada-37xx/board.c
@@ -8,6 +8,7 @@
 #include <i2c.h>
 #include <init.h>
 #include <phy.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/board/Marvell/mvebu_armada-8k/board.c b/board/Marvell/mvebu_armada-8k/board.c
index fa27a3521422..41fe47defa91 100644
--- a/board/Marvell/mvebu_armada-8k/board.c
+++ b/board/Marvell/mvebu_armada-8k/board.c
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <i2c.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/board/Marvell/openrd/openrd.c b/board/Marvell/openrd/openrd.c
index f44ac3315ebc..5d5447c394e3 100644
--- a/board/Marvell/openrd/openrd.c
+++ b/board/Marvell/openrd/openrd.c
@@ -14,6 +14,7 @@
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mach-types.h>
 #include <asm/arch/cpu.h>
diff --git a/board/Marvell/sheevaplug/sheevaplug.c b/board/Marvell/sheevaplug/sheevaplug.c
index 0cc7f2b39243..4b126a5808d1 100644
--- a/board/Marvell/sheevaplug/sheevaplug.c
+++ b/board/Marvell/sheevaplug/sheevaplug.c
@@ -9,6 +9,7 @@
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mach-types.h>
 #include <asm/arch/cpu.h>
diff --git a/board/Seagate/dockstar/dockstar.c b/board/Seagate/dockstar/dockstar.c
index 380e37be5502..5797e3df7d5c 100644
--- a/board/Seagate/dockstar/dockstar.c
+++ b/board/Seagate/dockstar/dockstar.c
@@ -13,6 +13,7 @@
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/soc.h>
 #include <asm/arch/mpp.h>
 #include <asm/arch/cpu.h>
diff --git a/board/Seagate/goflexhome/goflexhome.c b/board/Seagate/goflexhome/goflexhome.c
index 4c19fa7195e8..1a00eb0cb1f4 100644
--- a/board/Seagate/goflexhome/goflexhome.c
+++ b/board/Seagate/goflexhome/goflexhome.c
@@ -16,6 +16,7 @@
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mach-types.h>
 #include <asm/arch/soc.h>
diff --git a/board/Seagate/nas220/nas220.c b/board/Seagate/nas220/nas220.c
index cd2bbdad1cd6..7f561b01dac0 100644
--- a/board/Seagate/nas220/nas220.c
+++ b/board/Seagate/nas220/nas220.c
@@ -12,6 +12,7 @@
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mach-types.h>
 #include <asm/arch/soc.h>
diff --git a/board/Synology/ds109/ds109.c b/board/Synology/ds109/ds109.c
index 7159535ec456..c15f8c38b9d2 100644
--- a/board/Synology/ds109/ds109.c
+++ b/board/Synology/ds109/ds109.c
@@ -9,6 +9,7 @@
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/setup.h>
 #include <asm/arch/cpu.h>
diff --git a/board/Synology/ds414/cmd_syno.c b/board/Synology/ds414/cmd_syno.c
index 94a56368970e..95911a300a76 100644
--- a/board/Synology/ds414/cmd_syno.c
+++ b/board/Synology/ds414/cmd_syno.c
@@ -12,6 +12,7 @@
 #include <net.h>
 #include <spi.h>
 #include <spi_flash.h>
+#include <stdio.h>
 #include <linux/mtd/mtd.h>
 #include <linux/string.h>
 
diff --git a/board/Synology/ds414/ds414.c b/board/Synology/ds414/ds414.c
index 9c4ce670ddfb..f4a940676e8a 100644
--- a/board/Synology/ds414/ds414.c
+++ b/board/Synology/ds414/ds414.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <init.h>
 #include <miiphy.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/board/advantech/dms-ba16/dms-ba16.c b/board/advantech/dms-ba16/dms-ba16.c
index 685fd20f4238..b59f42c6dafa 100644
--- a/board/advantech/dms-ba16/dms-ba16.c
+++ b/board/advantech/dms-ba16/dms-ba16.c
@@ -7,6 +7,7 @@
 
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c b/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c
index 8492e7603b46..8cd1a1642497 100644
--- a/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c
+++ b/board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <errno.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
 #include <linux/libfdt.h>
diff --git a/board/advantech/imx8qm_rom7720_a1/spl.c b/board/advantech/imx8qm_rom7720_a1/spl.c
index 67028b79a1b7..4d2f692b2940 100644
--- a/board/advantech/imx8qm_rom7720_a1/spl.c
+++ b/board/advantech/imx8qm_rom7720_a1/spl.c
@@ -9,6 +9,7 @@
 #include <log.h>
 #include <spl.h>
 #include <fsl_esdhc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/string.h>
diff --git a/board/alliedtelesis/x530/x530.c b/board/alliedtelesis/x530/x530.c
index d602092d7329..6618cbdc0ad0 100644
--- a/board/alliedtelesis/x530/x530.c
+++ b/board/alliedtelesis/x530/x530.c
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <i2c.h>
 #include <init.h>
+#include <stdio.h>
 #include <wdt.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
diff --git a/board/aristainetos/aristainetos.c b/board/aristainetos/aristainetos.c
index ab73a928d667..7d9deb57a633 100644
--- a/board/aristainetos/aristainetos.c
+++ b/board/aristainetos/aristainetos.c
@@ -12,6 +12,7 @@
 #include <command.h>
 #include <image.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/armadeus/apf27/apf27.c b/board/armadeus/apf27/apf27.c
index 5e3fdd36fa21..6536dd5fe9de 100644
--- a/board/armadeus/apf27/apf27.c
+++ b/board/armadeus/apf27/apf27.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <hang.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <jffs2/jffs2.h>
 #include <nand.h>
diff --git a/board/armadeus/opos6uldev/board.c b/board/armadeus/opos6uldev/board.c
index 365fdca1b76f..34c2ce33c92c 100644
--- a/board/armadeus/opos6uldev/board.c
+++ b/board/armadeus/opos6uldev/board.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
diff --git a/board/armltd/integrator/integrator.c b/board/armltd/integrator/integrator.c
index ddad2bd80dac..a85ac69962ba 100644
--- a/board/armltd/integrator/integrator.c
+++ b/board/armltd/integrator/integrator.c
@@ -24,6 +24,7 @@
 #include <init.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
diff --git a/board/armltd/vexpress/vexpress_common.c b/board/armltd/vexpress/vexpress_common.c
index d4835191a935..5e0d7464dd84 100644
--- a/board/armltd/vexpress/vexpress_common.c
+++ b/board/armltd/vexpress/vexpress_common.c
@@ -23,6 +23,7 @@
 #include <errno.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/mach-types.h>
diff --git a/board/armltd/vexpress/vexpress_tc2.c b/board/armltd/vexpress/vexpress_tc2.c
index fe5389b4e446..f0bedda24a53 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 <stdio.h>
 #include <asm/armv7.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
diff --git a/board/armltd/vexpress64/pcie.c b/board/armltd/vexpress64/pcie.c
index 733b190e594d..1ad320df3a9e 100644
--- a/board/armltd/vexpress64/pcie.c
+++ b/board/armltd/vexpress64/pcie.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <pci_ids.h>
diff --git a/board/armltd/vexpress64/vexpress64.c b/board/armltd/vexpress64/vexpress64.c
index c88482d3cef3..2a44828d6e6d 100644
--- a/board/armltd/vexpress64/vexpress64.c
+++ b/board/armltd/vexpress64/vexpress64.c
@@ -12,6 +12,7 @@
 #include <errno.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
diff --git a/board/astro/mcf5373l/fpga.c b/board/astro/mcf5373l/fpga.c
index ef82f0660703..871700ebfe8a 100644
--- a/board/astro/mcf5373l/fpga.c
+++ b/board/astro/mcf5373l/fpga.c
@@ -15,6 +15,7 @@
 
 #include <common.h>
 #include <console.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <altera.h>
 #include <ACEX1K.h>
diff --git a/board/astro/mcf5373l/mcf5373l.c b/board/astro/mcf5373l/mcf5373l.c
index cb336fca0465..3eabf924c4a5 100644
--- a/board/astro/mcf5373l/mcf5373l.c
+++ b/board/astro/mcf5373l/mcf5373l.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <init.h>
 #include <serial.h>
+#include <stdio.h>
 #include <time.h>
 #include <watchdog.h>
 #include <command.h>
diff --git a/board/atmel/common/board.c b/board/atmel/common/board.c
index eee5c357bdcc..d5455dcab354 100644
--- a/board/atmel/common/board.c
+++ b/board/atmel/common/board.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
+#include <stdio.h>
 #include <w1.h>
 #include <w1-eeprom.h>
 #include <dm/device-internal.h>
diff --git a/board/bachmann/ot1200/ot1200.c b/board/bachmann/ot1200/ot1200.c
index 0754a5994331..6872af6dcd23 100644
--- a/board/bachmann/ot1200/ot1200.c
+++ b/board/bachmann/ot1200/ot1200.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/board/barco/platinum/platinum.c b/board/barco/platinum/platinum.c
index af2b37cbdb1b..b98c577fbbac 100644
--- a/board/barco/platinum/platinum.c
+++ b/board/barco/platinum/platinum.c
@@ -11,6 +11,7 @@
 #include <miiphy.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/board/barco/titanium/titanium.c b/board/barco/titanium/titanium.c
index fe27965b482d..9cd88e2a72de 100644
--- a/board/barco/titanium/titanium.c
+++ b/board/barco/titanium/titanium.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/board/beacon/imx8mm/spl.c b/board/beacon/imx8mm/spl.c
index 572dc5191233..f2525c20b7b3 100644
--- a/board/beacon/imx8mm/spl.c
+++ b/board/beacon/imx8mm/spl.c
@@ -6,6 +6,7 @@
 #include <init.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/mach-imx/iomux-v3.h>
diff --git a/board/beckhoff/mx53cx9020/mx53cx9020.c b/board/beckhoff/mx53cx9020/mx53cx9020.c
index e451ef9ef36c..cbaa4a68f9ed 100644
--- a/board/beckhoff/mx53cx9020/mx53cx9020.c
+++ b/board/beckhoff/mx53cx9020/mx53cx9020.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux-mx53.h>
diff --git a/board/bluegiga/apx4devkit/apx4devkit.c b/board/bluegiga/apx4devkit/apx4devkit.c
index 0bb752e51bd9..93fda9c5b1f3 100644
--- a/board/bluegiga/apx4devkit/apx4devkit.c
+++ b/board/bluegiga/apx4devkit/apx4devkit.c
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
diff --git a/board/bluewater/gurnard/gurnard.c b/board/bluewater/gurnard/gurnard.c
index 706bb6935d2f..874d24e22d6a 100644
--- a/board/bluewater/gurnard/gurnard.c
+++ b/board/bluewater/gurnard/gurnard.c
@@ -19,6 +19,7 @@
 #ifndef CONFIG_DM_ETH
 #include <netdev.h>
 #endif
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
diff --git a/board/bosch/guardian/board.c b/board/bosch/guardian/board.c
index 113838f8b723..5e58ddf3e3d9 100644
--- a/board/bosch/guardian/board.c
+++ b/board/bosch/guardian/board.c
@@ -19,6 +19,7 @@
 #include <led.h>
 #include <miiphy.h>
 #include <panel.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <power/tps65217.h>
 #include <power/tps65910.h>
diff --git a/board/bosch/shc/board.c b/board/bosch/shc/board.c
index 3b4536238260..243a810c4207 100644
--- a/board/bosch/shc/board.c
+++ b/board/bosch/shc/board.c
@@ -20,6 +20,7 @@
 #include <irq_func.h>
 #include <net.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/omap.h>
diff --git a/board/bosch/shc/mux.c b/board/bosch/shc/mux.c
index 0a97eafea6c4..97cf9c79d82b 100644
--- a/board/bosch/shc/mux.c
+++ b/board/bosch/shc/mux.c
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <hang.h>
+#include <stdio.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/mux.h>
diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c
index 16b50dac92af..25005a390f5d 100644
--- a/board/boundary/nitrogen6x/nitrogen6x.c
+++ b/board/boundary/nitrogen6x/nitrogen6x.c
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/board/broadcom/bcm23550_w1d/bcm23550_w1d.c b/board/broadcom/bcm23550_w1d/bcm23550_w1d.c
index 0a5ae5718bec..4c1694985df8 100644
--- a/board/broadcom/bcm23550_w1d/bcm23550_w1d.c
+++ b/board/broadcom/bcm23550_w1d/bcm23550_w1d.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/mach-types.h>
diff --git a/board/broadcom/bcm28155_ap/bcm28155_ap.c b/board/broadcom/bcm28155_ap/bcm28155_ap.c
index 4c0973089475..66e7b916f1f8 100644
--- a/board/broadcom/bcm28155_ap/bcm28155_ap.c
+++ b/board/broadcom/bcm28155_ap/bcm28155_ap.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/mach-types.h>
diff --git a/board/broadcom/bcm963158/bcm963158.c b/board/broadcom/bcm963158/bcm963158.c
index 9feaee3c0fc4..46850b134f73 100644
--- a/board/broadcom/bcm963158/bcm963158.c
+++ b/board/broadcom/bcm963158/bcm963158.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fdtdec.h>
 #include <init.h>
+#include <stdio.h>
 #include <linux/io.h>
 
 #ifdef CONFIG_ARM64
diff --git a/board/broadcom/bcm968360bg/bcm968360bg.c b/board/broadcom/bcm968360bg/bcm968360bg.c
index 90af6b88bd47..2653c9b28d07 100644
--- a/board/broadcom/bcm968360bg/bcm968360bg.c
+++ b/board/broadcom/bcm968360bg/bcm968360bg.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fdtdec.h>
 #include <init.h>
+#include <stdio.h>
 #include <linux/io.h>
 
 #ifdef CONFIG_ARM64
diff --git a/board/broadcom/bcm968580xref/bcm968580xref.c b/board/broadcom/bcm968580xref/bcm968580xref.c
index 1bd723d49edd..60d9dc379981 100644
--- a/board/broadcom/bcm968580xref/bcm968580xref.c
+++ b/board/broadcom/bcm968580xref/bcm968580xref.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fdtdec.h>
 #include <init.h>
+#include <stdio.h>
 #include <linux/io.h>
 
 #ifdef CONFIG_ARM64
diff --git a/board/broadcom/bcm_ep/board.c b/board/broadcom/bcm_ep/board.c
index d14bb9e9e012..3776d00b8d88 100644
--- a/board/broadcom/bcm_ep/board.c
+++ b/board/broadcom/bcm_ep/board.c
@@ -7,6 +7,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/buffalo/lsxl/lsxl.c b/board/buffalo/lsxl/lsxl.c
index 34be601fdde6..97656dd2a7d1 100644
--- a/board/buffalo/lsxl/lsxl.c
+++ b/board/buffalo/lsxl/lsxl.c
@@ -20,6 +20,7 @@
 #include <miiphy.h>
 #include <spi.h>
 #include <spi_flash.h>
+#include <stdio.h>
 #include <asm/arch/soc.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/mpp.h>
diff --git a/board/cadence/xtfpga/xtfpga.c b/board/cadence/xtfpga/xtfpga.c
index 4b49b6e5c863..20f62f61fcde 100644
--- a/board/cadence/xtfpga/xtfpga.c
+++ b/board/cadence/xtfpga/xtfpga.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <dm.h>
 #include <init.h>
+#include <stdio.h>
 #include <dm/platform_data/net_ethoc.h>
 #include <env.h>
 #include <linux/ctype.h>
diff --git a/board/cavium/thunderx/atf.c b/board/cavium/thunderx/atf.c
index a60c944089dd..9c812e9531fe 100644
--- a/board/cavium/thunderx/atf.c
+++ b/board/cavium/thunderx/atf.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/ptrace.h>
diff --git a/board/cavium/thunderx/thunderx.c b/board/cavium/thunderx/thunderx.c
index 18b0f43aa7db..71444324f317 100644
--- a/board/cavium/thunderx/thunderx.c
+++ b/board/cavium/thunderx/thunderx.c
@@ -10,6 +10,7 @@
 #include <malloc.h>
 #include <errno.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/compiler.h>
diff --git a/board/ccv/xpress/xpress.c b/board/ccv/xpress/xpress.c
index 8e23359751ae..1edec6158efc 100644
--- a/board/ccv/xpress/xpress.c
+++ b/board/ccv/xpress/xpress.c
@@ -5,6 +5,7 @@
 
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/cirrus/edb93xx/edb93xx.c b/board/cirrus/edb93xx/edb93xx.c
index f2fb24000c85..d33861f229c1 100644
--- a/board/cirrus/edb93xx/edb93xx.c
+++ b/board/cirrus/edb93xx/edb93xx.c
@@ -21,6 +21,7 @@
 #include <net.h>
 #include <netdev.h>
 #include <status_led.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/mach-types.h>
diff --git a/board/cloudengines/pogo_e02/pogo_e02.c b/board/cloudengines/pogo_e02/pogo_e02.c
index 039fd6e3dd67..fbb88a7150a7 100644
--- a/board/cloudengines/pogo_e02/pogo_e02.c
+++ b/board/cloudengines/pogo_e02/pogo_e02.c
@@ -14,6 +14,7 @@
 #include <log.h>
 #include <miiphy.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
 #include <asm/arch/mpp.h>
diff --git a/board/compulab/cl-som-imx7/cl-som-imx7.c b/board/compulab/cl-som-imx7/cl-som-imx7.c
index 46a0fa76473e..edb37225e743 100644
--- a/board/compulab/cl-som-imx7/cl-som-imx7.c
+++ b/board/compulab/cl-som-imx7/cl-som-imx7.c
@@ -15,6 +15,7 @@
 #include <phy.h>
 #include <netdev.h>
 #include <fsl_esdhc_imx.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
diff --git a/board/compulab/cl-som-imx7/spl.c b/board/compulab/cl-som-imx7/spl.c
index 18dc86cdc830..d75951615be4 100644
--- a/board/compulab/cl-som-imx7/spl.c
+++ b/board/compulab/cl-som-imx7/spl.c
@@ -12,6 +12,7 @@
 #include <init.h>
 #include <spl.h>
 #include <fsl_esdhc_imx.h>
+#include <stdio.h>
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/arch-mx7/mx7-pins.h>
 #include <asm/arch-mx7/clock.h>
diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c
index 4147c4f7d023..aeab97d7d207 100644
--- a/board/compulab/cm_fx6/cm_fx6.c
+++ b/board/compulab/cm_fx6/cm_fx6.c
@@ -19,6 +19,7 @@
 #include <net.h>
 #include <netdev.h>
 #include <errno.h>
+#include <stdio.h>
 #include <usb.h>
 #include <fdt_support.h>
 #include <sata.h>
diff --git a/board/compulab/cm_fx6/spl.c b/board/compulab/cm_fx6/spl.c
index ab739330d9c4..0dab1cbd60aa 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 <stdio.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/mx6-ddr.h>
diff --git a/board/compulab/cm_t335/cm_t335.c b/board/compulab/cm_t335/cm_t335.c
index 2a63aadf0d72..26ba6711c934 100644
--- a/board/compulab/cm_t335/cm_t335.c
+++ b/board/compulab/cm_t335/cm_t335.c
@@ -14,6 +14,7 @@
 #include <net.h>
 #include <status_led.h>
 #include <cpsw.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
diff --git a/board/compulab/cm_t335/spl.c b/board/compulab/cm_t335/spl.c
index 8662632a7e39..293323b4b0fc 100644
--- a/board/compulab/cm_t335/spl.c
+++ b/board/compulab/cm_t335/spl.c
@@ -14,6 +14,7 @@
 #include <errno.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 
 #include <asm/arch/ddr_defs.h>
 #include <asm/arch/clock.h>
diff --git a/board/compulab/cm_t43/cm_t43.c b/board/compulab/cm_t43/cm_t43.c
index 92c8092d6d7e..c035f3643103 100644
--- a/board/compulab/cm_t43/cm_t43.c
+++ b/board/compulab/cm_t43/cm_t43.c
@@ -8,6 +8,7 @@
 #include <miiphy.h>
 #include <cpsw.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <asm/arch/sys_proto.h>
diff --git a/board/compulab/common/common.c b/board/compulab/common/common.c
index 528c97df19a4..7021e73b0820 100644
--- a/board/compulab/common/common.c
+++ b/board/compulab/common/common.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/bootm.h>
 #include <asm/gpio.h>
 #include <asm/setup.h>
diff --git a/board/compulab/common/eeprom.c b/board/compulab/common/eeprom.c
index fa4ab7d65672..94ab9003b35d 100644
--- a/board/compulab/common/eeprom.c
+++ b/board/compulab/common/eeprom.c
@@ -11,6 +11,7 @@
 #include <i2c.h>
 #include <eeprom_layout.h>
 #include <eeprom_field.h>
+#include <stdio.h>
 #include <asm/setup.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
diff --git a/board/compulab/common/omap3_display.c b/board/compulab/common/omap3_display.c
index e1511e82eccc..93ae1c6b0863 100644
--- a/board/compulab/common/omap3_display.c
+++ b/board/compulab/common/omap3_display.c
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <env.h>
diff --git a/board/compulab/common/omap3_smc911x.c b/board/compulab/common/omap3_smc911x.c
index f0d365272c1b..a6a03bc58237 100644
--- a/board/compulab/common/omap3_smc911x.c
+++ b/board/compulab/common/omap3_smc911x.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <linux/delay.h>
 
 #include <asm/io.h>
diff --git a/board/congatec/cgtqmx6eval/cgtqmx6eval.c b/board/congatec/cgtqmx6eval/cgtqmx6eval.c
index 62c53d782e00..c4b3772e8355 100644
--- a/board/congatec/cgtqmx6eval/cgtqmx6eval.c
+++ b/board/congatec/cgtqmx6eval/cgtqmx6eval.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/board/congatec/conga-qeval20-qa3-e3845/conga-qeval20-qa3.c b/board/congatec/conga-qeval20-qa3-e3845/conga-qeval20-qa3.c
index 315b6dc54295..4184c34ace04 100644
--- a/board/congatec/conga-qeval20-qa3-e3845/conga-qeval20-qa3.c
+++ b/board/congatec/conga-qeval20-qa3-e3845/conga-qeval20-qa3.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <init.h>
+#include <stdio.h>
 #include <winbond_w83627.h>
 #include <asm/gpio.h>
 #include <asm/ibmpc.h>
diff --git a/board/corscience/tricorder/tricorder-eeprom.c b/board/corscience/tricorder/tricorder-eeprom.c
index 266f43a0058f..002daf23f4db 100644
--- a/board/corscience/tricorder/tricorder-eeprom.c
+++ b/board/corscience/tricorder/tricorder-eeprom.c
@@ -9,6 +9,7 @@
 #include <display_options.h>
 #include <eeprom.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
 
diff --git a/board/corscience/tricorder/tricorder.c b/board/corscience/tricorder/tricorder.c
index 53495aa187bd..8fec67a69128 100644
--- a/board/corscience/tricorder/tricorder.c
+++ b/board/corscience/tricorder/tricorder.c
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <twl4030.h>
 #include <status_led.h>
 #include <asm/global_data.h>
diff --git a/board/cortina/presidio-asic/presidio.c b/board/cortina/presidio-asic/presidio.c
index 5c7352226373..f26ad2a5d9c1 100644
--- a/board/cortina/presidio-asic/presidio.c
+++ b/board/cortina/presidio-asic/presidio.c
@@ -8,6 +8,7 @@
 #include <malloc.h>
 #include <errno.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
diff --git a/board/cssi/MCR3000/MCR3000.c b/board/cssi/MCR3000/MCR3000.c
index dc0edd961d84..3bce44ef4305 100644
--- a/board/cssi/MCR3000/MCR3000.c
+++ b/board/cssi/MCR3000/MCR3000.c
@@ -14,6 +14,7 @@
 #include <mpc8xx.h>
 #include <fdt_support.h>
 #include <serial.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/ppc.h>
diff --git a/board/d-link/dns325/dns325.c b/board/d-link/dns325/dns325.c
index 055783f63ada..a50220576f12 100644
--- a/board/d-link/dns325/dns325.c
+++ b/board/d-link/dns325/dns325.c
@@ -15,6 +15,7 @@
 #include <miiphy.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
 #include <asm/arch/mpp.h>
diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c
index 38e51eb23e37..80c317a5a5d6 100644
--- a/board/davinci/da8xxevm/da850evm.c
+++ b/board/davinci/da8xxevm/da850evm.c
@@ -16,6 +16,7 @@
 #include <net.h>
 #include <spi.h>
 #include <spi_flash.h>
+#include <stdio.h>
 #include <asm/arch/hardware.h>
 #include <asm/global_data.h>
 #include <asm/ti-common/davinci_nand.h>
diff --git a/board/davinci/da8xxevm/omapl138_lcdk.c b/board/davinci/da8xxevm/omapl138_lcdk.c
index 347f616df672..7a75494d7f3d 100644
--- a/board/davinci/da8xxevm/omapl138_lcdk.c
+++ b/board/davinci/da8xxevm/omapl138_lcdk.c
@@ -13,6 +13,7 @@
 #include <i2c.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/hardware.h>
 #include <asm/global_data.h>
 #include <asm/ti-common/davinci_nand.h>
diff --git a/board/dhelectronics/dh_imx6/dh_imx6.c b/board/dhelectronics/dh_imx6/dh_imx6.c
index c8c99a2aa47d..b7a1a71de097 100644
--- a/board/dhelectronics/dh_imx6/dh_imx6.c
+++ b/board/dhelectronics/dh_imx6/dh_imx6.c
@@ -11,6 +11,7 @@
 #include <image.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/device-internal.h>
 #include <asm/arch/clock.h>
diff --git a/board/dhelectronics/dh_imx6/dh_imx6_spl.c b/board/dhelectronics/dh_imx6/dh_imx6_spl.c
index bcb39eab886f..fdf915fead49 100644
--- a/board/dhelectronics/dh_imx6/dh_imx6_spl.c
+++ b/board/dhelectronics/dh_imx6/dh_imx6_spl.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/dhelectronics/dh_stm32mp1/board.c b/board/dhelectronics/dh_stm32mp1/board.c
index 92d752f7258a..9f48438dde31 100644
--- a/board/dhelectronics/dh_stm32mp1/board.c
+++ b/board/dhelectronics/dh_stm32mp1/board.c
@@ -7,6 +7,7 @@
 #include <adc.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/stm32.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/global_data.h>
diff --git a/board/egnite/ethernut5/ethernut5_pwrman.c b/board/egnite/ethernut5/ethernut5_pwrman.c
index 56c33bfade4b..b91020ec33f2 100644
--- a/board/egnite/ethernut5/ethernut5_pwrman.c
+++ b/board/egnite/ethernut5/ethernut5_pwrman.c
@@ -33,6 +33,7 @@
  */
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/arch/at91sam9260.h>
 #include <asm/arch/at91_common.h>
 #include <asm/arch/gpio.h>
diff --git a/board/el/el6x/el6x.c b/board/el/el6x/el6x.c
index f5c874dcda8b..8272e1459d2a 100644
--- a/board/el/el6x/el6x.c
+++ b/board/el/el6x/el6x.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/embest/mx6boards/mx6boards.c b/board/embest/mx6boards/mx6boards.c
index 3cd24de612ba..6bd0b10a9e1b 100644
--- a/board/embest/mx6boards/mx6boards.c
+++ b/board/embest/mx6boards/mx6boards.c
@@ -15,6 +15,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/engicam/common/spl.c b/board/engicam/common/spl.c
index d57419a78efe..fc01fabd521f 100644
--- a/board/engicam/common/spl.c
+++ b/board/engicam/common/spl.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <serial.h>
 #include <spl.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 
diff --git a/board/esd/meesc/meesc.c b/board/esd/meesc/meesc.c
index fe2f9a4d2b13..6ddaed412ed8 100644
--- a/board/esd/meesc/meesc.c
+++ b/board/esd/meesc/meesc.c
@@ -14,6 +14,7 @@
 #include <init.h>
 #include <net.h>
 #include <serial.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/esd/vme8349/caddy.c b/board/esd/vme8349/caddy.c
index fc4855a5beae..6bda7b040736 100644
--- a/board/esd/vme8349/caddy.c
+++ b/board/esd/vme8349/caddy.c
@@ -11,6 +11,7 @@
 #include <console.h>
 #include <ioports.h>
 #include <mpc83xx.h>
+#include <stdio.h>
 #include <asm/mpc8349_pci.h>
 #include <pci.h>
 #include <asm/mmu.h>
diff --git a/board/esd/vme8349/pci.c b/board/esd/vme8349/pci.c
index 560069bbc145..bf59cc8d8c2d 100644
--- a/board/esd/vme8349/pci.c
+++ b/board/esd/vme8349/pci.c
@@ -11,6 +11,7 @@
  */
 
 #include <init.h>
+#include <stdio.h>
 #include <asm/mmu.h>
 #include <asm/io.h>
 #include <common.h>
diff --git a/board/esd/vme8349/vme8349.c b/board/esd/vme8349/vme8349.c
index a5874ad273a1..bc56284655c7 100644
--- a/board/esd/vme8349/vme8349.c
+++ b/board/esd/vme8349/vme8349.c
@@ -17,6 +17,7 @@
 #include <ioports.h>
 #include <mpc83xx.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mpc8349_pci.h>
 #if defined(CONFIG_OF_LIBFDT)
diff --git a/board/firefly/firefly-rk3308/roc_cc_rk3308.c b/board/firefly/firefly-rk3308/roc_cc_rk3308.c
index 28dcc2a6903a..d559fccf2ab2 100644
--- a/board/firefly/firefly-rk3308/roc_cc_rk3308.c
+++ b/board/firefly/firefly-rk3308/roc_cc_rk3308.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <adc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/grf_rk3308.h>
 #include <asm/arch-rockchip/hardware.h>
diff --git a/board/freescale/common/cmd_esbc_validate.c b/board/freescale/common/cmd_esbc_validate.c
index 638aa3c19a4d..2190e51c150e 100644
--- a/board/freescale/common/cmd_esbc_validate.c
+++ b/board/freescale/common/cmd_esbc_validate.c
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <env.h>
 #include <fsl_validate.h>
+#include <stdio.h>
 
 int do_esbc_halt(struct cmd_tbl *cmdtp, int flag, int argc,
 		 char *const argv[])
diff --git a/board/freescale/common/dcu_sii9022a.c b/board/freescale/common/dcu_sii9022a.c
index 832ae258f149..dc0f27bfe71d 100644
--- a/board/freescale/common/dcu_sii9022a.c
+++ b/board/freescale/common/dcu_sii9022a.c
@@ -4,6 +4,7 @@
  * Copyright 2019 NXP
  */
 
+#include <stdio.h>
 #include <asm/io.h>
 #include <common.h>
 #include <fsl_dcu_fb.h>
diff --git a/board/freescale/common/diu_ch7301.c b/board/freescale/common/diu_ch7301.c
index 02a271895bdc..cd6264b354f5 100644
--- a/board/freescale/common/diu_ch7301.c
+++ b/board/freescale/common/diu_ch7301.c
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <stdio_dev.h>
 #include <i2c.h>
 #include <linux/delay.h>
diff --git a/board/freescale/common/emc2305.c b/board/freescale/common/emc2305.c
index 07b2ec06bbcb..b8f2bbd2b5a9 100644
--- a/board/freescale/common/emc2305.c
+++ b/board/freescale/common/emc2305.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <command.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 
diff --git a/board/freescale/common/fsl_chain_of_trust.c b/board/freescale/common/fsl_chain_of_trust.c
index cafb24971b21..7567ea2c1c29 100644
--- a/board/freescale/common/fsl_chain_of_trust.c
+++ b/board/freescale/common/fsl_chain_of_trust.c
@@ -10,6 +10,7 @@
 #include <fsl_secboot_err.h>
 #include <fsl_sfp.h>
 #include <log.h>
+#include <stdio.h>
 #include <dm/root.h>
 
 #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_FRAMEWORK)
diff --git a/board/freescale/common/fsl_validate.c b/board/freescale/common/fsl_validate.c
index 213545e777f4..ff6e2bfb34f5 100644
--- a/board/freescale/common/fsl_validate.c
+++ b/board/freescale/common/fsl_validate.c
@@ -13,6 +13,7 @@
 #include <command.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include <u-boot/rsa-mod-exp.h>
 #include <hash.h>
diff --git a/board/freescale/common/mc34vr500.c b/board/freescale/common/mc34vr500.c
index d6b4c65a3c08..6f485ea233ed 100644
--- a/board/freescale/common/mc34vr500.c
+++ b/board/freescale/common/mc34vr500.c
@@ -8,6 +8,7 @@
 #include <errno.h>
 #include <i2c.h>
 #include <log.h>
+#include <stdio.h>
 #include <power/pmic.h>
 #include <power/mc34vr500_pmic.h>
 
diff --git a/board/freescale/common/ngpixis.c b/board/freescale/common/ngpixis.c
index a89b07986bb0..5bceb7747d5e 100644
--- a/board/freescale/common/ngpixis.c
+++ b/board/freescale/common/ngpixis.c
@@ -31,6 +31,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/string.h>
 
diff --git a/board/freescale/common/pfuze.c b/board/freescale/common/pfuze.c
index 6dca22960bf8..af1ee044bb3c 100644
--- a/board/freescale/common/pfuze.c
+++ b/board/freescale/common/pfuze.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <stdio.h>
 #include <power/pmic.h>
 #include <power/pfuze100_pmic.h>
 
diff --git a/board/freescale/common/pixis.c b/board/freescale/common/pixis.c
index 99e8069ad299..6f4f2e6d2413 100644
--- a/board/freescale/common/pixis.c
+++ b/board/freescale/common/pixis.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/string.h>
 
diff --git a/board/freescale/common/pq-mds-pib.c b/board/freescale/common/pq-mds-pib.c
index ae6603985751..10e1dfe43f97 100644
--- a/board/freescale/common/pq-mds-pib.c
+++ b/board/freescale/common/pq-mds-pib.c
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <asm/io.h>
 
 #include "pq-mds-pib.h"
diff --git a/board/freescale/common/qixis.c b/board/freescale/common/qixis.c
index 8592b0f0f0ac..e1716676a4ab 100644
--- a/board/freescale/common/qixis.c
+++ b/board/freescale/common/qixis.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/compiler.h>
 #include <linux/string.h>
diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c
index 566920d5feb9..2f1144dcd74e 100644
--- a/board/freescale/common/sys_eeprom.c
+++ b/board/freescale/common/sys_eeprom.c
@@ -11,6 +11,7 @@
 #include <env.h>
 #include <i2c.h>
 #include <init.h>
+#include <stdio.h>
 #include <linux/ctype.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/board/freescale/common/vid.c b/board/freescale/common/vid.c
index ed0d9b471cad..77c7dd2c4689 100644
--- a/board/freescale/common/vid.c
+++ b/board/freescale/common/vid.c
@@ -9,6 +9,7 @@
 #include <i2c.h>
 #include <irq_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #ifdef CONFIG_FSL_LSCH2
 #include <asm/arch/immap_lsch2.h>
diff --git a/board/freescale/corenet_ds/corenet_ds.c b/board/freescale/corenet_ds/corenet_ds.c
index 67b47e33e725..a6b93bab4e89 100644
--- a/board/freescale/corenet_ds/corenet_ds.c
+++ b/board/freescale/corenet_ds/corenet_ds.c
@@ -10,6 +10,7 @@
 #include <image.h>
 #include <init.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/compiler.h>
diff --git a/board/freescale/corenet_ds/ddr.c b/board/freescale/corenet_ds/ddr.c
index bce099a8ed8f..ea1419efa700 100644
--- a/board/freescale/corenet_ds/ddr.c
+++ b/board/freescale/corenet_ds/ddr.c
@@ -8,6 +8,7 @@
 #include <hwconfig.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <asm/mmu.h>
diff --git a/board/freescale/corenet_ds/eth_hydra.c b/board/freescale/corenet_ds/eth_hydra.c
index 71c588c14178..0a31c9e31120 100644
--- a/board/freescale/corenet_ds/eth_hydra.c
+++ b/board/freescale/corenet_ds/eth_hydra.c
@@ -50,6 +50,7 @@
 #include <common.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/fsl_serdes.h>
 #include <fm_eth.h>
 #include <fsl_mdio.h>
diff --git a/board/freescale/corenet_ds/eth_p4080.c b/board/freescale/corenet_ds/eth_p4080.c
index 3360e0ffc795..09f9f85f91b9 100644
--- a/board/freescale/corenet_ds/eth_p4080.c
+++ b/board/freescale/corenet_ds/eth_p4080.c
@@ -8,6 +8,7 @@
 #include <fdt_support.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/mmu.h>
 #include <asm/processor.h>
 #include <asm/cache.h>
diff --git a/board/freescale/corenet_ds/eth_superhydra.c b/board/freescale/corenet_ds/eth_superhydra.c
index 57fb5a77f06c..954f55bdbf62 100644
--- a/board/freescale/corenet_ds/eth_superhydra.c
+++ b/board/freescale/corenet_ds/eth_superhydra.c
@@ -51,6 +51,7 @@
 #include <log.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/fsl_serdes.h>
 #include <fm_eth.h>
 #include <fsl_mdio.h>
diff --git a/board/freescale/imx8mm_evk/spl.c b/board/freescale/imx8mm_evk/spl.c
index fbc13ad128ad..63257eabb6f8 100644
--- a/board/freescale/imx8mm_evk/spl.c
+++ b/board/freescale/imx8mm_evk/spl.c
@@ -11,6 +11,7 @@
 #include <init.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/mach-imx/iomux-v3.h>
diff --git a/board/freescale/imx8mn_evk/spl.c b/board/freescale/imx8mn_evk/spl.c
index 9f3c58841284..1d5e95e62d85 100644
--- a/board/freescale/imx8mn_evk/spl.c
+++ b/board/freescale/imx8mn_evk/spl.c
@@ -12,6 +12,7 @@
 #include <init.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/mach-imx/iomux-v3.h>
diff --git a/board/freescale/imx8mp_evk/spl.c b/board/freescale/imx8mp_evk/spl.c
index ebfd94dc1fa0..244d04c18a5a 100644
--- a/board/freescale/imx8mp_evk/spl.c
+++ b/board/freescale/imx8mp_evk/spl.c
@@ -12,6 +12,7 @@
 #include <init.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <errno.h>
diff --git a/board/freescale/imx8mq_evk/spl.c b/board/freescale/imx8mq_evk/spl.c
index d9d1973120b6..7316c762a2b7 100644
--- a/board/freescale/imx8mq_evk/spl.c
+++ b/board/freescale/imx8mq_evk/spl.c
@@ -10,6 +10,7 @@
 #include <image.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <errno.h>
diff --git a/board/freescale/imx8qm_mek/imx8qm_mek.c b/board/freescale/imx8qm_mek/imx8qm_mek.c
index de9e4f0de418..4f0b0467da00 100644
--- a/board/freescale/imx8qm_mek/imx8qm_mek.c
+++ b/board/freescale/imx8qm_mek/imx8qm_mek.c
@@ -8,6 +8,7 @@
 #include <env.h>
 #include <errno.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/libfdt.h>
diff --git a/board/freescale/imx8qm_mek/spl.c b/board/freescale/imx8qm_mek/spl.c
index cdbff80e31bb..d3d3431fe63f 100644
--- a/board/freescale/imx8qm_mek/spl.c
+++ b/board/freescale/imx8qm_mek/spl.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/uclass.h>
 #include <dm/device.h>
diff --git a/board/freescale/imx8qxp_mek/imx8qxp_mek.c b/board/freescale/imx8qxp_mek/imx8qxp_mek.c
index b6511d4e9df1..9b70813281be 100644
--- a/board/freescale/imx8qxp_mek/imx8qxp_mek.c
+++ b/board/freescale/imx8qxp_mek/imx8qxp_mek.c
@@ -8,6 +8,7 @@
 #include <env.h>
 #include <errno.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
diff --git a/board/freescale/imx8qxp_mek/spl.c b/board/freescale/imx8qxp_mek/spl.c
index 9eb4268ce3fe..78d2856e3b43 100644
--- a/board/freescale/imx8qxp_mek/spl.c
+++ b/board/freescale/imx8qxp_mek/spl.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/uclass.h>
 #include <dm/device.h>
diff --git a/board/freescale/ls1012afrdm/eth.c b/board/freescale/ls1012afrdm/eth.c
index eaea1c46e48e..c29cb639e3ac 100644
--- a/board/freescale/ls1012afrdm/eth.c
+++ b/board/freescale/ls1012afrdm/eth.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <netdev.h>
 #include <fm_eth.h>
diff --git a/board/freescale/ls1012afrdm/ls1012afrdm.c b/board/freescale/ls1012afrdm/ls1012afrdm.c
index c872318b2c88..3100aee2715e 100644
--- a/board/freescale/ls1012afrdm/ls1012afrdm.c
+++ b/board/freescale/ls1012afrdm/ls1012afrdm.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fdt_support.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <init.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/ls1012aqds/eth.c b/board/freescale/ls1012aqds/eth.c
index b4ef60738ebf..d0d012e67f20 100644
--- a/board/freescale/ls1012aqds/eth.c
+++ b/board/freescale/ls1012aqds/eth.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <netdev.h>
 #include <fm_eth.h>
diff --git a/board/freescale/ls1012aqds/ls1012aqds.c b/board/freescale/ls1012aqds/ls1012aqds.c
index 163d2c419485..50e04204c688 100644
--- a/board/freescale/ls1012aqds/ls1012aqds.c
+++ b/board/freescale/ls1012aqds/ls1012aqds.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <fdt_support.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <init.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/ls1012ardb/eth.c b/board/freescale/ls1012ardb/eth.c
index a65ff4dc9c4f..7d4d4017e925 100644
--- a/board/freescale/ls1012ardb/eth.c
+++ b/board/freescale/ls1012ardb/eth.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <netdev.h>
 #include <fm_eth.h>
diff --git a/board/freescale/ls1012ardb/ls1012ardb.c b/board/freescale/ls1012ardb/ls1012ardb.c
index 1d3461f24232..278dc2221e40 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 <stdio.h>
 #include <asm/cache.h>
 #include <init.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/ls1021aiot/dcu.c b/board/freescale/ls1021aiot/dcu.c
index 55706549852c..581165100c7c 100644
--- a/board/freescale/ls1021aiot/dcu.c
+++ b/board/freescale/ls1021aiot/dcu.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <fsl_dcu_fb.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 #include "div64.h"
diff --git a/board/freescale/ls1021aiot/ls1021aiot.c b/board/freescale/ls1021aiot/ls1021aiot.c
index 0170712c2463..09ef96e6bb4f 100644
--- a/board/freescale/ls1021aiot/ls1021aiot.c
+++ b/board/freescale/ls1021aiot/ls1021aiot.c
@@ -8,6 +8,7 @@
 #include <fdt_support.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/immap_ls102xa.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/fsl_serdes.h>
diff --git a/board/freescale/ls1021aqds/dcu.c b/board/freescale/ls1021aqds/dcu.c
index 1bfd94bb7a18..7f0ae42e92b6 100644
--- a/board/freescale/ls1021aqds/dcu.c
+++ b/board/freescale/ls1021aqds/dcu.c
@@ -6,6 +6,7 @@
  * FSL DCU Framebuffer driver
  */
 
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <common.h>
diff --git a/board/freescale/ls1021aqds/ddr.c b/board/freescale/ls1021aqds/ddr.c
index e63fe63e40cd..61dcdf8fb06f 100644
--- a/board/freescale/ls1021aqds/ddr.c
+++ b/board/freescale/ls1021aqds/ddr.c
@@ -8,6 +8,7 @@
 #include <fsl_ddr_dimm_params.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/board/freescale/ls1021aqds/eth.c b/board/freescale/ls1021aqds/eth.c
index f9aa2f09fb99..786935b8b335 100644
--- a/board/freescale/ls1021aqds/eth.c
+++ b/board/freescale/ls1021aqds/eth.c
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/arch/fsl_serdes.h>
 #include <fsl_mdio.h>
 #include <tsec.h>
diff --git a/board/freescale/ls1021aqds/ls1021aqds.c b/board/freescale/ls1021aqds/ls1021aqds.c
index 267af86ccb2f..1b7dcf2d33d0 100644
--- a/board/freescale/ls1021aqds/ls1021aqds.c
+++ b/board/freescale/ls1021aqds/ls1021aqds.c
@@ -10,6 +10,7 @@
 #include <i2c.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/immap_ls102xa.h>
 #include <asm/arch/clock.h>
diff --git a/board/freescale/ls1021atwr/dcu.c b/board/freescale/ls1021atwr/dcu.c
index b52d297bb96f..89b1fb802716 100644
--- a/board/freescale/ls1021atwr/dcu.c
+++ b/board/freescale/ls1021atwr/dcu.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <fsl_dcu_fb.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 #include "div64.h"
diff --git a/board/freescale/ls1021atwr/ls1021atwr.c b/board/freescale/ls1021atwr/ls1021atwr.c
index 8640d2746a29..cf9c171889e2 100644
--- a/board/freescale/ls1021atwr/ls1021atwr.c
+++ b/board/freescale/ls1021atwr/ls1021atwr.c
@@ -11,6 +11,7 @@
 #include <i2c.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/immap_ls102xa.h>
diff --git a/board/freescale/ls1028a/ls1028a.c b/board/freescale/ls1028a/ls1028a.c
index de41dd155e69..220d0b0befaa 100644
--- a/board/freescale/ls1028a/ls1028a.c
+++ b/board/freescale/ls1028a/ls1028a.c
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <fsl_ddr.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <hwconfig.h>
diff --git a/board/freescale/ls1043aqds/ddr.c b/board/freescale/ls1043aqds/ddr.c
index 23947bdb84c9..079f19458e41 100644
--- a/board/freescale/ls1043aqds/ddr.c
+++ b/board/freescale/ls1043aqds/ddr.c
@@ -10,6 +10,7 @@
 #include <fsl_sleep.h>
 #endif
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/global_data.h>
 #include "ddr.h"
diff --git a/board/freescale/ls1043aqds/eth.c b/board/freescale/ls1043aqds/eth.c
index 68e1642d2d4f..ba56512ec96e 100644
--- a/board/freescale/ls1043aqds/eth.c
+++ b/board/freescale/ls1043aqds/eth.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <netdev.h>
 #include <fdt_support.h>
diff --git a/board/freescale/ls1043aqds/ls1043aqds.c b/board/freescale/ls1043aqds/ls1043aqds.c
index 8fc20ea46e77..183fdcf12c37 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 <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/board/freescale/ls1043ardb/cpld.c b/board/freescale/ls1043ardb/cpld.c
index 90faa0ba209e..c230dcdca5df 100644
--- a/board/freescale/ls1043ardb/cpld.c
+++ b/board/freescale/ls1043ardb/cpld.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/string.h>
 #include "cpld.h"
diff --git a/board/freescale/ls1043ardb/ddr.c b/board/freescale/ls1043ardb/ddr.c
index 75346de3726f..d4442e6d8ff6 100644
--- a/board/freescale/ls1043ardb/ddr.c
+++ b/board/freescale/ls1043ardb/ddr.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 #include "ddr.h"
diff --git a/board/freescale/ls1043ardb/eth.c b/board/freescale/ls1043ardb/eth.c
index dde2f376c9a5..a89978bbd7dd 100644
--- a/board/freescale/ls1043ardb/eth.c
+++ b/board/freescale/ls1043ardb/eth.c
@@ -4,6 +4,7 @@
  */
 #include <common.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <netdev.h>
 #include <fm_eth.h>
diff --git a/board/freescale/ls1043ardb/ls1043ardb.c b/board/freescale/ls1043ardb/ls1043ardb.c
index d9ab32bd2cc6..86309266a047 100644
--- a/board/freescale/ls1043ardb/ls1043ardb.c
+++ b/board/freescale/ls1043ardb/ls1043ardb.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/board/freescale/ls1046afrwy/eth.c b/board/freescale/ls1046afrwy/eth.c
index 5797c764dce8..278856f56d73 100644
--- a/board/freescale/ls1046afrwy/eth.c
+++ b/board/freescale/ls1046afrwy/eth.c
@@ -5,6 +5,7 @@
 #include <common.h>
 #include <fdt_support.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <netdev.h>
 #include <fm_eth.h>
diff --git a/board/freescale/ls1046afrwy/ls1046afrwy.c b/board/freescale/ls1046afrwy/ls1046afrwy.c
index 4d2d66b6b359..550c901a76bf 100644
--- a/board/freescale/ls1046afrwy/ls1046afrwy.c
+++ b/board/freescale/ls1046afrwy/ls1046afrwy.c
@@ -7,6 +7,7 @@
 #include <i2c.h>
 #include <fdt_support.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/board/freescale/ls1046aqds/ddr.c b/board/freescale/ls1046aqds/ddr.c
index 9a96de271786..98484ef995be 100644
--- a/board/freescale/ls1046aqds/ddr.c
+++ b/board/freescale/ls1046aqds/ddr.c
@@ -10,6 +10,7 @@
 #include <fsl_sleep.h>
 #endif
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/global_data.h>
 #include "ddr.h"
diff --git a/board/freescale/ls1046aqds/eth.c b/board/freescale/ls1046aqds/eth.c
index b4ea0239da4c..93a41cd4a129 100644
--- a/board/freescale/ls1046aqds/eth.c
+++ b/board/freescale/ls1046aqds/eth.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <netdev.h>
 #include <fdt_support.h>
diff --git a/board/freescale/ls1046aqds/ls1046aqds.c b/board/freescale/ls1046aqds/ls1046aqds.c
index cb11eb633bbc..52266a594367 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 <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/board/freescale/ls1046ardb/cpld.c b/board/freescale/ls1046ardb/cpld.c
index 252b5adaf5e4..4182baa4975e 100644
--- a/board/freescale/ls1046ardb/cpld.c
+++ b/board/freescale/ls1046ardb/cpld.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/string.h>
 #include "cpld.h"
diff --git a/board/freescale/ls1046ardb/ddr.c b/board/freescale/ls1046ardb/ddr.c
index befb556bd30b..ff7a4e225068 100644
--- a/board/freescale/ls1046ardb/ddr.c
+++ b/board/freescale/ls1046ardb/ddr.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include "ddr.h"
 #ifdef CONFIG_FSL_DEEP_SLEEP
diff --git a/board/freescale/ls1046ardb/eth.c b/board/freescale/ls1046ardb/eth.c
index c0ae35c6e395..6d05c964bd0f 100644
--- a/board/freescale/ls1046ardb/eth.c
+++ b/board/freescale/ls1046ardb/eth.c
@@ -5,6 +5,7 @@
 #include <common.h>
 #include <fdt_support.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <netdev.h>
 #include <fm_eth.h>
diff --git a/board/freescale/ls1046ardb/ls1046ardb.c b/board/freescale/ls1046ardb/ls1046ardb.c
index 6a15cdfcd332..ad4caaa5044f 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 <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/board/freescale/ls1088a/ddr.c b/board/freescale/ls1088a/ddr.c
index 995c42960178..1e3002005a99 100644
--- a/board/freescale/ls1088a/ddr.c
+++ b/board/freescale/ls1088a/ddr.c
@@ -7,6 +7,7 @@
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/soc.h>
 #include <asm/arch/clock.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/ls1088a/eth_ls1088aqds.c b/board/freescale/ls1088a/eth_ls1088aqds.c
index de44024173fc..f26bbf3267ea 100644
--- a/board/freescale/ls1088a/eth_ls1088aqds.c
+++ b/board/freescale/ls1088a/eth_ls1088aqds.c
@@ -9,6 +9,7 @@
 #include <log.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/fsl_serdes.h>
 #include <hwconfig.h>
diff --git a/board/freescale/ls1088a/eth_ls1088ardb.c b/board/freescale/ls1088a/eth_ls1088ardb.c
index 5c5655e549bf..6898dfc6f395 100644
--- a/board/freescale/ls1088a/eth_ls1088ardb.c
+++ b/board/freescale/ls1088a/eth_ls1088ardb.c
@@ -12,6 +12,7 @@
 #include <miiphy.h>
 #include <phy.h>
 #include <fm_eth.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <exports.h>
 #include <asm/arch/fsl_serdes.h>
diff --git a/board/freescale/ls1088a/ls1088a.c b/board/freescale/ls1088a/ls1088a.c
index 921fd985bf67..8d33151cdad9 100644
--- a/board/freescale/ls1088a/ls1088a.c
+++ b/board/freescale/ls1088a/ls1088a.c
@@ -14,6 +14,7 @@
 #include <fsl_ifc.h>
 #include <fsl_ddr.h>
 #include <fsl_sec.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <fdt_support.h>
diff --git a/board/freescale/ls2080a/ddr.c b/board/freescale/ls2080a/ddr.c
index a647cc6a3f7a..4175bd33cbf3 100644
--- a/board/freescale/ls2080a/ddr.c
+++ b/board/freescale/ls2080a/ddr.c
@@ -7,6 +7,7 @@
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/soc.h>
 #include <asm/arch/clock.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/ls2080a/ls2080a.c b/board/freescale/ls2080a/ls2080a.c
index d9c87d6840de..b2fb47eaaa50 100644
--- a/board/freescale/ls2080a/ls2080a.c
+++ b/board/freescale/ls2080a/ls2080a.c
@@ -11,6 +11,7 @@
 #include <netdev.h>
 #include <fsl_ifc.h>
 #include <fsl_ddr.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <fdt_support.h>
diff --git a/board/freescale/ls2080aqds/ddr.c b/board/freescale/ls2080aqds/ddr.c
index 2767d058cc96..8ad91bcc79ec 100644
--- a/board/freescale/ls2080aqds/ddr.c
+++ b/board/freescale/ls2080aqds/ddr.c
@@ -7,6 +7,7 @@
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/soc.h>
 #include <asm/arch/clock.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/ls2080aqds/eth.c b/board/freescale/ls2080aqds/eth.c
index 1a3a891f825f..2a25cb9f0703 100644
--- a/board/freescale/ls2080aqds/eth.c
+++ b/board/freescale/ls2080aqds/eth.c
@@ -8,6 +8,7 @@
 #include <log.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/fsl_serdes.h>
 #include <hwconfig.h>
diff --git a/board/freescale/ls2080aqds/ls2080aqds.c b/board/freescale/ls2080aqds/ls2080aqds.c
index ac4388a1188a..39724dcbcbab 100644
--- a/board/freescale/ls2080aqds/ls2080aqds.c
+++ b/board/freescale/ls2080aqds/ls2080aqds.c
@@ -11,6 +11,7 @@
 #include <netdev.h>
 #include <fsl_ifc.h>
 #include <fsl_ddr.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <fdt_support.h>
diff --git a/board/freescale/ls2080ardb/ddr.c b/board/freescale/ls2080ardb/ddr.c
index 07fa84733324..7a91db928e24 100644
--- a/board/freescale/ls2080ardb/ddr.c
+++ b/board/freescale/ls2080ardb/ddr.c
@@ -7,6 +7,7 @@
 #include <fsl_ddr_sdram.h>
 #include <fsl_ddr_dimm_params.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/soc.h>
 #include <asm/arch/clock.h>
 #include <asm/global_data.h>
diff --git a/board/freescale/ls2080ardb/eth_ls2080rdb.c b/board/freescale/ls2080ardb/eth_ls2080rdb.c
index 786a253cbd5c..b4f718b1ae6a 100644
--- a/board/freescale/ls2080ardb/eth_ls2080rdb.c
+++ b/board/freescale/ls2080ardb/eth_ls2080rdb.c
@@ -13,6 +13,7 @@
 #include <miiphy.h>
 #include <phy.h>
 #include <fm_eth.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <exports.h>
diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb/ls2080ardb.c
index 493040916381..3a154564f3fe 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 <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <hwconfig.h>
diff --git a/board/freescale/lx2160a/eth_lx2160aqds.c b/board/freescale/lx2160a/eth_lx2160aqds.c
index 20dffcbf327a..5dfe7489ba88 100644
--- a/board/freescale/lx2160a/eth_lx2160aqds.c
+++ b/board/freescale/lx2160a/eth_lx2160aqds.c
@@ -17,6 +17,7 @@
 #include <miiphy.h>
 #include <phy.h>
 #include <fm_eth.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <exports.h>
diff --git a/board/freescale/lx2160a/eth_lx2160ardb.c b/board/freescale/lx2160a/eth_lx2160ardb.c
index 604922f84126..ea2c8c5647a7 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 <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <exports.h>
diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c
index 2133177cbe10..313085256418 100644
--- a/board/freescale/lx2160a/lx2160a.c
+++ b/board/freescale/lx2160a/lx2160a.c
@@ -8,6 +8,7 @@
 #include <display_options.h>
 #include <dm.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <dm/platform_data/serial_pl01x.h>
diff --git a/board/freescale/m5208evbe/m5208evbe.c b/board/freescale/m5208evbe/m5208evbe.c
index 7bfb4557dd5b..594728a2dd6c 100644
--- a/board/freescale/m5208evbe/m5208evbe.c
+++ b/board/freescale/m5208evbe/m5208evbe.c
@@ -10,6 +10,7 @@
 #include <config.h>
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
 #include <asm/io.h>
diff --git a/board/freescale/m52277evb/m52277evb.c b/board/freescale/m52277evb/m52277evb.c
index 510af33e4c3c..1ecdfb393124 100644
--- a/board/freescale/m52277evb/m52277evb.c
+++ b/board/freescale/m52277evb/m52277evb.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
 #include <asm/io.h>
diff --git a/board/freescale/m5235evb/m5235evb.c b/board/freescale/m5235evb/m5235evb.c
index e7c7a94036b5..6050d5c621d4 100644
--- a/board/freescale/m5235evb/m5235evb.c
+++ b/board/freescale/m5235evb/m5235evb.c
@@ -10,6 +10,7 @@
 #include <config.h>
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
 #include <asm/io.h>
diff --git a/board/freescale/m5249evb/m5249evb.c b/board/freescale/m5249evb/m5249evb.c
index 48c00791114d..9cb08d85cc7a 100644
--- a/board/freescale/m5249evb/m5249evb.c
+++ b/board/freescale/m5249evb/m5249evb.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
 #include <linux/delay.h>
diff --git a/board/freescale/m5253demo/flash.c b/board/freescale/m5253demo/flash.c
index d37ba362b6cd..025e9dbcf52c 100644
--- a/board/freescale/m5253demo/flash.c
+++ b/board/freescale/m5253demo/flash.c
@@ -11,6 +11,7 @@
 #include <flash.h>
 #include <init.h>
 #include <irq_func.h>
+#include <stdio.h>
 #include <time.h>
 
 #include <asm/immap.h>
diff --git a/board/freescale/m5253demo/m5253demo.c b/board/freescale/m5253demo/m5253demo.c
index f593c31c842e..90c79a60f833 100644
--- a/board/freescale/m5253demo/m5253demo.c
+++ b/board/freescale/m5253demo/m5253demo.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
 #include <netdev.h>
diff --git a/board/freescale/m5275evb/m5275evb.c b/board/freescale/m5275evb/m5275evb.c
index 1c4fb7232afb..bd0901c0c5d4 100644
--- a/board/freescale/m5275evb/m5275evb.c
+++ b/board/freescale/m5275evb/m5275evb.c
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
 #include <asm/io.h>
diff --git a/board/freescale/m53017evb/m53017evb.c b/board/freescale/m53017evb/m53017evb.c
index c9f89353ce4b..e1c5dca70042 100644
--- a/board/freescale/m53017evb/m53017evb.c
+++ b/board/freescale/m53017evb/m53017evb.c
@@ -10,6 +10,7 @@
 #include <config.h>
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
 #include <asm/io.h>
diff --git a/board/freescale/m5329evb/m5329evb.c b/board/freescale/m5329evb/m5329evb.c
index 7a75b04dd0d2..ccbcbeb342e0 100644
--- a/board/freescale/m5329evb/m5329evb.c
+++ b/board/freescale/m5329evb/m5329evb.c
@@ -10,6 +10,7 @@
 #include <config.h>
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
 #include <asm/io.h>
diff --git a/board/freescale/m5373evb/m5373evb.c b/board/freescale/m5373evb/m5373evb.c
index cfa5ca4a477c..bd65509ac608 100644
--- a/board/freescale/m5373evb/m5373evb.c
+++ b/board/freescale/m5373evb/m5373evb.c
@@ -10,6 +10,7 @@
 #include <config.h>
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
 #include <asm/io.h>
diff --git a/board/freescale/m54418twr/m54418twr.c b/board/freescale/m54418twr/m54418twr.c
index ca8993197e3e..b931b869326b 100644
--- a/board/freescale/m54418twr/m54418twr.c
+++ b/board/freescale/m54418twr/m54418twr.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <init.h>
 #include <spi.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/immap.h>
diff --git a/board/freescale/m54451evb/m54451evb.c b/board/freescale/m54451evb/m54451evb.c
index a4ddc69166b3..deaf62530a1e 100644
--- a/board/freescale/m54451evb/m54451evb.c
+++ b/board/freescale/m54451evb/m54451evb.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <init.h>
 #include <spi.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
 #include <asm/io.h>
diff --git a/board/freescale/m54455evb/m54455evb.c b/board/freescale/m54455evb/m54455evb.c
index c749ee407e77..64ff296ad806 100644
--- a/board/freescale/m54455evb/m54455evb.c
+++ b/board/freescale/m54455evb/m54455evb.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <init.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
 #include <asm/io.h>
diff --git a/board/freescale/m547xevb/m547xevb.c b/board/freescale/m547xevb/m547xevb.c
index 1568f455e927..255a42baeee7 100644
--- a/board/freescale/m547xevb/m547xevb.c
+++ b/board/freescale/m547xevb/m547xevb.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <init.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
 #include <asm/io.h>
diff --git a/board/freescale/m548xevb/m548xevb.c b/board/freescale/m548xevb/m548xevb.c
index b62355a7ae7b..9228ccbb06f4 100644
--- a/board/freescale/m548xevb/m548xevb.c
+++ b/board/freescale/m548xevb/m548xevb.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <init.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
 #include <asm/io.h>
diff --git a/board/freescale/mpc8308rdb/mpc8308rdb.c b/board/freescale/mpc8308rdb/mpc8308rdb.c
index 810a39534196..7a8895c80123 100644
--- a/board/freescale/mpc8308rdb/mpc8308rdb.c
+++ b/board/freescale/mpc8308rdb/mpc8308rdb.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <net.h>
 #include <spi.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
 #include <linux/libfdt.h>
diff --git a/board/freescale/mpc8313erdb/mpc8313erdb.c b/board/freescale/mpc8313erdb/mpc8313erdb.c
index 8e820f4b2f1e..e23317597cac 100644
--- a/board/freescale/mpc8313erdb/mpc8313erdb.c
+++ b/board/freescale/mpc8313erdb/mpc8313erdb.c
@@ -14,6 +14,7 @@
 #endif
 #include <pci.h>
 #include <mpc83xx.h>
+#include <stdio.h>
 #include <vsc7385.h>
 #include <ns16550.h>
 #include <nand.h>
diff --git a/board/freescale/mpc8313erdb/sdram.c b/board/freescale/mpc8313erdb/sdram.c
index bd1d2f09d4f4..3d03da024099 100644
--- a/board/freescale/mpc8313erdb/sdram.c
+++ b/board/freescale/mpc8313erdb/sdram.c
@@ -11,6 +11,7 @@
 #include <init.h>
 #include <mpc83xx.h>
 #include <spd_sdram.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
 
diff --git a/board/freescale/mpc8315erdb/mpc8315erdb.c b/board/freescale/mpc8315erdb/mpc8315erdb.c
index 1563b6ccbb8c..c664e5ea80d0 100644
--- a/board/freescale/mpc8315erdb/mpc8315erdb.c
+++ b/board/freescale/mpc8315erdb/mpc8315erdb.c
@@ -11,6 +11,7 @@
 #include <i2c.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/ppc.h>
 #include <asm/u-boot.h>
diff --git a/board/freescale/mpc8315erdb/sdram.c b/board/freescale/mpc8315erdb/sdram.c
index dee7fb5abbab..84f8cd926ed4 100644
--- a/board/freescale/mpc8315erdb/sdram.c
+++ b/board/freescale/mpc8315erdb/sdram.c
@@ -11,6 +11,7 @@
 #include <init.h>
 #include <mpc83xx.h>
 #include <spd_sdram.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
 
diff --git a/board/freescale/mpc8323erdb/mpc8323erdb.c b/board/freescale/mpc8323erdb/mpc8323erdb.c
index 37f6a18dd281..d98b07e2daa2 100644
--- a/board/freescale/mpc8323erdb/mpc8323erdb.c
+++ b/board/freescale/mpc8323erdb/mpc8323erdb.c
@@ -19,6 +19,7 @@
 #include <i2c.h>
 #include <miiphy.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/ppc.h>
 #include <asm/u-boot.h>
diff --git a/board/freescale/mpc832xemds/mpc832xemds.c b/board/freescale/mpc832xemds/mpc832xemds.c
index def1ad23b7a7..f8b81ee3cc31 100644
--- a/board/freescale/mpc832xemds/mpc832xemds.c
+++ b/board/freescale/mpc832xemds/mpc832xemds.c
@@ -16,6 +16,7 @@
 #if defined(CONFIG_PCI)
 #include <pci.h>
 #endif
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mmu.h>
 #include <asm/ppc.h>
diff --git a/board/freescale/mpc832xemds/pci.c b/board/freescale/mpc832xemds/pci.c
index 79e4a5772c79..2d117a9de4fa 100644
--- a/board/freescale/mpc832xemds/pci.c
+++ b/board/freescale/mpc832xemds/pci.c
@@ -7,6 +7,7 @@
  * PCI Configuration space access support for MPC83xx PCI Bridge
  */
 #include <init.h>
+#include <stdio.h>
 #include <asm/mmu.h>
 #include <asm/io.h>
 #include <common.h>
diff --git a/board/freescale/mpc8349emds/ddr.c b/board/freescale/mpc8349emds/ddr.c
index e266c98bcef8..71615fe1ffd9 100644
--- a/board/freescale/mpc8349emds/ddr.c
+++ b/board/freescale/mpc8349emds/ddr.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/ppc.h>
 
 #include <fsl_ddr_sdram.h>
diff --git a/board/freescale/mpc8349emds/mpc8349emds.c b/board/freescale/mpc8349emds/mpc8349emds.c
index 4d06d9c05bf1..cec8b77de960 100644
--- a/board/freescale/mpc8349emds/mpc8349emds.c
+++ b/board/freescale/mpc8349emds/mpc8349emds.c
@@ -9,6 +9,7 @@
 #include <init.h>
 #include <ioports.h>
 #include <mpc83xx.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 #include <asm/global_data.h>
 #include <asm/mpc8349_pci.h>
diff --git a/board/freescale/mpc8349emds/pci.c b/board/freescale/mpc8349emds/pci.c
index c9a8ced907f4..0408dfff554b 100644
--- a/board/freescale/mpc8349emds/pci.c
+++ b/board/freescale/mpc8349emds/pci.c
@@ -4,6 +4,7 @@
  */
 
 #include <init.h>
+#include <stdio.h>
 #include <asm/mmu.h>
 #include <asm/io.h>
 #include <asm/ppc.h>
diff --git a/board/freescale/mpc8349itx/mpc8349itx.c b/board/freescale/mpc8349itx/mpc8349itx.c
index 795bc9b3df43..c1ae8c5b9884 100644
--- a/board/freescale/mpc8349itx/mpc8349itx.c
+++ b/board/freescale/mpc8349itx/mpc8349itx.c
@@ -11,6 +11,7 @@
 #include <mpc83xx.h>
 #include <i2c.h>
 #include <miiphy.h>
+#include <stdio.h>
 #include <vsc7385.h>
 #ifdef CONFIG_PCI
 #include <asm/mpc8349_pci.h>
diff --git a/board/freescale/mpc837xemds/mpc837xemds.c b/board/freescale/mpc837xemds/mpc837xemds.c
index 1b843a16881f..e45bc0d516c0 100644
--- a/board/freescale/mpc837xemds/mpc837xemds.c
+++ b/board/freescale/mpc837xemds/mpc837xemds.c
@@ -9,6 +9,7 @@
 #include <i2c.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/freescale/mpc837xerdb/mpc837xerdb.c b/board/freescale/mpc837xerdb/mpc837xerdb.c
index d8c6b3464ab4..448bc9b937a9 100644
--- a/board/freescale/mpc837xerdb/mpc837xerdb.c
+++ b/board/freescale/mpc837xerdb/mpc837xerdb.c
@@ -10,6 +10,7 @@
 #include <hwconfig.h>
 #include <i2c.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 #include <asm/global_data.h>
 #include <asm/ppc.h>
diff --git a/board/freescale/mpc8541cds/mpc8541cds.c b/board/freescale/mpc8541cds/mpc8541cds.c
index 6f02b8e7b8fc..ed71fa4d3846 100644
--- a/board/freescale/mpc8541cds/mpc8541cds.c
+++ b/board/freescale/mpc8541cds/mpc8541cds.c
@@ -9,6 +9,7 @@
 #include <display_options.h>
 #include <init.h>
 #include <pci.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
diff --git a/board/freescale/mpc8544ds/mpc8544ds.c b/board/freescale/mpc8544ds/mpc8544ds.c
index 06dc619cf932..a495e0818005 100644
--- a/board/freescale/mpc8544ds/mpc8544ds.c
+++ b/board/freescale/mpc8544ds/mpc8544ds.c
@@ -8,6 +8,7 @@
 #include <init.h>
 #include <net.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #include <asm/immap_85xx.h>
diff --git a/board/freescale/mpc8548cds/mpc8548cds.c b/board/freescale/mpc8548cds/mpc8548cds.c
index 941071594bd7..08ac02b4923f 100644
--- a/board/freescale/mpc8548cds/mpc8548cds.c
+++ b/board/freescale/mpc8548cds/mpc8548cds.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <net.h>
 #include <pci.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
diff --git a/board/freescale/mpc8555cds/mpc8555cds.c b/board/freescale/mpc8555cds/mpc8555cds.c
index d66f56996666..e3c96ae162f5 100644
--- a/board/freescale/mpc8555cds/mpc8555cds.c
+++ b/board/freescale/mpc8555cds/mpc8555cds.c
@@ -7,6 +7,7 @@
 #include <display_options.h>
 #include <init.h>
 #include <pci.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
diff --git a/board/freescale/mpc8568mds/mpc8568mds.c b/board/freescale/mpc8568mds/mpc8568mds.c
index 810bcff8b6bb..8ea51e1f2362 100644
--- a/board/freescale/mpc8568mds/mpc8568mds.c
+++ b/board/freescale/mpc8568mds/mpc8568mds.c
@@ -11,6 +11,7 @@
 #include <init.h>
 #include <log.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #include <asm/immap_85xx.h>
diff --git a/board/freescale/mpc8569mds/mpc8569mds.c b/board/freescale/mpc8569mds/mpc8569mds.c
index 7f00ddc82a10..012fd54c3fe0 100644
--- a/board/freescale/mpc8569mds/mpc8569mds.c
+++ b/board/freescale/mpc8569mds/mpc8569mds.c
@@ -12,6 +12,7 @@
 #include <init.h>
 #include <log.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #include <asm/cache.h>
diff --git a/board/freescale/mpc8572ds/ddr.c b/board/freescale/mpc8572ds/ddr.c
index dcce7d84581a..4015b475f065 100644
--- a/board/freescale/mpc8572ds/ddr.c
+++ b/board/freescale/mpc8572ds/ddr.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/ppc.h>
 
 #include <fsl_ddr_sdram.h>
diff --git a/board/freescale/mpc8572ds/mpc8572ds.c b/board/freescale/mpc8572ds/mpc8572ds.c
index d81a33083595..c62862f1db07 100644
--- a/board/freescale/mpc8572ds/mpc8572ds.c
+++ b/board/freescale/mpc8572ds/mpc8572ds.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <net.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #include <asm/cache.h>
diff --git a/board/freescale/mpc8610hpcd/mpc8610hpcd.c b/board/freescale/mpc8610hpcd/mpc8610hpcd.c
index 157f850fef5e..d696e23bc53c 100644
--- a/board/freescale/mpc8610hpcd/mpc8610hpcd.c
+++ b/board/freescale/mpc8610hpcd/mpc8610hpcd.c
@@ -9,6 +9,7 @@
 #include <log.h>
 #include <net.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/processor.h>
 #include <asm/immap_86xx.h>
diff --git a/board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c b/board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c
index 97c4623bca4f..642f6ca15c58 100644
--- a/board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c
+++ b/board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c
@@ -11,6 +11,7 @@
 #include <clock_legacy.h>
 #include <command.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <fsl_diu_fb.h>
 #include <asm/ppc.h>
diff --git a/board/freescale/mpc8641hpcn/ddr.c b/board/freescale/mpc8641hpcn/ddr.c
index 86031137693c..682e17ac56f2 100644
--- a/board/freescale/mpc8641hpcn/ddr.c
+++ b/board/freescale/mpc8641hpcn/ddr.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/ppc.h>
 
 #include <fsl_ddr_sdram.h>
diff --git a/board/freescale/mpc8641hpcn/mpc8641hpcn.c b/board/freescale/mpc8641hpcn/mpc8641hpcn.c
index c4a7a568cd17..209c354dda45 100644
--- a/board/freescale/mpc8641hpcn/mpc8641hpcn.c
+++ b/board/freescale/mpc8641hpcn/mpc8641hpcn.c
@@ -8,6 +8,7 @@
 #include <log.h>
 #include <net.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/processor.h>
 #include <asm/immap_86xx.h>
diff --git a/board/freescale/mx23evk/mx23evk.c b/board/freescale/mx23evk/mx23evk.c
index b25bdb386016..96f2de11245f 100644
--- a/board/freescale/mx23evk/mx23evk.c
+++ b/board/freescale/mx23evk/mx23evk.c
@@ -13,6 +13,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/freescale/mx25pdk/mx25pdk.c b/board/freescale/mx25pdk/mx25pdk.c
index 4c2f6da69c25..8e0edb45c3ef 100644
--- a/board/freescale/mx25pdk/mx25pdk.c
+++ b/board/freescale/mx25pdk/mx25pdk.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
diff --git a/board/freescale/mx28evk/mx28evk.c b/board/freescale/mx28evk/mx28evk.c
index 72abf8739bcf..8ff35fbd02b8 100644
--- a/board/freescale/mx28evk/mx28evk.c
+++ b/board/freescale/mx28evk/mx28evk.c
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
diff --git a/board/freescale/mx35pdk/mx35pdk.c b/board/freescale/mx35pdk/mx35pdk.c
index 362a0391e4f9..940ada7b1675 100644
--- a/board/freescale/mx35pdk/mx35pdk.c
+++ b/board/freescale/mx35pdk/mx35pdk.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
diff --git a/board/freescale/mx51evk/mx51evk.c b/board/freescale/mx51evk/mx51evk.c
index f1625ebac5cd..0a6561799014 100644
--- a/board/freescale/mx51evk/mx51evk.c
+++ b/board/freescale/mx51evk/mx51evk.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
diff --git a/board/freescale/mx51evk/mx51evk_video.c b/board/freescale/mx51evk/mx51evk_video.c
index 2aa456f1c5f8..06fd4140a2ee 100644
--- a/board/freescale/mx51evk/mx51evk_video.c
+++ b/board/freescale/mx51evk/mx51evk_video.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <stdio.h>
 #include <linux/list.h>
 #include <asm/gpio.h>
 #include <asm/arch/iomux-mx51.h>
diff --git a/board/freescale/mx53ard/mx53ard.c b/board/freescale/mx53ard/mx53ard.c
index 89aa16a097b1..cb4f063e95ae 100644
--- a/board/freescale/mx53ard/mx53ard.c
+++ b/board/freescale/mx53ard/mx53ard.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/freescale/mx53evk/mx53evk.c b/board/freescale/mx53evk/mx53evk.c
index 5567f3f01a93..37a946054082 100644
--- a/board/freescale/mx53evk/mx53evk.c
+++ b/board/freescale/mx53evk/mx53evk.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/freescale/mx53loco/mx53loco.c b/board/freescale/mx53loco/mx53loco.c
index 7a1cebbebfd8..67bb279104d3 100644
--- a/board/freescale/mx53loco/mx53loco.c
+++ b/board/freescale/mx53loco/mx53loco.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/freescale/mx53loco/mx53loco_video.c b/board/freescale/mx53loco/mx53loco_video.c
index 67c279adf181..45a40a8959c9 100644
--- a/board/freescale/mx53loco/mx53loco_video.c
+++ b/board/freescale/mx53loco/mx53loco_video.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <stdio.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 335146604a51..6a6549341407 100644
--- a/board/freescale/mx53smd/mx53smd.c
+++ b/board/freescale/mx53smd/mx53smd.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/freescale/mx6memcal/mx6memcal.c b/board/freescale/mx6memcal/mx6memcal.c
index 1cc744fa9ba0..d24800d3f9d4 100644
--- a/board/freescale/mx6memcal/mx6memcal.c
+++ b/board/freescale/mx6memcal/mx6memcal.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/global_data.h>
 
diff --git a/board/freescale/mx6memcal/spl.c b/board/freescale/mx6memcal/spl.c
index 87020e3ffb15..f10b12cedc23 100644
--- a/board/freescale/mx6memcal/spl.c
+++ b/board/freescale/mx6memcal/spl.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/iomux.h>
diff --git a/board/freescale/mx6qarm2/mx6qarm2.c b/board/freescale/mx6qarm2/mx6qarm2.c
index 03cceefb60d1..bdc2e2a146b3 100644
--- a/board/freescale/mx6qarm2/mx6qarm2.c
+++ b/board/freescale/mx6qarm2/mx6qarm2.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/freescale/mx6sabreauto/mx6sabreauto.c b/board/freescale/mx6sabreauto/mx6sabreauto.c
index 98b3ab4b7656..359f5bca17c6 100644
--- a/board/freescale/mx6sabreauto/mx6sabreauto.c
+++ b/board/freescale/mx6sabreauto/mx6sabreauto.c
@@ -9,6 +9,7 @@
 #include <image.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c
index 40423d77c4be..01d6340c624c 100644
--- a/board/freescale/mx6sabresd/mx6sabresd.c
+++ b/board/freescale/mx6sabresd/mx6sabresd.c
@@ -8,6 +8,7 @@
 #include <image.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/freescale/mx6slevk/mx6slevk.c b/board/freescale/mx6slevk/mx6slevk.c
index 781c5392655f..5e6072dd424d 100644
--- a/board/freescale/mx6slevk/mx6slevk.c
+++ b/board/freescale/mx6slevk/mx6slevk.c
@@ -7,6 +7,7 @@
 
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/crm_regs.h>
diff --git a/board/freescale/mx6sllevk/mx6sllevk.c b/board/freescale/mx6sllevk/mx6sllevk.c
index b4fddafe6402..f5aeaa41e746 100644
--- a/board/freescale/mx6sllevk/mx6sllevk.c
+++ b/board/freescale/mx6sllevk/mx6sllevk.c
@@ -4,6 +4,7 @@
  */
 
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
index f705505b518a..d5621c5e0422 100644
--- a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
+++ b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
@@ -7,6 +7,7 @@
 
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/freescale/mx6sxsabresd/mx6sxsabresd.c b/board/freescale/mx6sxsabresd/mx6sxsabresd.c
index d8f4e915cfd4..361c3c2c517d 100644
--- a/board/freescale/mx6sxsabresd/mx6sxsabresd.c
+++ b/board/freescale/mx6sxsabresd/mx6sxsabresd.c
@@ -7,6 +7,7 @@
 
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
index 6805d949f17f..bb6c2474abd6 100644
--- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
+++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
@@ -5,6 +5,7 @@
 
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/freescale/mx6ullevk/mx6ullevk.c b/board/freescale/mx6ullevk/mx6ullevk.c
index 86c11c7bd3a5..fbd14920519f 100644
--- a/board/freescale/mx6ullevk/mx6ullevk.c
+++ b/board/freescale/mx6ullevk/mx6ullevk.c
@@ -4,6 +4,7 @@
  */
 
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/freescale/mx7dsabresd/mx7dsabresd.c b/board/freescale/mx7dsabresd/mx7dsabresd.c
index 2777ae13bce0..8bf430670c55 100644
--- a/board/freescale/mx7dsabresd/mx7dsabresd.c
+++ b/board/freescale/mx7dsabresd/mx7dsabresd.c
@@ -5,6 +5,7 @@
 
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/mx7-pins.h>
diff --git a/board/freescale/mx7ulp_evk/mx7ulp_evk.c b/board/freescale/mx7ulp_evk/mx7ulp_evk.c
index 1e4053edbe75..da3f9e72d615 100644
--- a/board/freescale/mx7ulp_evk/mx7ulp_evk.c
+++ b/board/freescale/mx7ulp_evk/mx7ulp_evk.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fdt_support.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
diff --git a/board/freescale/p1010rdb/ddr.c b/board/freescale/p1010rdb/ddr.c
index a2133c2ad39a..9ecba83a393e 100644
--- a/board/freescale/p1010rdb/ddr.c
+++ b/board/freescale/p1010rdb/ddr.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <asm/mmu.h>
diff --git a/board/freescale/p1010rdb/p1010rdb.c b/board/freescale/p1010rdb/p1010rdb.c
index f209f72fdbe4..a57b564f5efc 100644
--- a/board/freescale/p1010rdb/p1010rdb.c
+++ b/board/freescale/p1010rdb/p1010rdb.c
@@ -9,6 +9,7 @@
 #include <image.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
diff --git a/board/freescale/p1010rdb/spl.c b/board/freescale/p1010rdb/spl.c
index 3e35b49f3d2f..a11ec6b0c981 100644
--- a/board/freescale/p1010rdb/spl.c
+++ b/board/freescale/p1010rdb/spl.c
@@ -15,6 +15,7 @@
 #include <i2c.h>
 #include <fsl_esdhc.h>
 #include <spi_flash.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/string.h>
diff --git a/board/freescale/p1010rdb/spl_minimal.c b/board/freescale/p1010rdb/spl_minimal.c
index 0bb2c8387204..4d72665dbb78 100644
--- a/board/freescale/p1010rdb/spl_minimal.c
+++ b/board/freescale/p1010rdb/spl_minimal.c
@@ -5,6 +5,7 @@
 #include <common.h>
 #include <init.h>
 #include <mpc85xx.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <ns16550.h>
 #include <nand.h>
diff --git a/board/freescale/p1023rdb/p1023rdb.c b/board/freescale/p1023rdb/p1023rdb.c
index c760b4c83bd8..e7862d18498b 100644
--- a/board/freescale/p1023rdb/p1023rdb.c
+++ b/board/freescale/p1023rdb/p1023rdb.c
@@ -13,6 +13,7 @@
 #include <init.h>
 #include <net.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/cache.h>
diff --git a/board/freescale/p1_p2_rdb_pc/ddr.c b/board/freescale/p1_p2_rdb_pc/ddr.c
index 2c7e5fe4c7b9..8de6f7b54820 100644
--- a/board/freescale/p1_p2_rdb_pc/ddr.c
+++ b/board/freescale/p1_p2_rdb_pc/ddr.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <asm/mmu.h>
 #include <asm/immap_85xx.h>
diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
index f4ab4492536f..648ff4c3e792 100644
--- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
+++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
@@ -14,6 +14,7 @@
 #include <net.h>
 #include <pci.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #include <asm/cache.h>
diff --git a/board/freescale/p1_p2_rdb_pc/spl.c b/board/freescale/p1_p2_rdb_pc/spl.c
index 9b687bc4c08d..f69f7fced31c 100644
--- a/board/freescale/p1_p2_rdb_pc/spl.c
+++ b/board/freescale/p1_p2_rdb_pc/spl.c
@@ -16,6 +16,7 @@
 #include <i2c.h>
 #include <fsl_esdhc.h>
 #include <spi_flash.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/string.h>
diff --git a/board/freescale/p1_p2_rdb_pc/spl_minimal.c b/board/freescale/p1_p2_rdb_pc/spl_minimal.c
index ced5f3c3b5d5..3079e21d1c14 100644
--- a/board/freescale/p1_p2_rdb_pc/spl_minimal.c
+++ b/board/freescale/p1_p2_rdb_pc/spl_minimal.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <init.h>
 #include <ns16550.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <nand.h>
 #include <linux/compiler.h>
diff --git a/board/freescale/p2041rdb/cpld.c b/board/freescale/p2041rdb/cpld.c
index 84f1b3c77100..256cdc684247 100644
--- a/board/freescale/p2041rdb/cpld.c
+++ b/board/freescale/p2041rdb/cpld.c
@@ -13,6 +13,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/string.h>
 
diff --git a/board/freescale/p2041rdb/ddr.c b/board/freescale/p2041rdb/ddr.c
index 12d58fa52b45..e95f0481be22 100644
--- a/board/freescale/p2041rdb/ddr.c
+++ b/board/freescale/p2041rdb/ddr.c
@@ -8,6 +8,7 @@
 #include <hwconfig.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mmu.h>
 #include <asm/ppc.h>
diff --git a/board/freescale/p2041rdb/eth.c b/board/freescale/p2041rdb/eth.c
index a49365311201..0faa288f003e 100644
--- a/board/freescale/p2041rdb/eth.c
+++ b/board/freescale/p2041rdb/eth.c
@@ -15,6 +15,7 @@
 #include <common.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/fsl_serdes.h>
 #include <fm_eth.h>
 #include <fsl_mdio.h>
diff --git a/board/freescale/p2041rdb/p2041rdb.c b/board/freescale/p2041rdb/p2041rdb.c
index 2f8e9c12551b..ca2a8eb95973 100644
--- a/board/freescale/p2041rdb/p2041rdb.c
+++ b/board/freescale/p2041rdb/p2041rdb.c
@@ -10,6 +10,7 @@
 #include <image.h>
 #include <init.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/compiler.h>
diff --git a/board/freescale/qemu-ppce500/qemu-ppce500.c b/board/freescale/qemu-ppce500/qemu-ppce500.c
index c99f998fbb31..6588804fbbaa 100644
--- a/board/freescale/qemu-ppce500/qemu-ppce500.c
+++ b/board/freescale/qemu-ppce500/qemu-ppce500.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <net.h>
 #include <pci.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/processor.h>
diff --git a/board/freescale/s32v234evb/s32v234evb.c b/board/freescale/s32v234evb/s32v234evb.c
index 846a89849f02..4f390aa0de55 100644
--- a/board/freescale/s32v234evb/s32v234evb.c
+++ b/board/freescale/s32v234evb/s32v234evb.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/freescale/t102xrdb/cpld.c b/board/freescale/t102xrdb/cpld.c
index 5dc3e54bbc37..601afbc336d1 100644
--- a/board/freescale/t102xrdb/cpld.c
+++ b/board/freescale/t102xrdb/cpld.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/string.h>
 #include "cpld.h"
diff --git a/board/freescale/t102xrdb/ddr.c b/board/freescale/t102xrdb/ddr.c
index 3ec4a26948be..8afb71c4c80a 100644
--- a/board/freescale/t102xrdb/ddr.c
+++ b/board/freescale/t102xrdb/ddr.c
@@ -8,6 +8,7 @@
 #include <hwconfig.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mmu.h>
 #include <asm/ppc.h>
diff --git a/board/freescale/t102xrdb/eth_t102xrdb.c b/board/freescale/t102xrdb/eth_t102xrdb.c
index 414a45f2c0a3..95d49e26f449 100644
--- a/board/freescale/t102xrdb/eth_t102xrdb.c
+++ b/board/freescale/t102xrdb/eth_t102xrdb.c
@@ -10,6 +10,7 @@
 #include <fdt_support.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/mmu.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
diff --git a/board/freescale/t102xrdb/spl.c b/board/freescale/t102xrdb/spl.c
index 6596f2cfafee..1d8da1116680 100644
--- a/board/freescale/t102xrdb/spl.c
+++ b/board/freescale/t102xrdb/spl.c
@@ -14,6 +14,7 @@
 #include <mmc.h>
 #include <fsl_esdhc.h>
 #include <spi_flash.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/string.h>
diff --git a/board/freescale/t102xrdb/t102xrdb.c b/board/freescale/t102xrdb/t102xrdb.c
index 5f98f768cc3d..cdecfb087065 100644
--- a/board/freescale/t102xrdb/t102xrdb.c
+++ b/board/freescale/t102xrdb/t102xrdb.c
@@ -12,6 +12,7 @@
 #include <image.h>
 #include <init.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/compiler.h>
diff --git a/board/freescale/t104xrdb/cpld.c b/board/freescale/t104xrdb/cpld.c
index 6ab7bbdd3322..c2dfb17a1cf9 100644
--- a/board/freescale/t104xrdb/cpld.c
+++ b/board/freescale/t104xrdb/cpld.c
@@ -12,6 +12,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/string.h>
 
diff --git a/board/freescale/t104xrdb/ddr.c b/board/freescale/t104xrdb/ddr.c
index 7d02596a24d1..6a6bacf2d4fc 100644
--- a/board/freescale/t104xrdb/ddr.c
+++ b/board/freescale/t104xrdb/ddr.c
@@ -8,6 +8,7 @@
 #include <hwconfig.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mmu.h>
 #include <asm/ppc.h>
diff --git a/board/freescale/t104xrdb/diu.c b/board/freescale/t104xrdb/diu.c
index 25c8597202a2..4e941fbfc931 100644
--- a/board/freescale/t104xrdb/diu.c
+++ b/board/freescale/t104xrdb/diu.c
@@ -5,6 +5,7 @@
  */
 
 #include <clock_legacy.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <common.h>
 #include <command.h>
diff --git a/board/freescale/t104xrdb/eth.c b/board/freescale/t104xrdb/eth.c
index a554083470e9..fbd247e301b2 100644
--- a/board/freescale/t104xrdb/eth.c
+++ b/board/freescale/t104xrdb/eth.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/fsl_serdes.h>
 #include <asm/immap_85xx.h>
 #include <fm_eth.h>
diff --git a/board/freescale/t104xrdb/spl.c b/board/freescale/t104xrdb/spl.c
index 6551b2248eff..4a3f02d10fc1 100644
--- a/board/freescale/t104xrdb/spl.c
+++ b/board/freescale/t104xrdb/spl.c
@@ -14,6 +14,7 @@
 #include <mmc.h>
 #include <fsl_esdhc.h>
 #include <spi_flash.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/string.h>
diff --git a/board/freescale/t104xrdb/t104xrdb.c b/board/freescale/t104xrdb/t104xrdb.c
index fc4964783977..292c31246c44 100644
--- a/board/freescale/t104xrdb/t104xrdb.c
+++ b/board/freescale/t104xrdb/t104xrdb.c
@@ -12,6 +12,7 @@
 #include <init.h>
 #include <log.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/compiler.h>
diff --git a/board/freescale/t208xqds/ddr.c b/board/freescale/t208xqds/ddr.c
index 336c6e7d0da1..382f1ebe53ed 100644
--- a/board/freescale/t208xqds/ddr.c
+++ b/board/freescale/t208xqds/ddr.c
@@ -8,6 +8,7 @@
 #include <hwconfig.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mmu.h>
 #include <asm/ppc.h>
diff --git a/board/freescale/t208xqds/eth_t208xqds.c b/board/freescale/t208xqds/eth_t208xqds.c
index 61dc408c5b17..f60e2047759c 100644
--- a/board/freescale/t208xqds/eth_t208xqds.c
+++ b/board/freescale/t208xqds/eth_t208xqds.c
@@ -12,6 +12,7 @@
 #include <log.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/mmu.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
diff --git a/board/freescale/t208xqds/spl.c b/board/freescale/t208xqds/spl.c
index bf1b049af7f6..7902b746d565 100644
--- a/board/freescale/t208xqds/spl.c
+++ b/board/freescale/t208xqds/spl.c
@@ -14,6 +14,7 @@
 #include <mmc.h>
 #include <fsl_esdhc.h>
 #include <spi_flash.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/string.h>
diff --git a/board/freescale/t208xqds/t208xqds.c b/board/freescale/t208xqds/t208xqds.c
index a0ead05e37d4..c25b0a72ce5e 100644
--- a/board/freescale/t208xqds/t208xqds.c
+++ b/board/freescale/t208xqds/t208xqds.c
@@ -13,6 +13,7 @@
 #include <init.h>
 #include <log.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/compiler.h>
diff --git a/board/freescale/t208xrdb/ddr.c b/board/freescale/t208xrdb/ddr.c
index aeb51d28737d..2a375619116b 100644
--- a/board/freescale/t208xrdb/ddr.c
+++ b/board/freescale/t208xrdb/ddr.c
@@ -8,6 +8,7 @@
 #include <hwconfig.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mmu.h>
 #include <asm/ppc.h>
diff --git a/board/freescale/t208xrdb/eth_t208xrdb.c b/board/freescale/t208xrdb/eth_t208xrdb.c
index de997db78f74..fda113f01562 100644
--- a/board/freescale/t208xrdb/eth_t208xrdb.c
+++ b/board/freescale/t208xrdb/eth_t208xrdb.c
@@ -10,6 +10,7 @@
 #include <fdt_support.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/mmu.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
diff --git a/board/freescale/t208xrdb/spl.c b/board/freescale/t208xrdb/spl.c
index 234fd145e7dd..8ef46a09c958 100644
--- a/board/freescale/t208xrdb/spl.c
+++ b/board/freescale/t208xrdb/spl.c
@@ -14,6 +14,7 @@
 #include <mmc.h>
 #include <fsl_esdhc.h>
 #include <spi_flash.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/string.h>
diff --git a/board/freescale/t208xrdb/t208xrdb.c b/board/freescale/t208xrdb/t208xrdb.c
index e09f0efdda62..bc5152810efd 100644
--- a/board/freescale/t208xrdb/t208xrdb.c
+++ b/board/freescale/t208xrdb/t208xrdb.c
@@ -11,6 +11,7 @@
 #include <image.h>
 #include <init.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/compiler.h>
diff --git a/board/freescale/t4rdb/cpld.c b/board/freescale/t4rdb/cpld.c
index 5bc149f4ab67..023b39852a78 100644
--- a/board/freescale/t4rdb/cpld.c
+++ b/board/freescale/t4rdb/cpld.c
@@ -16,6 +16,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/string.h>
 
diff --git a/board/freescale/t4rdb/ddr.c b/board/freescale/t4rdb/ddr.c
index 60d3c54437a5..037190ff11dc 100644
--- a/board/freescale/t4rdb/ddr.c
+++ b/board/freescale/t4rdb/ddr.c
@@ -8,6 +8,7 @@
 #include <hwconfig.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mmu.h>
 #include <asm/ppc.h>
diff --git a/board/freescale/t4rdb/eth.c b/board/freescale/t4rdb/eth.c
index a81b3be878bc..def5e6c8b32c 100644
--- a/board/freescale/t4rdb/eth.c
+++ b/board/freescale/t4rdb/eth.c
@@ -10,6 +10,7 @@
 #include <fdt_support.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/mmu.h>
 #include <asm/processor.h>
 #include <asm/cache.h>
diff --git a/board/freescale/t4rdb/spl.c b/board/freescale/t4rdb/spl.c
index 186327a3cde1..8ae19d006850 100644
--- a/board/freescale/t4rdb/spl.c
+++ b/board/freescale/t4rdb/spl.c
@@ -10,6 +10,7 @@
 #include <console.h>
 #include <env_internal.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/spl.h>
 #include <malloc.h>
diff --git a/board/freescale/t4rdb/t4240rdb.c b/board/freescale/t4rdb/t4240rdb.c
index bee6d42c83dd..3cd6eb8e8bb6 100644
--- a/board/freescale/t4rdb/t4240rdb.c
+++ b/board/freescale/t4rdb/t4240rdb.c
@@ -11,6 +11,7 @@
 #include <image.h>
 #include <init.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/compiler.h>
diff --git a/board/freescale/vf610twr/vf610twr.c b/board/freescale/vf610twr/vf610twr.c
index 3641e5fb92f0..342feb42d17a 100644
--- a/board/freescale/vf610twr/vf610twr.c
+++ b/board/freescale/vf610twr/vf610twr.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/gardena/smart-gateway-mt7688/board.c b/board/gardena/smart-gateway-mt7688/board.c
index 0c36f53a5a70..03a9e43875a1 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 <stdio.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 #include <linux/stringify.h>
diff --git a/board/gateworks/gw_ventana/common.c b/board/gateworks/gw_ventana/common.c
index ec42d5aa093f..3f7ce584528f 100644
--- a/board/gateworks/gw_ventana/common.c
+++ b/board/gateworks/gw_ventana/common.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/mx6-pins.h>
 #include <asm/arch/sys_proto.h>
diff --git a/board/gateworks/gw_ventana/eeprom.c b/board/gateworks/gw_ventana/eeprom.c
index 325527ceee13..efaff179a2c5 100644
--- a/board/gateworks/gw_ventana/eeprom.c
+++ b/board/gateworks/gw_ventana/eeprom.c
@@ -11,6 +11,7 @@
 #include <i2c.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/board/gateworks/gw_ventana/gsc.c b/board/gateworks/gw_ventana/gsc.c
index 54ca5da4fa02..143493c24ab3 100644
--- a/board/gateworks/gw_ventana/gsc.c
+++ b/board/gateworks/gw_ventana/gsc.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <command.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <common.h>
diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c
index 84de3c3bb0f7..a8b012dda736 100644
--- a/board/gateworks/gw_ventana/gw_ventana.c
+++ b/board/gateworks/gw_ventana/gw_ventana.c
@@ -9,6 +9,7 @@
 #include <init.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/gateworks/gw_ventana/gw_ventana_spl.c b/board/gateworks/gw_ventana/gw_ventana_spl.c
index e0e4bac16126..11a845e4f0e0 100644
--- a/board/gateworks/gw_ventana/gw_ventana_spl.c
+++ b/board/gateworks/gw_ventana/gw_ventana_spl.c
@@ -9,6 +9,7 @@
 #include <hang.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/mx6-ddr.h>
diff --git a/board/gdsys/a38x/controlcenterdc.c b/board/gdsys/a38x/controlcenterdc.c
index ba57a272187e..fb371be4926d 100644
--- a/board/gdsys/a38x/controlcenterdc.c
+++ b/board/gdsys/a38x/controlcenterdc.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
+#include <stdio.h>
 #include <tpm-v1.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/gdsys/a38x/hre.c b/board/gdsys/a38x/hre.c
index 615973894a1a..1e7d7e71f12e 100644
--- a/board/gdsys/a38x/hre.c
+++ b/board/gdsys/a38x/hre.c
@@ -10,6 +10,7 @@
 #include <fs.h>
 #include <i2c.h>
 #include <mmc.h>
+#include <stdio.h>
 #include <tpm-v1.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
diff --git a/board/gdsys/a38x/hydra.c b/board/gdsys/a38x/hydra.c
index 495a97691881..bd66cd52b86b 100644
--- a/board/gdsys/a38x/hydra.c
+++ b/board/gdsys/a38x/hydra.c
@@ -2,6 +2,7 @@
 #include <command.h>
 #include <console.h> /* ctrlc */
 #include <pci.h>
+#include <stdio.h>
 #include <asm/io.h>
 
 #include "hydra.h"
diff --git a/board/gdsys/a38x/ihs_phys.c b/board/gdsys/a38x/ihs_phys.c
index 31a4aa26b507..4d6d0da76fae 100644
--- a/board/gdsys/a38x/ihs_phys.c
+++ b/board/gdsys/a38x/ihs_phys.c
@@ -1,6 +1,7 @@
 #include <common.h>
 #include <dm.h>
 #include <miiphy.h>
+#include <stdio.h>
 #include <asm-generic/gpio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
diff --git a/board/gdsys/a38x/keyprogram.c b/board/gdsys/a38x/keyprogram.c
index 38e25e8fd249..be41844dcf13 100644
--- a/board/gdsys/a38x/keyprogram.c
+++ b/board/gdsys/a38x/keyprogram.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <stdio.h>
 #include <tpm-v1.h>
 #include <malloc.h>
 #include <linux/ctype.h>
diff --git a/board/gdsys/a38x/spl.c b/board/gdsys/a38x/spl.c
index 84864d19746e..a06acd64f9f5 100644
--- a/board/gdsys/a38x/spl.c
+++ b/board/gdsys/a38x/spl.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <config.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 
 void spl_board_init(void)
diff --git a/board/gdsys/common/cmd_ioloop.c b/board/gdsys/common/cmd_ioloop.c
index 88bf9b2aadd5..72fef03d7b13 100644
--- a/board/gdsys/common/cmd_ioloop.c
+++ b/board/gdsys/common/cmd_ioloop.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <command.h>
 #include <console.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/board/gdsys/common/dp501.c b/board/gdsys/common/dp501.c
index 9ca69ebcbbe7..ae82274a896f 100644
--- a/board/gdsys/common/dp501.c
+++ b/board/gdsys/common/dp501.c
@@ -158,4 +158,5 @@ int dp501_probe(unsigned screen, bool power)
 	return 0;
 }
 
+#include <stdio.h>
 #endif /* CONFIG_GDSYS_LEGACY_DRIVERS */
diff --git a/board/gdsys/common/ihs_mdio.c b/board/gdsys/common/ihs_mdio.c
index 3a51338d92ab..ea91d767d5b6 100644
--- a/board/gdsys/common/ihs_mdio.c
+++ b/board/gdsys/common/ihs_mdio.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 
diff --git a/board/gdsys/common/ioep-fpga.c b/board/gdsys/common/ioep-fpga.c
index c758c8a885d0..a75de339b7a8 100644
--- a/board/gdsys/common/ioep-fpga.c
+++ b/board/gdsys/common/ioep-fpga.c
@@ -444,6 +444,7 @@ 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
diff --git a/board/gdsys/common/osd.c b/board/gdsys/common/osd.c
index 9fe95f020598..e4941a94f310 100644
--- a/board/gdsys/common/osd.c
+++ b/board/gdsys/common/osd.c
@@ -503,5 +503,6 @@ U_BOOT_CMD(
 	") size_y(max. " __stringify(MAX_Y_CHARS) ")\n"
 );
 
+#include <stdio.h>
 #include <linux/string.h>
 #endif /* CONFIG_GDSYS_LEGACY_DRIVERS */
diff --git a/board/gdsys/common/osd_cmd.c b/board/gdsys/common/osd_cmd.c
index 120e1efc81e8..b73e2597299b 100644
--- a/board/gdsys/common/osd_cmd.c
+++ b/board/gdsys/common/osd_cmd.c
@@ -13,6 +13,7 @@
 #include <command.h>
 #include <dm.h>
 #include <hexdump.h>
+#include <stdio.h>
 #include <video_osd.h>
 #include <malloc.h>
 #include <linux/string.h>
diff --git a/board/gdsys/common/phy.c b/board/gdsys/common/phy.c
index a4104a9d202d..7b969853b3c0 100644
--- a/board/gdsys/common/phy.c
+++ b/board/gdsys/common/phy.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 
 #include <miiphy.h>
diff --git a/board/gdsys/mpc8308/gazerbeam.c b/board/gdsys/mpc8308/gazerbeam.c
index 9891baa11262..3258cc72179e 100644
--- a/board/gdsys/mpc8308/gazerbeam.c
+++ b/board/gdsys/mpc8308/gazerbeam.c
@@ -15,6 +15,7 @@
 #include <init.h>
 #include <miiphy.h>
 #include <misc.h>
+#include <stdio.h>
 #include <tpm-v1.h>
 #include <video_osd.h>
 #include <asm/global_data.h>
diff --git a/board/gdsys/mpc8308/hrcon.c b/board/gdsys/mpc8308/hrcon.c
index 64ac8f5e8eb0..961bf0af72e7 100644
--- a/board/gdsys/mpc8308/hrcon.c
+++ b/board/gdsys/mpc8308/hrcon.c
@@ -11,6 +11,7 @@
 #include <i2c.h>
 #include <init.h>
 #include <spi.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
diff --git a/board/gdsys/mpc8308/strider.c b/board/gdsys/mpc8308/strider.c
index d7d51f23829c..a9025cd55cfb 100644
--- a/board/gdsys/mpc8308/strider.c
+++ b/board/gdsys/mpc8308/strider.c
@@ -11,6 +11,7 @@
 #include <i2c.h>
 #include <init.h>
 #include <spi.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
diff --git a/board/gdsys/p1022/controlcenterd-id.c b/board/gdsys/p1022/controlcenterd-id.c
index 6ec49996ab99..ddf419edab4c 100644
--- a/board/gdsys/p1022/controlcenterd-id.c
+++ b/board/gdsys/p1022/controlcenterd-id.c
@@ -22,6 +22,7 @@
 #include <fs.h>
 #include <i2c.h>
 #include <mmc.h>
+#include <stdio.h>
 #include <tpm-v1.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/board/gdsys/p1022/controlcenterd.c b/board/gdsys/p1022/controlcenterd.c
index 0348b7100758..619e8073253d 100644
--- a/board/gdsys/p1022/controlcenterd.c
+++ b/board/gdsys/p1022/controlcenterd.c
@@ -28,6 +28,7 @@
 #include <init.h>
 #include <net.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #include <asm/cache.h>
diff --git a/board/gdsys/p1022/ddr.c b/board/gdsys/p1022/ddr.c
index b2d44da4adcc..1ed8b9ff2831 100644
--- a/board/gdsys/p1022/ddr.c
+++ b/board/gdsys/p1022/ddr.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #include <fsl_ddr_sdram.h>
diff --git a/board/gdsys/p1022/diu.c b/board/gdsys/p1022/diu.c
index 5dcb80873bda..d96ac2d0ab6a 100644
--- a/board/gdsys/p1022/diu.c
+++ b/board/gdsys/p1022/diu.c
@@ -10,6 +10,7 @@
 #include <clock_legacy.h>
 #include <command.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/ctype.h>
 #include <asm/io.h>
 #include <asm/ppc.h>
diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c
index 8df982450c22..0d88f8ad4a9e 100644
--- a/board/ge/bx50v3/bx50v3.c
+++ b/board/ge/bx50v3/bx50v3.c
@@ -7,6 +7,7 @@
 
 #include <image.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/ge/mx53ppd/mx53ppd.c b/board/ge/mx53ppd/mx53ppd.c
index 02d17952d589..a02c8a4de80f 100644
--- a/board/ge/mx53ppd/mx53ppd.c
+++ b/board/ge/mx53ppd/mx53ppd.c
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/ge/mx53ppd/mx53ppd_video.c b/board/ge/mx53ppd/mx53ppd_video.c
index 3240ed62aeb4..3c56120c0323 100644
--- a/board/ge/mx53ppd/mx53ppd_video.c
+++ b/board/ge/mx53ppd/mx53ppd_video.c
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <stdio.h>
 #include <linux/list.h>
 #include <asm/arch/iomux-mx53.h>
 #include <asm/mach-imx/video.h>
diff --git a/board/google/chromebook_coral/coral.c b/board/google/chromebook_coral/coral.c
index 12d4fe63cb0b..bcf8cb413420 100644
--- a/board/google/chromebook_coral/coral.c
+++ b/board/google/chromebook_coral/coral.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 
 int arch_misc_init(void)
 {
diff --git a/board/google/imx8mq_phanbell/spl.c b/board/google/imx8mq_phanbell/spl.c
index aee71acc98e9..0e822d01c4c2 100644
--- a/board/google/imx8mq_phanbell/spl.c
+++ b/board/google/imx8mq_phanbell/spl.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <hang.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <errno.h>
diff --git a/board/grinn/chiliboard/board.c b/board/grinn/chiliboard/board.c
index 12480f5729d6..d2544abab576 100644
--- a/board/grinn/chiliboard/board.c
+++ b/board/grinn/chiliboard/board.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/chilisom.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
diff --git a/board/grinn/liteboard/board.c b/board/grinn/liteboard/board.c
index 0617e7978c9f..fbbfbd8fb292 100644
--- a/board/grinn/liteboard/board.c
+++ b/board/grinn/liteboard/board.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <command.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/hisilicon/hikey/hikey.c b/board/hisilicon/hikey/hikey.c
index 0c6cdb5c9cfe..5525ec91872b 100644
--- a/board/hisilicon/hikey/hikey.c
+++ b/board/hisilicon/hikey/hikey.c
@@ -9,6 +9,7 @@
 #include <fdt_support.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <dm/platform_data/serial_pl01x.h>
diff --git a/board/hisilicon/hikey960/hikey960.c b/board/hisilicon/hikey960/hikey960.c
index a14b9e44fa5d..3282ee9824a2 100644
--- a/board/hisilicon/hikey960/hikey960.c
+++ b/board/hisilicon/hikey960/hikey960.c
@@ -8,6 +8,7 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <init.h>
 #include <asm/global_data.h>
diff --git a/board/hisilicon/poplar/poplar.c b/board/hisilicon/poplar/poplar.c
index 486e37f90a6e..d0d8fa81b3bf 100644
--- a/board/hisilicon/poplar/poplar.c
+++ b/board/hisilicon/poplar/poplar.c
@@ -8,6 +8,7 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/ids/ids8313/ids8313.c b/board/ids/ids8313/ids8313.c
index 2945d676bb38..da78f60d05b2 100644
--- a/board/ids/ids8313/ids8313.c
+++ b/board/ids/ids8313/ids8313.c
@@ -16,6 +16,7 @@
 #include <init.h>
 #include <mpc83xx.h>
 #include <spi.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 #include <asm/global_data.h>
 #include <asm/ppc.h>
diff --git a/board/imgtec/boston/checkboard.c b/board/imgtec/boston/checkboard.c
index 1b8a47d2549f..9d3a90282a07 100644
--- a/board/imgtec/boston/checkboard.c
+++ b/board/imgtec/boston/checkboard.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 
 #include <asm/io.h>
 #include <asm/mipsregs.h>
diff --git a/board/imgtec/ci20/ci20.c b/board/imgtec/ci20/ci20.c
index 8f45ff89e5f4..11f140f172ea 100644
--- a/board/imgtec/ci20/ci20.c
+++ b/board/imgtec/ci20/ci20.c
@@ -11,6 +11,7 @@
 #include <init.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
diff --git a/board/imgtec/malta/malta.c b/board/imgtec/malta/malta.c
index 0a6ab37e12de..7ed9b53bc169 100644
--- a/board/imgtec/malta/malta.c
+++ b/board/imgtec/malta/malta.c
@@ -13,6 +13,7 @@
 #include <pci_gt64120.h>
 #include <pci_msc01.h>
 #include <rtc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
diff --git a/board/intel/edison/edison.c b/board/intel/edison/edison.c
index 652f9755155f..8d1c4ade1c5c 100644
--- a/board/intel/edison/edison.c
+++ b/board/intel/edison/edison.c
@@ -7,6 +7,7 @@
 #include <env.h>
 #include <init.h>
 #include <mmc.h>
+#include <stdio.h>
 #include <u-boot/md5.h>
 #include <usb.h>
 #include <watchdog.h>
diff --git a/board/inversepath/usbarmory/usbarmory.c b/board/inversepath/usbarmory/usbarmory.c
index 2ad772c225f9..4eb30ae33746 100644
--- a/board/inversepath/usbarmory/usbarmory.c
+++ b/board/inversepath/usbarmory/usbarmory.c
@@ -11,6 +11,7 @@
 #include <command.h>
 #include <fs.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/isee/igep003x/board.c b/board/isee/igep003x/board.c
index 8844bb427200..a3ae87537210 100644
--- a/board/isee/igep003x/board.c
+++ b/board/isee/igep003x/board.c
@@ -13,6 +13,7 @@
 #include <net.h>
 #include <serial.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/omap.h>
diff --git a/board/k+p/kp_imx53/kp_id_rev.c b/board/k+p/kp_imx53/kp_id_rev.c
index 3e9315f55226..9a5c5cb64da6 100644
--- a/board/k+p/kp_imx53/kp_id_rev.c
+++ b/board/k+p/kp_imx53/kp_id_rev.c
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <env.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include "kp_id_rev.h"
 #include <net.h>
diff --git a/board/k+p/kp_imx53/kp_imx53.c b/board/k+p/kp_imx53/kp_imx53.c
index a5ee4a8a5192..a2dc296cc8b6 100644
--- a/board/k+p/kp_imx53/kp_imx53.c
+++ b/board/k+p/kp_imx53/kp_imx53.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c
index 110496d99505..917133dae921 100644
--- a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c
+++ b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c
index 4bd2e8d0e877..d8d0b5c9aac6 100644
--- a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c
+++ b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/keymile/common/common.c b/board/keymile/common/common.c
index bada40e1e628..5287ec205355 100644
--- a/board/keymile/common/common.c
+++ b/board/keymile/common/common.c
@@ -15,6 +15,7 @@
 #include <cli_hush.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
diff --git a/board/keymile/common/ivm.c b/board/keymile/common/ivm.c
index ef51e81996b0..f850c4d75633 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 <stdio.h>
 #include <linux/string.h>
 #include "common.h"
 
diff --git a/board/keymile/km83xx/km83xx.c b/board/keymile/km83xx/km83xx.c
index 040638934121..3bd9a1263fc2 100644
--- a/board/keymile/km83xx/km83xx.c
+++ b/board/keymile/km83xx/km83xx.c
@@ -22,6 +22,7 @@
 #include <mpc83xx.h>
 #include <i2c.h>
 #include <miiphy.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/mmu.h>
diff --git a/board/keymile/km83xx/km83xx_i2c.c b/board/keymile/km83xx/km83xx_i2c.c
index 104e30875d74..55c993481c22 100644
--- a/board/keymile/km83xx/km83xx_i2c.c
+++ b/board/keymile/km83xx/km83xx_i2c.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <asm/fsl_i2c.h>
 #include <asm/io.h>
 #include <linux/ctype.h>
diff --git a/board/keymile/km_arm/fpga_config.c b/board/keymile/km_arm/fpga_config.c
index abb5b7d60d0e..2e60221f2284 100644
--- a/board/keymile/km_arm/fpga_config.c
+++ b/board/keymile/km_arm/fpga_config.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 
diff --git a/board/keymile/km_arm/km_arm.c b/board/keymile/km_arm/km_arm.c
index f4235b377fc0..bfea7a41ae2b 100644
--- a/board/keymile/km_arm/km_arm.c
+++ b/board/keymile/km_arm/km_arm.c
@@ -20,6 +20,7 @@
 #include <netdev.h>
 #include <miiphy.h>
 #include <spi.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/board/keymile/kmp204x/ddr.c b/board/keymile/kmp204x/ddr.c
index 77a00c55c951..80f824c3013e 100644
--- a/board/keymile/kmp204x/ddr.c
+++ b/board/keymile/kmp204x/ddr.c
@@ -11,6 +11,7 @@
 #include <hwconfig.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mmu.h>
 #include <fsl_ddr_sdram.h>
diff --git a/board/keymile/kmp204x/eth.c b/board/keymile/kmp204x/eth.c
index 0cac3ecdad3c..a1e3a23cd75c 100644
--- a/board/keymile/kmp204x/eth.c
+++ b/board/keymile/kmp204x/eth.c
@@ -10,6 +10,7 @@
 #include <fm_eth.h>
 #include <fsl_mdio.h>
 #include <phy.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 
 int board_eth_init(struct bd_info *bis)
diff --git a/board/keymile/kmp204x/kmp204x.c b/board/keymile/kmp204x/kmp204x.c
index 1d491bda92f7..46316d345424 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 <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/compiler.h>
 #include <asm/mmu.h>
diff --git a/board/keymile/kmp204x/pci.c b/board/keymile/kmp204x/pci.c
index bfc853a2e824..169c8bc6edba 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 <stdio.h>
 #include <asm/fsl_pci.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
diff --git a/board/keymile/secu1/socfpga.c b/board/keymile/secu1/socfpga.c
index dc04a21abea8..4afaf0dec729 100644
--- a/board/keymile/secu1/socfpga.c
+++ b/board/keymile/secu1/socfpga.c
@@ -4,6 +4,7 @@
  */
 #include <common.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <asm/gpio.h>
 
 #include "../common/common.h"
diff --git a/board/kobol/helios4/helios4.c b/board/kobol/helios4/helios4.c
index 79cd4a4bc1f7..560a2e393a45 100644
--- a/board/kobol/helios4/helios4.c
+++ b/board/kobol/helios4/helios4.c
@@ -10,6 +10,7 @@
 #include <miiphy.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/board/kosagi/novena/novena.c b/board/kosagi/novena/novena.c
index 383d3705734b..114cd9e1f14a 100644
--- a/board/kosagi/novena/novena.c
+++ b/board/kosagi/novena/novena.c
@@ -11,6 +11,7 @@
 #include <eeprom.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/device-internal.h>
 #include <ahci.h>
diff --git a/board/kosagi/novena/video.c b/board/kosagi/novena/video.c
index a96a877f5f21..8fc76d6347a5 100644
--- a/board/kosagi/novena/video.c
+++ b/board/kosagi/novena/video.c
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
diff --git a/board/lego/ev3/legoev3.c b/board/lego/ev3/legoev3.c
index 5e5c8c1198f7..429dbbdcc458 100644
--- a/board/lego/ev3/legoev3.c
+++ b/board/lego/ev3/legoev3.c
@@ -17,6 +17,7 @@
 #include <init.h>
 #include <spi.h>
 #include <spi_flash.h>
+#include <stdio.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/pinmux_defs.h>
 #include <asm/global_data.h>
diff --git a/board/liebherr/display5/display5.c b/board/liebherr/display5/display5.c
index f98a92ad9cf4..727a4c036d3e 100644
--- a/board/liebherr/display5/display5.c
+++ b/board/liebherr/display5/display5.c
@@ -9,6 +9,7 @@
 #include <fdt_support.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/board/liebherr/display5/spl.c b/board/liebherr/display5/spl.c
index b910b3fbf0e5..3225ca0197b2 100644
--- a/board/liebherr/display5/spl.c
+++ b/board/liebherr/display5/spl.c
@@ -12,6 +12,7 @@
 #include <log.h>
 #include <serial.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
diff --git a/board/liebherr/mccmon6/mccmon6.c b/board/liebherr/mccmon6/mccmon6.c
index 1b49526fba4f..5efd6b8d197f 100644
--- a/board/liebherr/mccmon6/mccmon6.c
+++ b/board/liebherr/mccmon6/mccmon6.c
@@ -8,6 +8,7 @@
 #include <env.h>
 #include <init.h>
 #include <serial.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/liebherr/mccmon6/spl.c b/board/liebherr/mccmon6/spl.c
index 69cf7def1f67..6eacd60ddca5 100644
--- a/board/liebherr/mccmon6/spl.c
+++ b/board/liebherr/mccmon6/spl.c
@@ -7,6 +7,7 @@
 
 #include <image.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/liebherr/xea/xea.c b/board/liebherr/xea/xea.c
index eee2e00b78ec..7dd6cc34156d 100644
--- a/board/liebherr/xea/xea.c
+++ b/board/liebherr/xea/xea.c
@@ -18,6 +18,7 @@
 #include <init.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
diff --git a/board/maxbcm/maxbcm.c b/board/maxbcm/maxbcm.c
index e92132ad19a1..d56dc78e75e1 100644
--- a/board/maxbcm/maxbcm.c
+++ b/board/maxbcm/maxbcm.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <init.h>
 #include <miiphy.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/board/mediatek/mt7623/mt7623_rfb.c b/board/mediatek/mt7623/mt7623_rfb.c
index 090270b20d13..8d50e1f6149b 100644
--- a/board/mediatek/mt7623/mt7623_rfb.c
+++ b/board/mediatek/mt7623/mt7623_rfb.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <mmc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 
diff --git a/board/menlo/m53menlo/m53menlo.c b/board/menlo/m53menlo/m53menlo.c
index 4c7fd84e281e..93186b9bca35 100644
--- a/board/menlo/m53menlo/m53menlo.c
+++ b/board/menlo/m53menlo/m53menlo.c
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/microchip/pic32mzda/pic32mzda.c b/board/microchip/pic32mzda/pic32mzda.c
index e7337deea7fa..96bb8c8f4252 100644
--- a/board/microchip/pic32mzda/pic32mzda.c
+++ b/board/microchip/pic32mzda/pic32mzda.c
@@ -12,6 +12,7 @@
 #include <clk.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <dt-bindings/clock/microchip,clock.h>
 #include <mach/pic32.h>
 
diff --git a/board/mikrotik/crs3xx-98dx3236/crs3xx-98dx3236.c b/board/mikrotik/crs3xx-98dx3236/crs3xx-98dx3236.c
index 315169ba661d..676b0687fa46 100644
--- a/board/mikrotik/crs3xx-98dx3236/crs3xx-98dx3236.c
+++ b/board/mikrotik/crs3xx-98dx3236/crs3xx-98dx3236.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <linux/bitops.h>
diff --git a/board/mpc8308_p1m/mpc8308_p1m.c b/board/mpc8308_p1m/mpc8308_p1m.c
index 349d1ac88506..a2d5cb370377 100644
--- a/board/mpc8308_p1m/mpc8308_p1m.c
+++ b/board/mpc8308_p1m/mpc8308_p1m.c
@@ -8,6 +8,7 @@
 #include <i2c.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/ppc.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
diff --git a/board/novtech/meerkat96/meerkat96.c b/board/novtech/meerkat96/meerkat96.c
index 1edebe5db9be..5211055edd65 100644
--- a/board/novtech/meerkat96/meerkat96.c
+++ b/board/novtech/meerkat96/meerkat96.c
@@ -5,6 +5,7 @@
  */
 
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/mx7-pins.h>
diff --git a/board/nvidia/dalmore/dalmore.c b/board/nvidia/dalmore/dalmore.c
index 72511e401e3c..21b00855eb57 100644
--- a/board/nvidia/dalmore/dalmore.c
+++ b/board/nvidia/dalmore/dalmore.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch/gp_padctrl.h>
 #include "pinmux-config-dalmore.h"
diff --git a/board/nvidia/e2220-1170/e2220-1170.c b/board/nvidia/e2220-1170/e2220-1170.c
index b819b049f4b4..4c59b61e5da0 100644
--- a/board/nvidia/e2220-1170/e2220-1170.c
+++ b/board/nvidia/e2220-1170/e2220-1170.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/pinmux.h>
 #include "../p2571/max77620_init.h"
diff --git a/board/nvidia/p2371-0000/p2371-0000.c b/board/nvidia/p2371-0000/p2371-0000.c
index b819b049f4b4..4c59b61e5da0 100644
--- a/board/nvidia/p2371-0000/p2371-0000.c
+++ b/board/nvidia/p2371-0000/p2371-0000.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/pinmux.h>
 #include "../p2571/max77620_init.h"
diff --git a/board/nvidia/p2371-2180/p2371-2180.c b/board/nvidia/p2371-2180/p2371-2180.c
index 4631fa21f5bc..e20a74943ff7 100644
--- a/board/nvidia/p2371-2180/p2371-2180.c
+++ b/board/nvidia/p2371-2180/p2371-2180.c
@@ -10,6 +10,7 @@
 #include <i2c.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
 #include <linux/libfdt.h>
diff --git a/board/nvidia/p2571/p2571.c b/board/nvidia/p2571/p2571.c
index a4c4259eeaee..e8760ca51727 100644
--- a/board/nvidia/p2571/p2571.c
+++ b/board/nvidia/p2571/p2571.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/pinmux.h>
 #include <asm/gpio.h>
diff --git a/board/nvidia/p2771-0000/p2771-0000.c b/board/nvidia/p2771-0000/p2771-0000.c
index 14b151d8a165..c1d9b79d3e90 100644
--- a/board/nvidia/p2771-0000/p2771-0000.c
+++ b/board/nvidia/p2771-0000/p2771-0000.c
@@ -9,6 +9,7 @@
 #include <i2c.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/libfdt.h>
 #include <asm/arch-tegra/cboot.h>
diff --git a/board/nvidia/p3450-0000/p3450-0000.c b/board/nvidia/p3450-0000/p3450-0000.c
index e40644388ecc..f6751b65ab9f 100644
--- a/board/nvidia/p3450-0000/p3450-0000.c
+++ b/board/nvidia/p3450-0000/p3450-0000.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <fdtdec.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
 #include <linux/libfdt.h>
diff --git a/board/phytec/pcl063/pcl063.c b/board/phytec/pcl063/pcl063.c
index b2e435f6908d..f274519c0734 100644
--- a/board/phytec/pcl063/pcl063.c
+++ b/board/phytec/pcl063/pcl063.c
@@ -7,6 +7,7 @@
  */
 
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/mx6-pins.h>
diff --git a/board/phytec/pcl063/spl.c b/board/phytec/pcl063/spl.c
index 175223dbc75c..662f3d7e12d3 100644
--- a/board/phytec/pcl063/spl.c
+++ b/board/phytec/pcl063/spl.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <init.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/io.h>
 #include <asm/arch/mx6-ddr.h>
diff --git a/board/phytec/pcm052/pcm052.c b/board/phytec/pcm052/pcm052.c
index f9cf4abd474b..4acfa7c1fbc5 100644
--- a/board/phytec/pcm052/pcm052.c
+++ b/board/phytec/pcm052/pcm052.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/phytec/pcm058/pcm058.c b/board/phytec/pcm058/pcm058.c
index a2304b764d6e..113369b5eacd 100644
--- a/board/phytec/pcm058/pcm058.c
+++ b/board/phytec/pcm058/pcm058.c
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/mx6-ddr.h>
 #include <asm/global_data.h>
diff --git a/board/phytec/pfla02/pfla02.c b/board/phytec/pfla02/pfla02.c
index 225fdd55cc58..57f30a04ed8c 100644
--- a/board/phytec/pfla02/pfla02.c
+++ b/board/phytec/pfla02/pfla02.c
@@ -8,6 +8,7 @@
 #include <init.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/board/phytec/phycore_rk3288/phycore-rk3288.c b/board/phytec/phycore_rk3288/phycore-rk3288.c
index f588fc3b0c70..141707c7b9a0 100644
--- a/board/phytec/phycore_rk3288/phycore-rk3288.c
+++ b/board/phytec/phycore_rk3288/phycore-rk3288.c
@@ -8,6 +8,7 @@
 #include <init.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <common.h>
diff --git a/board/phytium/durian/durian.c b/board/phytium/durian/durian.c
index 8a82a4591ac2..f694eb099136 100644
--- a/board/phytium/durian/durian.c
+++ b/board/phytium/durian/durian.c
@@ -10,6 +10,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/armv8/mmu.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/board/ppcag/bg0900/bg0900.c b/board/ppcag/bg0900/bg0900.c
index 5fe7ed9a3a8f..9d2ad0b20140 100644
--- a/board/ppcag/bg0900/bg0900.c
+++ b/board/ppcag/bg0900/bg0900.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
diff --git a/board/qemu-mips/qemu-mips.c b/board/qemu-mips/qemu-mips.c
index 21437168044f..7d00176ffe6a 100644
--- a/board/qemu-mips/qemu-mips.c
+++ b/board/qemu-mips/qemu-mips.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mipsregs.h>
 #include <asm/io.h>
diff --git a/board/qualcomm/dragonboard410c/dragonboard410c.c b/board/qualcomm/dragonboard410c/dragonboard410c.c
index bac8b1ff8993..9ba3dcb092ac 100644
--- a/board/qualcomm/dragonboard410c/dragonboard410c.c
+++ b/board/qualcomm/dragonboard410c/dragonboard410c.c
@@ -11,6 +11,7 @@
 #include <env.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <usb.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/board/qualcomm/dragonboard820c/dragonboard820c.c b/board/qualcomm/dragonboard820c/dragonboard820c.c
index 877e34c21017..dc70a8347f7f 100644
--- a/board/qualcomm/dragonboard820c/dragonboard820c.c
+++ b/board/qualcomm/dragonboard820c/dragonboard820c.c
@@ -7,6 +7,7 @@
 
 #include <cpu_func.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/sysmap-apq8096.h>
 #include <env.h>
 #include <asm/cache.h>
diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index e76fc2cca94d..647ebde09a7c 100644
--- a/board/raspberrypi/rpi/rpi.c
+++ b/board/raspberrypi/rpi/rpi.c
@@ -14,6 +14,7 @@
 #include <lcd.h>
 #include <memalign.h>
 #include <mmc.h>
+#include <stdio.h>
 #include <asm/gpio.h>
 #include <asm/arch/mbox.h>
 #include <asm/arch/msg.h>
diff --git a/board/renesas/MigoR/migo_r.c b/board/renesas/MigoR/migo_r.c
index 61564a2f50f7..29cb1a82215b 100644
--- a/board/renesas/MigoR/migo_r.c
+++ b/board/renesas/MigoR/migo_r.c
@@ -13,6 +13,7 @@
 #include <init.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/processor.h>
 #include <asm/u-boot.h>
diff --git a/board/renesas/alt/alt_spl.c b/board/renesas/alt/alt_spl.c
index 2de236fc2989..02e3ed3b563c 100644
--- a/board/renesas/alt/alt_spl.c
+++ b/board/renesas/alt/alt_spl.c
@@ -9,6 +9,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <dm/platform_data/serial_sh.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
diff --git a/board/renesas/blanche/blanche.c b/board/renesas/blanche/blanche.c
index 77d4cc8bd6c1..e91cffaa8c5a 100644
--- a/board/renesas/blanche/blanche.c
+++ b/board/renesas/blanche/blanche.c
@@ -10,6 +10,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/mmc.h>
 #include <asm/arch/rcar-mstp.h>
 #include <asm/arch/rmobile.h>
diff --git a/board/renesas/gose/gose_spl.c b/board/renesas/gose/gose_spl.c
index 624ba5db04e5..a181ffd6dcf8 100644
--- a/board/renesas/gose/gose_spl.c
+++ b/board/renesas/gose/gose_spl.c
@@ -9,6 +9,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <dm/platform_data/serial_sh.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
diff --git a/board/renesas/koelsch/koelsch_spl.c b/board/renesas/koelsch/koelsch_spl.c
index 449bbfa7b81a..f5be6548738f 100644
--- a/board/renesas/koelsch/koelsch_spl.c
+++ b/board/renesas/koelsch/koelsch_spl.c
@@ -9,6 +9,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <dm/platform_data/serial_sh.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
diff --git a/board/renesas/lager/lager_spl.c b/board/renesas/lager/lager_spl.c
index 1ca857c2c3d8..4dc47ecd5f73 100644
--- a/board/renesas/lager/lager_spl.c
+++ b/board/renesas/lager/lager_spl.c
@@ -9,6 +9,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <dm/platform_data/serial_sh.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
diff --git a/board/renesas/porter/porter_spl.c b/board/renesas/porter/porter_spl.c
index f10c6cffc2b8..9b4e787b5f16 100644
--- a/board/renesas/porter/porter_spl.c
+++ b/board/renesas/porter/porter_spl.c
@@ -9,6 +9,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <dm/platform_data/serial_sh.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
diff --git a/board/renesas/r2dplus/r2dplus.c b/board/renesas/r2dplus/r2dplus.c
index e637b4f98763..824b4d34deaf 100644
--- a/board/renesas/r2dplus/r2dplus.c
+++ b/board/renesas/r2dplus/r2dplus.c
@@ -9,6 +9,7 @@
 #include <init.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
diff --git a/board/renesas/r7780mp/r7780mp.c b/board/renesas/r7780mp/r7780mp.c
index 28c99bf58547..0c9af494c232 100644
--- a/board/renesas/r7780mp/r7780mp.c
+++ b/board/renesas/r7780mp/r7780mp.c
@@ -8,6 +8,7 @@
 #include <ide.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/pci.h>
diff --git a/board/renesas/rcar-common/common.c b/board/renesas/rcar-common/common.c
index 4f56627b8129..f4a0179b9f84 100644
--- a/board/renesas/rcar-common/common.c
+++ b/board/renesas/rcar-common/common.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <dm.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <dm/uclass-internal.h>
diff --git a/board/renesas/sh7752evb/sh7752evb.c b/board/renesas/sh7752evb/sh7752evb.c
index 4df154a2a910..5c65b0d692a8 100644
--- a/board/renesas/sh7752evb/sh7752evb.c
+++ b/board/renesas/sh7752evb/sh7752evb.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <malloc.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/mmc.h>
diff --git a/board/renesas/sh7753evb/sh7753evb.c b/board/renesas/sh7753evb/sh7753evb.c
index de719983979f..014fdf94b75f 100644
--- a/board/renesas/sh7753evb/sh7753evb.c
+++ b/board/renesas/sh7753evb/sh7753evb.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <malloc.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/mmc.h>
diff --git a/board/renesas/sh7757lcr/sh7757lcr.c b/board/renesas/sh7757lcr/sh7757lcr.c
index 2adca5dc6dc9..80f296444064 100644
--- a/board/renesas/sh7757lcr/sh7757lcr.c
+++ b/board/renesas/sh7757lcr/sh7757lcr.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <malloc.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/mmc.h>
diff --git a/board/renesas/sh7763rdp/sh7763rdp.c b/board/renesas/sh7763rdp/sh7763rdp.c
index 73a53c1e5acf..2f11643bb101 100644
--- a/board/renesas/sh7763rdp/sh7763rdp.c
+++ b/board/renesas/sh7763rdp/sh7763rdp.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/processor.h>
 
diff --git a/board/renesas/silk/silk_spl.c b/board/renesas/silk/silk_spl.c
index f10f84a3cce0..27f59ce9e4dc 100644
--- a/board/renesas/silk/silk_spl.c
+++ b/board/renesas/silk/silk_spl.c
@@ -9,6 +9,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <dm/platform_data/serial_sh.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
diff --git a/board/renesas/stout/cpld.c b/board/renesas/stout/cpld.c
index e6e0a3a3e3d1..366076a3b880 100644
--- a/board/renesas/stout/cpld.c
+++ b/board/renesas/stout/cpld.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <command.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <linux/string.h>
diff --git a/board/renesas/stout/stout_spl.c b/board/renesas/stout/stout_spl.c
index 57c1fabaf3a8..f3a5dbc8d0bb 100644
--- a/board/renesas/stout/stout_spl.c
+++ b/board/renesas/stout/stout_spl.c
@@ -9,6 +9,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <dm/platform_data/serial_sh.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
diff --git a/board/renesas/ulcb/cpld.c b/board/renesas/ulcb/cpld.c
index c9579a9dd173..b443c36b1dfb 100644
--- a/board/renesas/ulcb/cpld.c
+++ b/board/renesas/ulcb/cpld.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <dm.h>
diff --git a/board/rockchip/evb_rk3308/evb_rk3308.c b/board/rockchip/evb_rk3308/evb_rk3308.c
index e0c96fd70a28..efe6363a4134 100644
--- a/board/rockchip/evb_rk3308/evb_rk3308.c
+++ b/board/rockchip/evb_rk3308/evb_rk3308.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <adc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/board/rockchip/kylin_rk3036/kylin_rk3036.c b/board/rockchip/kylin_rk3036/kylin_rk3036.c
index 0ca91cdeb014..6caee58e9d8d 100644
--- a/board/rockchip/kylin_rk3036/kylin_rk3036.c
+++ b/board/rockchip/kylin_rk3036/kylin_rk3036.c
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <env.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/uart.h>
 #include <asm/arch-rockchip/sdram_rk3036.h>
diff --git a/board/ronetix/pm9263/pm9263.c b/board/ronetix/pm9263/pm9263.c
index ec73ced76042..58263a908235 100644
--- a/board/ronetix/pm9263/pm9263.c
+++ b/board/ronetix/pm9263/pm9263.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/sizes.h>
diff --git a/board/samsung/arndale/arndale.c b/board/samsung/arndale/arndale.c
index d1525b4a8562..fa568f76c66e 100644
--- a/board/samsung/arndale/arndale.c
+++ b/board/samsung/arndale/arndale.c
@@ -7,6 +7,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <usb.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c
index ae66bc73fd15..8ee9ca43c41d 100644
--- a/board/samsung/common/board.c
+++ b/board/samsung/common/board.c
@@ -14,6 +14,7 @@
 #include <log.h>
 #include <net.h>
 #include <spi.h>
+#include <stdio.h>
 #include <tmu.h>
 #include <netdev.h>
 #include <asm/global_data.h>
diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c
index 0243d8971c80..eef565d1cee8 100644
--- a/board/samsung/common/misc.c
+++ b/board/samsung/common/misc.c
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <lcd.h>
 #include <libtizen.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
 #include <linux/printk.h>
diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c
index 1631e68e713c..9476a437113e 100644
--- a/board/samsung/goni/goni.c
+++ b/board/samsung/goni/goni.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <asm/arch/mmc.h>
diff --git a/board/samsung/smdkc100/smdkc100.c b/board/samsung/smdkc100/smdkc100.c
index f343a6f9dfe4..38cfde4f1366 100644
--- a/board/samsung/smdkc100/smdkc100.c
+++ b/board/samsung/smdkc100/smdkc100.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
diff --git a/board/samsung/smdkv310/smdkv310.c b/board/samsung/smdkv310/smdkv310.c
index 0be4ddf92d8d..58b71df0817c 100644
--- a/board/samsung/smdkv310/smdkv310.c
+++ b/board/samsung/smdkv310/smdkv310.c
@@ -7,6 +7,7 @@
 #include <init.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c
index 2e80dbbc84a7..b79a87242734 100644
--- a/board/samsung/trats/trats.c
+++ b/board/samsung/trats/trats.c
@@ -10,6 +10,7 @@
 #include <env.h>
 #include <lcd.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <asm/arch/cpu.h>
diff --git a/board/samsung/trats2/trats2.c b/board/samsung/trats2/trats2.c
index 69e0ef192d10..6880dcda1caf 100644
--- a/board/samsung/trats2/trats2.c
+++ b/board/samsung/trats2/trats2.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <lcd.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/gpio.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch/power.h>
diff --git a/board/samsung/universal_c210/universal.c b/board/samsung/universal_c210/universal.c
index 9ef11b8471ca..fce8dfcc2344 100644
--- a/board/samsung/universal_c210/universal.c
+++ b/board/samsung/universal_c210/universal.c
@@ -10,6 +10,7 @@
 #include <log.h>
 #include <spi.h>
 #include <lcd.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
diff --git a/board/sandbox/sandbox.c b/board/sandbox/sandbox.c
index 9773074d0882..f1d93dc0aa1e 100644
--- a/board/sandbox/sandbox.c
+++ b/board/sandbox/sandbox.c
@@ -11,6 +11,7 @@
 #include <init.h>
 #include <led.h>
 #include <os.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/test.h>
diff --git a/board/sbc8349/sbc8349.c b/board/sbc8349/sbc8349.c
index 18138289965d..f7e7ae7405c2 100644
--- a/board/sbc8349/sbc8349.c
+++ b/board/sbc8349/sbc8349.c
@@ -12,6 +12,7 @@
 #include <init.h>
 #include <ioports.h>
 #include <mpc83xx.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 #include <asm/global_data.h>
 #include <asm/ppc.h>
diff --git a/board/sbc8548/ddr.c b/board/sbc8548/ddr.c
index 48e1bcf806a9..8351a9ca9333 100644
--- a/board/sbc8548/ddr.c
+++ b/board/sbc8548/ddr.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <asm/ppc.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/board/sbc8548/sbc8548.c b/board/sbc8548/sbc8548.c
index b3c1da920a8a..7780b53a2046 100644
--- a/board/sbc8548/sbc8548.c
+++ b/board/sbc8548/sbc8548.c
@@ -15,6 +15,7 @@
 #include <log.h>
 #include <net.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_pci.h>
diff --git a/board/schulercontrol/sc_sps_1/sc_sps_1.c b/board/schulercontrol/sc_sps_1/sc_sps_1.c
index a5b25b60fc49..23345604d63e 100644
--- a/board/schulercontrol/sc_sps_1/sc_sps_1.c
+++ b/board/schulercontrol/sc_sps_1/sc_sps_1.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
diff --git a/board/seco/common/mx6.c b/board/seco/common/mx6.c
index 51832b9d082f..eaf7edf952dd 100644
--- a/board/seco/common/mx6.c
+++ b/board/seco/common/mx6.c
@@ -7,6 +7,7 @@
  * Modified by: Boris Brezillon <boris.brezillon at free-electrons.com>
  */
 
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/seco/mx6quq7/mx6quq7.c b/board/seco/mx6quq7/mx6quq7.c
index 138c6e04291d..e022e057b643 100644
--- a/board/seco/mx6quq7/mx6quq7.c
+++ b/board/seco/mx6quq7/mx6quq7.c
@@ -9,6 +9,7 @@
 
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/siemens/capricorn/board.c b/board/siemens/capricorn/board.c
index 03418707a853..18d9c64f55a2 100644
--- a/board/siemens/capricorn/board.c
+++ b/board/siemens/capricorn/board.c
@@ -19,6 +19,7 @@
 #include <led.h>
 #include <pca953x.h>
 #include <power-domain.h>
+#include <stdio.h>
 #include <asm/gpio.h>
 #include <asm/arch/imx8-pins.h>
 #include <asm/arch/iomux.h>
diff --git a/board/siemens/common/board.c b/board/siemens/common/board.c
index 19f27f6805a6..769979952174 100644
--- a/board/siemens/common/board.c
+++ b/board/siemens/common/board.c
@@ -17,6 +17,7 @@
 #include <malloc.h>
 #include <serial.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/omap.h>
diff --git a/board/siemens/common/factoryset.c b/board/siemens/common/factoryset.c
index 5ceb0871fa0b..75c347973227 100644
--- a/board/siemens/common/factoryset.c
+++ b/board/siemens/common/factoryset.c
@@ -17,6 +17,7 @@
 #if !CONFIG_IS_ENABLED(TARGET_GIEDI) && !CONFIG_IS_ENABLED(TARGET_DENEB)
 #include <asm/arch/cpu.h>
 #endif
+#include <stdio.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/unaligned.h>
 #include <net.h>
diff --git a/board/siemens/draco/board.c b/board/siemens/draco/board.c
index 2c15cfdda3f3..83cc14421dcb 100644
--- a/board/siemens/draco/board.c
+++ b/board/siemens/draco/board.c
@@ -19,6 +19,7 @@
 #include <init.h>
 #include <net.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/omap.h>
diff --git a/board/siemens/draco/board.h b/board/siemens/draco/board.h
index 7c29a45c036f..3e8ce399229e 100644
--- a/board/siemens/draco/board.h
+++ b/board/siemens/draco/board.h
@@ -15,6 +15,7 @@
 #ifndef _BOARD_H_
 #define _BOARD_H_
 
+#include <stdio.h>
 #define PARGS(x)	#x , /* Parameter Name */ \
 			settings.ddr3.x, /* EEPROM Value */ \
 			ddr3_default.x, /* Default Value */ \
diff --git a/board/siemens/pxm2/board.c b/board/siemens/pxm2/board.c
index 8ab3610da7d6..4fec3d8c95e1 100644
--- a/board/siemens/pxm2/board.c
+++ b/board/siemens/pxm2/board.c
@@ -20,6 +20,7 @@
 #include <malloc.h>
 #include <net.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/omap.h>
diff --git a/board/siemens/rut/board.c b/board/siemens/rut/board.c
index 84053b10d846..531ed7e15972 100644
--- a/board/siemens/rut/board.c
+++ b/board/siemens/rut/board.c
@@ -18,6 +18,7 @@
 #include <net.h>
 #include <spi.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/omap.h>
diff --git a/board/siemens/taurus/taurus.c b/board/siemens/taurus/taurus.c
index 3fb7d6bca227..631812f15083 100644
--- a/board/siemens/taurus/taurus.c
+++ b/board/siemens/taurus/taurus.c
@@ -17,6 +17,7 @@
 #include <env.h>
 #include <flash.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/at91sam9260_matrix.h>
diff --git a/board/sifive/fu540/fu540.c b/board/sifive/fu540/fu540.c
index 54e5a4c16739..dea0924c6bf5 100644
--- a/board/sifive/fu540/fu540.c
+++ b/board/sifive/fu540/fu540.c
@@ -10,6 +10,7 @@
 #include <env.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/bug.h>
 #include <linux/delay.h>
diff --git a/board/sks-kinkel/sksimx6/sksimx6.c b/board/sks-kinkel/sksimx6/sksimx6.c
index cbf3a5952be7..15c75959e6ad 100644
--- a/board/sks-kinkel/sksimx6/sksimx6.c
+++ b/board/sks-kinkel/sksimx6/sksimx6.c
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/socrates/nand.c b/board/socrates/nand.c
index 07c493679bf0..3fca5d063caf 100644
--- a/board/socrates/nand.c
+++ b/board/socrates/nand.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 
 #if defined(CONFIG_SYS_NAND_BASE)
 #include <nand.h>
diff --git a/board/socrates/socrates.c b/board/socrates/socrates.c
index 711ddcf256ea..96cde5afcbee 100644
--- a/board/socrates/socrates.c
+++ b/board/socrates/socrates.c
@@ -15,6 +15,7 @@
 #include <env.h>
 #include <init.h>
 #include <pci.h>
+#include <stdio.h>
 #include <uuid.h>
 #include <asm/global_data.h>
 #include <asm/processor.h>
diff --git a/board/softing/vining_2000/vining_2000.c b/board/softing/vining_2000/vining_2000.c
index 93670b7a946b..7c9c8d78b339 100644
--- a/board/softing/vining_2000/vining_2000.c
+++ b/board/softing/vining_2000/vining_2000.c
@@ -8,6 +8,7 @@
 
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/softing/vining_fpga/socfpga.c b/board/softing/vining_fpga/socfpga.c
index 34ce6a13003b..7c9d4885dbef 100644
--- a/board/softing/vining_fpga/socfpga.c
+++ b/board/softing/vining_fpga/socfpga.c
@@ -9,6 +9,7 @@
 #include <init.h>
 #include <net.h>
 #include <status_led.h>
+#include <stdio.h>
 #include <asm/arch/reset_manager.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidrun/clearfog/clearfog.c
index 46ffc026f347..660962364f62 100644
--- a/board/solidrun/clearfog/clearfog.c
+++ b/board/solidrun/clearfog/clearfog.c
@@ -10,6 +10,7 @@
 #include <miiphy.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/board/solidrun/mx6cuboxi/mx6cuboxi.c b/board/solidrun/mx6cuboxi/mx6cuboxi.c
index e56e32e8c849..890d456ef4fe 100644
--- a/board/solidrun/mx6cuboxi/mx6cuboxi.c
+++ b/board/solidrun/mx6cuboxi/mx6cuboxi.c
@@ -17,6 +17,7 @@
 #include <image.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/somlabs/visionsom-6ull/visionsom-6ull.c b/board/somlabs/visionsom-6ull/visionsom-6ull.c
index 076c641d8a90..0146ba868db6 100644
--- a/board/somlabs/visionsom-6ull/visionsom-6ull.c
+++ b/board/somlabs/visionsom-6ull/visionsom-6ull.c
@@ -5,6 +5,7 @@
  */
 
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/spear/x600/x600.c b/board/spear/x600/x600.c
index fcc7524121c0..e3e9008fa3ec 100644
--- a/board/spear/x600/x600.c
+++ b/board/spear/x600/x600.c
@@ -15,6 +15,7 @@
 #include <netdev.h>
 #include <phy.h>
 #include <rtc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/mach-types.h>
 #include <asm/arch/hardware.h>
diff --git a/board/st/common/stm32mp_dfu.c b/board/st/common/stm32mp_dfu.c
index aab502e3146e..0cf9a1544b80 100644
--- a/board/st/common/stm32mp_dfu.c
+++ b/board/st/common/stm32mp_dfu.c
@@ -12,6 +12,7 @@
 #include <misc.h>
 #include <mtd.h>
 #include <mtd_node.h>
+#include <stdio.h>
 #include <asm/arch/stm32prog.h>
 #include <linux/printk.h>
 #include <linux/string.h>
diff --git a/board/st/common/stpmic1.c b/board/st/common/stpmic1.c
index 3aa379e8a50f..042476dc318e 100644
--- a/board/st/common/stpmic1.c
+++ b/board/st/common/stpmic1.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/ddr.h>
 #include <linux/bitops.h>
diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c
index 40450ca914be..ba3a1682d6cd 100644
--- a/board/st/stm32f746-disco/stm32f746-disco.c
+++ b/board/st/stm32f746-disco/stm32f746-disco.c
@@ -16,6 +16,7 @@
 #include <spl.h>
 #include <splash.h>
 #include <st_logo_data.h>
+#include <stdio.h>
 #include <video.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index f2312a03d1a1..b86cbee8e908 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -26,6 +26,7 @@
 #include <phy.h>
 #include <remoteproc.h>
 #include <reset.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <usb.h>
 #include <watchdog.h>
diff --git a/board/st/stv0991/stv0991.c b/board/st/stv0991/stv0991.c
index e2d62a7ede9d..bd2d56d6d59b 100644
--- a/board/st/stv0991/stv0991.c
+++ b/board/st/stv0991/stv0991.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/stv0991_periph.h>
 #include <asm/arch/stv0991_defs.h>
 #include <asm/arch/hardware.h>
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index a34b1f4cf178..cca98e2d5426 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -21,6 +21,7 @@
 #include <axp_pmic.h>
 #include <generic-phy.h>
 #include <phy-sun4i-usb.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/display.h>
diff --git a/board/synopsys/axs10x/axs10x.c b/board/synopsys/axs10x/axs10x.c
index 75e4d037623e..8faaf8045c1d 100644
--- a/board/synopsys/axs10x/axs10x.c
+++ b/board/synopsys/axs10x/axs10x.c
@@ -8,6 +8,7 @@
 #include <dwmmc.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/arcregs.h>
 #include <asm/global_data.h>
 #include "axs10x.h"
diff --git a/board/synopsys/emsdp/emsdp.c b/board/synopsys/emsdp/emsdp.c
index a2eaf36ef13a..7a33440f273e 100644
--- a/board/synopsys/emsdp/emsdp.c
+++ b/board/synopsys/emsdp/emsdp.c
@@ -9,6 +9,7 @@
 #include <dwmmc.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
 #include <linux/string.h>
diff --git a/board/synopsys/hsdk/clk-lib.c b/board/synopsys/hsdk/clk-lib.c
index eed0fa15b192..93f3dca9afd3 100644
--- a/board/synopsys/hsdk/clk-lib.c
+++ b/board/synopsys/hsdk/clk-lib.c
@@ -7,6 +7,7 @@
 #include <clk.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <dm/device.h>
 #include <linux/printk.h>
 
diff --git a/board/synopsys/hsdk/hsdk.c b/board/synopsys/hsdk/hsdk.c
index 8644a41fe0ba..9c6e8dbc8f25 100644
--- a/board/synopsys/hsdk/hsdk.c
+++ b/board/synopsys/hsdk/hsdk.c
@@ -13,6 +13,7 @@
 #include <init.h>
 #include <irq_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
diff --git a/board/synopsys/iot_devkit/iot_devkit.c b/board/synopsys/iot_devkit/iot_devkit.c
index c6051363c1f9..151ade5fb7c9 100644
--- a/board/synopsys/iot_devkit/iot_devkit.c
+++ b/board/synopsys/iot_devkit/iot_devkit.c
@@ -8,6 +8,7 @@
 #include <init.h>
 #include <malloc.h>
 #include <dwmmc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
 #include <linux/libfdt.h>
diff --git a/board/synopsys/nsim/nsim.c b/board/synopsys/nsim/nsim.c
index 00e5cc36414b..06eea41eb782 100644
--- a/board/synopsys/nsim/nsim.c
+++ b/board/synopsys/nsim/nsim.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <dm/device.h>
 #include <virtio_types.h>
 #include <virtio.h>
diff --git a/board/sysam/amcore/amcore.c b/board/sysam/amcore/amcore.c
index 9e1b8022705e..183a78d9ed77 100644
--- a/board/sysam/amcore/amcore.c
+++ b/board/sysam/amcore/amcore.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
 #include <asm/io.h>
diff --git a/board/sysam/stmark2/stmark2.c b/board/sysam/stmark2/stmark2.c
index d48da48b69d6..4c75bd6a5bec 100644
--- a/board/sysam/stmark2/stmark2.c
+++ b/board/sysam/stmark2/stmark2.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <init.h>
 #include <spi.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/immap.h>
diff --git a/board/tbs/tbs2910/tbs2910.c b/board/tbs/tbs2910/tbs2910.c
index ac1b8231281d..56e0f378b6a9 100644
--- a/board/tbs/tbs2910/tbs2910.c
+++ b/board/tbs/tbs2910/tbs2910.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/tcl/sl50/board.c b/board/tcl/sl50/board.c
index 8095053fd60f..7adaea5d5874 100644
--- a/board/tcl/sl50/board.c
+++ b/board/tcl/sl50/board.c
@@ -14,6 +14,7 @@
 #include <net.h>
 #include <serial.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/omap.h>
diff --git a/board/technexion/pico-imx6/pico-imx6.c b/board/technexion/pico-imx6/pico-imx6.c
index 90592900ec6e..87a78f418431 100644
--- a/board/technexion/pico-imx6/pico-imx6.c
+++ b/board/technexion/pico-imx6/pico-imx6.c
@@ -10,6 +10,7 @@
 #include <env.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/technexion/pico-imx6ul/pico-imx6ul.c b/board/technexion/pico-imx6ul/pico-imx6ul.c
index 0d972158b1c8..11ae82b6bf2c 100644
--- a/board/technexion/pico-imx6ul/pico-imx6ul.c
+++ b/board/technexion/pico-imx6ul/pico-imx6ul.c
@@ -7,6 +7,7 @@
 
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/technexion/pico-imx6ul/spl.c b/board/technexion/pico-imx6ul/spl.c
index bea16a7ab9f0..0c5b166b6539 100644
--- a/board/technexion/pico-imx6ul/spl.c
+++ b/board/technexion/pico-imx6ul/spl.c
@@ -4,6 +4,7 @@
 #include <cpu_func.h>
 #include <hang.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/technexion/pico-imx7d/pico-imx7d.c b/board/technexion/pico-imx7d/pico-imx7d.c
index 2d749dac19a4..4af38f223cf0 100644
--- a/board/technexion/pico-imx7d/pico-imx7d.c
+++ b/board/technexion/pico-imx7d/pico-imx7d.c
@@ -5,6 +5,7 @@
 
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/technexion/pico-imx8mq/pico-imx8mq.c b/board/technexion/pico-imx8mq/pico-imx8mq.c
index 951e3e1985bc..de1c7c52211f 100644
--- a/board/technexion/pico-imx8mq/pico-imx8mq.c
+++ b/board/technexion/pico-imx8mq/pico-imx8mq.c
@@ -8,6 +8,7 @@
 #include <init.h>
 #include <malloc.h>
 #include <errno.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <miiphy.h>
diff --git a/board/technexion/pico-imx8mq/spl.c b/board/technexion/pico-imx8mq/spl.c
index 02b2a01cae75..048ffb48d3f6 100644
--- a/board/technexion/pico-imx8mq/spl.c
+++ b/board/technexion/pico-imx8mq/spl.c
@@ -7,6 +7,7 @@
 #include <hang.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/imx8mq_pins.h>
diff --git a/board/technexion/tao3530/tao3530.c b/board/technexion/tao3530/tao3530.c
index 157ad85d4f75..31bf21c94cbd 100644
--- a/board/technexion/tao3530/tao3530.c
+++ b/board/technexion/tao3530/tao3530.c
@@ -8,6 +8,7 @@
 #include <init.h>
 #include <malloc.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <twl4030.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/technologic/ts4600/ts4600.c b/board/technologic/ts4600/ts4600.c
index 7daac4e53aa2..033fdcd9713a 100644
--- a/board/technologic/ts4600/ts4600.c
+++ b/board/technologic/ts4600/ts4600.c
@@ -15,6 +15,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
diff --git a/board/technologic/ts4800/ts4800.c b/board/technologic/ts4800/ts4800.c
index 61ec4ffb831e..37347949a38b 100644
--- a/board/technologic/ts4800/ts4800.c
+++ b/board/technologic/ts4800/ts4800.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
diff --git a/board/theadorable/theadorable.c b/board/theadorable/theadorable.c
index 9664a8c0ef31..090a471a7172 100644
--- a/board/theadorable/theadorable.c
+++ b/board/theadorable/theadorable.c
@@ -13,6 +13,7 @@
 #if !defined(CONFIG_SPL_BUILD)
 #include <bootcount.h>
 #endif
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index 7103dc454d8e..0fa4d31a2e7b 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 <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/omap.h>
diff --git a/board/ti/am335x/mux.c b/board/ti/am335x/mux.c
index 6fb2c009ba0f..b5333b10ab76 100644
--- a/board/ti/am335x/mux.c
+++ b/board/ti/am335x/mux.c
@@ -14,6 +14,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/mux.h>
diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c
index 463dccc0ccba..28bc5333c52d 100644
--- a/board/ti/am43xx/board.c
+++ b/board/ti/am43xx/board.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <eeprom.h>
 #include <image.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <dm/uclass.h>
diff --git a/board/ti/am43xx/mux.c b/board/ti/am43xx/mux.c
index f59e93a0ebba..13591a369f54 100644
--- a/board/ti/am43xx/mux.c
+++ b/board/ti/am43xx/mux.c
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/mux.h>
 #include "../common/board_detect.h"
diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c
index fca15a9a6294..e0fb2b39b7da 100644
--- a/board/ti/am57xx/board.c
+++ b/board/ti/am57xx/board.c
@@ -17,6 +17,7 @@
 #include <palmas.h>
 #include <sata.h>
 #include <serial.h>
+#include <stdio.h>
 #include <usb.h>
 #include <errno.h>
 #include <asm/global_data.h>
diff --git a/board/ti/am65x/evm.c b/board/ti/am65x/evm.c
index 6f0dbf608300..83067eb56638 100644
--- a/board/ti/am65x/evm.c
+++ b/board/ti/am65x/evm.c
@@ -13,6 +13,7 @@
 #include <image.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware.h>
 #include <asm/global_data.h>
diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
index 752cb584c66a..fe8aeac9e46b 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 <stdio.h>
 #include <twl4030.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
diff --git a/board/ti/common/board_detect.c b/board/ti/common/board_detect.c
index f51bacfbbcde..5721ef9e11d1 100644
--- a/board/ti/common/board_detect.c
+++ b/board/ti/common/board_detect.c
@@ -11,6 +11,7 @@
 #include <eeprom.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/hardware.h>
 #include <asm/omap_common.h>
 #include <dm/uclass.h>
diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c
index fa56ebb25333..e88aac06683d 100644
--- a/board/ti/dra7xx/evm.c
+++ b/board/ti/dra7xx/evm.c
@@ -19,6 +19,7 @@
 #include <palmas.h>
 #include <sata.h>
 #include <serial.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/string.h>
diff --git a/board/ti/evm/evm.c b/board/ti/evm/evm.c
index 7e5efc32bc36..e84014b7c1c3 100644
--- a/board/ti/evm/evm.c
+++ b/board/ti/evm/evm.c
@@ -17,6 +17,7 @@
 #include <net.h>
 #include <ns16550.h>
 #include <serial.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/mem.h>
diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c
index d6b67504654b..0c31ca2f7cc2 100644
--- a/board/ti/j721e/evm.c
+++ b/board/ti/j721e/evm.c
@@ -14,6 +14,7 @@
 #include <init.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/hardware.h>
 #include <asm/global_data.h>
diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c
index ba08c22f942b..7b6f04b36beb 100644
--- a/board/ti/ks2_evm/board.c
+++ b/board/ti/ks2_evm/board.c
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/string.h>
diff --git a/board/ti/ks2_evm/board_k2g.c b/board/ti/ks2_evm/board_k2g.c
index 979b1febc021..e79497752a6f 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 <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/ti-common/keystone_net.h>
 #include <asm/arch/psc_defs.h>
diff --git a/board/ti/ks2_evm/ddr3_k2e.c b/board/ti/ks2_evm/ddr3_k2e.c
index 95fe3a9021e2..85e70fc67761 100644
--- a/board/ti/ks2_evm/ddr3_k2e.c
+++ b/board/ti/ks2_evm/ddr3_k2e.c
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include "ddr3_cfg.h"
 #include <asm/arch/ddr3.h>
 
diff --git a/board/ti/ks2_evm/ddr3_k2hk.c b/board/ti/ks2_evm/ddr3_k2hk.c
index 198c5da0e622..03bae4bf91eb 100644
--- a/board/ti/ks2_evm/ddr3_k2hk.c
+++ b/board/ti/ks2_evm/ddr3_k2hk.c
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include "ddr3_cfg.h"
 #include <asm/arch/ddr3.h>
 #include <asm/arch/hardware.h>
diff --git a/board/ti/ks2_evm/ddr3_k2l.c b/board/ti/ks2_evm/ddr3_k2l.c
index 805bf81f6bdf..36babcc5e116 100644
--- a/board/ti/ks2_evm/ddr3_k2l.c
+++ b/board/ti/ks2_evm/ddr3_k2l.c
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include "ddr3_cfg.h"
 #include <asm/arch/ddr3.h>
 
diff --git a/board/ti/ks2_evm/mux-k2g.h b/board/ti/ks2_evm/mux-k2g.h
index 3ecf571c5c37..239064c1dc67 100644
--- a/board/ti/ks2_evm/mux-k2g.h
+++ b/board/ti/ks2_evm/mux-k2g.h
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <hang.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/mux-k2g.h>
 #include <asm/arch/hardware.h>
diff --git a/board/ti/omap5_uevm/evm.c b/board/ti/omap5_uevm/evm.c
index a6c75bda3c39..e47da78fb773 100644
--- a/board/ti/omap5_uevm/evm.c
+++ b/board/ti/omap5_uevm/evm.c
@@ -9,6 +9,7 @@
 #include <init.h>
 #include <net.h>
 #include <palmas.h>
+#include <stdio.h>
 #include <asm/arch/omap.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/mmc_host_def.h>
diff --git a/board/ti/ti816x/evm.c b/board/ti/ti816x/evm.c
index 12c56a607c99..2689e48c8cef 100644
--- a/board/ti/ti816x/evm.c
+++ b/board/ti/ti816x/evm.c
@@ -11,6 +11,7 @@
 #include <init.h>
 #include <net.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/timll/devkit8000/devkit8000.c b/board/timll/devkit8000/devkit8000.c
index e1b33d091eea..4c05c9a8b7fc 100644
--- a/board/timll/devkit8000/devkit8000.c
+++ b/board/timll/devkit8000/devkit8000.c
@@ -21,6 +21,7 @@
 #include <init.h>
 #include <malloc.h>
 #include <ns16550.h>
+#include <stdio.h>
 #include <twl4030.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/board/toradex/apalis-imx8/apalis-imx8.c b/board/toradex/apalis-imx8/apalis-imx8.c
index 1c4ff3d1984b..d46ab222f890 100644
--- a/board/toradex/apalis-imx8/apalis-imx8.c
+++ b/board/toradex/apalis-imx8/apalis-imx8.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 
diff --git a/board/toradex/apalis-tk1/apalis-tk1.c b/board/toradex/apalis-tk1/apalis-tk1.c
index 6d907817593d..052a16bb7b3d 100644
--- a/board/toradex/apalis-tk1/apalis-tk1.c
+++ b/board/toradex/apalis-tk1/apalis-tk1.c
@@ -8,6 +8,7 @@
 #include <env.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch-tegra/ap.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
diff --git a/board/toradex/apalis_imx6/apalis_imx6.c b/board/toradex/apalis_imx6/apalis_imx6.c
index db7746e78c8d..76cf8e360f9b 100644
--- a/board/toradex/apalis_imx6/apalis_imx6.c
+++ b/board/toradex/apalis_imx6/apalis_imx6.c
@@ -12,6 +12,7 @@
 #include <image.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
diff --git a/board/toradex/apalis_imx6/pf0100.c b/board/toradex/apalis_imx6/pf0100.c
index c89052ff5daa..a720099f91e1 100644
--- a/board/toradex/apalis_imx6/pf0100.c
+++ b/board/toradex/apalis_imx6/pf0100.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <command.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/mx6-pins.h>
diff --git a/board/toradex/apalis_t30/apalis_t30.c b/board/toradex/apalis_t30/apalis_t30.c
index cad2f32b6651..bdc0691755e7 100644
--- a/board/toradex/apalis_t30/apalis_t30.c
+++ b/board/toradex/apalis_t30/apalis_t30.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/gp_padctrl.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch-tegra/ap.h>
diff --git a/board/toradex/colibri-imx6ull/colibri-imx6ull.c b/board/toradex/colibri-imx6ull/colibri-imx6ull.c
index cde64f6684f6..81ec9e853267 100644
--- a/board/toradex/colibri-imx6ull/colibri-imx6ull.c
+++ b/board/toradex/colibri-imx6ull/colibri-imx6ull.c
@@ -4,6 +4,7 @@
  */
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
diff --git a/board/toradex/colibri-imx8x/colibri-imx8x.c b/board/toradex/colibri-imx8x/colibri-imx8x.c
index 09f3525bb450..d80762aec3c4 100644
--- a/board/toradex/colibri-imx8x/colibri-imx8x.c
+++ b/board/toradex/colibri-imx8x/colibri-imx8x.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 
diff --git a/board/toradex/colibri_imx6/colibri_imx6.c b/board/toradex/colibri_imx6/colibri_imx6.c
index dc026fd3e401..51e62b6ab20b 100644
--- a/board/toradex/colibri_imx6/colibri_imx6.c
+++ b/board/toradex/colibri_imx6/colibri_imx6.c
@@ -12,6 +12,7 @@
 #include <env.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
diff --git a/board/toradex/colibri_imx6/pf0100.c b/board/toradex/colibri_imx6/pf0100.c
index 8f08d8c7337c..caaf7553e5a1 100644
--- a/board/toradex/colibri_imx6/pf0100.c
+++ b/board/toradex/colibri_imx6/pf0100.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <command.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/mx6-pins.h>
diff --git a/board/toradex/colibri_imx7/colibri_imx7.c b/board/toradex/colibri_imx7/colibri_imx7.c
index fe8212bb4284..45cb4f9b9e23 100644
--- a/board/toradex/colibri_imx7/colibri_imx7.c
+++ b/board/toradex/colibri_imx7/colibri_imx7.c
@@ -7,6 +7,7 @@
 #include <cpu_func.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/toradex/colibri_pxa270/colibri_pxa270.c b/board/toradex/colibri_pxa270/colibri_pxa270.c
index 81b7f72d6dad..d3716ab85f82 100644
--- a/board/toradex/colibri_pxa270/colibri_pxa270.c
+++ b/board/toradex/colibri_pxa270/colibri_pxa270.c
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/pxa.h>
 #include <asm/arch/regs-mmc.h>
diff --git a/board/toradex/colibri_t20/colibri_t20.c b/board/toradex/colibri_t20/colibri_t20.c
index bb37ff7507d1..f809260aa217 100644
--- a/board/toradex/colibri_t20/colibri_t20.c
+++ b/board/toradex/colibri_t20/colibri_t20.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/funcmux.h>
 #include <asm/arch/pinmux.h>
diff --git a/board/toradex/colibri_t30/colibri_t30.c b/board/toradex/colibri_t30/colibri_t30.c
index de13ec49c5f4..7a185ef8ec96 100644
--- a/board/toradex/colibri_t30/colibri_t30.c
+++ b/board/toradex/colibri_t30/colibri_t30.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/gp_padctrl.h>
 #include <asm/arch/pinmux.h>
 #include <asm/arch-tegra/ap.h>
diff --git a/board/toradex/colibri_vf/colibri_vf.c b/board/toradex/colibri_vf/colibri_vf.c
index 5056447761de..071c6b55b826 100644
--- a/board/toradex/colibri_vf/colibri_vf.c
+++ b/board/toradex/colibri_vf/colibri_vf.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 
diff --git a/board/toradex/common/tdx-cfg-block.c b/board/toradex/common/tdx-cfg-block.c
index fbd3f5de13ff..2bdd589126db 100644
--- a/board/toradex/common/tdx-cfg-block.c
+++ b/board/toradex/common/tdx-cfg-block.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 #include "tdx-cfg-block.h"
diff --git a/board/toradex/common/tdx-common.c b/board/toradex/common/tdx-common.c
index 2bbb11b21963..6a28a9b31f65 100644
--- a/board/toradex/common/tdx-common.c
+++ b/board/toradex/common/tdx-common.c
@@ -7,6 +7,7 @@
 #include <env.h>
 #include <g_dnl.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
diff --git a/board/toradex/verdin-imx8mm/spl.c b/board/toradex/verdin-imx8mm/spl.c
index 5ee86dd3f899..c21419b3d543 100644
--- a/board/toradex/verdin-imx8mm/spl.c
+++ b/board/toradex/verdin-imx8mm/spl.c
@@ -8,6 +8,7 @@
 #include <image.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/ddr.h>
 #include <asm/arch/imx8mm_pins.h>
diff --git a/board/tqc/tqm834x/tqm834x.c b/board/tqc/tqm834x/tqm834x.c
index c13c36edeeac..f5e3bc5bf975 100644
--- a/board/tqc/tqm834x/tqm834x.c
+++ b/board/tqc/tqm834x/tqm834x.c
@@ -10,6 +10,7 @@
 #include <ioports.h>
 #include <log.h>
 #include <mpc83xx.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mpc8349_pci.h>
 #include <asm/ppc.h>
diff --git a/board/tqc/tqma6/tqma6.c b/board/tqc/tqma6/tqma6.c
index d9bbbfc5e432..5ebbdda38e2a 100644
--- a/board/tqc/tqma6/tqma6.c
+++ b/board/tqc/tqma6/tqma6.c
@@ -8,6 +8,7 @@
  */
 
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/mx6-pins.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/tqc/tqma6/tqma6_wru4.c b/board/tqc/tqma6/tqma6_wru4.c
index 9a4350cce6d4..70b1626e9721 100644
--- a/board/tqc/tqma6/tqma6_wru4.c
+++ b/board/tqc/tqma6/tqma6_wru4.c
@@ -11,6 +11,7 @@
 
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/mx6-pins.h>
diff --git a/board/udoo/neo/neo.c b/board/udoo/neo/neo.c
index 1ae4bc339785..0a8f0fec9ce6 100644
--- a/board/udoo/neo/neo.c
+++ b/board/udoo/neo/neo.c
@@ -10,6 +10,7 @@
 
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/udoo/udoo.c b/board/udoo/udoo.c
index e6d441f582b8..c0cd357845ee 100644
--- a/board/udoo/udoo.c
+++ b/board/udoo/udoo.c
@@ -7,6 +7,7 @@
 
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/variscite/dart_6ul/dart_6ul.c b/board/variscite/dart_6ul/dart_6ul.c
index 6378d44863be..ec1e1d262cfe 100644
--- a/board/variscite/dart_6ul/dart_6ul.c
+++ b/board/variscite/dart_6ul/dart_6ul.c
@@ -6,6 +6,7 @@
 
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/mx6-pins.h>
diff --git a/board/variscite/dart_6ul/spl.c b/board/variscite/dart_6ul/spl.c
index 49ff41cab0ff..7610182b725f 100644
--- a/board/variscite/dart_6ul/spl.c
+++ b/board/variscite/dart_6ul/spl.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <init.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/io.h>
 #include <asm/arch/mx6-ddr.h>
diff --git a/board/varisys/common/sys_eeprom.c b/board/varisys/common/sys_eeprom.c
index facda8e5419f..7667bbdc579e 100644
--- a/board/varisys/common/sys_eeprom.c
+++ b/board/varisys/common/sys_eeprom.c
@@ -14,6 +14,7 @@
 #include <command.h>
 #include <env.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <linux/ctype.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/board/varisys/cyrus/cyrus.c b/board/varisys/cyrus/cyrus.c
index 0c8060e4d7d8..a7721274aed0 100644
--- a/board/varisys/cyrus/cyrus.c
+++ b/board/varisys/cyrus/cyrus.c
@@ -10,6 +10,7 @@
 #include <image.h>
 #include <init.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/compiler.h>
 #include <asm/mmu.h>
diff --git a/board/varisys/cyrus/ddr.c b/board/varisys/cyrus/ddr.c
index c374b8ce0275..0677bd1c693c 100644
--- a/board/varisys/cyrus/ddr.c
+++ b/board/varisys/cyrus/ddr.c
@@ -8,6 +8,7 @@
 #include <hwconfig.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/mmu.h>
 #include <asm/ppc.h>
diff --git a/board/varisys/cyrus/eth.c b/board/varisys/cyrus/eth.c
index 07e3b979c47d..b85e8208be1f 100644
--- a/board/varisys/cyrus/eth.c
+++ b/board/varisys/cyrus/eth.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/fsl_serdes.h>
 #include <fm_eth.h>
 #include <fsl_mdio.h>
diff --git a/board/ve8313/ve8313.c b/board/ve8313/ve8313.c
index ec2552a29abc..2f78b475d393 100644
--- a/board/ve8313/ve8313.c
+++ b/board/ve8313/ve8313.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <fdt_support.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/ppc.h>
 #include <asm/u-boot.h>
diff --git a/board/vscom/baltos/board.c b/board/vscom/baltos/board.c
index f01a78897c6b..045e46aba301 100644
--- a/board/vscom/baltos/board.c
+++ b/board/vscom/baltos/board.c
@@ -13,6 +13,7 @@
 #include <init.h>
 #include <net.h>
 #include <serial.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/libfdt.h>
diff --git a/board/wandboard/spl.c b/board/wandboard/spl.c
index c61428d6c641..e6ba35612171 100644
--- a/board/wandboard/spl.c
+++ b/board/wandboard/spl.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c
index 7d3da302395a..aa444959a06a 100644
--- a/board/wandboard/wandboard.c
+++ b/board/wandboard/wandboard.c
@@ -10,6 +10,7 @@
 #include <image.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/iomux.h>
diff --git a/board/warp/warp.c b/board/warp/warp.c
index fbf7a5be71cd..73d7aca7aadd 100644
--- a/board/warp/warp.c
+++ b/board/warp/warp.c
@@ -8,6 +8,7 @@
  */
 
 #include <init.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/imx-regs.h>
diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c
index 929ec65947cd..d13a10e1a7cb 100644
--- a/board/warp7/warp7.c
+++ b/board/warp7/warp7.c
@@ -6,6 +6,7 @@
 
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/mx7-pins.h>
diff --git a/board/work-microwave/work_92105/work_92105_display.c b/board/work-microwave/work_92105/work_92105_display.c
index eefcb8545f50..53d5d3c5a835 100644
--- a/board/work-microwave/work_92105/work_92105_display.c
+++ b/board/work-microwave/work_92105/work_92105_display.c
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <command.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/emc.h>
diff --git a/board/xes/common/board.c b/board/xes/common/board.c
index b6aeee3f2ca6..eb9749f8a712 100644
--- a/board/xes/common/board.c
+++ b/board/xes/common/board.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include "fsl_8xxx_misc.h"
 #include <init.h>
diff --git a/board/xes/common/fsl_8xxx_pci.c b/board/xes/common/fsl_8xxx_pci.c
index c4aa04b41c9b..6c6db6c2fcf8 100644
--- a/board/xes/common/fsl_8xxx_pci.c
+++ b/board/xes/common/fsl_8xxx_pci.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <init.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/fsl_pci.h>
 #include <asm/fsl_serdes.h>
 #include <asm/io.h>
diff --git a/board/xes/xpedite517x/xpedite517x.c b/board/xes/xpedite517x/xpedite517x.c
index 333edd4cd996..768b10271102 100644
--- a/board/xes/xpedite517x/xpedite517x.c
+++ b/board/xes/xpedite517x/xpedite517x.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/processor.h>
 #include <fsl_ddr_sdram.h>
diff --git a/board/xes/xpedite520x/xpedite520x.c b/board/xes/xpedite520x/xpedite520x.c
index 016bd412ce84..2433bcd64591 100644
--- a/board/xes/xpedite520x/xpedite520x.c
+++ b/board/xes/xpedite520x/xpedite520x.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <init.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_pci.h>
diff --git a/board/xes/xpedite537x/xpedite537x.c b/board/xes/xpedite537x/xpedite537x.c
index a55c7d24264b..8aeca7de758f 100644
--- a/board/xes/xpedite537x/xpedite537x.c
+++ b/board/xes/xpedite537x/xpedite537x.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #include <asm/immap_85xx.h>
diff --git a/board/xes/xpedite550x/ddr.c b/board/xes/xpedite550x/ddr.c
index 974fc52db80b..b1abd3d54dcf 100644
--- a/board/xes/xpedite550x/ddr.c
+++ b/board/xes/xpedite550x/ddr.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <asm/ppc.h>
 
 #include <fsl_ddr_sdram.h>
diff --git a/board/xes/xpedite550x/xpedite550x.c b/board/xes/xpedite550x/xpedite550x.c
index 9347b8958853..69d3292af27e 100644
--- a/board/xes/xpedite550x/xpedite550x.c
+++ b/board/xes/xpedite550x/xpedite550x.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #include <asm/immap_85xx.h>
diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c
index 7729ce915ea3..49478b05bea1 100644
--- a/board/xilinx/microblaze-generic/microblaze-generic.c
+++ b/board/xilinx/microblaze-generic/microblaze-generic.c
@@ -15,6 +15,7 @@
 #include <env.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/lists.h>
 #include <fdtdec.h>
diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c
index 025212b223c6..48bd3dcd1508 100644
--- a/board/xilinx/versal/board.c
+++ b/board/xilinx/versal/board.c
@@ -11,6 +11,7 @@
 #include <init.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/board/xilinx/zynq/bootimg.c b/board/xilinx/zynq/bootimg.c
index 1a9d3ed3ec5e..332500bdc721 100644
--- a/board/xilinx/zynq/bootimg.c
+++ b/board/xilinx/zynq/bootimg.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <log.h>
 #include <part.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
diff --git a/board/xilinx/zynq/cmds.c b/board/xilinx/zynq/cmds.c
index c43727ab87a4..b3a2c933b7ca 100644
--- a/board/xilinx/zynq/cmds.c
+++ b/board/xilinx/zynq/cmds.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
diff --git a/board/xilinx/zynqmp/cmds.c b/board/xilinx/zynqmp/cmds.c
index c0d28a73e45d..48898f69c938 100644
--- a/board/xilinx/zynqmp/cmds.c
+++ b/board/xilinx/zynqmp/cmds.c
@@ -9,6 +9,7 @@
 #include <cpu_func.h>
 #include <env.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <zynqmp_firmware.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index 3bd39d5eb47a..0686b16a887e 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -16,6 +16,7 @@
 #include <ahci.h>
 #include <scsi.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <wdt.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/hardware.h>
diff --git a/board/zyxel/nsa310s/nsa310s.c b/board/zyxel/nsa310s/nsa310s.c
index cd4a7723b120..b8b896d717cb 100644
--- a/board/zyxel/nsa310s/nsa310s.c
+++ b/board/zyxel/nsa310s/nsa310s.c
@@ -9,6 +9,7 @@
 #include <init.h>
 #include <miiphy.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
 #include <asm/arch/mpp.h>
diff --git a/cmd/ab_select.c b/cmd/ab_select.c
index 6298fcfb6044..1ee3206c3406 100644
--- a/cmd/ab_select.c
+++ b/cmd/ab_select.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <env.h>
 #include <part.h>
+#include <stdio.h>
 
 static int do_ab_select(struct cmd_tbl *cmdtp, int flag, int argc,
 			char *const argv[])
diff --git a/cmd/abootimg.c b/cmd/abootimg.c
index f21b77dbf6f8..f90468a1ae3e 100644
--- a/cmd/abootimg.c
+++ b/cmd/abootimg.c
@@ -9,6 +9,7 @@
 #include <command.h>
 #include <image.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #define abootimg_addr() \
diff --git a/cmd/acpi.c b/cmd/acpi.c
index b009368eacee..2904b146befd 100644
--- a/cmd/acpi.c
+++ b/cmd/acpi.c
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <display_options.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <acpi/acpi_table.h>
 #include <asm/acpi_table.h>
 #include <asm/global_data.h>
diff --git a/cmd/adc.c b/cmd/adc.c
index 557a2c1f5d00..9869aad8dceb 100644
--- a/cmd/adc.c
+++ b/cmd/adc.c
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <dm.h>
 #include <adc.h>
+#include <stdio.h>
 #include <linux/printk.h>
 
 static int do_adc_list(struct cmd_tbl *cmdtp, int flag, int argc,
diff --git a/cmd/adtimg.c b/cmd/adtimg.c
index 2d43dd147d49..90a72619720b 100644
--- a/cmd/adtimg.c
+++ b/cmd/adtimg.c
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <image-android-dt.h>
 #include <common.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #define OPT_INDEX	"--index"
diff --git a/cmd/armflash.c b/cmd/armflash.c
index 2365f16ce4c5..4c4a719ad019 100644
--- a/cmd/armflash.c
+++ b/cmd/armflash.c
@@ -9,6 +9,7 @@
 #include <command.h>
 #include <console.h>
 #include <flash.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/string.h>
 
diff --git a/cmd/avb.c b/cmd/avb.c
index 5e9db6f23851..a9de5bed9735 100644
--- a/cmd/avb.c
+++ b/cmd/avb.c
@@ -11,6 +11,7 @@
 #include <image.h>
 #include <malloc.h>
 #include <mmc.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #define AVB_BOOTARGS	"avb_bootargs"
diff --git a/cmd/axi.c b/cmd/axi.c
index 36508223c34b..e61cc3e35ca2 100644
--- a/cmd/axi.c
+++ b/cmd/axi.c
@@ -16,6 +16,7 @@
 #include <display_options.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 
 /* Currently selected AXI bus device */
 static struct udevice *axi_cur_bus;
diff --git a/cmd/bcb.c b/cmd/bcb.c
index 2de6a08beb97..4cccd8eab3f2 100644
--- a/cmd/bcb.c
+++ b/cmd/bcb.c
@@ -11,6 +11,7 @@
 #include <display_options.h>
 #include <log.h>
 #include <part.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 enum bcb_cmd {
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
index fa6146705d95..c80395a50f46 100644
--- a/cmd/bdinfo.c
+++ b/cmd/bdinfo.c
@@ -11,6 +11,7 @@
 #include <env.h>
 #include <lmb.h>
 #include <net.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/cmd/bind.c b/cmd/bind.c
index 068b1399ab1d..050c4be2d72f 100644
--- a/cmd/bind.c
+++ b/cmd/bind.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <dm.h>
+#include <stdio.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dm/uclass-internal.h>
diff --git a/cmd/binop.c b/cmd/binop.c
index afeffadc44f3..a643cc906cec 100644
--- a/cmd/binop.c
+++ b/cmd/binop.c
@@ -6,6 +6,7 @@
 #include <hexdump.h>
 #include <malloc.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <linux/ctype.h>
 #include <linux/string.h>
 
diff --git a/cmd/blk_common.c b/cmd/blk_common.c
index 14413da3f6da..aed076acb77e 100644
--- a/cmd/blk_common.c
+++ b/cmd/blk_common.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <blk.h>
 #include <command.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 int blk_common_cmd(int argc, char *const argv[], enum if_type if_type,
diff --git a/cmd/blkcache.c b/cmd/blkcache.c
index 25f252e455ed..025c692b485c 100644
--- a/cmd/blkcache.c
+++ b/cmd/blkcache.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <malloc.h>
 #include <part.h>
+#include <stdio.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 3ecf8db5e653..499e3585f742 100644
--- a/cmd/bmp.c
+++ b/cmd/bmp.c
@@ -19,6 +19,7 @@
 #include <malloc.h>
 #include <mapmem.h>
 #include <splash.h>
+#include <stdio.h>
 #include <video.h>
 #include <asm/byteorder.h>
 #include <linux/string.h>
diff --git a/cmd/bootcount.c b/cmd/bootcount.c
index 654bbb805c1c..a1ad62ad4191 100644
--- a/cmd/bootcount.c
+++ b/cmd/bootcount.c
@@ -3,6 +3,7 @@
 #include <common.h>
 #include <command.h>
 #include <bootcount.h>
+#include <stdio.h>
 
 static int do_bootcount_print(struct cmd_tbl *cmdtp, int flag, int argc,
 			      char *const argv[])
diff --git a/cmd/booti.c b/cmd/booti.c
index 7df747bc575c..de60d4ea7cbc 100644
--- a/cmd/booti.c
+++ b/cmd/booti.c
@@ -12,6 +12,7 @@
 #include <lmb.h>
 #include <log.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/kernel.h>
 #include <linux/sizes.h>
diff --git a/cmd/bootm.c b/cmd/bootm.c
index 599251f7181c..4490e4d3ac15 100644
--- a/cmd/bootm.c
+++ b/cmd/bootm.c
@@ -15,6 +15,7 @@
 #include <image.h>
 #include <malloc.h>
 #include <nand.h>
+#include <stdio.h>
 #include <asm/byteorder.h>
 #include <asm/global_data.h>
 #include <linux/ctype.h>
diff --git a/cmd/bootmenu.c b/cmd/bootmenu.c
index 18efe25751f7..e307660e516c 100644
--- a/cmd/bootmenu.c
+++ b/cmd/bootmenu.c
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <log.h>
 #include <menu.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <malloc.h>
 #include <linux/delay.h>
diff --git a/cmd/bootstage.c b/cmd/bootstage.c
index 37615c3ffec7..1592f24c11d3 100644
--- a/cmd/bootstage.c
+++ b/cmd/bootstage.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <bootstage.h>
 #include <command.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 static int do_bootstage_report(struct cmd_tbl *cmdtp, int flag, int argc,
diff --git a/cmd/bootz.c b/cmd/bootz.c
index 7556cd2752a8..a251c48a0b88 100644
--- a/cmd/bootz.c
+++ b/cmd/bootz.c
@@ -11,6 +11,7 @@
 #include <irq_func.h>
 #include <lmb.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/compiler.h>
 
 int __weak bootz_setup(ulong image, ulong *start, ulong *end)
diff --git a/cmd/cache.c b/cmd/cache.c
index 0ea2c6c033a8..19890c2566c9 100644
--- a/cmd/cache.c
+++ b/cmd/cache.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <command.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <linux/compiler.h>
 #include <linux/string.h>
 
diff --git a/cmd/cbfs.c b/cmd/cbfs.c
index 10c2c929c374..432974009a1d 100644
--- a/cmd/cbfs.c
+++ b/cmd/cbfs.c
@@ -10,6 +10,7 @@
 #include <command.h>
 #include <env.h>
 #include <cbfs.h>
+#include <stdio.h>
 
 static int do_cbfs_init(struct cmd_tbl *cmdtp, int flag, int argc,
 			char *const argv[])
diff --git a/cmd/clk.c b/cmd/clk.c
index 439736d0724e..5946d527d35a 100644
--- a/cmd/clk.c
+++ b/cmd/clk.c
@@ -12,6 +12,7 @@
 #include <dm/device-internal.h>
 #include <linux/clk-provider.h>
 #endif
+#include <stdio.h>
 
 #if defined(CONFIG_DM) && defined(CONFIG_CLK)
 static void show_clks(struct udevice *dev, int depth, int last_flag)
diff --git a/cmd/config.c b/cmd/config.c
index cf30841a3594..763afe9ca753 100644
--- a/cmd/config.c
+++ b/cmd/config.c
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <gzip.h>
 #include <malloc.h>
+#include <stdio.h>
 
 #include "config_data_gz.h"
 #include "config_data_size.h"
diff --git a/cmd/conitrace.c b/cmd/conitrace.c
index 88850db541f0..0050831accfa 100644
--- a/cmd/conitrace.c
+++ b/cmd/conitrace.c
@@ -7,6 +7,7 @@
  */
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <linux/delay.h>
 
 static int do_conitrace(struct cmd_tbl *cmdtp, int flag, int argc,
diff --git a/cmd/cpu.c b/cmd/cpu.c
index b3dd7e57449f..27b0919709a8 100644
--- a/cmd/cpu.c
+++ b/cmd/cpu.c
@@ -11,6 +11,7 @@
 #include <display_options.h>
 #include <dm.h>
 #include <errno.h>
+#include <stdio.h>
 
 static const char *cpu_feature_name[CPU_FEAT_COUNT] = {
 	"L1 cache",
diff --git a/cmd/cramfs.c b/cmd/cramfs.c
index 1aeb56702cad..8f4d0ab54a01 100644
--- a/cmd/cramfs.c
+++ b/cmd/cramfs.c
@@ -16,6 +16,7 @@
 #include <image.h>
 #include <malloc.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <linux/list.h>
 #include <linux/ctype.h>
 #include <jffs2/jffs2.h>
diff --git a/cmd/cros_ec.c b/cmd/cros_ec.c
index b4059f0e7dce..d381980ec6cd 100644
--- a/cmd/cros_ec.c
+++ b/cmd/cros_ec.c
@@ -12,6 +12,7 @@
 #include <dm.h>
 #include <flash.h>
 #include <log.h>
+#include <stdio.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
 #include <linux/string.h>
diff --git a/cmd/date.c b/cmd/date.c
index 8e8f54ba405c..306f640fdc5f 100644
--- a/cmd/date.c
+++ b/cmd/date.c
@@ -12,6 +12,7 @@
 #include <dm.h>
 #include <rtc.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 
diff --git a/cmd/demo.c b/cmd/demo.c
index 7310aa2907ad..aaeff9c18883 100644
--- a/cmd/demo.c
+++ b/cmd/demo.c
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <dm-demo.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <asm/io.h>
 
 struct udevice *demo_dev;
diff --git a/cmd/disk.c b/cmd/disk.c
index 8060e753ebda..bfebe3520c33 100644
--- a/cmd/disk.c
+++ b/cmd/disk.c
@@ -10,6 +10,7 @@
 #include <image.h>
 #include <log.h>
 #include <part.h>
+#include <stdio.h>
 
 int common_diskboot(struct cmd_tbl *cmdtp, const char *intf, int argc,
 		    char *const argv[])
diff --git a/cmd/echo.c b/cmd/echo.c
index 1d85e23c218c..44350a882e50 100644
--- a/cmd/echo.c
+++ b/cmd/echo.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 static int do_echo(struct cmd_tbl *cmdtp, int flag, int argc,
diff --git a/cmd/eeprom.c b/cmd/eeprom.c
index 654004e14303..ffd1db893bf7 100644
--- a/cmd/eeprom.c
+++ b/cmd/eeprom.c
@@ -25,6 +25,7 @@
 #include <eeprom.h>
 #include <i2c.h>
 #include <eeprom_layout.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 
diff --git a/cmd/efi.c b/cmd/efi.c
index 11531cd1b4aa..7b7a019e1af8 100644
--- a/cmd/efi.c
+++ b/cmd/efi.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <sort.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 
diff --git a/cmd/efidebug.c b/cmd/efidebug.c
index cf08e07d6d42..c81c23463b20 100644
--- a/cmd/efidebug.c
+++ b/cmd/efidebug.c
@@ -15,6 +15,7 @@
 #include <malloc.h>
 #include <mapmem.h>
 #include <search.h>
+#include <stdio.h>
 #include <linux/ctype.h>
 #include <linux/string.h>
 
diff --git a/cmd/elf.c b/cmd/elf.c
index a3cb6e274f4a..c38d8d015a90 100644
--- a/cmd/elf.c
+++ b/cmd/elf.c
@@ -12,6 +12,7 @@
 #include <image.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <vxworks.h>
 #ifdef CONFIG_X86
 #include <vbe.h>
diff --git a/cmd/ethsw.c b/cmd/ethsw.c
index 8e2bd3dfa578..6b76061cd0f8 100644
--- a/cmd/ethsw.c
+++ b/cmd/ethsw.c
@@ -12,6 +12,7 @@
 #include <env_flags.h>
 #include <ethsw.h>
 #include <net.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 static const char *ethsw_name;
diff --git a/cmd/fastboot.c b/cmd/fastboot.c
index 90efc85360d6..8340af5df8cb 100644
--- a/cmd/fastboot.c
+++ b/cmd/fastboot.c
@@ -12,6 +12,7 @@
 #include <g_dnl.h>
 #include <fastboot.h>
 #include <net.h>
+#include <stdio.h>
 #include <usb.h>
 #include <watchdog.h>
 #include <linux/printk.h>
diff --git a/cmd/fat.c b/cmd/fat.c
index b438ce16c911..d56648f2a856 100644
--- a/cmd/fat.c
+++ b/cmd/fat.c
@@ -13,6 +13,7 @@
 #include <fat.h>
 #include <fs.h>
 #include <part.h>
+#include <stdio.h>
 #include <asm/cache.h>
 
 int do_fat_size(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
diff --git a/cmd/fdt.c b/cmd/fdt.c
index f5f1f6b00171..e784b0d5d943 100644
--- a/cmd/fdt.c
+++ b/cmd/fdt.c
@@ -11,6 +11,7 @@
 #include <command.h>
 #include <env.h>
 #include <image.h>
+#include <stdio.h>
 #include <linux/ctype.h>
 #include <linux/string.h>
 #include <linux/types.h>
diff --git a/cmd/flash.c b/cmd/flash.c
index 3e7b335109de..ce44d7dc76bd 100644
--- a/cmd/flash.c
+++ b/cmd/flash.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <command.h>
 #include <log.h>
+#include <stdio.h>
 #include <uuid.h>
 #include <linux/string.h>
 
diff --git a/cmd/fpga.c b/cmd/fpga.c
index 3151100aa140..924ca10749d4 100644
--- a/cmd/fpga.c
+++ b/cmd/fpga.c
@@ -16,6 +16,7 @@
 #include <image.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 static long do_fpga_get_device(char *arg)
diff --git a/cmd/fuse.c b/cmd/fuse.c
index db504349af1f..d3680e98440d 100644
--- a/cmd/fuse.c
+++ b/cmd/fuse.c
@@ -12,6 +12,7 @@
 #include <command.h>
 #include <console.h>
 #include <fuse.h>
+#include <stdio.h>
 #include <linux/errno.h>
 #include <linux/string.h>
 
diff --git a/cmd/gettime.c b/cmd/gettime.c
index ebaa45812a68..697e80a3a97c 100644
--- a/cmd/gettime.c
+++ b/cmd/gettime.c
@@ -13,6 +13,7 @@
  */
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <time.h>
 
 static int do_gettime(struct cmd_tbl *cmdtp, int flag, int argc,
diff --git a/cmd/gpio.c b/cmd/gpio.c
index e256f83ea103..92831350b48f 100644
--- a/cmd/gpio.c
+++ b/cmd/gpio.c
@@ -12,6 +12,7 @@
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/gpio.h>
 #include <linux/err.h>
 #include <linux/string.h>
diff --git a/cmd/gpt.c b/cmd/gpt.c
index db70ba887b4b..639fcae8e31c 100644
--- a/cmd/gpt.c
+++ b/cmd/gpt.c
@@ -19,6 +19,7 @@
 #include <part.h>
 #include <part_efi.h>
 #include <exports.h>
+#include <stdio.h>
 #include <uuid.h>
 #include <linux/ctype.h>
 #include <div64.h>
diff --git a/cmd/host.c b/cmd/host.c
index ff119da73890..dec1da41def3 100644
--- a/cmd/host.c
+++ b/cmd/host.c
@@ -9,6 +9,7 @@
 #include <fs.h>
 #include <part.h>
 #include <sandboxblockdev.h>
+#include <stdio.h>
 #include <dm/device_compat.h>
 #include <linux/errno.h>
 
diff --git a/cmd/i2c.c b/cmd/i2c.c
index 83e4cfaa255d..c1f7372a151a 100644
--- a/cmd/i2c.c
+++ b/cmd/i2c.c
@@ -75,6 +75,7 @@
 #include <i2c.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/byteorder.h>
 #include <linux/compiler.h>
 #include <linux/delay.h>
diff --git a/cmd/ide.c b/cmd/ide.c
index 8fefaf3f8158..788269080add 100644
--- a/cmd/ide.c
+++ b/cmd/ide.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <blk.h>
 #include <config.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <command.h>
 #include <image.h>
diff --git a/cmd/ini.c b/cmd/ini.c
index c075be623cce..787e3ed950e8 100644
--- a/cmd/ini.c
+++ b/cmd/ini.c
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
+#include <stdio.h>
 #include <linux/ctype.h>
 #include <linux/string.h>
 
diff --git a/cmd/iotrace.c b/cmd/iotrace.c
index 652ebefb89ee..e691e91c4861 100644
--- a/cmd/iotrace.c
+++ b/cmd/iotrace.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <iotrace.h>
+#include <stdio.h>
 
 static void do_print_stats(void)
 {
diff --git a/cmd/itest.c b/cmd/itest.c
index 4ccc4cbb8a91..0ec595c0d700 100644
--- a/cmd/itest.c
+++ b/cmd/itest.c
@@ -16,6 +16,7 @@
 #include <command.h>
 #include <env.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #include <asm/io.h>
diff --git a/cmd/jffs2.c b/cmd/jffs2.c
index e06ab60a77f1..5ccd5b091532 100644
--- a/cmd/jffs2.c
+++ b/cmd/jffs2.c
@@ -76,6 +76,7 @@
 #include <flash.h>
 #include <image.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <jffs2/jffs2.h>
 #include <linux/bug.h>
 #include <linux/list.h>
diff --git a/cmd/led.c b/cmd/led.c
index a2b2f1b5e56b..33714e26ae9d 100644
--- a/cmd/led.c
+++ b/cmd/led.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <dm.h>
 #include <led.h>
+#include <stdio.h>
 #include <dm/uclass-internal.h>
 #include <linux/string.h>
 
diff --git a/cmd/legacy-mtd-utils.c b/cmd/legacy-mtd-utils.c
index ac7139f84d63..c763121fe5e8 100644
--- a/cmd/legacy-mtd-utils.c
+++ b/cmd/legacy-mtd-utils.c
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0+
 
 #include <common.h>
+#include <stdio.h>
 #include <jffs2/jffs2.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
diff --git a/cmd/license.c b/cmd/license.c
index 15411b5a92d5..255f476d52b4 100644
--- a/cmd/license.c
+++ b/cmd/license.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <gzip.h>
 #include <malloc.h>
+#include <stdio.h>
 
 #include "license_data_gz.h"
 #include "license_data_size.h"
diff --git a/cmd/load.c b/cmd/load.c
index a651478d920b..fc50722e0655 100644
--- a/cmd/load.c
+++ b/cmd/load.c
@@ -18,6 +18,7 @@
 #include <net.h>
 #include <exports.h>
 #include <serial.h>
+#include <stdio.h>
 #include <xyzModem.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/cmd/log.c b/cmd/log.c
index f47ff5d17e9b..a233d239bb3c 100644
--- a/cmd/log.c
+++ b/cmd/log.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 
diff --git a/cmd/lsblk.c b/cmd/lsblk.c
index 653dffce0419..b41a34491e62 100644
--- a/cmd/lsblk.c
+++ b/cmd/lsblk.c
@@ -8,6 +8,7 @@
 #include <blk.h>
 #include <command.h>
 #include <dm.h>
+#include <stdio.h>
 
 static int do_lsblk(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[])
 {
diff --git a/cmd/lzmadec.c b/cmd/lzmadec.c
index 3b8db0a85385..409ad6e69c16 100644
--- a/cmd/lzmadec.c
+++ b/cmd/lzmadec.c
@@ -13,6 +13,7 @@
 #include <command.h>
 #include <env.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <asm/io.h>
 
 #include <lzma/LzmaTools.h>
diff --git a/cmd/md5sum.c b/cmd/md5sum.c
index ae2d81470d7f..a6e12bba4b54 100644
--- a/cmd/md5sum.c
+++ b/cmd/md5sum.c
@@ -12,6 +12,7 @@
 #include <env.h>
 #include <image.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include <u-boot/md5.h>
 #include <asm/io.h>
diff --git a/cmd/mdio.c b/cmd/mdio.c
index d346ccc538d4..581d0a7db7e2 100644
--- a/cmd/mdio.c
+++ b/cmd/mdio.c
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <miiphy.h>
 #include <phy.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 static char last_op[2];
diff --git a/cmd/mem.c b/cmd/mem.c
index 5970dff8f5ca..ca2b2fabb333 100644
--- a/cmd/mem.c
+++ b/cmd/mem.c
@@ -22,6 +22,7 @@
 #include <log.h>
 #include <mapmem.h>
 #include <rand.h>
+#include <stdio.h>
 #include <time.h>
 #include <watchdog.h>
 #include <asm/global_data.h>
diff --git a/cmd/mii.c b/cmd/mii.c
index a6524e400e70..be67ea70ba2b 100644
--- a/cmd/mii.c
+++ b/cmd/mii.c
@@ -12,6 +12,7 @@
 #include <command.h>
 #include <dm.h>
 #include <miiphy.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 typedef struct _MII_field_desc_t {
diff --git a/cmd/misc.c b/cmd/misc.c
index 8743a34cff56..c349ade10f1b 100644
--- a/cmd/misc.c
+++ b/cmd/misc.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <command.h>
 #include <console.h>
+#include <stdio.h>
 #include <time.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/cmd/mmc.c b/cmd/mmc.c
index bc7e991c86e9..5d2a0e002b97 100644
--- a/cmd/mmc.c
+++ b/cmd/mmc.c
@@ -14,6 +14,7 @@
 #include <part.h>
 #include <sparse_format.h>
 #include <image-sparse.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 static int curr_device = -1;
diff --git a/cmd/mp.c b/cmd/mp.c
index a14ebbd0b568..d82a8675e66f 100644
--- a/cmd/mp.c
+++ b/cmd/mp.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 static int cpu_status_all(void)
diff --git a/cmd/mtd.c b/cmd/mtd.c
index fe1e94f6cc4c..25c288f356c0 100644
--- a/cmd/mtd.c
+++ b/cmd/mtd.c
@@ -14,6 +14,7 @@
 #include <malloc.h>
 #include <mapmem.h>
 #include <mtd.h>
+#include <stdio.h>
 #include <dm/devres.h>
 #include <linux/err.h>
 #include <linux/string.h>
diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c
index 077793e88576..875424013fea 100644
--- a/cmd/mtdparts.c
+++ b/cmd/mtdparts.c
@@ -75,6 +75,7 @@
 #include <env.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <jffs2/load_kernel.h>
 #include <linux/list.h>
diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c
index 3df3ffd78a34..598a61be1fff 100644
--- a/cmd/mvebu/bubt.c
+++ b/cmd/mvebu/bubt.c
@@ -11,6 +11,7 @@
 #include <flash.h>
 #include <image.h>
 #include <net.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <errno.h>
 #include <dm.h>
diff --git a/cmd/nand.c b/cmd/nand.c
index 880ee53d837d..787baa78c55e 100644
--- a/cmd/nand.c
+++ b/cmd/nand.c
@@ -22,6 +22,7 @@
 #include <common.h>
 #include <bootstage.h>
 #include <image.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <linux/mtd/mtd.h>
 #include <command.h>
diff --git a/cmd/net.c b/cmd/net.c
index c505656a949a..d70206587104 100644
--- a/cmd/net.c
+++ b/cmd/net.c
@@ -13,6 +13,7 @@
 #include <env.h>
 #include <image.h>
 #include <net.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 static int netboot_common(enum proto_t, struct cmd_tbl *, int, char * const []);
diff --git a/cmd/nvedit.c b/cmd/nvedit.c
index c73472ec2260..e859dfc29bb4 100644
--- a/cmd/nvedit.c
+++ b/cmd/nvedit.c
@@ -35,6 +35,7 @@
 #include <errno.h>
 #include <malloc.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
 #include <linux/printk.h>
diff --git a/cmd/nvedit_efi.c b/cmd/nvedit_efi.c
index 4f0148b074c9..aac7fb91a606 100644
--- a/cmd/nvedit_efi.c
+++ b/cmd/nvedit_efi.c
@@ -16,6 +16,7 @@
 #include <malloc.h>
 #include <mapmem.h>
 #include <rtc.h>
+#include <stdio.h>
 #include <uuid.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
diff --git a/cmd/onenand.c b/cmd/onenand.c
index fa12f0dec757..af974b93fc5f 100644
--- a/cmd/onenand.c
+++ b/cmd/onenand.c
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <command.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/cmd/osd.c b/cmd/osd.c
index c1ef7eb8cda2..2d9ac604cae3 100644
--- a/cmd/osd.c
+++ b/cmd/osd.c
@@ -13,6 +13,7 @@
 #include <command.h>
 #include <dm.h>
 #include <hexdump.h>
+#include <stdio.h>
 #include <video_osd.h>
 #include <malloc.h>
 #include <linux/string.h>
diff --git a/cmd/part.c b/cmd/part.c
index f53edac8357b..796fb65baccc 100644
--- a/cmd/part.c
+++ b/cmd/part.c
@@ -20,6 +20,7 @@
 #include <command.h>
 #include <env.h>
 #include <part.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <linux/string.h>
 
diff --git a/cmd/pci.c b/cmd/pci.c
index c2d4e5d4ed67..b8818b5f3d7a 100644
--- a/cmd/pci.c
+++ b/cmd/pci.c
@@ -19,6 +19,7 @@
 #include <console.h>
 #include <dm.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <pci.h>
diff --git a/cmd/pinmux.c b/cmd/pinmux.c
index 6f8a3fd94405..60856cdc3c4f 100644
--- a/cmd/pinmux.c
+++ b/cmd/pinmux.c
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <dm.h>
 #include <errno.h>
+#include <stdio.h>
 #include <dm/pinctrl.h>
 #include <dm/uclass-internal.h>
 #include <linux/string.h>
diff --git a/cmd/pmc.c b/cmd/pmc.c
index 9a3ba2bffc50..753d7b8fbf04 100644
--- a/cmd/pmc.c
+++ b/cmd/pmc.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <command.h>
 #include <dm.h>
+#include <stdio.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 3bda0534a36c..6712d9238dc2 100644
--- a/cmd/pmic.c
+++ b/cmd/pmic.c
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <errno.h>
 #include <dm.h>
+#include <stdio.h>
 #include <dm/uclass-internal.h>
 #include <power/pmic.h>
 
diff --git a/cmd/pxe.c b/cmd/pxe.c
index 6372fc987187..84f7c9f37efb 100644
--- a/cmd/pxe.c
+++ b/cmd/pxe.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <fs.h>
 #include <net.h>
+#include <stdio.h>
 
 #include "pxe_utils.h"
 
diff --git a/cmd/pxe_utils.c b/cmd/pxe_utils.c
index 8716e782f6aa..425e6f984fb1 100644
--- a/cmd/pxe_utils.c
+++ b/cmd/pxe_utils.c
@@ -13,6 +13,7 @@
 #include <mapmem.h>
 #include <lcd.h>
 #include <net.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include <linux/ctype.h>
 #include <errno.h>
diff --git a/cmd/qfw.c b/cmd/qfw.c
index bb571487f068..4470059975a9 100644
--- a/cmd/qfw.c
+++ b/cmd/qfw.c
@@ -8,6 +8,7 @@
 #include <env.h>
 #include <errno.h>
 #include <qfw.h>
+#include <stdio.h>
 
 /*
  * This function prepares kernel for zboot. It loads kernel data
diff --git a/cmd/read.c b/cmd/read.c
index 34f53f9a292e..f1d23fb478f3 100644
--- a/cmd/read.c
+++ b/cmd/read.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <command.h>
 #include <part.h>
+#include <stdio.h>
 
 int do_read(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
diff --git a/cmd/regulator.c b/cmd/regulator.c
index 6e91c1775375..a9105561b6e7 100644
--- a/cmd/regulator.c
+++ b/cmd/regulator.c
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <errno.h>
 #include <dm.h>
+#include <stdio.h>
 #include <dm/uclass-internal.h>
 #include <linux/printk.h>
 #include <linux/string.h>
diff --git a/cmd/reiser.c b/cmd/reiser.c
index 3db926f80648..8a2f976a2138 100644
--- a/cmd/reiser.c
+++ b/cmd/reiser.c
@@ -13,6 +13,7 @@
 #include <command.h>
 #include <env.h>
 #include <image.h>
+#include <stdio.h>
 #include <linux/ctype.h>
 #include <asm/byteorder.h>
 #include <reiserfs.h>
diff --git a/cmd/remoteproc.c b/cmd/remoteproc.c
index 7adf45534003..660a1b563577 100644
--- a/cmd/remoteproc.c
+++ b/cmd/remoteproc.c
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <malloc.h>
 #include <remoteproc.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 /**
diff --git a/cmd/rng.c b/cmd/rng.c
index 9747c11be460..d5a1faf7a77b 100644
--- a/cmd/rng.c
+++ b/cmd/rng.c
@@ -10,6 +10,7 @@
 #include <hexdump.h>
 #include <malloc.h>
 #include <rng.h>
+#include <stdio.h>
 
 static int do_rng(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
diff --git a/cmd/rockusb.c b/cmd/rockusb.c
index f181ec611191..4eda6fa3e947 100644
--- a/cmd/rockusb.c
+++ b/cmd/rockusb.c
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <console.h>
 #include <g_dnl.h>
+#include <stdio.h>
 #include <usb.h>
 #include <asm/arch-rockchip/f_rockusb.h>
 
diff --git a/cmd/rtc.c b/cmd/rtc.c
index b3f46f13eb40..f048494c551c 100644
--- a/cmd/rtc.c
+++ b/cmd/rtc.c
@@ -8,6 +8,7 @@
 #include <i2c.h>
 #include <mapmem.h>
 #include <rtc.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #define MAX_RTC_BYTES 32
diff --git a/cmd/sata.c b/cmd/sata.c
index 9b19ca49b18d..2c7be9c5fe8e 100644
--- a/cmd/sata.c
+++ b/cmd/sata.c
@@ -16,6 +16,7 @@
 #include <command.h>
 #include <part.h>
 #include <sata.h>
+#include <stdio.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
 #include <linux/string.h>
diff --git a/cmd/sb.c b/cmd/sb.c
index 0d55818e3c67..16e37c18cb5e 100644
--- a/cmd/sb.c
+++ b/cmd/sb.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <dm.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/state.h>
 
diff --git a/cmd/scsi.c b/cmd/scsi.c
index 61437ef21eb0..6e3f3308f1e1 100644
--- a/cmd/scsi.c
+++ b/cmd/scsi.c
@@ -11,6 +11,7 @@
 #include <blk.h>
 #include <command.h>
 #include <scsi.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 static int scsi_curr_dev; /* current device */
diff --git a/cmd/setexpr.c b/cmd/setexpr.c
index 1569d7ad72dd..29d6e3eac020 100644
--- a/cmd/setexpr.c
+++ b/cmd/setexpr.c
@@ -14,6 +14,7 @@
 #include <env.h>
 #include <log.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 static ulong get_arg(char *s, int w)
diff --git a/cmd/sf.c b/cmd/sf.c
index c74651d23b6e..cf4be7774376 100644
--- a/cmd/sf.c
+++ b/cmd/sf.c
@@ -16,6 +16,7 @@
 #include <mapmem.h>
 #include <spi.h>
 #include <spi_flash.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <jffs2/jffs2.h>
diff --git a/cmd/smccc.c b/cmd/smccc.c
index 101959c848ab..89ef440f1dc8 100644
--- a/cmd/smccc.c
+++ b/cmd/smccc.c
@@ -3,6 +3,7 @@
  * Copyright 2018
  * Michalis Pappas <mpappas at fastmail.fm>
  */
+#include <stdio.h>
 #include <asm/psci.h>
 #include <common.h>
 #include <command.h>
diff --git a/cmd/sound.c b/cmd/sound.c
index fdcde3653390..95d7b8b6ecc4 100644
--- a/cmd/sound.c
+++ b/cmd/sound.c
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <sound.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/cmd/source.c b/cmd/source.c
index b6c709a3d258..b7dfeb0adf27 100644
--- a/cmd/source.c
+++ b/cmd/source.c
@@ -21,6 +21,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <asm/byteorder.h>
 #include <asm/io.h>
 
diff --git a/cmd/spi.c b/cmd/spi.c
index df05e828fd1d..7184e44c030e 100644
--- a/cmd/spi.c
+++ b/cmd/spi.c
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <spi.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 /*-----------------------------------------------------------------------
diff --git a/cmd/spl.c b/cmd/spl.c
index 472703f8fe15..f6b9f4744287 100644
--- a/cmd/spl.c
+++ b/cmd/spl.c
@@ -10,6 +10,7 @@
 #include <env.h>
 #include <image.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/libfdt.h>
 
diff --git a/cmd/strings.c b/cmd/strings.c
index bf4efa4aa3a3..adc6e8147126 100644
--- a/cmd/strings.c
+++ b/cmd/strings.c
@@ -9,6 +9,7 @@
 #include <config.h>
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 static char *start_addr, *last_addr;
diff --git a/cmd/sysboot.c b/cmd/sysboot.c
index 38aa2a2cdb03..4f6869382f2d 100644
--- a/cmd/sysboot.c
+++ b/cmd/sysboot.c
@@ -4,6 +4,7 @@
 #include <command.h>
 #include <env.h>
 #include <fs.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include "pxe_utils.h"
 
diff --git a/cmd/terminal.c b/cmd/terminal.c
index f6e4d2539e35..3af67bb2d00e 100644
--- a/cmd/terminal.c
+++ b/cmd/terminal.c
@@ -9,6 +9,7 @@
  */
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <stdio_dev.h>
 #include <serial.h>
 
diff --git a/cmd/thordown.c b/cmd/thordown.c
index f36fb20e26e1..e837064ffdd5 100644
--- a/cmd/thordown.c
+++ b/cmd/thordown.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <thor.h>
 #include <dfu.h>
 #include <g_dnl.h>
diff --git a/cmd/ti/ddr3.c b/cmd/ti/ddr3.c
index f3c3e7e9fbe5..6be51f8c3358 100644
--- a/cmd/ti/ddr3.c
+++ b/cmd/ti/ddr3.c
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/hardware.h>
 #include <asm/cache.h>
 #include <asm/emif.h>
diff --git a/cmd/time.c b/cmd/time.c
index db8c1892df4a..7d4345bbf74d 100644
--- a/cmd/time.c
+++ b/cmd/time.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 
 static void report_time(ulong cycles)
 {
diff --git a/cmd/tlv_eeprom.c b/cmd/tlv_eeprom.c
index 663beeb9f73b..5a9abf440584 100644
--- a/cmd/tlv_eeprom.c
+++ b/cmd/tlv_eeprom.c
@@ -17,6 +17,7 @@
 #include <env.h>
 #include <init.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/ctype.h>
 #include <linux/string.h>
diff --git a/cmd/tpm-common.c b/cmd/tpm-common.c
index 88c9e08e318d..943bd0bfc9a2 100644
--- a/cmd/tpm-common.c
+++ b/cmd/tpm-common.c
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <env.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/unaligned.h>
 #include <linux/string.h>
 #include <tpm-common.h>
diff --git a/cmd/tpm-v1.c b/cmd/tpm-v1.c
index 77cd5e3bd7c7..4e935b286760 100644
--- a/cmd/tpm-v1.c
+++ b/cmd/tpm-v1.c
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <env.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/unaligned.h>
 #include <tpm-common.h>
 #include <tpm-v1.h>
diff --git a/cmd/tpm-v2.c b/cmd/tpm-v2.c
index 392811f12795..33cc85fa6f08 100644
--- a/cmd/tpm-v2.c
+++ b/cmd/tpm-v2.c
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <log.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <tpm-common.h>
 #include <tpm-v2.h>
 #include <linux/string.h>
diff --git a/cmd/tpm_test.c b/cmd/tpm_test.c
index fbaa1de66ee1..39d1ad2b4af9 100644
--- a/cmd/tpm_test.c
+++ b/cmd/tpm_test.c
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <tpm-v1.h>
 #include <linux/printk.h>
diff --git a/cmd/trace.c b/cmd/trace.c
index 4ce47c762760..a09d837c0496 100644
--- a/cmd/trace.c
+++ b/cmd/trace.c
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <env.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <trace.h>
 #include <asm/io.h>
 
diff --git a/cmd/tsi148.c b/cmd/tsi148.c
index cbe898475bac..6a9e346f27d6 100644
--- a/cmd/tsi148.c
+++ b/cmd/tsi148.c
@@ -11,6 +11,7 @@
 #include <command.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <pci.h>
 #include <linux/string.h>
diff --git a/cmd/ubi.c b/cmd/ubi.c
index afd45bab9435..707f1a9b87d0 100644
--- a/cmd/ubi.c
+++ b/cmd/ubi.c
@@ -20,6 +20,7 @@
 #include <mtd.h>
 #include <nand.h>
 #include <onenand_uboot.h>
+#include <stdio.h>
 #include <dm/devres.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
diff --git a/cmd/ubifs.c b/cmd/ubifs.c
index a26b653d61e9..1e2dfab2f491 100644
--- a/cmd/ubifs.c
+++ b/cmd/ubifs.c
@@ -15,6 +15,7 @@
 #include <config.h>
 #include <command.h>
 #include <log.h>
+#include <stdio.h>
 #include <ubifs_uboot.h>
 
 static int ubifs_initialized;
diff --git a/cmd/universe.c b/cmd/universe.c
index 37437a1cdddd..c7edde24d453 100644
--- a/cmd/universe.c
+++ b/cmd/universe.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <pci.h>
 #include <linux/string.h>
diff --git a/cmd/unlz4.c b/cmd/unlz4.c
index 4ae7f34d36e7..7221a8bd2c79 100644
--- a/cmd/unlz4.c
+++ b/cmd/unlz4.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <env.h>
 #include <lz4.h>
+#include <stdio.h>
 
 static int do_unlz4(struct cmd_tbl *cmdtp, int flag, int argc,
 		    char *const argv[])
diff --git a/cmd/unzip.c b/cmd/unzip.c
index 9b28328a1d76..a2d21ffa0a80 100644
--- a/cmd/unzip.c
+++ b/cmd/unzip.c
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <gzip.h>
 #include <part.h>
+#include <stdio.h>
 
 static int do_unzip(struct cmd_tbl *cmdtp, int flag, int argc,
 		    char *const argv[])
diff --git a/cmd/usb.c b/cmd/usb.c
index 04205a7a52e1..cc2f4f62e99d 100644
--- a/cmd/usb.c
+++ b/cmd/usb.c
@@ -16,6 +16,7 @@
 #include <command.h>
 #include <console.h>
 #include <dm.h>
+#include <stdio.h>
 #include <dm/uclass-internal.h>
 #include <memalign.h>
 #include <asm/byteorder.h>
diff --git a/cmd/usb_mass_storage.c b/cmd/usb_mass_storage.c
index 43fdb097078e..51d5ad78c633 100644
--- a/cmd/usb_mass_storage.c
+++ b/cmd/usb_mass_storage.c
@@ -14,6 +14,7 @@
 #include <g_dnl.h>
 #include <malloc.h>
 #include <part.h>
+#include <stdio.h>
 #include <usb.h>
 #include <usb_mass_storage.h>
 #include <watchdog.h>
diff --git a/cmd/version.c b/cmd/version.c
index 2c321a92f9b2..dcd91f09fa13 100644
--- a/cmd/version.c
+++ b/cmd/version.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <command.h>
 #include <display_options.h>
+#include <stdio.h>
 #include <version.h>
 #include <linux/compiler.h>
 #ifdef CONFIG_SYS_COREBOOT
diff --git a/cmd/w1.c b/cmd/w1.c
index 5682981f2df2..6b3ecea8b039 100644
--- a/cmd/w1.c
+++ b/cmd/w1.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <command.h>
 #include <dm.h>
+#include <stdio.h>
 #include <w1.h>
 #include <w1-eeprom.h>
 #include <dm/device-internal.h>
diff --git a/cmd/wdt.c b/cmd/wdt.c
index 27410981e7bf..fff95a93b327 100644
--- a/cmd/wdt.c
+++ b/cmd/wdt.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <command.h>
 #include <dm.h>
+#include <stdio.h>
 #include <wdt.h>
 
 static struct udevice *currdev;
diff --git a/cmd/x86/fsp.c b/cmd/x86/fsp.c
index 82e4415b16eb..ef49b530b55e 100644
--- a/cmd/x86/fsp.c
+++ b/cmd/x86/fsp.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/fsp/fsp_support.h>
 #include <asm/global_data.h>
 
diff --git a/cmd/x86/hob.c b/cmd/x86/hob.c
index 1b8dfa99f7b1..37f540521651 100644
--- a/cmd/x86/hob.c
+++ b/cmd/x86/hob.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <efi.h>
+#include <stdio.h>
 #include <uuid.h>
 #include <asm/global_data.h>
 #include <asm/hob.h>
diff --git a/cmd/x86/mtrr.c b/cmd/x86/mtrr.c
index 3e46a342a055..6bc4fb1c9be4 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 <stdio.h>
 #include <asm/msr.h>
 #include <asm/mp.h>
 #include <asm/mtrr.h>
diff --git a/cmd/ximg.c b/cmd/ximg.c
index c9cf4009d0d7..c6016719dc96 100644
--- a/cmd/ximg.c
+++ b/cmd/ximg.c
@@ -19,6 +19,7 @@
 #include <image.h>
 #include <malloc.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <watchdog.h>
 #if defined(CONFIG_BZIP2)
 #include <bzlib.h>
diff --git a/cmd/yaffs2.c b/cmd/yaffs2.c
index 1ecb5bea8e26..3a3dba3cfd38 100644
--- a/cmd/yaffs2.c
+++ b/cmd/yaffs2.c
@@ -14,6 +14,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #include <config.h>
diff --git a/cmd/zfs.c b/cmd/zfs.c
index d01835573a4c..9a03722a0306 100644
--- a/cmd/zfs.c
+++ b/cmd/zfs.c
@@ -14,6 +14,7 @@
 #include <command.h>
 #include <env.h>
 #include <image.h>
+#include <stdio.h>
 #include <linux/ctype.h>
 #include <asm/byteorder.h>
 #include <zfs_common.h>
diff --git a/cmd/zip.c b/cmd/zip.c
index 8ad376846476..407390a95a48 100644
--- a/cmd/zip.c
+++ b/cmd/zip.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <env.h>
 #include <gzip.h>
+#include <stdio.h>
 
 static int do_zip(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
diff --git a/common/autoboot.c b/common/autoboot.c
index 6db005259777..1effce6f7e55 100644
--- a/common/autoboot.c
+++ b/common/autoboot.c
@@ -18,6 +18,7 @@
 #include <memalign.h>
 #include <menu.h>
 #include <post.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
diff --git a/common/avb_verify.c b/common/avb_verify.c
index 6894f6872e94..7a7a50968525 100644
--- a/common/avb_verify.c
+++ b/common/avb_verify.c
@@ -11,6 +11,7 @@
 #include <image.h>
 #include <malloc.h>
 #include <part.h>
+#include <stdio.h>
 #include <tee.h>
 #include <linux/string.h>
 #include <tee/optee_ta_avb.h>
diff --git a/common/board_f.c b/common/board_f.c
index fa83d964ceb1..384e7a69c42c 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -38,6 +38,7 @@
 #include <spl.h>
 #endif
 #include <status_led.h>
+#include <stdio.h>
 #include <sysreset.h>
 #include <timer.h>
 #include <trace.h>
diff --git a/common/board_info.c b/common/board_info.c
index b54aa30a9442..bfa5324e8217 100644
--- a/common/board_info.c
+++ b/common/board_info.c
@@ -2,6 +2,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/libfdt.h>
 #include <linux/compiler.h>
diff --git a/common/board_r.c b/common/board_r.c
index 469362c103ea..15f3209b2924 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -21,6 +21,7 @@
 #include <irq_func.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
diff --git a/common/bootm.c b/common/bootm.c
index f9ff1ce78ba8..aaacd3ba4b02 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -17,6 +17,7 @@
 #include <malloc.h>
 #include <mapmem.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/common/bootm_os.c b/common/bootm_os.c
index 9c78bba8e61d..1987c574d995 100644
--- a/common/bootm_os.c
+++ b/common/bootm_os.c
@@ -14,6 +14,7 @@
 #include <image.h>
 #include <lmb.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/libfdt.h>
diff --git a/common/bootretry.c b/common/bootretry.c
index dac891fbc5e3..cd04ad9894df 100644
--- a/common/bootretry.c
+++ b/common/bootretry.c
@@ -9,6 +9,7 @@
 #include <cli.h>
 #include <env.h>
 #include <errno.h>
+#include <stdio.h>
 #include <time.h>
 #include <watchdog.h>
 
diff --git a/common/bootstage.c b/common/bootstage.c
index 6eb837679493..4656951675cc 100644
--- a/common/bootstage.c
+++ b/common/bootstage.c
@@ -16,6 +16,7 @@
 #include <malloc.h>
 #include <sort.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/compiler.h>
 #include <linux/libfdt.h>
diff --git a/common/cli.c b/common/cli.c
index 4fc4c206e4df..88053b587014 100644
--- a/common/cli.c
+++ b/common/cli.c
@@ -18,6 +18,7 @@
 #include <fdtdec.h>
 #include <hang.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 
diff --git a/common/cli_readline.c b/common/cli_readline.c
index 927c5066a9e0..78c1faad8f75 100644
--- a/common/cli_readline.c
+++ b/common/cli_readline.c
@@ -12,6 +12,7 @@
 #include <bootretry.h>
 #include <cli.h>
 #include <command.h>
+#include <stdio.h>
 #include <time.h>
 #include <watchdog.h>
 #include <asm/global_data.h>
diff --git a/common/cli_simple.c b/common/cli_simple.c
index b7f21bbbe75d..c8e26b9a6977 100644
--- a/common/cli_simple.c
+++ b/common/cli_simple.c
@@ -15,6 +15,7 @@
 #include <console.h>
 #include <env.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/ctype.h>
 #include <linux/string.h>
 
diff --git a/common/command.c b/common/command.c
index 3bc2038f97f9..dfad65d735cd 100644
--- a/common/command.c
+++ b/common/command.c
@@ -14,6 +14,7 @@
 #include <console.h>
 #include <env.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <linux/ctype.h>
diff --git a/common/common_fit.c b/common/common_fit.c
index dfb2134fcf11..50b165016d2d 100644
--- a/common/common_fit.c
+++ b/common/common_fit.c
@@ -8,6 +8,7 @@
 #include <errno.h>
 #include <image.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
 
diff --git a/common/console.c b/common/console.c
index 86c42cb8e5b2..556fc60139a5 100644
--- a/common/console.c
+++ b/common/console.c
@@ -16,6 +16,7 @@
 #include <mapmem.h>
 #include <os.h>
 #include <serial.h>
+#include <stdio.h>
 #include <stdio_dev.h>
 #include <exports.h>
 #include <env_internal.h>
diff --git a/common/ddr_spd.c b/common/ddr_spd.c
index 58dc9b3781b7..241549bd4856 100644
--- a/common/ddr_spd.c
+++ b/common/ddr_spd.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <ddr_spd.h>
+#include <stdio.h>
 
 /* used for ddr1 and ddr2 spd */
 static int
diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index dc584f792b3a..9493d1158d40 100644
--- a/common/dlmalloc.c
+++ b/common/dlmalloc.c
@@ -1,5 +1,6 @@
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 
diff --git a/common/edid.c b/common/edid.c
index 553ab8fd01a1..d539c5215070 100644
--- a/common/edid.c
+++ b/common/edid.c
@@ -14,6 +14,7 @@
 #include <errno.h>
 #include <fdtdec.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/ctype.h>
 #include <linux/string.h>
 
diff --git a/common/eeprom/eeprom_field.c b/common/eeprom/eeprom_field.c
index f56eebe679f7..e68cf5d48101 100644
--- a/common/eeprom/eeprom_field.c
+++ b/common/eeprom/eeprom_field.c
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include <eeprom_field.h>
 
diff --git a/common/eeprom/eeprom_layout.c b/common/eeprom/eeprom_layout.c
index 338185d58c36..cfe457c7444d 100644
--- a/common/eeprom/eeprom_layout.c
+++ b/common/eeprom/eeprom_layout.c
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/kernel.h>
 #include <eeprom_layout.h>
 #include <eeprom_field.h>
diff --git a/common/fdt_support.c b/common/fdt_support.c
index 9b685cc1736a..c768e4c8bab1 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <mapmem.h>
 #include <net.h>
+#include <stdio.h>
 #include <stdio_dev.h>
 #include <linux/ctype.h>
 #include <linux/string.h>
diff --git a/common/flash.c b/common/flash.c
index 62f4c98749ae..c01cb28b92f9 100644
--- a/common/flash.c
+++ b/common/flash.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <flash.h>
 #include <log.h>
+#include <stdio.h>
 #include <uuid.h>
 #include <linux/string.h>
 
diff --git a/common/hash.c b/common/hash.c
index e1be8dc05f9d..f6d032038f73 100644
--- a/common/hash.c
+++ b/common/hash.c
@@ -17,6 +17,7 @@
 #include <malloc.h>
 #include <mapmem.h>
 #include <hw_sha.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/common/image-android-dt.c b/common/image-android-dt.c
index a2d52df4a2a9..74dcbdd1608e 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 <stdio.h>
 #include <linux/libfdt.h>
 #include <mapmem.h>
 
diff --git a/common/image-android.c b/common/image-android.c
index 7f76be86790c..1e79f6b144c7 100644
--- a/common/image-android.c
+++ b/common/image-android.c
@@ -10,6 +10,7 @@
 #include <android_image.h>
 #include <malloc.h>
 #include <errno.h>
+#include <stdio.h>
 #include <asm/unaligned.h>
 #include <mapmem.h>
 #include <linux/libfdt.h>
diff --git a/common/image-cipher.c b/common/image-cipher.c
index c611eb52948f..3a4ba40b743b 100644
--- a/common/image-cipher.c
+++ b/common/image-cipher.c
@@ -9,6 +9,7 @@
 #else
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/common/image-fdt.c b/common/image-fdt.c
index 41fce043f544..af93298ffab3 100644
--- a/common/image-fdt.c
+++ b/common/image-fdt.c
@@ -17,6 +17,7 @@
 #include <lmb.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/libfdt.h>
 #include <mapmem.h>
diff --git a/common/image-fit-sig.c b/common/image-fit-sig.c
index 0c36649dce0b..1247d0280e2f 100644
--- a/common/image-fit-sig.c
+++ b/common/image-fit-sig.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/common/image-fit.c b/common/image-fit.c
index 5d5dd7dc40a4..76318ca6ed3c 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 <stdio.h>
 #include <linux/compiler.h>
 #include <linux/kconfig.h>
 #include <common.h>
diff --git a/common/image.c b/common/image.c
index e183a9cefa0b..61c608858565 100644
--- a/common/image.c
+++ b/common/image.c
@@ -15,6 +15,7 @@
 #include <lmb.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/u-boot.h>
 #include <linux/string.h>
diff --git a/common/iomux.c b/common/iomux.c
index d552e0ee61ac..2fa90eadc65b 100644
--- a/common/iomux.c
+++ b/common/iomux.c
@@ -8,6 +8,7 @@
 #include <console.h>
 #include <serial.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #if CONFIG_IS_ENABLED(CONSOLE_MUX)
diff --git a/common/kgdb.c b/common/kgdb.c
index 2f3bb7f6142d..62997f100055 100644
--- a/common/kgdb.c
+++ b/common/kgdb.c
@@ -88,6 +88,7 @@
  ****************************************************************************/
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/ptrace.h>
 #include <linux/string.h>
 
diff --git a/common/kgdb_stubs.c b/common/kgdb_stubs.c
index 66aed7cea1c7..43d9a3646a34 100644
--- a/common/kgdb_stubs.c
+++ b/common/kgdb_stubs.c
@@ -11,6 +11,7 @@
 #include <cpu_func.h>
 #include <kgdb.h>
 #include <serial.h>
+#include <stdio.h>
 #include <asm/ptrace.h>
 
 int (*debugger_exception_handler)(struct pt_regs *);
diff --git a/common/lcd.c b/common/lcd.c
index 04736d6c9805..442e61d9fd20 100644
--- a/common/lcd.c
+++ b/common/lcd.c
@@ -13,6 +13,7 @@
 #include <cpu_func.h>
 #include <env_callback.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <init.h>
 #include <asm/global_data.h>
diff --git a/common/lcd_console_rotation.c b/common/lcd_console_rotation.c
index a5f5c6da7bea..8fc333d4e323 100644
--- a/common/lcd_console_rotation.c
+++ b/common/lcd_console_rotation.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <lcd.h>
+#include <stdio.h>
 #include <video_font.h>		/* Get font data, width and height */
 
 static void lcd_putc_xy90(struct console_t *pcons, ushort x, ushort y, char c)
diff --git a/common/log_console.c b/common/log_console.c
index 357dff29168f..5084dcc8d82e 100644
--- a/common/log_console.c
+++ b/common/log_console.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/common/menu.c b/common/menu.c
index 0d08321e0e7f..d61c274eedf2 100644
--- a/common/menu.c
+++ b/common/menu.c
@@ -8,6 +8,7 @@
 #include <cli.h>
 #include <malloc.h>
 #include <errno.h>
+#include <stdio.h>
 #include <linux/list.h>
 #include <linux/string.h>
 
diff --git a/common/miiphyutil.c b/common/miiphyutil.c
index fa273f1c2017..5680157b7202 100644
--- a/common/miiphyutil.c
+++ b/common/miiphyutil.c
@@ -14,6 +14,7 @@
 #include <log.h>
 #include <miiphy.h>
 #include <phy.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 
diff --git a/common/spl/spl.c b/common/spl/spl.c
index bea542ed2e35..4c852d347547 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -18,6 +18,7 @@
 #include <log.h>
 #include <serial.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <nand.h>
diff --git a/common/spl/spl_ext.c b/common/spl/spl_ext.c
index d73f06276215..50f0f5f4ca77 100644
--- a/common/spl/spl_ext.c
+++ b/common/spl/spl_ext.c
@@ -4,6 +4,7 @@
 #include <env.h>
 #include <part.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <ext4fs.h>
 #include <errno.h>
diff --git a/common/spl/spl_fat.c b/common/spl/spl_fat.c
index c2eb097365ff..20b440906500 100644
--- a/common/spl/spl_fat.c
+++ b/common/spl/spl_fat.c
@@ -12,6 +12,7 @@
 #include <env.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <fat.h>
 #include <errno.h>
diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c
index 5da3fceb0de6..87d482695583 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 <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <linux/libfdt.h>
diff --git a/common/spl/spl_legacy.c b/common/spl/spl_legacy.c
index 82d032680616..6813759aa4e2 100644
--- a/common/spl/spl_legacy.c
+++ b/common/spl/spl_legacy.c
@@ -8,6 +8,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <spl.h>
+#include <stdio.h>
 
 #include <lzma/LzmaTypes.h>
 #include <lzma/LzmaDec.h>
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index add2785b4e39..1cfe4b2b442d 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -10,6 +10,7 @@
 #include <log.h>
 #include <part.h>
 #include <spl.h>
+#include <stdio.h>
 #include <linux/compiler.h>
 #include <errno.h>
 #include <asm/u-boot.h>
diff --git a/common/spl/spl_nand.c b/common/spl/spl_nand.c
index d13a5245974f..15101f394233 100644
--- a/common/spl/spl_nand.c
+++ b/common/spl/spl_nand.c
@@ -9,6 +9,7 @@
 #include <image.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <nand.h>
 #include <linux/libfdt_env.h>
diff --git a/common/spl/spl_net.c b/common/spl/spl_net.c
index 6ac8b65eebd0..ac7be6360bbc 100644
--- a/common/spl/spl_net.c
+++ b/common/spl/spl_net.c
@@ -13,6 +13,7 @@
 #include <log.h>
 #include <spl.h>
 #include <net.h>
+#include <stdio.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
 
diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c
index a1966cbad85f..a198577a2bdf 100644
--- a/common/spl/spl_nor.c
+++ b/common/spl/spl_nor.c
@@ -7,6 +7,7 @@
 #include <image.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 static ulong spl_nor_load_read(struct spl_load_info *load, ulong sector,
diff --git a/common/spl/spl_sata.c b/common/spl/spl_sata.c
index e108af0576aa..3ac3b743d992 100644
--- a/common/spl/spl_sata.c
+++ b/common/spl/spl_sata.c
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <sata.h>
 #include <scsi.h>
diff --git a/common/spl/spl_spi.c b/common/spl/spl_spi.c
index 6a4e03328709..caa5ed10e1a8 100644
--- a/common/spl/spl_spi.c
+++ b/common/spl/spl_spi.c
@@ -15,6 +15,7 @@
 #include <spi_flash.h>
 #include <errno.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/common/spl/spl_ubi.c b/common/spl/spl_ubi.c
index 6a3679300d7e..a142268c0f7e 100644
--- a/common/spl/spl_ubi.c
+++ b/common/spl/spl_ubi.c
@@ -9,6 +9,7 @@
 #include <image.h>
 #include <nand.h>
 #include <onenand_uboot.h>
+#include <stdio.h>
 #include <ubispl.h>
 #include <spl.h>
 #include <linux/string.h>
diff --git a/common/spl/spl_usb.c b/common/spl/spl_usb.c
index 3648de349273..33bdc3617486 100644
--- a/common/spl/spl_usb.c
+++ b/common/spl/spl_usb.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <errno.h>
 #include <usb.h>
diff --git a/common/spl/spl_ymodem.c b/common/spl/spl_ymodem.c
index c1958613299c..7124f604b0ab 100644
--- a/common/spl/spl_ymodem.c
+++ b/common/spl/spl_ymodem.c
@@ -13,6 +13,7 @@
 #include <image.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <xyzModem.h>
 #include <asm/u-boot.h>
 #include <linux/libfdt.h>
diff --git a/common/splash.c b/common/splash.c
index 31bbbc2f531c..e6dce1dbf3a6 100644
--- a/common/splash.c
+++ b/common/splash.c
@@ -25,6 +25,7 @@
 #include <env.h>
 #include <splash.h>
 #include <lcd.h>
+#include <stdio.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 12ea112a9d48..8166d0055b96 100644
--- a/common/splash_source.c
+++ b/common/splash_source.c
@@ -19,6 +19,7 @@
 #include <spi.h>
 #include <spi_flash.h>
 #include <splash.h>
+#include <stdio.h>
 #include <usb.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
diff --git a/common/stdio.c b/common/stdio.c
index 411796138f7f..3f29c91ce48e 100644
--- a/common/stdio.c
+++ b/common/stdio.c
@@ -15,6 +15,7 @@
 #include <log.h>
 #include <stdarg.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <stdio_dev.h>
 #include <serial.h>
 #include <splash.h>
diff --git a/common/update.c b/common/update.c
index 8851943b15cd..5fb6a2d5288f 100644
--- a/common/update.c
+++ b/common/update.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <image.h>
+#include <stdio.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/common/usb.c b/common/usb.c
index 7dd34df3cd64..5a3193930251 100644
--- a/common/usb.c
+++ b/common/usb.c
@@ -31,6 +31,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <linux/compiler.h>
 #include <linux/ctype.h>
diff --git a/common/usb_hub.c b/common/usb_hub.c
index 1eee9401dc35..244bd0a13694 100644
--- a/common/usb_hub.c
+++ b/common/usb_hub.c
@@ -29,6 +29,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/processor.h>
 #include <asm/unaligned.h>
diff --git a/common/usb_kbd.c b/common/usb_kbd.c
index 0fb955c14b6a..0d3a34ea5c11 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -14,6 +14,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <stdio.h>
 #include <stdio_dev.h>
 #include <time.h>
 #include <watchdog.h>
diff --git a/common/usb_storage.c b/common/usb_storage.c
index 492a9374ad24..3416bee012f6 100644
--- a/common/usb_storage.c
+++ b/common/usb_storage.c
@@ -40,6 +40,7 @@
 #include <log.h>
 #include <mapmem.h>
 #include <memalign.h>
+#include <stdio.h>
 #include <asm/byteorder.h>
 #include <asm/cache.h>
 #include <asm/processor.h>
diff --git a/disk/part.c b/disk/part.c
index 45d629508c24..e0d699ce6613 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -13,6 +13,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <part.h>
+#include <stdio.h>
 #include <ubifs_uboot.h>
 #include <linux/string.h>
 
diff --git a/disk/part_amiga.c b/disk/part_amiga.c
index 17c595a0a7bd..e8c7068081ba 100644
--- a/disk/part_amiga.c
+++ b/disk/part_amiga.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <env.h>
 #include <ide.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include "part_amiga.h"
 #include <part.h>
diff --git a/disk/part_dos.c b/disk/part_dos.c
index 8eaa85e6b299..a321ad2d2207 100644
--- a/disk/part_dos.c
+++ b/disk/part_dos.c
@@ -18,6 +18,7 @@
 #include <command.h>
 #include <ide.h>
 #include <memalign.h>
+#include <stdio.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 b995efc732de..d066d9c920ce 100644
--- a/disk/part_efi.c
+++ b/disk/part_efi.c
@@ -13,6 +13,7 @@
 #include <blk.h>
 #include <log.h>
 #include <part.h>
+#include <stdio.h>
 #include <uuid.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/disk/part_iso.c b/disk/part_iso.c
index a7d63d64e90b..accb95da3bc2 100644
--- a/disk/part_iso.c
+++ b/disk/part_iso.c
@@ -8,6 +8,7 @@
 #include <blk.h>
 #include <command.h>
 #include <part.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/unaligned.h>
 #include <linux/string.h>
diff --git a/disk/part_mac.c b/disk/part_mac.c
index e01ae7456618..2d9aa380168c 100644
--- a/disk/part_mac.c
+++ b/disk/part_mac.c
@@ -17,6 +17,7 @@
 #include <log.h>
 #include <memalign.h>
 #include <ide.h>
+#include <stdio.h>
 #include "part_mac.h"
 #include <part.h>
 
diff --git a/drivers/adc/adc-uclass.c b/drivers/adc/adc-uclass.c
index 7c033a6855bb..c1dd1f0599dc 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 <stdio.h>
 #include <dm/lists.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c
index d4abb6b943d0..d7c02f1aa3f4 100644
--- a/drivers/adc/meson-saradc.c
+++ b/drivers/adc/meson-saradc.c
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <regmap.h>
 #include <errno.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 271c2ddf4a87..e31e280f5416 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -12,6 +12,7 @@
 #include <blk.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
diff --git a/drivers/ata/ahci_sunxi.c b/drivers/ata/ahci_sunxi.c
index 58e345d9983c..162e7de5194b 100644
--- a/drivers/ata/ahci_sunxi.c
+++ b/drivers/ata/ahci_sunxi.c
@@ -4,6 +4,7 @@
 #include <log.h>
 #include <scsi.h>
 #include <errno.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <linux/delay.h>
diff --git a/drivers/ata/dwc_ahsata.c b/drivers/ata/dwc_ahsata.c
index 1ecae1d1c952..90db0d210148 100644
--- a/drivers/ata/dwc_ahsata.c
+++ b/drivers/ata/dwc_ahsata.c
@@ -17,6 +17,7 @@
 #include <memalign.h>
 #include <part.h>
 #include <sata.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/drivers/ata/fsl_sata.c b/drivers/ata/fsl_sata.c
index 3f5c7c2a0b94..aa30bf0846e6 100644
--- a/drivers/ata/fsl_sata.c
+++ b/drivers/ata/fsl_sata.c
@@ -11,6 +11,7 @@
 #include <console.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/ppc.h>
 #include <asm/fsl_serdes.h>
diff --git a/drivers/ata/libata.c b/drivers/ata/libata.c
index cdc83c75bb69..c830ef490252 100644
--- a/drivers/ata/libata.c
+++ b/drivers/ata/libata.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <compiler.h>
 #include <libata.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 u64 ata_id_n_sectors(u16 *id)
diff --git a/drivers/ata/sata.c b/drivers/ata/sata.c
index fa17ee3ab48c..b70de83df2cd 100644
--- a/drivers/ata/sata.c
+++ b/drivers/ata/sata.c
@@ -15,6 +15,7 @@
 #include <dm.h>
 #include <part.h>
 #include <sata.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #ifndef CONFIG_AHCI
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
index 9554aeb137d0..f122d154e334 100644
--- a/drivers/ata/sata_mv.c
+++ b/drivers/ata/sata_mv.c
@@ -37,6 +37,7 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c
index c34af206669c..920a3c9f9014 100644
--- a/drivers/ata/sata_sil.c
+++ b/drivers/ata/sata_sil.c
@@ -10,6 +10,7 @@
 #include <log.h>
 #include <pci.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/byteorder.h>
 #include <malloc.h>
 #include <asm/io.h>
diff --git a/drivers/bios_emulator/atibios.c b/drivers/bios_emulator/atibios.c
index 3d1b22f1f54f..dbf74a45eed0 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 <stdio.h>
 #include <vbe.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/drivers/bios_emulator/besys.c b/drivers/bios_emulator/besys.c
index 02c4286a854c..a8475b138866 100644
--- a/drivers/bios_emulator/besys.c
+++ b/drivers/bios_emulator/besys.c
@@ -49,6 +49,7 @@
 
 #define __io
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include "biosemui.h"
 
diff --git a/drivers/bios_emulator/bios.c b/drivers/bios_emulator/bios.c
index 77c7f94bc63e..af27582275b0 100644
--- a/drivers/bios_emulator/bios.c
+++ b/drivers/bios_emulator/bios.c
@@ -43,6 +43,7 @@
 
 #define __io
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include "biosemui.h"
 
diff --git a/drivers/bios_emulator/biosemu.c b/drivers/bios_emulator/biosemu.c
index e605238d4391..ca083a4d6467 100644
--- a/drivers/bios_emulator/biosemu.c
+++ b/drivers/bios_emulator/biosemu.c
@@ -47,6 +47,7 @@
 
 #include <malloc.h>
 #include <common.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include "biosemui.h"
 
diff --git a/drivers/bios_emulator/include/x86emu.h b/drivers/bios_emulator/include/x86emu.h
index b28cdc6b8cad..0970faaa21b5 100644
--- a/drivers/bios_emulator/include/x86emu.h
+++ b/drivers/bios_emulator/include/x86emu.h
@@ -41,6 +41,7 @@
 #ifndef __X86EMU_X86EMU_H
 #define __X86EMU_X86EMU_H
 
+#include <stdio.h>
 #include <asm/types.h>
 #include <common.h>
 #include <pci.h>
diff --git a/drivers/bios_emulator/include/x86emu/debug.h b/drivers/bios_emulator/include/x86emu/debug.h
index 859b54d86000..e80c89d763db 100644
--- a/drivers/bios_emulator/include/x86emu/debug.h
+++ b/drivers/bios_emulator/include/x86emu/debug.h
@@ -39,6 +39,8 @@
 #ifndef __X86EMU_DEBUG_H
 #define __X86EMU_DEBUG_H
 
+#include <stdio.h>
+
 /*---------------------- Macros and type definitions ----------------------*/
 
 /* checks to be enabled for "runtime" */
diff --git a/drivers/bios_emulator/x86emu/ops.c b/drivers/bios_emulator/x86emu/ops.c
index 8c1a146165c9..9c8c1eecdda1 100644
--- a/drivers/bios_emulator/x86emu/ops.c
+++ b/drivers/bios_emulator/x86emu/ops.c
@@ -73,6 +73,7 @@
 ****************************************************************************/
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/printk.h>
 #include "x86emu/x86emui.h"
 
diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c
index 1d90a9349bf5..fe68d1ffd0ff 100644
--- a/drivers/block/blk-uclass.c
+++ b/drivers/block/blk-uclass.c
@@ -10,6 +10,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <part.h>
+#include <stdio.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dm/uclass-internal.h>
diff --git a/drivers/block/blk_legacy.c b/drivers/block/blk_legacy.c
index f812169a4f26..2b02e4d3b1c0 100644
--- a/drivers/block/blk_legacy.c
+++ b/drivers/block/blk_legacy.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <blk.h>
 #include <part.h>
+#include <stdio.h>
 #include <linux/err.h>
 #include <linux/string.h>
 
diff --git a/drivers/block/ide.c b/drivers/block/ide.c
index 01bf76d0023b..6ac9323420d9 100644
--- a/drivers/block/ide.c
+++ b/drivers/block/ide.c
@@ -11,6 +11,7 @@
 #include <ide.h>
 #include <log.h>
 #include <part.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <asm/io.h>
 #include <linux/delay.h>
diff --git a/drivers/block/sandbox.c b/drivers/block/sandbox.c
index a3b2e77ef301..5c4d24c9c028 100644
--- a/drivers/block/sandbox.c
+++ b/drivers/block/sandbox.c
@@ -11,6 +11,7 @@
 #include <os.h>
 #include <malloc.h>
 #include <sandboxblockdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
 #include <linux/errno.h>
diff --git a/drivers/bootcount/bootcount_ext.c b/drivers/bootcount/bootcount_ext.c
index 9639e638e953..44f97a1054fd 100644
--- a/drivers/bootcount/bootcount_ext.c
+++ b/drivers/bootcount/bootcount_ext.c
@@ -6,6 +6,7 @@
 #include <bootcount.h>
 #include <fs.h>
 #include <mapmem.h>
+#include <stdio.h>
 
 #define BC_MAGIC	0xbd
 #define BC_VERSION	1
diff --git a/drivers/bootcount/bootcount_i2c.c b/drivers/bootcount/bootcount_i2c.c
index 496741d63f78..6f8d12e8fdd5 100644
--- a/drivers/bootcount/bootcount_i2c.c
+++ b/drivers/bootcount/bootcount_i2c.c
@@ -5,6 +5,7 @@
  */
 
 #include <bootcount.h>
+#include <stdio.h>
 #include <linux/compiler.h>
 #include <i2c.h>
 
diff --git a/drivers/cache/cache-ncore.c b/drivers/cache/cache-ncore.c
index 3beff780de0f..efef05613781 100644
--- a/drivers/cache/cache-ncore.c
+++ b/drivers/cache/cache-ncore.c
@@ -5,6 +5,7 @@
  */
 #include <dm.h>
 #include <hang.h>
+#include <stdio.h>
 #include <wait_bit.h>
 
 #include <asm/io.h>
diff --git a/drivers/cache/cache-v5l2.c b/drivers/cache/cache-v5l2.c
index 305a737d3b35..7adc69d514c1 100644
--- a/drivers/cache/cache-v5l2.c
+++ b/drivers/cache/cache-v5l2.c
@@ -9,6 +9,7 @@
 #include <cache.h>
 #include <dm.h>
 #include <hang.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm/ofnode.h>
diff --git a/drivers/clk/at91/clk-utmi.c b/drivers/clk/at91/clk-utmi.c
index 18af0bfeaad1..72b97af1bcb2 100644
--- a/drivers/clk/at91/clk-utmi.c
+++ b/drivers/clk/at91/clk-utmi.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <linux/io.h>
 #include <mach/at91_pmc.h>
diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c
index 075d4932a9c4..446c0c7b52de 100644
--- a/drivers/clk/clk-mux.c
+++ b/drivers/clk/clk-mux.c
@@ -22,6 +22,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <malloc.h>
 #include <clk-uclass.h>
diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c
index 5d5573962342..8ebfecd347a8 100644
--- a/drivers/clk/clk-uclass.c
+++ b/drivers/clk/clk-uclass.c
@@ -14,6 +14,7 @@
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/devres.h>
 #include <dm/read.h>
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 0f55ba751c0f..f55d57a95e65 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 <stdio.h>
 #include <dm/device.h>
 #include <dm/uclass.h>
 #include <dm/lists.h>
diff --git a/drivers/clk/clk_pic32.c b/drivers/clk/clk_pic32.c
index 78daf2cbad37..fff359a8035b 100644
--- a/drivers/clk/clk_pic32.c
+++ b/drivers/clk/clk_pic32.c
@@ -8,6 +8,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <div64.h>
+#include <stdio.h>
 #include <time.h>
 #include <wait_bit.h>
 #include <asm/global_data.h>
diff --git a/drivers/clk/clk_stm32mp1.c b/drivers/clk/clk_stm32mp1.c
index 8244b7c99fcc..b2e0c8ca00d0 100644
--- a/drivers/clk/clk_stm32mp1.c
+++ b/drivers/clk/clk_stm32mp1.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <regmap.h>
 #include <spl.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <time.h>
 #include <vsprintf.h>
diff --git a/drivers/clk/clk_versal.c b/drivers/clk/clk_versal.c
index 7a04d68f8dd5..19db23159f02 100644
--- a/drivers/clk/clk_versal.c
+++ b/drivers/clk/clk_versal.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/ptrace.h>
 #include <dm/device_compat.h>
diff --git a/drivers/clk/clk_zynqmp.c b/drivers/clk/clk_zynqmp.c
index 2313ac0bc044..8c62b63ea2b4 100644
--- a/drivers/clk/clk_zynqmp.c
+++ b/drivers/clk/clk_zynqmp.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <clk-uclass.h>
diff --git a/drivers/clk/ics8n3qv01.c b/drivers/clk/ics8n3qv01.c
index 4f80bf6e5223..95f1c7641f2e 100644
--- a/drivers/clk/ics8n3qv01.c
+++ b/drivers/clk/ics8n3qv01.c
@@ -14,6 +14,7 @@
 #include <clk-uclass.h>
 #include <i2c.h>
 #include <log.h>
+#include <stdio.h>
 
 const long long ICS8N3QV01_FREF = 114285000;
 const long long ICS8N3QV01_FREF_LL = 114285000LL;
diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c
index 11d194363d3d..c8d826b0141d 100644
--- a/drivers/clk/imx/clk-imx6q.c
+++ b/drivers/clk/imx/clk-imx6q.c
@@ -8,6 +8,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
 #include <dt-bindings/clock/imx6qdl-clock.h>
diff --git a/drivers/clk/imx/clk-imx8.c b/drivers/clk/imx/clk-imx8.c
index 27a652a625ab..523ead82e971 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 <stdio.h>
 #include <asm/arch/sci/sci.h>
 #include <asm/arch/clock.h>
 #include <dt-bindings/clock/imx8qxp-clock.h>
diff --git a/drivers/clk/imx/clk-imx8qm.c b/drivers/clk/imx/clk-imx8qm.c
index 54fb09fda405..d781bcd8a93c 100644
--- a/drivers/clk/imx/clk-imx8qm.c
+++ b/drivers/clk/imx/clk-imx8qm.c
@@ -8,6 +8,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/sci/sci.h>
 #include <asm/arch/clock.h>
 #include <dt-bindings/clock/imx8qm-clock.h>
diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c
index e6b2fb40da2a..407613407394 100644
--- a/drivers/clk/imx/clk-imx8qxp.c
+++ b/drivers/clk/imx/clk-imx8qxp.c
@@ -8,6 +8,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/sci/sci.h>
 #include <asm/arch/clock.h>
 #include <dt-bindings/clock/imx8qxp-clock.h>
diff --git a/drivers/clk/mpc83xx_clk.c b/drivers/clk/mpc83xx_clk.c
index fce12b025d6b..24bb06c2f2d3 100644
--- a/drivers/clk/mpc83xx_clk.c
+++ b/drivers/clk/mpc83xx_clk.c
@@ -10,6 +10,7 @@
 #include <command.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <vsprintf.h>
 #include <asm/global_data.h>
 #include <dm/lists.h>
diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c
index 30710040ff9b..2e2ac6fe8706 100644
--- a/drivers/clk/mvebu/armada-37xx-periph.c
+++ b/drivers/clk/mvebu/armada-37xx-periph.c
@@ -13,6 +13,7 @@
 #include <clk-uclass.h>
 #include <clk.h>
 #include <dm.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <dm/device_compat.h>
diff --git a/drivers/clk/mvebu/armada-37xx-tbg.c b/drivers/clk/mvebu/armada-37xx-tbg.c
index 233926e9b6a8..bb9438302665 100644
--- a/drivers/clk/mvebu/armada-37xx-tbg.c
+++ b/drivers/clk/mvebu/armada-37xx-tbg.c
@@ -12,6 +12,7 @@
 #include <clk-uclass.h>
 #include <clk.h>
 #include <dm.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <dm/device_compat.h>
diff --git a/drivers/clk/renesas/clk-rcar-gen2.c b/drivers/clk/renesas/clk-rcar-gen2.c
index cbf2ffe6e853..a859625b60bd 100644
--- a/drivers/clk/renesas/clk-rcar-gen2.c
+++ b/drivers/clk/renesas/clk-rcar-gen2.c
@@ -15,6 +15,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <linux/string.h>
diff --git a/drivers/clk/renesas/clk-rcar-gen3.c b/drivers/clk/renesas/clk-rcar-gen3.c
index 3223becd753b..ad2c73998d4b 100644
--- a/drivers/clk/renesas/clk-rcar-gen3.c
+++ b/drivers/clk/renesas/clk-rcar-gen3.c
@@ -15,6 +15,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
+#include <stdio.h>
 #include <wait_bit.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/clk/rockchip/clk_pll.c b/drivers/clk/rockchip/clk_pll.c
index 83d45c75ee22..3424a9a36a33 100644
--- a/drivers/clk/rockchip/clk_pll.c
+++ b/drivers/clk/rockchip/clk_pll.c
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/hardware.h>
diff --git a/drivers/clk/rockchip/clk_px30.c b/drivers/clk/rockchip/clk_px30.c
index 0ef449159d92..4178502bdff3 100644
--- a/drivers/clk/rockchip/clk_px30.c
+++ b/drivers/clk/rockchip/clk_px30.c
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru_px30.h>
diff --git a/drivers/clk/rockchip/clk_rk3128.c b/drivers/clk/rockchip/clk_rk3128.c
index 61f823e254eb..5a0079e0298b 100644
--- a/drivers/clk/rockchip/clk_rk3128.c
+++ b/drivers/clk/rockchip/clk_rk3128.c
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
diff --git a/drivers/clk/rockchip/clk_rk3288.c b/drivers/clk/rockchip/clk_rk3288.c
index a3c5bbf1f6b2..6221515df206 100644
--- a/drivers/clk/rockchip/clk_rk3288.c
+++ b/drivers/clk/rockchip/clk_rk3288.c
@@ -13,6 +13,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/clk/rockchip/clk_rk3308.c b/drivers/clk/rockchip/clk_rk3308.c
index 4a72fe293750..c6270aa07e19 100644
--- a/drivers/clk/rockchip/clk_rk3308.c
+++ b/drivers/clk/rockchip/clk_rk3308.c
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/clk/rockchip/clk_rk3328.c b/drivers/clk/rockchip/clk_rk3328.c
index e04042f0bd90..1050559cedfd 100644
--- a/drivers/clk/rockchip/clk_rk3328.c
+++ b/drivers/clk/rockchip/clk_rk3328.c
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru_rk3328.h>
diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c
index c2eaf67f58f7..e6d74ab6b934 100644
--- a/drivers/clk/rockchip/clk_rk3399.c
+++ b/drivers/clk/rockchip/clk_rk3399.c
@@ -12,6 +12,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <bitfield.h>
 #include <asm/io.h>
diff --git a/drivers/clk/rockchip/clk_rv1108.c b/drivers/clk/rockchip/clk_rv1108.c
index 9e6bb9cd88db..87a2847485ce 100644
--- a/drivers/clk/rockchip/clk_rv1108.c
+++ b/drivers/clk/rockchip/clk_rv1108.c
@@ -11,6 +11,7 @@
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/clk/sunxi/clk_sunxi.c b/drivers/clk/sunxi/clk_sunxi.c
index 41934cd826e3..d440abc13944 100644
--- a/drivers/clk/sunxi/clk_sunxi.c
+++ b/drivers/clk/sunxi/clk_sunxi.c
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <log.h>
 #include <reset.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/ccu.h>
 #include <linux/bitops.h>
diff --git a/drivers/core/acpi.c b/drivers/core/acpi.c
index a28b56a73339..26f494f2aeb6 100644
--- a/drivers/core/acpi.c
+++ b/drivers/core/acpi.c
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <acpi/acpi_device.h>
 #include <dm/acpi.h>
 #include <dm/device-internal.h>
diff --git a/drivers/core/devres.c b/drivers/core/devres.c
index 88244698b0cb..e2d4a80cefd9 100644
--- a/drivers/core/devres.c
+++ b/drivers/core/devres.c
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/compat.h>
 #include <linux/kernel.h>
 #include <linux/list.h>
diff --git a/drivers/core/dump.c b/drivers/core/dump.c
index 6debaf97a1df..3b707eb49335 100644
--- a/drivers/core/dump.c
+++ b/drivers/core/dump.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <dm/root.h>
 #include <dm/util.h>
 #include <dm/uclass-internal.h>
diff --git a/drivers/core/util.c b/drivers/core/util.c
index 25b0d76f430d..7a2fe1f4394b 100644
--- a/drivers/core/util.c
+++ b/drivers/core/util.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <dm/device.h>
 #include <dm/ofnode.h>
 #include <dm/read.h>
diff --git a/drivers/cpu/bmips_cpu.c b/drivers/cpu/bmips_cpu.c
index 8419adb3cc37..fd079951d6f0 100644
--- a/drivers/cpu/bmips_cpu.c
+++ b/drivers/cpu/bmips_cpu.c
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <init.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
 
diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c
index 21ccc1ce31d9..907358f312e7 100644
--- a/drivers/cpu/imx8_cpu.c
+++ b/drivers/cpu/imx8_cpu.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu.h>
 #include <dm.h>
+#include <stdio.h>
 #include <thermal.h>
 #include <asm/global_data.h>
 #include <asm/system.h>
diff --git a/drivers/crypto/fsl/desc_constr.h b/drivers/crypto/fsl/desc_constr.h
index ef4cd525e3ae..7d6546fd9c0c 100644
--- a/drivers/crypto/fsl/desc_constr.h
+++ b/drivers/crypto/fsl/desc_constr.h
@@ -7,6 +7,7 @@
  * Based on desc_constr.h file in linux drivers/crypto/caam
  */
 
+#include <stdio.h>
 #include <linux/compat.h>
 #include <linux/string.h>
 #include "desc.h"
diff --git a/drivers/crypto/fsl/fsl_blob.c b/drivers/crypto/fsl/fsl_blob.c
index d6bd861251e0..5bc0f3d5f22e 100644
--- a/drivers/crypto/fsl/fsl_blob.c
+++ b/drivers/crypto/fsl/fsl_blob.c
@@ -10,6 +10,7 @@
 #include <malloc.h>
 #include <memalign.h>
 #include <fsl_sec.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <linux/errno.h>
 #include "jobdesc.h"
diff --git a/drivers/crypto/fsl/fsl_hash.c b/drivers/crypto/fsl/fsl_hash.c
index 5182f21acb24..80640248c373 100644
--- a/drivers/crypto/fsl/fsl_hash.c
+++ b/drivers/crypto/fsl/fsl_hash.c
@@ -9,6 +9,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <stdio.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 17777e5551db..e85c2dd01d92 100644
--- a/drivers/crypto/fsl/jobdesc.c
+++ b/drivers/crypto/fsl/jobdesc.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <fsl_sec.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include "desc_constr.h"
 #include "jobdesc.h"
diff --git a/drivers/crypto/fsl/jr.c b/drivers/crypto/fsl/jr.c
index afca79dfc0a2..9e31e92024c9 100644
--- a/drivers/crypto/fsl/jr.c
+++ b/drivers/crypto/fsl/jr.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <linux/kernel.h>
 #include <log.h>
 #include <malloc.h>
diff --git a/drivers/crypto/fsl/sec.c b/drivers/crypto/fsl/sec.c
index f0a4a63d8863..afdad43d331e 100644
--- a/drivers/crypto/fsl/sec.c
+++ b/drivers/crypto/fsl/sec.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.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/ddr/altera/sdram_agilex.c b/drivers/ddr/altera/sdram_agilex.c
index 1ddc35d5d3b1..771820941aac 100644
--- a/drivers/ddr/altera/sdram_agilex.c
+++ b/drivers/ddr/altera/sdram_agilex.c
@@ -13,6 +13,7 @@
 #include <log.h>
 #include <ram.h>
 #include <reset.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include "sdram_soc64.h"
diff --git a/drivers/ddr/altera/sdram_arria10.c b/drivers/ddr/altera/sdram_arria10.c
index b2053bf412ca..b7986a4f47e3 100644
--- a/drivers/ddr/altera/sdram_arria10.c
+++ b/drivers/ddr/altera/sdram_arria10.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <wait_bit.h>
 #include <watchdog.h>
 #include <asm/cache.h>
diff --git a/drivers/ddr/altera/sdram_gen5.c b/drivers/ddr/altera/sdram_gen5.c
index 52cde7d409b8..01857f292565 100644
--- a/drivers/ddr/altera/sdram_gen5.c
+++ b/drivers/ddr/altera/sdram_gen5.c
@@ -10,6 +10,7 @@
 #include <log.h>
 #include <ram.h>
 #include <reset.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <asm/arch/fpga_manager.h>
 #include <asm/arch/reset_manager.h>
diff --git a/drivers/ddr/altera/sdram_s10.c b/drivers/ddr/altera/sdram_s10.c
index 71c68d3e7a86..4c913e9b5b64 100644
--- a/drivers/ddr/altera/sdram_s10.c
+++ b/drivers/ddr/altera/sdram_s10.c
@@ -15,6 +15,7 @@
 #include <log.h>
 #include <ram.h>
 #include <reset.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include "sdram_s10.h"
diff --git a/drivers/ddr/altera/sdram_soc64.c b/drivers/ddr/altera/sdram_soc64.c
index 5729588a0747..03ca6b58cfc0 100644
--- a/drivers/ddr/altera/sdram_soc64.c
+++ b/drivers/ddr/altera/sdram_soc64.c
@@ -15,6 +15,7 @@
 #include <log.h>
 #include <ram.h>
 #include <reset.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
diff --git a/drivers/ddr/fsl/arm_ddr_gen3.c b/drivers/ddr/fsl/arm_ddr_gen3.c
index 629ba6784e0d..15799011c9b5 100644
--- a/drivers/ddr/fsl/arm_ddr_gen3.c
+++ b/drivers/ddr/fsl/arm_ddr_gen3.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <fsl_ddr_sdram.h>
 #include <asm/processor.h>
diff --git a/drivers/ddr/fsl/ctrl_regs.c b/drivers/ddr/fsl/ctrl_regs.c
index 247587c646b6..1dd680e4f19b 100644
--- a/drivers/ddr/fsl/ctrl_regs.c
+++ b/drivers/ddr/fsl/ctrl_regs.c
@@ -16,6 +16,7 @@
 #include <fsl_ddr.h>
 #include <fsl_immap.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 #include <asm/io.h>
 #if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3) || \
diff --git a/drivers/ddr/fsl/ddr1_dimm_params.c b/drivers/ddr/fsl/ddr1_dimm_params.c
index 2ccf1e82f9a6..698324073dbb 100644
--- a/drivers/ddr/fsl/ddr1_dimm_params.c
+++ b/drivers/ddr/fsl/ddr1_dimm_params.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 #include <linux/string.h>
 
diff --git a/drivers/ddr/fsl/ddr2_dimm_params.c b/drivers/ddr/fsl/ddr2_dimm_params.c
index 9ee2dfc24554..95a250c33f48 100644
--- a/drivers/ddr/fsl/ddr2_dimm_params.c
+++ b/drivers/ddr/fsl/ddr2_dimm_params.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 #include <linux/string.h>
 
diff --git a/drivers/ddr/fsl/ddr3_dimm_params.c b/drivers/ddr/fsl/ddr3_dimm_params.c
index d0625ea0e1bf..b3e42519e86b 100644
--- a/drivers/ddr/fsl/ddr3_dimm_params.c
+++ b/drivers/ddr/fsl/ddr3_dimm_params.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <log.h>
+#include <stdio.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 37e43dc8f172..cc6c034747fd 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 <stdio.h>
 #include <linux/bug.h>
 #include <linux/string.h>
 
diff --git a/drivers/ddr/fsl/fsl_ddr_gen4.c b/drivers/ddr/fsl/fsl_ddr_gen4.c
index e43c6801546a..5e092e3e9241 100644
--- a/drivers/ddr/fsl/fsl_ddr_gen4.c
+++ b/drivers/ddr/fsl/fsl_ddr_gen4.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <env.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <fsl_ddr_sdram.h>
 #include <asm/processor.h>
diff --git a/drivers/ddr/fsl/fsl_mmdc.c b/drivers/ddr/fsl/fsl_mmdc.c
index cbd625b7eeac..b88c65cd2e47 100644
--- a/drivers/ddr/fsl/fsl_mmdc.c
+++ b/drivers/ddr/fsl/fsl_mmdc.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <fsl_mmdc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 
diff --git a/drivers/ddr/fsl/interactive.c b/drivers/ddr/fsl/interactive.c
index 3736ea129a77..645d83c0df87 100644
--- a/drivers/ddr/fsl/interactive.c
+++ b/drivers/ddr/fsl/interactive.c
@@ -16,6 +16,7 @@
 #include <command.h>
 #include <env.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 #include <linux/ctype.h>
 #include <asm/types.h>
diff --git a/drivers/ddr/fsl/lc_common_dimm_params.c b/drivers/ddr/fsl/lc_common_dimm_params.c
index d299d763db1a..d6a2ad99c427 100644
--- a/drivers/ddr/fsl/lc_common_dimm_params.c
+++ b/drivers/ddr/fsl/lc_common_dimm_params.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <fsl_ddr_sdram.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 
 #include <fsl_ddr.h>
diff --git a/drivers/ddr/fsl/main.c b/drivers/ddr/fsl/main.c
index 5b2ddc3893a9..cf0731bd842a 100644
--- a/drivers/ddr/fsl/main.c
+++ b/drivers/ddr/fsl/main.c
@@ -17,6 +17,7 @@
 #include <fsl_ddr.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 #include <linux/string.h>
 
diff --git a/drivers/ddr/fsl/mpc85xx_ddr_gen1.c b/drivers/ddr/fsl/mpc85xx_ddr_gen1.c
index a449c8354584..930dd72abce1 100644
--- a/drivers/ddr/fsl/mpc85xx_ddr_gen1.c
+++ b/drivers/ddr/fsl/mpc85xx_ddr_gen1.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/ppc.h>
 #include <fsl_ddr_sdram.h>
diff --git a/drivers/ddr/fsl/mpc85xx_ddr_gen2.c b/drivers/ddr/fsl/mpc85xx_ddr_gen2.c
index f91398ec0648..799243f7fc60 100644
--- a/drivers/ddr/fsl/mpc85xx_ddr_gen2.c
+++ b/drivers/ddr/fsl/mpc85xx_ddr_gen2.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/ppc.h>
 #include <fsl_ddr_sdram.h>
diff --git a/drivers/ddr/fsl/mpc85xx_ddr_gen3.c b/drivers/ddr/fsl/mpc85xx_ddr_gen3.c
index f4f2f590db06..1e1648592323 100644
--- a/drivers/ddr/fsl/mpc85xx_ddr_gen3.c
+++ b/drivers/ddr/fsl/mpc85xx_ddr_gen3.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/ppc.h>
 #include <fsl_ddr_sdram.h>
diff --git a/drivers/ddr/fsl/mpc86xx_ddr.c b/drivers/ddr/fsl/mpc86xx_ddr.c
index 37a86f0aba9b..cebe07308f3d 100644
--- a/drivers/ddr/fsl/mpc86xx_ddr.c
+++ b/drivers/ddr/fsl/mpc86xx_ddr.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <fsl_ddr_sdram.h>
 #include <asm/ppc.h>
diff --git a/drivers/ddr/fsl/options.c b/drivers/ddr/fsl/options.c
index 9e6175169ab3..6780e5ddf43f 100644
--- a/drivers/ddr/fsl/options.c
+++ b/drivers/ddr/fsl/options.c
@@ -9,6 +9,7 @@
 #include <hwconfig.h>
 #include <fsl_ddr_sdram.h>
 #include <log.h>
+#include <stdio.h>
 
 #include <fsl_ddr.h>
 /* For get_ddr_freq() */
diff --git a/drivers/ddr/fsl/util.c b/drivers/ddr/fsl/util.c
index c29215e84d8e..f37846d8e60f 100644
--- a/drivers/ddr/fsl/util.c
+++ b/drivers/ddr/fsl/util.c
@@ -9,6 +9,7 @@
 #include <asm/ppc.h>
 #endif
 #include <div64.h>
+#include <stdio.h>
 #include <linux/delay.h>
 
 #include <fsl_ddr.h>
diff --git a/drivers/ddr/imx/imx8m/helper.c b/drivers/ddr/imx/imx8m/helper.c
index f23904bf7124..8903ff146fc9 100644
--- a/drivers/ddr/imx/imx8m/helper.c
+++ b/drivers/ddr/imx/imx8m/helper.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <errno.h>
diff --git a/drivers/ddr/marvell/a38x/ddr_ml_wrapper.h b/drivers/ddr/marvell/a38x/ddr_ml_wrapper.h
index 5bf323992117..688cbbeefc5f 100644
--- a/drivers/ddr/marvell/a38x/ddr_ml_wrapper.h
+++ b/drivers/ddr/marvell/a38x/ddr_ml_wrapper.h
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
diff --git a/drivers/ddr/marvell/axp/ddr3_dfs.c b/drivers/ddr/marvell/axp/ddr3_dfs.c
index b58c0fe01e5a..86abdf70db71 100644
--- a/drivers/ddr/marvell/axp/ddr3_dfs.c
+++ b/drivers/ddr/marvell/axp/ddr3_dfs.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
diff --git a/drivers/ddr/marvell/axp/ddr3_dqs.c b/drivers/ddr/marvell/axp/ddr3_dqs.c
index 0db94212b90f..33187fbc64fd 100644
--- a/drivers/ddr/marvell/axp/ddr3_dqs.c
+++ b/drivers/ddr/marvell/axp/ddr3_dqs.c
@@ -7,6 +7,7 @@
 #include <i2c.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
diff --git a/drivers/ddr/marvell/axp/ddr3_hw_training.c b/drivers/ddr/marvell/axp/ddr3_hw_training.c
index c39f40095fcc..cc36f29ff862 100644
--- a/drivers/ddr/marvell/axp/ddr3_hw_training.c
+++ b/drivers/ddr/marvell/axp/ddr3_hw_training.c
@@ -7,6 +7,7 @@
 #include <i2c.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
diff --git a/drivers/ddr/marvell/axp/ddr3_init.c b/drivers/ddr/marvell/axp/ddr3_init.c
index 607f3e12c3ae..f934957a0f3d 100644
--- a/drivers/ddr/marvell/axp/ddr3_init.c
+++ b/drivers/ddr/marvell/axp/ddr3_init.c
@@ -7,6 +7,7 @@
 #include <i2c.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
diff --git a/drivers/ddr/marvell/axp/ddr3_pbs.c b/drivers/ddr/marvell/axp/ddr3_pbs.c
index a963b3c55be2..dd7905dd7f47 100644
--- a/drivers/ddr/marvell/axp/ddr3_pbs.c
+++ b/drivers/ddr/marvell/axp/ddr3_pbs.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
diff --git a/drivers/ddr/marvell/axp/ddr3_read_leveling.c b/drivers/ddr/marvell/axp/ddr3_read_leveling.c
index 30a5c3548857..03dae99107a4 100644
--- a/drivers/ddr/marvell/axp/ddr3_read_leveling.c
+++ b/drivers/ddr/marvell/axp/ddr3_read_leveling.c
@@ -7,6 +7,7 @@
 #include <i2c.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
diff --git a/drivers/ddr/marvell/axp/ddr3_spd.c b/drivers/ddr/marvell/axp/ddr3_spd.c
index 8927abe17ef0..f96d2bdaeb91 100644
--- a/drivers/ddr/marvell/axp/ddr3_spd.c
+++ b/drivers/ddr/marvell/axp/ddr3_spd.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
diff --git a/drivers/ddr/marvell/axp/ddr3_write_leveling.c b/drivers/ddr/marvell/axp/ddr3_write_leveling.c
index de8dfc299f7e..8c875287b4c5 100644
--- a/drivers/ddr/marvell/axp/ddr3_write_leveling.c
+++ b/drivers/ddr/marvell/axp/ddr3_write_leveling.c
@@ -7,6 +7,7 @@
 #include <i2c.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
diff --git a/drivers/ddr/microchip/ddr2.c b/drivers/ddr/microchip/ddr2.c
index 149b6071cfde..90ebf4642d5d 100644
--- a/drivers/ddr/microchip/ddr2.c
+++ b/drivers/ddr/microchip/ddr2.c
@@ -4,6 +4,7 @@
  *
  */
 #include <common.h>
+#include <stdio.h>
 #include <wait_bit.h>
 #include <linux/kernel.h>
 #include <linux/bitops.h>
diff --git a/drivers/demo/demo-shape.c b/drivers/demo/demo-shape.c
index d0c0c7365517..3e1f79aee50b 100644
--- a/drivers/demo/demo-shape.c
+++ b/drivers/demo/demo-shape.c
@@ -10,6 +10,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <dm-demo.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
diff --git a/drivers/demo/demo-simple.c b/drivers/demo/demo-simple.c
index 68972c780f44..325f653877f2 100644
--- a/drivers/demo/demo-simple.c
+++ b/drivers/demo/demo-simple.c
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <dm-demo.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <asm/io.h>
 
 static int simple_hello(struct udevice *dev, int ch)
diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c
index 5dc5f80854e8..043c03a34921 100644
--- a/drivers/dfu/dfu.c
+++ b/drivers/dfu/dfu.c
@@ -15,6 +15,7 @@
 #include <fat.h>
 #include <dfu.h>
 #include <hash.h>
+#include <stdio.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 0fd69d0d1e4c..a3444f131ea6 100644
--- a/drivers/dfu/dfu_mmc.c
+++ b/drivers/dfu/dfu_mmc.c
@@ -16,6 +16,7 @@
 #include <fat.h>
 #include <mmc.h>
 #include <part.h>
+#include <stdio.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/dfu/dfu_mtd.c b/drivers/dfu/dfu_mtd.c
index 861a0b370e09..ebf4b8b26e8a 100644
--- a/drivers/dfu/dfu_mtd.c
+++ b/drivers/dfu/dfu_mtd.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <dfu.h>
 #include <mtd.h>
+#include <stdio.h>
 #include <jffs2/load_kernel.h>
 #include <linux/err.h>
 #include <linux/string.h>
diff --git a/drivers/dfu/dfu_nand.c b/drivers/dfu/dfu_nand.c
index 38f46b2f4129..b4abe6005d90 100644
--- a/drivers/dfu/dfu_nand.c
+++ b/drivers/dfu/dfu_nand.c
@@ -15,6 +15,7 @@
 #include <errno.h>
 #include <div64.h>
 #include <dfu.h>
+#include <stdio.h>
 #include <linux/mtd/mtd.h>
 #include <jffs2/load_kernel.h>
 #include <nand.h>
diff --git a/drivers/dfu/dfu_sf.c b/drivers/dfu/dfu_sf.c
index 20e1c2869027..b64570aa4c73 100644
--- a/drivers/dfu/dfu_sf.c
+++ b/drivers/dfu/dfu_sf.c
@@ -11,6 +11,7 @@
 #include <dfu.h>
 #include <spi.h>
 #include <spi_flash.h>
+#include <stdio.h>
 #include <jffs2/load_kernel.h>
 #include <linux/mtd/mtd.h>
 #include <linux/string.h>
diff --git a/drivers/dma/MCD_dmaApi.c b/drivers/dma/MCD_dmaApi.c
index af0e13452200..d3c79e122cb7 100644
--- a/drivers/dma/MCD_dmaApi.c
+++ b/drivers/dma/MCD_dmaApi.c
@@ -6,6 +6,7 @@
 /*Main C file for multi-channel DMA API. */
 
 #include <common.h>
+#include <stdio.h>
 
 #include <MCD_dma.h>
 #include <MCD_tasksInit.h>
diff --git a/drivers/dma/apbh_dma.c b/drivers/dma/apbh_dma.c
index a2a76aba84a1..8a7ef5013e86 100644
--- a/drivers/dma/apbh_dma.c
+++ b/drivers/dma/apbh_dma.c
@@ -12,6 +12,7 @@
  */
 
 #include <cpu_func.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <linux/list.h>
 #include <linux/string.h>
diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c
index aa835498d29b..cab6031ccf23 100644
--- a/drivers/dma/ti/k3-udma.c
+++ b/drivers/dma/ti/k3-udma.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/bitops.h>
diff --git a/drivers/fastboot/fb_command.c b/drivers/fastboot/fb_command.c
index 699fc52fc1c3..ab477f5cb91d 100644
--- a/drivers/fastboot/fb_command.c
+++ b/drivers/fastboot/fb_command.c
@@ -12,6 +12,7 @@
 #include <fb_nand.h>
 #include <flash.h>
 #include <part.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include <linux/printk.h>
 #include <linux/string.h>
diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot/fb_common.c
index 3c8338f7c688..da467666cf4c 100644
--- a/drivers/fastboot/fb_common.c
+++ b/drivers/fastboot/fb_common.c
@@ -14,6 +14,7 @@
 #include <command.h>
 #include <env.h>
 #include <fastboot.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include <net/fastboot.h>
 
diff --git a/drivers/fastboot/fb_mmc.c b/drivers/fastboot/fb_mmc.c
index 3512e2191f04..5dc58f00a75a 100644
--- a/drivers/fastboot/fb_mmc.c
+++ b/drivers/fastboot/fb_mmc.c
@@ -17,6 +17,7 @@
 #include <part.h>
 #include <mmc.h>
 #include <div64.h>
+#include <stdio.h>
 #include <linux/compat.h>
 #include <android_image.h>
 #include <linux/printk.h>
diff --git a/drivers/fastboot/fb_nand.c b/drivers/fastboot/fb_nand.c
index c048600d44a7..431580631168 100644
--- a/drivers/fastboot/fb_nand.c
+++ b/drivers/fastboot/fb_nand.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <blk.h>
 #include <flash.h>
+#include <stdio.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/firmware/firmware-zynqmp.c b/drivers/firmware/firmware-zynqmp.c
index 66edc1693016..3e38848d4cc6 100644
--- a/drivers/firmware/firmware-zynqmp.c
+++ b/drivers/firmware/firmware-zynqmp.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <zynqmp_firmware.h>
 #include <asm/cache.h>
 #include <asm/ptrace.h>
diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c
index cb920139b1c0..4bc898bacb1b 100644
--- a/drivers/firmware/psci.c
+++ b/drivers/firmware/psci.c
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <irq_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <dm/lists.h>
 #include <efi_loader.h>
 #include <linux/delay.h>
diff --git a/drivers/fpga/altera.c b/drivers/fpga/altera.c
index bb27b3778f31..7f7d768c5cb9 100644
--- a/drivers/fpga/altera.c
+++ b/drivers/fpga/altera.c
@@ -14,6 +14,7 @@
 #include <errno.h>
 #include <ACEX1K.h>
 #include <log.h>
+#include <stdio.h>
 #include <stratixII.h>
 
 /* Define FPGA_DEBUG to 1 to get debug printf's */
diff --git a/drivers/fpga/cyclon2.c b/drivers/fpga/cyclon2.c
index 477379449ed0..a163f7225155 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 <stdio.h>
 #include <time.h>
 #include <linux/delay.h>
 
diff --git a/drivers/fpga/fpga.c b/drivers/fpga/fpga.c
index 4140c8254523..1d76e1232124 100644
--- a/drivers/fpga/fpga.c
+++ b/drivers/fpga/fpga.c
@@ -8,6 +8,7 @@
 #include <common.h>             /* core U-Boot definitions */
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <xilinx.h>             /* xilinx specific definitions */
 #include <altera.h>             /* altera specific definitions */
 #include <lattice.h>
diff --git a/drivers/fpga/ivm_core.c b/drivers/fpga/ivm_core.c
index adc60919f3b0..180663ca32f4 100644
--- a/drivers/fpga/ivm_core.c
+++ b/drivers/fpga/ivm_core.c
@@ -31,6 +31,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include <malloc.h>
 #include <lattice.h>
diff --git a/drivers/fpga/lattice.c b/drivers/fpga/lattice.c
index e292d991cd18..cbdf00d3a2e3 100644
--- a/drivers/fpga/lattice.c
+++ b/drivers/fpga/lattice.c
@@ -15,6 +15,7 @@
 #include <malloc.h>
 #include <fpga.h>
 #include <lattice.h>
+#include <stdio.h>
 #include <linux/delay.h>
 
 static lattice_board_specific_func *pfns;
diff --git a/drivers/fpga/socfpga_arria10.c b/drivers/fpga/socfpga_arria10.c
index de175848e8ba..f6ece13b06ca 100644
--- a/drivers/fpga/socfpga_arria10.c
+++ b/drivers/fpga/socfpga_arria10.c
@@ -4,6 +4,7 @@
  */
 #include <image.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/fpga/socfpga_gen5.c b/drivers/fpga/socfpga_gen5.c
index d73474f29ee1..1edd494a5b0e 100644
--- a/drivers/fpga/socfpga_gen5.c
+++ b/drivers/fpga/socfpga_gen5.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/fpga_manager.h>
diff --git a/drivers/fpga/stratix10.c b/drivers/fpga/stratix10.c
index 84f453f76e0c..81a3c35d9ebf 100644
--- a/drivers/fpga/stratix10.c
+++ b/drivers/fpga/stratix10.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <altera.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/arch/mailbox_s10.h>
 #include <linux/delay.h>
diff --git a/drivers/fpga/stratixv.c b/drivers/fpga/stratixv.c
index abae3b5b7511..403865c1e370 100644
--- a/drivers/fpga/stratixv.c
+++ b/drivers/fpga/stratixv.c
@@ -7,6 +7,7 @@
 #include <altera.h>
 #include <log.h>
 #include <spi.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
diff --git a/drivers/fpga/versalpl.c b/drivers/fpga/versalpl.c
index 5d67ce215ce5..7738cfaf1039 100644
--- a/drivers/fpga/versalpl.c
+++ b/drivers/fpga/versalpl.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/sys_proto.h>
 #include <memalign.h>
 #include <versalpl.h>
diff --git a/drivers/fpga/virtex2.c b/drivers/fpga/virtex2.c
index aae9250f1980..c6449cfc60f4 100644
--- a/drivers/fpga/virtex2.c
+++ b/drivers/fpga/virtex2.c
@@ -14,6 +14,7 @@
 
 #include <common.h>
 #include <console.h>
+#include <stdio.h>
 #include <time.h>
 #include <virtex2.h>
 #include <linux/delay.h>
diff --git a/drivers/fpga/xilinx.c b/drivers/fpga/xilinx.c
index d9f3b82a40ef..302596074107 100644
--- a/drivers/fpga/xilinx.c
+++ b/drivers/fpga/xilinx.c
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <fpga.h>
 #include <log.h>
+#include <stdio.h>
 #include <virtex2.h>
 #include <spartan2.h>
 #include <spartan3.h>
diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga/zynqmppl.c
index 328e275cd374..fd92b47d67a8 100644
--- a/drivers/fpga/zynqmppl.c
+++ b/drivers/fpga/zynqmppl.c
@@ -10,6 +10,7 @@
 #include <compiler.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <zynqmppl.h>
 #include <zynqmp_firmware.h>
 #include <asm/cache.h>
diff --git a/drivers/fpga/zynqpl.c b/drivers/fpga/zynqpl.c
index 86df6fa32d4f..14de9c11d548 100644
--- a/drivers/fpga/zynqpl.c
+++ b/drivers/fpga/zynqpl.c
@@ -10,6 +10,7 @@
 #include <console.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <asm/io.h>
diff --git a/drivers/gpio/adi_gpio2.c b/drivers/gpio/adi_gpio2.c
index 8d4ee813985c..fc508093d6f2 100644
--- a/drivers/gpio/adi_gpio2.c
+++ b/drivers/gpio/adi_gpio2.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/bug.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
diff --git a/drivers/gpio/at91_gpio.c b/drivers/gpio/at91_gpio.c
index 4a8b2e6ff610..d738a04033a5 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 <stdio.h>
 #include <asm/io.h>
 #include <linux/sizes.h>
 #include <asm/gpio.h>
diff --git a/drivers/gpio/atmel_pio4.c b/drivers/gpio/atmel_pio4.c
index 3256469ddc16..b82fe74a62b1 100644
--- a/drivers/gpio/atmel_pio4.c
+++ b/drivers/gpio/atmel_pio4.c
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/arch/hardware.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
diff --git a/drivers/gpio/da8xx_gpio.c b/drivers/gpio/da8xx_gpio.c
index 0f39972ceeb8..dd7506ff1772 100644
--- a/drivers/gpio/da8xx_gpio.c
+++ b/drivers/gpio/da8xx_gpio.c
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
diff --git a/drivers/gpio/db8500_gpio.c b/drivers/gpio/db8500_gpio.c
index eefb56d83f69..4e79571aa4e7 100644
--- a/drivers/gpio/db8500_gpio.c
+++ b/drivers/gpio/db8500_gpio.c
@@ -17,6 +17,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 
 #include <asm/arch/db8500_gpio.h>
diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c
index 28f4a48900fb..7d4e3354f173 100644
--- a/drivers/gpio/gpio-uclass.c
+++ b/drivers/gpio/gpio-uclass.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
diff --git a/drivers/gpio/kona_gpio.c b/drivers/gpio/kona_gpio.c
index 29791882a340..9b8e6240f5a1 100644
--- a/drivers/gpio/kona_gpio.c
+++ b/drivers/gpio/kona_gpio.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/sysmap.h>
 
diff --git a/drivers/gpio/kw_gpio.c b/drivers/gpio/kw_gpio.c
index a15769793f17..39a73ccfb748 100644
--- a/drivers/gpio/kw_gpio.c
+++ b/drivers/gpio/kw_gpio.c
@@ -13,6 +13,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <asm/io.h>
 #include <asm/arch/soc.h>
diff --git a/drivers/gpio/mpc83xx_gpio.c b/drivers/gpio/mpc83xx_gpio.c
index b5aaa64be476..ac8e6199d95e 100644
--- a/drivers/gpio/mpc83xx_gpio.c
+++ b/drivers/gpio/mpc83xx_gpio.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <malloc.h>
 #include <mpc83xx.h>
+#include <stdio.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/ppc.h>
diff --git a/drivers/gpio/mvgpio.c b/drivers/gpio/mvgpio.c
index 12e7197daf7b..bf1842ccf7ec 100644
--- a/drivers/gpio/mvgpio.c
+++ b/drivers/gpio/mvgpio.c
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include "mvgpio.h"
diff --git a/drivers/gpio/mxs_gpio.c b/drivers/gpio/mxs_gpio.c
index 2a9f64d633c1..4ff267899cb6 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 <stdio.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
 #include <linux/errno.h>
diff --git a/drivers/gpio/omap_gpio.c b/drivers/gpio/omap_gpio.c
index 91d664e02ff6..fb2f5a30b6d9 100644
--- a/drivers/gpio/omap_gpio.c
+++ b/drivers/gpio/omap_gpio.c
@@ -20,6 +20,7 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
diff --git a/drivers/gpio/pca953x.c b/drivers/gpio/pca953x.c
index 4ab8cee2d18c..3e32d70e29d2 100644
--- a/drivers/gpio/pca953x.c
+++ b/drivers/gpio/pca953x.c
@@ -12,6 +12,7 @@
 #include <command.h>
 #include <i2c.h>
 #include <pca953x.h>
+#include <stdio.h>
 
 /* Default to an address that hopefully won't corrupt other i2c devices */
 #ifndef CONFIG_SYS_I2C_PCA953X_ADDR
diff --git a/drivers/gpio/pcf8575_gpio.c b/drivers/gpio/pcf8575_gpio.c
index 8a9214dec3ee..7eeacd77c2a6 100644
--- a/drivers/gpio/pcf8575_gpio.c
+++ b/drivers/gpio/pcf8575_gpio.c
@@ -27,6 +27,7 @@
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm-generic/gpio.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
diff --git a/drivers/gpio/sandbox.c b/drivers/gpio/sandbox.c
index c2f80472b83a..599df135acfe 100644
--- a/drivers/gpio/sandbox.c
+++ b/drivers/gpio/sandbox.c
@@ -8,6 +8,7 @@
 #include <fdtdec.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <acpi/acpi_device.h>
 #include <asm/gpio.h>
 #include <dm/acpi.h>
diff --git a/drivers/gpio/tca642x.c b/drivers/gpio/tca642x.c
index 463cfe879a8f..21e432d7d80e 100644
--- a/drivers/gpio/tca642x.c
+++ b/drivers/gpio/tca642x.c
@@ -23,6 +23,7 @@
 #include <common.h>
 #include <command.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <tca642x.h>
 
 /* tca642x register address definitions */
diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c
index 23de1f44e9c3..6ee0757e03c4 100644
--- a/drivers/gpio/xilinx_gpio.c
+++ b/drivers/gpio/xilinx_gpio.c
@@ -7,6 +7,7 @@
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/list.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c
index 8888d2324c42..91b8cd945e33 100644
--- a/drivers/gpio/zynq_gpio.c
+++ b/drivers/gpio/zynq_gpio.c
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
diff --git a/drivers/i2c/davinci_i2c.c b/drivers/i2c/davinci_i2c.c
index a54f2151fd3a..b4bd22fcc85a 100644
--- a/drivers/i2c/davinci_i2c.c
+++ b/drivers/i2c/davinci_i2c.c
@@ -15,6 +15,7 @@
 #include <i2c.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/i2c_defs.h>
 #include <asm/io.h>
diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c
index 6cd5d517de77..6ea5a31160be 100644
--- a/drivers/i2c/designware_i2c.c
+++ b/drivers/i2c/designware_i2c.c
@@ -12,6 +12,7 @@
 #include <malloc.h>
 #include <pci.h>
 #include <reset.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 #include <linux/delay.h>
diff --git a/drivers/i2c/i2c-cdns.c b/drivers/i2c/i2c-cdns.c
index 024c63c4eaed..abbfdcbcc5c9 100644
--- a/drivers/i2c/i2c-cdns.c
+++ b/drivers/i2c/i2c-cdns.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/types.h>
diff --git a/drivers/i2c/i2c-cortina.c b/drivers/i2c/i2c-cortina.c
index 4129d6a68884..4575ab6c40ce 100644
--- a/drivers/i2c/i2c-cortina.c
+++ b/drivers/i2c/i2c-cortina.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 #include <dm.h>
diff --git a/drivers/i2c/i2c-uclass.c b/drivers/i2c/i2c-uclass.c
index c16bda469781..d73748adc4cc 100644
--- a/drivers/i2c/i2c-uclass.c
+++ b/drivers/i2c/i2c-uclass.c
@@ -9,6 +9,7 @@
 #include <i2c.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dm/pinctrl.h>
diff --git a/drivers/i2c/i2c_core.c b/drivers/i2c/i2c_core.c
index 85cf75ecd922..40096e95aa06 100644
--- a/drivers/i2c/i2c_core.c
+++ b/drivers/i2c/i2c_core.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <linker_lists.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 
 struct i2c_adapter *i2c_get_adapter(int index)
diff --git a/drivers/i2c/imx_lpi2c.c b/drivers/i2c/imx_lpi2c.c
index b02f3883b0d1..eeb35e050b76 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 <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/drivers/i2c/intel_i2c.c b/drivers/i2c/intel_i2c.c
index fa36f48df9a1..0e98e08e4a75 100644
--- a/drivers/i2c/intel_i2c.c
+++ b/drivers/i2c/intel_i2c.c
@@ -12,6 +12,7 @@
 #include <i2c.h>
 #include <log.h>
 #include <pci.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 #include <linux/string.h>
diff --git a/drivers/i2c/kona_i2c.c b/drivers/i2c/kona_i2c.c
index 4edcba29110e..e2632a6e36c5 100644
--- a/drivers/i2c/kona_i2c.c
+++ b/drivers/i2c/kona_i2c.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
diff --git a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
index 567660f9a747..14ead6e27538 100644
--- a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
+++ b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
@@ -10,6 +10,7 @@
 #include <i2c.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>
diff --git a/drivers/i2c/mv_i2c.c b/drivers/i2c/mv_i2c.c
index 54fa069528b6..1850dc6a5678 100644
--- a/drivers/i2c/mv_i2c.c
+++ b/drivers/i2c/mv_i2c.c
@@ -20,6 +20,7 @@
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c
index 1cc9cfc2eb8b..775f02403460 100644
--- a/drivers/i2c/mvtwsi.c
+++ b/drivers/i2c/mvtwsi.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c
index e4e504363798..683b45bd8fd4 100644
--- a/drivers/i2c/mxc_i2c.c
+++ b/drivers/i2c/mxc_i2c.c
@@ -16,6 +16,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c
index aaf2d10f6fdf..db0812c17ec1 100644
--- a/drivers/i2c/omap24xx_i2c.c
+++ b/drivers/i2c/omap24xx_i2c.c
@@ -42,6 +42,7 @@
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/printk.h>
 
diff --git a/drivers/input/keyboard-uclass.c b/drivers/input/keyboard-uclass.c
index a265c02efe70..2007032e10cd 100644
--- a/drivers/input/keyboard-uclass.c
+++ b/drivers/input/keyboard-uclass.c
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <keyboard.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 static int keyboard_start(struct stdio_dev *sdev)
diff --git a/drivers/mailbox/k3-sec-proxy.c b/drivers/mailbox/k3-sec-proxy.c
index b9337f2db5ce..1edb7dfd56cc 100644
--- a/drivers/mailbox/k3-sec-proxy.c
+++ b/drivers/mailbox/k3-sec-proxy.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
diff --git a/drivers/memory/ti-aemif.c b/drivers/memory/ti-aemif.c
index 6250e274e12f..b5fd376862c8 100644
--- a/drivers/memory/ti-aemif.c
+++ b/drivers/memory/ti-aemif.c
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/ti-common/ti-aemif.h>
 
 #define AEMIF_WAITCYCLE_CONFIG		(CONFIG_AEMIF_CNTRL_BASE + 0x4)
diff --git a/drivers/misc/altera_sysid.c b/drivers/misc/altera_sysid.c
index c6502650b75d..600315be5eac 100644
--- a/drivers/misc/altera_sysid.c
+++ b/drivers/misc/altera_sysid.c
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <misc.h>
+#include <stdio.h>
 #include <linux/time.h>
 #include <asm/io.h>
 
diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c
index 881dce016fa1..a3ae33acd053 100644
--- a/drivers/misc/cros_ec.c
+++ b/drivers/misc/cros_ec.c
@@ -25,6 +25,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <spi.h>
+#include <stdio.h>
 #include <time.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
diff --git a/drivers/misc/cros_ec_i2c.c b/drivers/misc/cros_ec_i2c.c
index 6a5dcc016f20..e3678d0213a0 100644
--- a/drivers/misc/cros_ec_i2c.c
+++ b/drivers/misc/cros_ec_i2c.c
@@ -17,6 +17,7 @@
 #include <i2c.h>
 #include <cros_ec.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #ifdef DEBUG_TRACE
diff --git a/drivers/misc/cros_ec_lpc.c b/drivers/misc/cros_ec_lpc.c
index 0a4f45b2e89b..caca59471f17 100644
--- a/drivers/misc/cros_ec_lpc.c
+++ b/drivers/misc/cros_ec_lpc.c
@@ -17,6 +17,7 @@
 #include <command.h>
 #include <cros_ec.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 
diff --git a/drivers/misc/cros_ec_sandbox.c b/drivers/misc/cros_ec_sandbox.c
index 81d2191542c3..308b34e2f4bf 100644
--- a/drivers/misc/cros_ec_sandbox.c
+++ b/drivers/misc/cros_ec_sandbox.c
@@ -13,6 +13,7 @@
 #include <hash.h>
 #include <log.h>
 #include <os.h>
+#include <stdio.h>
 #include <time.h>
 #include <linux/string.h>
 #include <u-boot/sha256.h>
diff --git a/drivers/misc/cros_ec_spi.c b/drivers/misc/cros_ec_spi.c
index 357e31f7edc3..a94e216cac7f 100644
--- a/drivers/misc/cros_ec_spi.c
+++ b/drivers/misc/cros_ec_spi.c
@@ -18,6 +18,7 @@
 #include <errno.h>
 #include <log.h>
 #include <spi.h>
+#include <stdio.h>
 #include <time.h>
 #include <linux/string.h>
 
diff --git a/drivers/misc/ds4510.c b/drivers/misc/ds4510.c
index d914123fdf9f..bd2818197c61 100644
--- a/drivers/misc/ds4510.c
+++ b/drivers/misc/ds4510.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <i2c.h>
 #include <command.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 #include "ds4510.h"
diff --git a/drivers/misc/fsl_ifc.c b/drivers/misc/fsl_ifc.c
index 8fdaacd5e04c..27666a71fb36 100644
--- a/drivers/misc/fsl_ifc.c
+++ b/drivers/misc/fsl_ifc.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <fsl_ifc.h>
 #include <part.h>
+#include <stdio.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 85cc3c26b2ef..be6d03444d5f 100644
--- a/drivers/misc/fsl_iim.c
+++ b/drivers/misc/fsl_iim.c
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <fuse.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
diff --git a/drivers/misc/fsl_portals.c b/drivers/misc/fsl_portals.c
index 2c8cec7c421a..25508cfe672b 100644
--- a/drivers/misc/fsl_portals.c
+++ b/drivers/misc/fsl_portals.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <linux/string.h>
diff --git a/drivers/misc/fsl_sec_mon.c b/drivers/misc/fsl_sec_mon.c
index 76aae5a74742..039e3b77f710 100644
--- a/drivers/misc/fsl_sec_mon.c
+++ b/drivers/misc/fsl_sec_mon.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <fsl_sec_mon.h>
+#include <stdio.h>
 #ifdef CONFIG_PPC
 #include <asm/ppc.h>
 #endif
diff --git a/drivers/misc/gpio_led.c b/drivers/misc/gpio_led.c
index b913069849ac..acf3ec8c017f 100644
--- a/drivers/misc/gpio_led.c
+++ b/drivers/misc/gpio_led.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <status_led.h>
+#include <stdio.h>
 #include <asm/gpio.h>
 
 #ifndef CONFIG_GPIO_LED_INVERTED_TABLE
diff --git a/drivers/misc/ihs_fpga.c b/drivers/misc/ihs_fpga.c
index 9d9d52e978c0..6a61a22c071f 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 <stdio.h>
 #include <asm/gpio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
diff --git a/drivers/misc/imx8/fuse.c b/drivers/misc/imx8/fuse.c
index 38111c525485..e25d68e6a2e8 100644
--- a/drivers/misc/imx8/fuse.c
+++ b/drivers/misc/imx8/fuse.c
@@ -7,6 +7,7 @@
 #include <console.h>
 #include <errno.h>
 #include <fuse.h>
+#include <stdio.h>
 #include <asm/arch/sci/sci.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/global_data.h>
diff --git a/drivers/misc/imx8/scu.c b/drivers/misc/imx8/scu.c
index fc9320fa9932..ce1a35a552b3 100644
--- a/drivers/misc/imx8/scu.c
+++ b/drivers/misc/imx8/scu.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm.h>
diff --git a/drivers/misc/imx8/scu_api.c b/drivers/misc/imx8/scu_api.c
index 27ecce710fcb..bc0d8f7ae5c5 100644
--- a/drivers/misc/imx8/scu_api.c
+++ b/drivers/misc/imx8/scu_api.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <hang.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm.h>
diff --git a/drivers/misc/k3_avs.c b/drivers/misc/k3_avs.c
index 408c89315a9f..3468f02208e1 100644
--- a/drivers/misc/k3_avs.c
+++ b/drivers/misc/k3_avs.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <i2c.h>
 #include <k3-avs.h>
diff --git a/drivers/misc/mc9sdz60.c b/drivers/misc/mc9sdz60.c
index e68a056a559d..7f9f9223f719 100644
--- a/drivers/misc/mc9sdz60.c
+++ b/drivers/misc/mc9sdz60.c
@@ -6,6 +6,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <stdio.h>
 #include <linux/errno.h>
 #include <linux/types.h>
 #include <i2c.h>
diff --git a/drivers/misc/mxc_ocotp.c b/drivers/misc/mxc_ocotp.c
index 926c62c8a14c..5d7a74afe2c2 100644
--- a/drivers/misc/mxc_ocotp.c
+++ b/drivers/misc/mxc_ocotp.c
@@ -13,6 +13,7 @@
 
 #include <common.h>
 #include <fuse.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
diff --git a/drivers/misc/mxs_ocotp.c b/drivers/misc/mxs_ocotp.c
index facc720c8ef2..fa185612b2c1 100644
--- a/drivers/misc/mxs_ocotp.c
+++ b/drivers/misc/mxs_ocotp.c
@@ -13,6 +13,7 @@
 
 #include <common.h>
 #include <fuse.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
diff --git a/drivers/misc/qfw.c b/drivers/misc/qfw.c
index fed08422419d..5c3ff8e52f67 100644
--- a/drivers/misc/qfw.c
+++ b/drivers/misc/qfw.c
@@ -9,6 +9,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <qfw.h>
+#include <stdio.h>
 #include <asm/io.h>
 #ifdef CONFIG_GENERATE_ACPI_TABLE
 #include <asm/tables.h>
diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c
index adaa51ce99b5..d5c1a62ba644 100644
--- a/drivers/misc/rockchip-efuse.c
+++ b/drivers/misc/rockchip-efuse.c
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <command.h>
 #include <display_options.h>
diff --git a/drivers/misc/rockchip-otp.c b/drivers/misc/rockchip-otp.c
index bdd443b3db9b..482de69070da 100644
--- a/drivers/misc/rockchip-otp.c
+++ b/drivers/misc/rockchip-otp.c
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <command.h>
 #include <dm.h>
diff --git a/drivers/misc/sifive-otp.c b/drivers/misc/sifive-otp.c
index 7d502febea4f..799d75b08738 100644
--- a/drivers/misc/sifive-otp.c
+++ b/drivers/misc/sifive-otp.c
@@ -18,6 +18,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <dm/device.h>
 #include <dm/read.h>
 #include <linux/bitops.h>
diff --git a/drivers/misc/spltest_sandbox.c b/drivers/misc/spltest_sandbox.c
index 999031625b54..8a5e6b1975ec 100644
--- a/drivers/misc/spltest_sandbox.c
+++ b/drivers/misc/spltest_sandbox.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <dt-structs.h>
+#include <stdio.h>
 
 static int sandbox_spl_probe(struct udevice *dev)
 {
diff --git a/drivers/misc/stm32mp_fuse.c b/drivers/misc/stm32mp_fuse.c
index 0eed3459734b..530a7824e3ec 100644
--- a/drivers/misc/stm32mp_fuse.c
+++ b/drivers/misc/stm32mp_fuse.c
@@ -8,6 +8,7 @@
 #include <fuse.h>
 #include <misc.h>
 #include <errno.h>
+#include <stdio.h>
 #include <dm/device.h>
 #include <dm/uclass.h>
 #include <power/stpmic1.h>
diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c
index 96cbb2a2c51b..1781d7a3f914 100644
--- a/drivers/mmc/atmel_sdhci.c
+++ b/drivers/mmc/atmel_sdhci.c
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <malloc.h>
 #include <sdhci.h>
+#include <stdio.h>
 #include <asm/arch/clk.h>
 #include <asm/global_data.h>
 
diff --git a/drivers/mmc/bcm2835_sdhost.c b/drivers/mmc/bcm2835_sdhost.c
index a138165855d4..cf362f620ae1 100644
--- a/drivers/mmc/bcm2835_sdhost.c
+++ b/drivers/mmc/bcm2835_sdhost.c
@@ -33,6 +33,7 @@
 #include <common.h>
 #include <dm.h>
 #include <mmc.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/arch/msg.h>
 #include <asm/arch/mbox.h>
diff --git a/drivers/mmc/davinci_mmc.c b/drivers/mmc/davinci_mmc.c
index 50731f3fe7b0..f4edff7566e7 100644
--- a/drivers/mmc/davinci_mmc.c
+++ b/drivers/mmc/davinci_mmc.c
@@ -13,6 +13,7 @@
 #include <command.h>
 #include <part.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/sdmmc_defs.h>
 #include <asm-generic/gpio.h>
diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c
index 499fafe8f5ef..55d3ad1692c5 100644
--- a/drivers/mmc/exynos_dw_mmc.c
+++ b/drivers/mmc/exynos_dw_mmc.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dwmmc.h>
 #include <fdtdec.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index a7c28f128e0f..8f0bce6d5659 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -20,6 +20,7 @@
 #include <malloc.h>
 #include <fsl_esdhc.h>
 #include <fdt_support.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c
index ebf64ab5c448..b8f89affc33e 100644
--- a/drivers/mmc/fsl_esdhc_imx.c
+++ b/drivers/mmc/fsl_esdhc_imx.c
@@ -20,6 +20,7 @@
 #include <log.h>
 #include <mmc.h>
 #include <part.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/drivers/mmc/fsl_esdhc_spl.c b/drivers/mmc/fsl_esdhc_spl.c
index 033fd0edd8f4..4c725436de45 100644
--- a/drivers/mmc/fsl_esdhc_spl.c
+++ b/drivers/mmc/fsl_esdhc_spl.c
@@ -8,6 +8,7 @@
 #include <hang.h>
 #include <mmc.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 /*
diff --git a/drivers/mmc/ftsdc010_mci.c b/drivers/mmc/ftsdc010_mci.c
index b26571e0a695..cc0348d46633 100644
--- a/drivers/mmc/ftsdc010_mci.c
+++ b/drivers/mmc/ftsdc010_mci.c
@@ -15,6 +15,7 @@
 #include <malloc.h>
 #include <part.h>
 #include <mmc.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
diff --git a/drivers/mmc/gen_atmel_mci.c b/drivers/mmc/gen_atmel_mci.c
index 44c9f1288b35..19ba2b51182f 100644
--- a/drivers/mmc/gen_atmel_mci.c
+++ b/drivers/mmc/gen_atmel_mci.c
@@ -16,6 +16,7 @@
 #include <mmc.h>
 #include <part.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
diff --git a/drivers/mmc/iproc_sdhci.c b/drivers/mmc/iproc_sdhci.c
index ef7d8f8b41e8..cd9d87be98b7 100644
--- a/drivers/mmc/iproc_sdhci.c
+++ b/drivers/mmc/iproc_sdhci.c
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <malloc.h>
 #include <sdhci.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/drivers/mmc/kona_sdhci.c b/drivers/mmc/kona_sdhci.c
index 2bbe673b9129..dc7a203f1f0f 100644
--- a/drivers/mmc/kona_sdhci.c
+++ b/drivers/mmc/kona_sdhci.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <malloc.h>
 #include <sdhci.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/kona-common/clk.h>
diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c
index 90690c8d1e36..9c30e01028b7 100644
--- a/drivers/mmc/mmc-uclass.c
+++ b/drivers/mmc/mmc-uclass.c
@@ -9,6 +9,7 @@
 #include <log.h>
 #include <mmc.h>
 #include <dm.h>
+#include <stdio.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
 #include <dm/lists.h>
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index e9c181555d01..e5a712fbf1b0 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -13,6 +13,7 @@
 #include <command.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/u-boot.h>
 #include <dm/device-internal.h>
diff --git a/drivers/mmc/mmc_legacy.c b/drivers/mmc/mmc_legacy.c
index a05da6c2e882..da2941bada8b 100644
--- a/drivers/mmc/mmc_legacy.c
+++ b/drivers/mmc/mmc_legacy.c
@@ -9,6 +9,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <mmc.h>
+#include <stdio.h>
 #include "mmc_private.h"
 
 static struct list_head mmc_devices;
diff --git a/drivers/mmc/mmc_write.c b/drivers/mmc/mmc_write.c
index 6a4453ca02e7..68d872fd142b 100644
--- a/drivers/mmc/mmc_write.c
+++ b/drivers/mmc/mmc_write.c
@@ -12,6 +12,7 @@
 #include <dm.h>
 #include <part.h>
 #include <div64.h>
+#include <stdio.h>
 #include <linux/math64.h>
 #include "mmc_private.h"
 
diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c
index 27d8fb84fab5..6e61ef6b8585 100644
--- a/drivers/mmc/msm_sdhci.c
+++ b/drivers/mmc/msm_sdhci.c
@@ -12,6 +12,7 @@
 #include <dm.h>
 #include <malloc.h>
 #include <sdhci.h>
+#include <stdio.h>
 #include <wait_bit.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c
index 356d161d51fe..775f2041a1ac 100644
--- a/drivers/mmc/mv_sdhci.c
+++ b/drivers/mmc/mv_sdhci.c
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <malloc.h>
 #include <sdhci.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/mbus.h>
 #include <linux/string.h>
diff --git a/drivers/mmc/mvebu_mmc.c b/drivers/mmc/mvebu_mmc.c
index b33cd40faee2..d586342a58d8 100644
--- a/drivers/mmc/mvebu_mmc.c
+++ b/drivers/mmc/mvebu_mmc.c
@@ -13,6 +13,7 @@
 #include <malloc.h>
 #include <part.h>
 #include <mmc.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/mmc/mxcmmc.c b/drivers/mmc/mxcmmc.c
index 00720c64084a..01d57d4c778c 100644
--- a/drivers/mmc/mxcmmc.c
+++ b/drivers/mmc/mxcmmc.c
@@ -23,6 +23,7 @@
 #include <part.h>
 #include <malloc.h>
 #include <mmc.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/u-boot.h>
 #include <linux/errno.h>
diff --git a/drivers/mmc/mxsmmc.c b/drivers/mmc/mxsmmc.c
index 4df872cc3ecf..a54e1e128359 100644
--- a/drivers/mmc/mxsmmc.c
+++ b/drivers/mmc/mxsmmc.c
@@ -24,6 +24,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <mmc.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c
index c54edd9c8d1f..95d3cad4d0c5 100644
--- a/drivers/mmc/omap_hsmmc.c
+++ b/drivers/mmc/omap_hsmmc.c
@@ -34,6 +34,7 @@
 #if defined(CONFIG_OMAP54XX) || defined(CONFIG_OMAP44XX)
 #include <palmas.h>
 #endif
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/drivers/mmc/pic32_sdhci.c b/drivers/mmc/pic32_sdhci.c
index 963809fb2aee..009bf00a7f81 100644
--- a/drivers/mmc/pic32_sdhci.c
+++ b/drivers/mmc/pic32_sdhci.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <sdhci.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/errno.h>
 #include <mach/pic32.h>
diff --git a/drivers/mmc/pxa_mmc_gen.c b/drivers/mmc/pxa_mmc_gen.c
index 7d88ca015c12..854d346a7469 100644
--- a/drivers/mmc/pxa_mmc_gen.c
+++ b/drivers/mmc/pxa_mmc_gen.c
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/regs-mmc.h>
 #include <linux/delay.h>
diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c
index b073f1a08d4a..f8def838ca21 100644
--- a/drivers/mmc/rockchip_sdhci.c
+++ b/drivers/mmc/rockchip_sdhci.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <dt-structs.h>
+#include <stdio.h>
 #include <linux/err.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
diff --git a/drivers/mmc/rpmb.c b/drivers/mmc/rpmb.c
index 7a596b2f19ba..0d1b3eb875b3 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 <stdio.h>
 #include <linux/string.h>
 #include <u-boot/sha256.h>
 #include "mmc_private.h"
diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c
index 240db8a75697..e06662141f54 100644
--- a/drivers/mmc/s5p_sdhci.c
+++ b/drivers/mmc/s5p_sdhci.c
@@ -10,6 +10,7 @@
 #include <malloc.h>
 #include <sdhci.h>
 #include <fdtdec.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/libfdt.h>
 #include <asm/gpio.h>
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index e9c7207fa362..9cfe0fcb9a55 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -15,6 +15,7 @@
 #include <malloc.h>
 #include <mmc.h>
 #include <sdhci.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <linux/bitops.h>
diff --git a/drivers/mmc/sh_mmcif.c b/drivers/mmc/sh_mmcif.c
index 5f25acd55db9..e9ff31b4afe5 100644
--- a/drivers/mmc/sh_mmcif.c
+++ b/drivers/mmc/sh_mmcif.c
@@ -8,6 +8,7 @@
 #include <config.h>
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <command.h>
 #include <mmc.h>
diff --git a/drivers/mmc/sh_sdhi.c b/drivers/mmc/sh_sdhi.c
index a279bc69aaf3..97fb1ee48ecc 100644
--- a/drivers/mmc/sh_sdhi.c
+++ b/drivers/mmc/sh_sdhi.c
@@ -15,6 +15,7 @@
 #include <mmc.h>
 #include <dm.h>
 #include <part.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
diff --git a/drivers/mmc/socfpga_dw_mmc.c b/drivers/mmc/socfpga_dw_mmc.c
index 16a6e3056dc2..1c3d996bcd52 100644
--- a/drivers/mmc/socfpga_dw_mmc.c
+++ b/drivers/mmc/socfpga_dw_mmc.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/clock_manager.h>
 #include <asm/arch/system_manager.h>
 #include <clk.h>
diff --git a/drivers/mmc/stm32_sdmmc2.c b/drivers/mmc/stm32_sdmmc2.c
index 4736cae76890..0bc2ecee69be 100644
--- a/drivers/mmc/stm32_sdmmc2.c
+++ b/drivers/mmc/stm32_sdmmc2.c
@@ -11,6 +11,7 @@
 #include <fdtdec.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 #include <asm/cache.h>
 #include <linux/bitops.h>
diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c
index 96d8f18d0f5a..4152b7be0e42 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 <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/drivers/mmc/tegra_mmc.c b/drivers/mmc/tegra_mmc.c
index 94e062c12464..e7a06ec79492 100644
--- a/drivers/mmc/tegra_mmc.c
+++ b/drivers/mmc/tegra_mmc.c
@@ -12,6 +12,7 @@
 #include <errno.h>
 #include <log.h>
 #include <mmc.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
diff --git a/drivers/mmc/xenon_sdhci.c b/drivers/mmc/xenon_sdhci.c
index 57fe6a4df23d..1336d9193357 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 <stdio.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c
index 43b9f215229a..01e75e2e770b 100644
--- a/drivers/mmc/zynq_sdhci.c
+++ b/drivers/mmc/zynq_sdhci.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include "mmc_private.h"
 #include <log.h>
diff --git a/drivers/mtd/altera_qspi.c b/drivers/mtd/altera_qspi.c
index c406963d7573..9722f32a533f 100644
--- a/drivers/mtd/altera_qspi.c
+++ b/drivers/mtd/altera_qspi.c
@@ -11,6 +11,7 @@
 #include <flash.h>
 #include <log.h>
 #include <mtd.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c
index 21cdf62478a2..dcbba181c60b 100644
--- a/drivers/mtd/cfi_flash.c
+++ b/drivers/mtd/cfi_flash.c
@@ -26,6 +26,7 @@
 #include <init.h>
 #include <irq_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/processor.h>
diff --git a/drivers/mtd/jedec_flash.c b/drivers/mtd/jedec_flash.c
index 859c7fd4ec24..790373dac8fc 100644
--- a/drivers/mtd/jedec_flash.c
+++ b/drivers/mtd/jedec_flash.c
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <flash.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/byteorder.h>
diff --git a/drivers/mtd/mtd_uboot.c b/drivers/mtd/mtd_uboot.c
index 16fe4ecdb6e1..ebdec0dd6c56 100644
--- a/drivers/mtd/mtd_uboot.c
+++ b/drivers/mtd/mtd_uboot.c
@@ -7,6 +7,7 @@
 #include <env.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/device.h>
 #include <dm/uclass-internal.h>
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c
index ef3eb456ac87..2f882b7df079 100644
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -21,6 +21,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/bug.h>
 #include <linux/errno.h>
 #include <linux/compat.h>
diff --git a/drivers/mtd/mw_eeprom.c b/drivers/mtd/mw_eeprom.c
index 9837733beeed..5d1a35732417 100644
--- a/drivers/mtd/mw_eeprom.c
+++ b/drivers/mtd/mw_eeprom.c
@@ -2,6 +2,7 @@
 
 #include <common.h>
 #include <eeprom.h>
+#include <stdio.h>
 #include <asm/ic/ssi.h>
 #include <linux/delay.h>
 
diff --git a/drivers/mtd/nand/raw/arasan_nfc.c b/drivers/mtd/nand/raw/arasan_nfc.c
index 9733e6666768..978174ffa8d8 100644
--- a/drivers/mtd/nand/raw/arasan_nfc.c
+++ b/drivers/mtd/nand/raw/arasan_nfc.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
diff --git a/drivers/mtd/nand/raw/fsl_elbc_nand.c b/drivers/mtd/nand/raw/fsl_elbc_nand.c
index 32ee212694a5..99749f9e50a9 100644
--- a/drivers/mtd/nand/raw/fsl_elbc_nand.c
+++ b/drivers/mtd/nand/raw/fsl_elbc_nand.c
@@ -11,6 +11,7 @@
 #include <command.h>
 #include <malloc.h>
 #include <nand.h>
+#include <stdio.h>
 #include <time.h>
 #include <dm/devres.h>
 
diff --git a/drivers/mtd/nand/raw/fsl_elbc_spl.c b/drivers/mtd/nand/raw/fsl_elbc_spl.c
index a62ab69ee1e0..e8b9f40f3b0a 100644
--- a/drivers/mtd/nand/raw/fsl_elbc_spl.c
+++ b/drivers/mtd/nand/raw/fsl_elbc_spl.c
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/fsl_lbc.h>
 #include <nand.h>
diff --git a/drivers/mtd/nand/raw/fsl_ifc_nand.c b/drivers/mtd/nand/raw/fsl_ifc_nand.c
index 964a329023d4..33c80d032091 100644
--- a/drivers/mtd/nand/raw/fsl_ifc_nand.c
+++ b/drivers/mtd/nand/raw/fsl_ifc_nand.c
@@ -10,6 +10,7 @@
 #include <command.h>
 #include <malloc.h>
 #include <nand.h>
+#include <stdio.h>
 #include <time.h>
 #include <dm/devres.h>
 
diff --git a/drivers/mtd/nand/raw/fsl_ifc_spl.c b/drivers/mtd/nand/raw/fsl_ifc_spl.c
index b7e37416a49b..cf09fce3fbbf 100644
--- a/drivers/mtd/nand/raw/fsl_ifc_spl.c
+++ b/drivers/mtd/nand/raw/fsl_ifc_spl.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <fsl_ifc.h>
 #include <part.h>
diff --git a/drivers/mtd/nand/raw/fsmc_nand.c b/drivers/mtd/nand/raw/fsmc_nand.c
index a5ef0ae75e0e..1feaeadd4b72 100644
--- a/drivers/mtd/nand/raw/fsmc_nand.c
+++ b/drivers/mtd/nand/raw/fsmc_nand.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <nand.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
diff --git a/drivers/mtd/nand/raw/mxs_nand.c b/drivers/mtd/nand/raw/mxs_nand.c
index 3ba3afbbf291..d59528e27fd3 100644
--- a/drivers/mtd/nand/raw/mxs_nand.c
+++ b/drivers/mtd/nand/raw/mxs_nand.c
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <linux/mtd/rawnand.h>
 #include <linux/sizes.h>
diff --git a/drivers/mtd/nand/raw/mxs_nand_spl.c b/drivers/mtd/nand/raw/mxs_nand_spl.c
index 2e1f4c522a6a..bc3bc836434a 100644
--- a/drivers/mtd/nand/raw/mxs_nand_spl.c
+++ b/drivers/mtd/nand/raw/mxs_nand_spl.c
@@ -9,6 +9,7 @@
 #include <nand.h>
 #include <malloc.h>
 #include <mxs_nand.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <linux/bitops.h>
diff --git a/drivers/mtd/nand/raw/nand_util.c b/drivers/mtd/nand/raw/nand_util.c
index 264a1efada9b..162f6fe1f0cf 100644
--- a/drivers/mtd/nand/raw/nand_util.c
+++ b/drivers/mtd/nand/raw/nand_util.c
@@ -21,6 +21,7 @@
 #include <common.h>
 #include <command.h>
 #include <log.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <malloc.h>
 #include <memalign.h>
diff --git a/drivers/mtd/nand/raw/omap_elm.c b/drivers/mtd/nand/raw/omap_elm.c
index 35c6dd1f1bcc..87368743a9a0 100644
--- a/drivers/mtd/nand/raw/omap_elm.c
+++ b/drivers/mtd/nand/raw/omap_elm.c
@@ -13,6 +13,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <linux/mtd/omap_elm.h>
diff --git a/drivers/mtd/nand/raw/omap_gpmc.c b/drivers/mtd/nand/raw/omap_gpmc.c
index 9fef305da1c6..2863b1de1b63 100644
--- a/drivers/mtd/nand/raw/omap_gpmc.c
+++ b/drivers/mtd/nand/raw/omap_gpmc.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <asm/arch/mem.h>
diff --git a/drivers/mtd/nand/raw/sunxi_nand_spl.c b/drivers/mtd/nand/raw/sunxi_nand_spl.c
index 942f2366849e..b098ebef8f39 100644
--- a/drivers/mtd/nand/raw/sunxi_nand_spl.c
+++ b/drivers/mtd/nand/raw/sunxi_nand_spl.c
@@ -4,6 +4,7 @@
  * Copyright (c) 2015, AW-SOM Technologies <www.aw-som.com>
  */
 
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/io.h>
 #include <common.h>
diff --git a/drivers/mtd/nand/raw/tegra_nand.c b/drivers/mtd/nand/raw/tegra_nand.c
index 0b81fe1d4874..ace59249b9ef 100644
--- a/drivers/mtd/nand/raw/tegra_nand.c
+++ b/drivers/mtd/nand/raw/tegra_nand.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <memalign.h>
diff --git a/drivers/mtd/nand/raw/vf610_nfc.c b/drivers/mtd/nand/raw/vf610_nfc.c
index 457efcc23e6e..708653ab1621 100644
--- a/drivers/mtd/nand/raw/vf610_nfc.c
+++ b/drivers/mtd/nand/raw/vf610_nfc.c
@@ -23,6 +23,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <time.h>
 #include <dm/device_compat.h>
 #include <linux/printk.h>
diff --git a/drivers/mtd/nand/raw/zynq_nand.c b/drivers/mtd/nand/raw/zynq_nand.c
index 37a6835060c4..47435cfdccc3 100644
--- a/drivers/mtd/nand/raw/zynq_nand.c
+++ b/drivers/mtd/nand/raw/zynq_nand.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
diff --git a/drivers/mtd/onenand/onenand_uboot.c b/drivers/mtd/onenand/onenand_uboot.c
index b6ec9eecda6a..c76ae04a1efb 100644
--- a/drivers/mtd/onenand/onenand_uboot.c
+++ b/drivers/mtd/onenand/onenand_uboot.c
@@ -15,6 +15,7 @@
 
 #include <common.h>
 #include <display_options.h>
+#include <stdio.h>
 #include <linux/compat.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/onenand.h>
diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c
index 27143d4d0a5c..be6c8e1def39 100644
--- a/drivers/mtd/onenand/samsung.c
+++ b/drivers/mtd/onenand/samsung.c
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/compat.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/onenand.h>
diff --git a/drivers/mtd/pic32_flash.c b/drivers/mtd/pic32_flash.c
index 71f22406badb..a50aec7d77e4 100644
--- a/drivers/mtd/pic32_flash.c
+++ b/drivers/mtd/pic32_flash.c
@@ -12,6 +12,7 @@
 #include <flash.h>
 #include <init.h>
 #include <irq_func.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
 #include <linux/string.h>
diff --git a/drivers/mtd/renesas_rpc_hf.c b/drivers/mtd/renesas_rpc_hf.c
index f15228741ffe..1398a474b218 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 <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <clk.h>
diff --git a/drivers/mtd/spi/fsl_espi_spl.c b/drivers/mtd/spi/fsl_espi_spl.c
index 9c9975748845..5a3b5abd5c7d 100644
--- a/drivers/mtd/spi/fsl_espi_spl.c
+++ b/drivers/mtd/spi/fsl_espi_spl.c
@@ -8,6 +8,7 @@
 #include <hang.h>
 #include <spi_flash.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #define ESPI_BOOT_IMAGE_SIZE	0x48
diff --git a/drivers/mtd/spi/sandbox.c b/drivers/mtd/spi/sandbox.c
index a63e92d0340c..e18326b56921 100644
--- a/drivers/mtd/spi/sandbox.c
+++ b/drivers/mtd/spi/sandbox.c
@@ -16,6 +16,7 @@
 #include <malloc.h>
 #include <spi.h>
 #include <os.h>
+#include <stdio.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 11a396f11a20..90f09a5fa1d5 100644
--- a/drivers/mtd/spi/sf_dataflash.c
+++ b/drivers/mtd/spi/sf_dataflash.c
@@ -16,6 +16,7 @@
 #include <spi.h>
 #include <spi_flash.h>
 #include <div64.h>
+#include <stdio.h>
 #include <time.h>
 #include <linux/delay.h>
 #include <linux/err.h>
diff --git a/drivers/mtd/spi/sf_mtd.c b/drivers/mtd/spi/sf_mtd.c
index 1d8276d59d6e..d41811ecdae9 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 <stdio.h>
 #include <linux/errno.h>
 #include <linux/mtd/mtd.h>
 #include <spi_flash.h>
diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c
index b37fed685770..8de8f94d2f3e 100644
--- a/drivers/mtd/spi/sf_probe.c
+++ b/drivers/mtd/spi/sf_probe.c
@@ -14,6 +14,7 @@
 #include <malloc.h>
 #include <spi.h>
 #include <spi_flash.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #include "sf_internal.h"
diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c
index d236f860df5b..fd49d6ae4d19 100644
--- a/drivers/mtd/spi/spi-nor-core.c
+++ b/drivers/mtd/spi/spi-nor-core.c
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <display_options.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
diff --git a/drivers/mtd/spi/spi-nor-tiny.c b/drivers/mtd/spi/spi-nor-tiny.c
index 91f98aac2d18..0cddd1068448 100644
--- a/drivers/mtd/spi/spi-nor-tiny.c
+++ b/drivers/mtd/spi/spi-nor-tiny.c
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
diff --git a/drivers/mtd/st_smi.c b/drivers/mtd/st_smi.c
index 970c6ee70432..d53466059905 100644
--- a/drivers/mtd/st_smi.c
+++ b/drivers/mtd/st_smi.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <flash.h>
+#include <stdio.h>
 #include <time.h>
 #include <linux/delay.h>
 #include <linux/err.h>
diff --git a/drivers/mtd/stm32_flash.c b/drivers/mtd/stm32_flash.c
index 95afa2d6bc72..703afc7a07eb 100644
--- a/drivers/mtd/stm32_flash.c
+++ b/drivers/mtd/stm32_flash.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <flash.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/stm32.h>
 #include "stm32_flash.h"
diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c
index 393419bd1376..e9c50a4852b7 100644
--- a/drivers/mtd/ubi/debug.c
+++ b/drivers/mtd/ubi/debug.c
@@ -7,6 +7,7 @@
 
 #include <hexdump.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <ubi_uboot.h>
 #include <linux/printk.h>
 #include <linux/string.h>
diff --git a/drivers/net/ag7xxx.c b/drivers/net/ag7xxx.c
index 7171479c80de..f6c8b57d93d4 100644
--- a/drivers/net/ag7xxx.c
+++ b/drivers/net/ag7xxx.c
@@ -15,6 +15,7 @@
 #include <miiphy.h>
 #include <malloc.h>
 #include <net.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c
index e97937628004..0c5c2e3053dc 100644
--- a/drivers/net/altera_tse.c
+++ b/drivers/net/altera_tse.c
@@ -17,6 +17,7 @@
 #include <memalign.h>
 #include <miiphy.h>
 #include <net.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/drivers/net/armada100_fec.c b/drivers/net/armada100_fec.c
index 375f1b139999..87c01e0e3cd2 100644
--- a/drivers/net/armada100_fec.c
+++ b/drivers/net/armada100_fec.c
@@ -15,6 +15,7 @@
 #include <malloc.h>
 #include <miiphy.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/types.h>
 #include <asm/byteorder.h>
 #include <asm/u-boot.h>
diff --git a/drivers/net/at91_emac.c b/drivers/net/at91_emac.c
index 62263cb435a1..d49f9216c7de 100644
--- a/drivers/net/at91_emac.c
+++ b/drivers/net/at91_emac.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/at91_emac.h>
diff --git a/drivers/net/ax88180.c b/drivers/net/ax88180.c
index b971c16a6543..5783c42aa234 100644
--- a/drivers/net/ax88180.c
+++ b/drivers/net/ax88180.c
@@ -42,6 +42,7 @@
 #include <log.h>
 #include <net.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
 #include <linux/mii.h>
diff --git a/drivers/net/bcm-sf2-eth-gmac.c b/drivers/net/bcm-sf2-eth-gmac.c
index 3ab5841a7d0f..67c8498f0f63 100644
--- a/drivers/net/bcm-sf2-eth-gmac.c
+++ b/drivers/net/bcm-sf2-eth-gmac.c
@@ -8,6 +8,7 @@
 #define DEBUG
 #include <linux/printk.h>
 #endif
+#include <stdio.h>
 #include <linux/string.h>
 #endif
 
diff --git a/drivers/net/bcm-sf2-eth.c b/drivers/net/bcm-sf2-eth.c
index 2e8642086331..21266d66dd64 100644
--- a/drivers/net/bcm-sf2-eth.c
+++ b/drivers/net/bcm-sf2-eth.c
@@ -8,6 +8,7 @@
 #include <malloc.h>
 #include <net.h>
 #include <config.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
 #include <linux/printk.h>
diff --git a/drivers/net/bcmgenet.c b/drivers/net/bcmgenet.c
index 11b6148ab632..ed17df0392b2 100644
--- a/drivers/net/bcmgenet.c
+++ b/drivers/net/bcmgenet.c
@@ -17,6 +17,7 @@
  */
 
 #include <log.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <clk.h>
diff --git a/drivers/net/calxedaxgmac.c b/drivers/net/calxedaxgmac.c
index ff8131fafc2f..0fcbcf919a02 100644
--- a/drivers/net/calxedaxgmac.c
+++ b/drivers/net/calxedaxgmac.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <malloc.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/compiler.h>
 #include <linux/delay.h>
diff --git a/drivers/net/dc2114x.c b/drivers/net/dc2114x.c
index fea6ad77d0a5..9baef753b602 100644
--- a/drivers/net/dc2114x.c
+++ b/drivers/net/dc2114x.c
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0+
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <malloc.h>
diff --git a/drivers/net/designware.c b/drivers/net/designware.c
index f325bf237315..2abe901a8559 100644
--- a/drivers/net/designware.c
+++ b/drivers/net/designware.c
@@ -19,6 +19,7 @@
 #include <net.h>
 #include <pci.h>
 #include <reset.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <asm/u-boot.h>
diff --git a/drivers/net/dm9000x.c b/drivers/net/dm9000x.c
index 928c6d858561..33cd6c72e19d 100644
--- a/drivers/net/dm9000x.c
+++ b/drivers/net/dm9000x.c
@@ -52,6 +52,7 @@ TODO: external MII is not functional, only internal at the moment.
 #include <common.h>
 #include <command.h>
 #include <net.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 #include <dm9000.h>
diff --git a/drivers/net/dnet.c b/drivers/net/dnet.c
index 4efb8199dfbb..1233d7814dde 100644
--- a/drivers/net/dnet.c
+++ b/drivers/net/dnet.c
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c
index 9613af44422b..151ae3e038d1 100644
--- a/drivers/net/e1000.c
+++ b/drivers/net/e1000.c
@@ -39,6 +39,7 @@ tested on both gig copper and gig fiber boards
 #include <memalign.h>
 #include <net.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/drivers/net/e1000.h b/drivers/net/e1000.h
index 19ed4777d9ab..641502ea9286 100644
--- a/drivers/net/e1000.h
+++ b/drivers/net/e1000.h
@@ -18,6 +18,7 @@
 #ifndef _E1000_HW_H_
 #define _E1000_HW_H_
 
+#include <stdio.h>
 #include <linux/list.h>
 #include <malloc.h>
 #include <net.h>
diff --git a/drivers/net/e1000_spi.c b/drivers/net/e1000_spi.c
index ed3e987b12bd..6af5b32e413a 100644
--- a/drivers/net/e1000_spi.c
+++ b/drivers/net/e1000_spi.c
@@ -1,6 +1,7 @@
 #include <common.h>
 #include <command.h>
 #include <console.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 #include "e1000.h"
diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c
index 9ff078176b8c..1272e915f0e2 100644
--- a/drivers/net/eepro100.c
+++ b/drivers/net/eepro100.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <cpu_func.h>
 #include <malloc.h>
diff --git a/drivers/net/ep93xx_eth.c b/drivers/net/ep93xx_eth.c
index 72ad7936d63d..2116f31cf767 100644
--- a/drivers/net/ep93xx_eth.c
+++ b/drivers/net/ep93xx_eth.c
@@ -20,6 +20,7 @@
 #include <common.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/arch/ep93xx.h>
 #include <asm/io.h>
 #include <malloc.h>
diff --git a/drivers/net/eth-phy-uclass.c b/drivers/net/eth-phy-uclass.c
index b383f455276b..4afa6c87461d 100644
--- a/drivers/net/eth-phy-uclass.c
+++ b/drivers/net/eth-phy-uclass.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <net.h>
+#include <stdio.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
 #include <dm/lists.h>
diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c
index f158c7625bd5..73228d9e5685 100644
--- a/drivers/net/ethoc.c
+++ b/drivers/net/ethoc.c
@@ -13,6 +13,7 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/u-boot.h>
 #include <dm/platform_data/net_ethoc.h>
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
index 1d8bdb9e12f5..79eb1497930a 100644
--- a/drivers/net/fec_mxc.c
+++ b/drivers/net/fec_mxc.c
@@ -17,6 +17,7 @@
 #include <miiphy.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/drivers/net/fm/eth.c b/drivers/net/fm/eth.c
index 358643c70fb0..308b2baf936a 100644
--- a/drivers/net/fm/eth.c
+++ b/drivers/net/fm/eth.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <log.h>
 #include <part.h>
+#include <stdio.h>
 #include <asm/io.h>
 #ifdef CONFIG_DM_ETH
 #include <dm.h>
diff --git a/drivers/net/fm/fdt.c b/drivers/net/fm/fdt.c
index 242d27a34eab..608e2add6cc1 100644
--- a/drivers/net/fm/fdt.c
+++ b/drivers/net/fm/fdt.c
@@ -2,6 +2,7 @@
 /*
  * Copyright 2016 Freescale Semiconductor, Inc.
  */
+#include <stdio.h>
 #include <asm/io.h>
 #include <env.h>
 #include <fdt_support.h>
diff --git a/drivers/net/fm/fm.c b/drivers/net/fm/fm.c
index 247a1c13645c..964dc01884bd 100644
--- a/drivers/net/fm/fm.c
+++ b/drivers/net/fm/fm.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <env.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include <linux/string.h>
diff --git a/drivers/net/fm/memac_phy.c b/drivers/net/fm/memac_phy.c
index 72246192b3c6..8973f498d173 100644
--- a/drivers/net/fm/memac_phy.c
+++ b/drivers/net/fm/memac_phy.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <miiphy.h>
 #include <phy.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <fsl_memac.h>
 #include <fm_eth.h>
diff --git a/drivers/net/fm/tgec_phy.c b/drivers/net/fm/tgec_phy.c
index 390444187964..7afcf01916ff 100644
--- a/drivers/net/fm/tgec_phy.c
+++ b/drivers/net/fm/tgec_phy.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <miiphy.h>
 #include <phy.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <fsl_tgec.h>
 #include <fm_eth.h>
diff --git a/drivers/net/fsl-mc/dpio/qbman_portal.c b/drivers/net/fsl-mc/dpio/qbman_portal.c
index 5a0bef9324fd..bedff4ff321f 100644
--- a/drivers/net/fsl-mc/dpio/qbman_portal.c
+++ b/drivers/net/fsl-mc/dpio/qbman_portal.c
@@ -5,6 +5,7 @@
 
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <linux/bug.h>
 #include <linux/string.h>
diff --git a/drivers/net/fsl-mc/dpio/qbman_sys.h b/drivers/net/fsl-mc/dpio/qbman_sys.h
index e320e9b905e7..2d94d91129db 100644
--- a/drivers/net/fsl-mc/dpio/qbman_sys.h
+++ b/drivers/net/fsl-mc/dpio/qbman_sys.h
@@ -20,6 +20,7 @@
 
 /* Trace the 3 different classes of read/write access to QBMan. #undef as
  * required. */
+#include <stdio.h>
 #include <linux/bug.h>
 #include <linux/printk.h>
 #include <linux/string.h>
diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c
index 1ce12ae5db91..aa0cfee67ae6 100644
--- a/drivers/net/fsl-mc/mc.c
+++ b/drivers/net/fsl-mc/mc.c
@@ -11,6 +11,7 @@
 #include <image.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/bug.h>
diff --git a/drivers/net/fsl-mc/mc_sys.c b/drivers/net/fsl-mc/mc_sys.c
index b5ae2ea3eb56..239bccb4b0a2 100644
--- a/drivers/net/fsl-mc/mc_sys.c
+++ b/drivers/net/fsl-mc/mc_sys.c
@@ -6,6 +6,7 @@
  * Author: German Rivera <German.Rivera at freescale.com>
  */
 
+#include <stdio.h>
 #include <fsl-mc/fsl_mc_sys.h>
 #include <fsl-mc/fsl_mc_cmd.h>
 #include <common.h>
diff --git a/drivers/net/fsl_enetc_mdio.c b/drivers/net/fsl_enetc_mdio.c
index 47257a6cf686..474714da9585 100644
--- a/drivers/net/fsl_enetc_mdio.c
+++ b/drivers/net/fsl_enetc_mdio.c
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <pci.h>
 #include <miiphy.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/processor.h>
 #include <miiphy.h>
diff --git a/drivers/net/fsl_mcdmafec.c b/drivers/net/fsl_mcdmafec.c
index 1c2449d18f4a..819de6236252 100644
--- a/drivers/net/fsl_mcdmafec.c
+++ b/drivers/net/fsl_mcdmafec.c
@@ -18,6 +18,7 @@
 #include <config.h>
 #include <net.h>
 #include <miiphy.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
diff --git a/drivers/net/fsl_mdio.c b/drivers/net/fsl_mdio.c
index a06b72013352..36fa90766c28 100644
--- a/drivers/net/fsl_mdio.c
+++ b/drivers/net/fsl_mdio.c
@@ -9,6 +9,7 @@
 #include <miiphy.h>
 #include <phy.h>
 #include <fsl_mdio.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
 #include <linux/errno.h>
diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c
index 74fea1e45fd0..f5e50ff08477 100644
--- a/drivers/net/ftgmac100.c
+++ b/drivers/net/ftgmac100.c
@@ -19,6 +19,7 @@
 #include <malloc.h>
 #include <miiphy.h>
 #include <net.h>
+#include <stdio.h>
 #include <wait_bit.h>
 #include <asm/cache.h>
 #include <dm/device_compat.h>
diff --git a/drivers/net/ftmac100.c b/drivers/net/ftmac100.c
index 763e0f72318c..26901136d585 100644
--- a/drivers/net/ftmac100.c
+++ b/drivers/net/ftmac100.c
@@ -12,6 +12,7 @@
 #include <env.h>
 #include <malloc.h>
 #include <net.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
diff --git a/drivers/net/ftmac110.c b/drivers/net/ftmac110.c
index 449bb9873559..6ce47832a68b 100644
--- a/drivers/net/ftmac110.c
+++ b/drivers/net/ftmac110.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <net.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <asm/u-boot.h>
diff --git a/drivers/net/ks8851_mll.c b/drivers/net/ks8851_mll.c
index be4da897b8d4..c1b6d8195b5c 100644
--- a/drivers/net/ks8851_mll.c
+++ b/drivers/net/ks8851_mll.c
@@ -5,6 +5,7 @@
  */
 
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <common.h>
 #include <command.h>
diff --git a/drivers/net/lan91c96.c b/drivers/net/lan91c96.c
index bcaa18747f4d..0bc2c21e5990 100644
--- a/drivers/net/lan91c96.c
+++ b/drivers/net/lan91c96.c
@@ -48,6 +48,7 @@
 #include <command.h>
 #include <env.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c
index c4befd9028b6..5de15c9684f2 100644
--- a/drivers/net/ldpaa_eth/ldpaa_eth.c
+++ b/drivers/net/ldpaa_eth/ldpaa_eth.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/net/lpc32xx_eth.c b/drivers/net/lpc32xx_eth.c
index 4b4b09b54389..a43623a1adf6 100644
--- a/drivers/net/lpc32xx_eth.c
+++ b/drivers/net/lpc32xx_eth.c
@@ -11,6 +11,7 @@
 #include <net.h>
 #include <malloc.h>
 #include <miiphy.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index ec8817799da0..fcb940037a38 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -7,6 +7,7 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c
index d5bead5e2ce3..5a86f204ee34 100644
--- a/drivers/net/mcffec.c
+++ b/drivers/net/mcffec.c
@@ -17,6 +17,7 @@
 #include <command.h>
 #include <net.h>
 #include <miiphy.h>
+#include <stdio.h>
 #include <asm/fec.h>
 #include <asm/global_data.h>
 #include <asm/immap.h>
diff --git a/drivers/net/mcfmii.c b/drivers/net/mcfmii.c
index c99950d0e9ed..0e906e85670d 100644
--- a/drivers/net/mcfmii.c
+++ b/drivers/net/mcfmii.c
@@ -8,6 +8,7 @@
 #include <config.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/drivers/net/mpc8xx_fec.c b/drivers/net/mpc8xx_fec.c
index 08bb4a7693a0..cef4b31dd247 100644
--- a/drivers/net/mpc8xx_fec.c
+++ b/drivers/net/mpc8xx_fec.c
@@ -10,6 +10,7 @@
 #include <malloc.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/cpm_8xx.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/net/mscc_eswitch/jr2_switch.c b/drivers/net/mscc_eswitch/jr2_switch.c
index 92debab424f5..d4752492c5ba 100644
--- a/drivers/net/mscc_eswitch/jr2_switch.c
+++ b/drivers/net/mscc_eswitch/jr2_switch.c
@@ -7,6 +7,7 @@
 #include <config.h>
 #include <dm.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
 #include <fdt_support.h>
diff --git a/drivers/net/mscc_eswitch/luton_switch.c b/drivers/net/mscc_eswitch/luton_switch.c
index 79f4d19dad97..0ebc207157b9 100644
--- a/drivers/net/mscc_eswitch/luton_switch.c
+++ b/drivers/net/mscc_eswitch/luton_switch.c
@@ -7,6 +7,7 @@
 #include <config.h>
 #include <dm.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
 #include <fdt_support.h>
diff --git a/drivers/net/mscc_eswitch/servalt_switch.c b/drivers/net/mscc_eswitch/servalt_switch.c
index fc79d34b5193..a1c86062fac4 100644
--- a/drivers/net/mscc_eswitch/servalt_switch.c
+++ b/drivers/net/mscc_eswitch/servalt_switch.c
@@ -7,6 +7,7 @@
 #include <config.h>
 #include <dm.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
 #include <fdt_support.h>
diff --git a/drivers/net/mt7628-eth.c b/drivers/net/mt7628-eth.c
index 3bf8b636ea84..b8739562b731 100644
--- a/drivers/net/mt7628-eth.c
+++ b/drivers/net/mt7628-eth.c
@@ -21,6 +21,7 @@
 #include <miiphy.h>
 #include <net.h>
 #include <reset.h>
+#include <stdio.h>
 #include <wait_bit.h>
 #include <asm/cache.h>
 #include <asm/io.h>
diff --git a/drivers/net/mtk_eth.c b/drivers/net/mtk_eth.c
index 7e7699339964..0ad215da92f0 100644
--- a/drivers/net/mtk_eth.c
+++ b/drivers/net/mtk_eth.c
@@ -15,6 +15,7 @@
 #include <net.h>
 #include <regmap.h>
 #include <reset.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <time.h>
 #include <wait_bit.h>
diff --git a/drivers/net/mvgbe.c b/drivers/net/mvgbe.c
index 54febc7ce42c..227f22f7e050 100644
--- a/drivers/net/mvgbe.c
+++ b/drivers/net/mvgbe.c
@@ -17,6 +17,7 @@
 #include <net.h>
 #include <malloc.h>
 #include <miiphy.h>
+#include <stdio.h>
 #include <wait_bit.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c
index 6ee0e1c7897b..996534792583 100644
--- a/drivers/net/mvneta.c
+++ b/drivers/net/mvneta.c
@@ -20,6 +20,7 @@
 #include <netdev.h>
 #include <config.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/net/mvpp2.c b/drivers/net/mvpp2.c
index 06eb619c002d..98a56cb8de1d 100644
--- a/drivers/net/mvpp2.c
+++ b/drivers/net/mvpp2.c
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <dm/device-internal.h>
diff --git a/drivers/net/natsemi.c b/drivers/net/natsemi.c
index 5f81d22bf0e0..1819c24a843e 100644
--- a/drivers/net/natsemi.c
+++ b/drivers/net/natsemi.c
@@ -54,6 +54,7 @@
 #include <malloc.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <pci.h>
 #include <asm/u-boot.h>
diff --git a/drivers/net/ne2000.c b/drivers/net/ne2000.c
index 28a99bb8c48e..85da482b8ffe 100644
--- a/drivers/net/ne2000.c
+++ b/drivers/net/ne2000.c
@@ -74,6 +74,7 @@ Add SNMP
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <linux/delay.h>
 
 /* NE2000 base header file */
diff --git a/drivers/net/ne2000_base.c b/drivers/net/ne2000_base.c
index 409c41a179b3..7ed8721bc803 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 <stdio.h>
 #include <time.h>
 #include <asm/u-boot.h>
 #include <linux/compiler.h>
diff --git a/drivers/net/ne2000_base.h b/drivers/net/ne2000_base.h
index 2493608a5a64..21c1a8c15b55 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 <stdio.h>
 #include <linux/delay.h>
 #define TOUT 5
 /* Ether MAC address size */
diff --git a/drivers/net/ns8382x.c b/drivers/net/ns8382x.c
index 7ae60e8a3e78..b0aeb470a199 100644
--- a/drivers/net/ns8382x.c
+++ b/drivers/net/ns8382x.c
@@ -55,6 +55,7 @@
 #include <malloc.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <pci.h>
 #include <asm/u-boot.h>
diff --git a/drivers/net/pch_gbe.c b/drivers/net/pch_gbe.c
index c1596a2cd351..fa824079391a 100644
--- a/drivers/net/pch_gbe.c
+++ b/drivers/net/pch_gbe.c
@@ -11,6 +11,7 @@
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 #include <pci.h>
diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c
index ec8e07339304..aef5e7e4fd79 100644
--- a/drivers/net/pcnet.c
+++ b/drivers/net/pcnet.c
@@ -14,6 +14,7 @@
 #include <memalign.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <pci.h>
diff --git a/drivers/net/pfe_eth/pfe_cmd.c b/drivers/net/pfe_eth/pfe_cmd.c
index f72413cf132a..365a74aa094b 100644
--- a/drivers/net/pfe_eth/pfe_cmd.c
+++ b/drivers/net/pfe_eth/pfe_cmd.c
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <command.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 #include <net/pfe_eth/pfe_eth.h>
diff --git a/drivers/net/pfe_eth/pfe_driver.c b/drivers/net/pfe_eth/pfe_driver.c
index 573ceabcf7e0..7d712370100e 100644
--- a/drivers/net/pfe_eth/pfe_driver.c
+++ b/drivers/net/pfe_eth/pfe_driver.c
@@ -6,6 +6,7 @@
 
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 #include <net/pfe_eth/pfe_eth.h>
diff --git a/drivers/net/pfe_eth/pfe_eth.c b/drivers/net/pfe_eth/pfe_eth.c
index e49bf4a6f3cf..4fb81ab0cd40 100644
--- a/drivers/net/pfe_eth/pfe_eth.c
+++ b/drivers/net/pfe_eth/pfe_eth.c
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <dm/platform_data/pfe_dm_eth.h>
 #include <net.h>
 #include <linux/delay.h>
diff --git a/drivers/net/pfe_eth/pfe_firmware.c b/drivers/net/pfe_eth/pfe_firmware.c
index 1601ec48a59d..66d5ad930e3b 100644
--- a/drivers/net/pfe_eth/pfe_firmware.c
+++ b/drivers/net/pfe_eth/pfe_firmware.c
@@ -13,6 +13,7 @@
 #include <image.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/string.h>
 #include <net/pfe_eth/pfe_eth.h>
diff --git a/drivers/net/pfe_eth/pfe_hw.c b/drivers/net/pfe_eth/pfe_hw.c
index 2889dd6b9070..fb60e605b194 100644
--- a/drivers/net/pfe_eth/pfe_hw.c
+++ b/drivers/net/pfe_eth/pfe_hw.c
@@ -4,6 +4,7 @@
  * Copyright 2017 NXP
  */
 #include <log.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/string.h>
 #include <net/pfe_eth/pfe_eth.h>
diff --git a/drivers/net/pfe_eth/pfe_mdio.c b/drivers/net/pfe_eth/pfe_mdio.c
index 3228b8df49d4..0f682d1cfdd8 100644
--- a/drivers/net/pfe_eth/pfe_mdio.c
+++ b/drivers/net/pfe_eth/pfe_mdio.c
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <dm/platform_data/pfe_dm_eth.h>
 #include <net.h>
 #include <linux/delay.h>
diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c
index 59c7abeb667b..aa3e566bf2ea 100644
--- a/drivers/net/phy/aquantia.c
+++ b/drivers/net/phy/aquantia.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <net.h>
 #include <phy.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/drivers/net/phy/b53.c b/drivers/net/phy/b53.c
index b376ef8f82b9..34ba893dcdb9 100644
--- a/drivers/net/phy/b53.c
+++ b/drivers/net/phy/b53.c
@@ -24,6 +24,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c
index 566fcb8de73b..91e8f6123deb 100644
--- a/drivers/net/phy/broadcom.c
+++ b/drivers/net/phy/broadcom.c
@@ -7,6 +7,7 @@
  */
 #include <common.h>
 #include <phy.h>
+#include <stdio.h>
 #include <linux/delay.h>
 
 /* Broadcom BCM54xx -- taken from linux sungem_phy */
diff --git a/drivers/net/phy/cortina.c b/drivers/net/phy/cortina.c
index dbc20b14051c..a02d620d9663 100644
--- a/drivers/net/phy/cortina.c
+++ b/drivers/net/phy/cortina.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/ctype.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/drivers/net/phy/fixed.c b/drivers/net/phy/fixed.c
index d3e9e3e3d4af..b4833c5ac96d 100644
--- a/drivers/net/phy/fixed.c
+++ b/drivers/net/phy/fixed.c
@@ -11,6 +11,7 @@
 #include <phy.h>
 #include <dm.h>
 #include <fdt_support.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 
diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c
index a62c695c5c84..a313e8bf917b 100644
--- a/drivers/net/phy/marvell.c
+++ b/drivers/net/phy/marvell.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <errno.h>
 #include <phy.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 
diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c
index ffb1a61402e9..e7a1008f14de 100644
--- a/drivers/net/phy/meson-gxl.c
+++ b/drivers/net/phy/meson-gxl.c
@@ -8,6 +8,7 @@
  */
 #include <config.h>
 #include <common.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <dm.h>
 #include <phy.h>
diff --git a/drivers/net/phy/miiphybb.c b/drivers/net/phy/miiphybb.c
index 6b031196f44d..d19a13dd62b6 100644
--- a/drivers/net/phy/miiphybb.c
+++ b/drivers/net/phy/miiphybb.c
@@ -16,6 +16,7 @@
 #include <ioports.h>
 #include <ppc_asm.tmpl>
 #include <miiphy.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 
diff --git a/drivers/net/phy/mscc.c b/drivers/net/phy/mscc.c
index 264afcd1a575..f8a4d0694406 100644
--- a/drivers/net/phy/mscc.c
+++ b/drivers/net/phy/mscc.c
@@ -12,6 +12,7 @@
 #include <log.h>
 #include <miiphy.h>
 #include <bitfield.h>
+#include <stdio.h>
 #include <time.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
diff --git a/drivers/net/phy/mv88e61xx.c b/drivers/net/phy/mv88e61xx.c
index 832b538f5e92..0a783e031298 100644
--- a/drivers/net/phy/mv88e61xx.c
+++ b/drivers/net/phy/mv88e61xx.c
@@ -31,6 +31,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/drivers/net/phy/mv88e6352.c b/drivers/net/phy/mv88e6352.c
index 40e0edc6d88e..977102d4d803 100644
--- a/drivers/net/phy/mv88e6352.c
+++ b/drivers/net/phy/mv88e6352.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <log.h>
 #include <miiphy.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <mv88e6352.h>
diff --git a/drivers/net/phy/ncsi.c b/drivers/net/phy/ncsi.c
index 862a1564a732..f112fa2bee97 100644
--- a/drivers/net/phy/ncsi.c
+++ b/drivers/net/phy/ncsi.c
@@ -9,6 +9,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <phy.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include <net/ncsi.h>
 #include <net/ncsi-pkt.h>
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index 030dc7538241..026ccc467f62 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -17,6 +17,7 @@
 #include <miiphy.h>
 #include <phy.h>
 #include <errno.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c
index b1b1fa50809a..2f9b50e168ad 100644
--- a/drivers/net/phy/realtek.c
+++ b/drivers/net/phy/realtek.c
@@ -7,6 +7,7 @@
  * Copyright 2016 Karsten Merker <merker at debian.org>
  */
 #include <common.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <phy.h>
 #include <linux/delay.h>
diff --git a/drivers/net/phy/teranetics.c b/drivers/net/phy/teranetics.c
index 60049c2074f3..7b5494eea98b 100644
--- a/drivers/net/phy/teranetics.c
+++ b/drivers/net/phy/teranetics.c
@@ -7,6 +7,7 @@
  */
 #include <common.h>
 #include <phy.h>
+#include <stdio.h>
 #include <linux/delay.h>
 
 #ifndef CONFIG_PHYLIB_10G
diff --git a/drivers/net/phy/vitesse.c b/drivers/net/phy/vitesse.c
index eca26c989389..fdc676102369 100644
--- a/drivers/net/phy/vitesse.c
+++ b/drivers/net/phy/vitesse.c
@@ -8,6 +8,7 @@
  */
 #include <common.h>
 #include <miiphy.h>
+#include <stdio.h>
 
 /* Cicada Auxiliary Control/Status Register */
 #define MIIM_CIS82xx_AUX_CONSTAT	0x1c
diff --git a/drivers/net/phy/xilinx_gmii2rgmii.c b/drivers/net/phy/xilinx_gmii2rgmii.c
index 74105c0b7d6b..86492e90c4df 100644
--- a/drivers/net/phy/xilinx_gmii2rgmii.c
+++ b/drivers/net/phy/xilinx_gmii2rgmii.c
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <log.h>
 #include <phy.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/drivers/net/pic32_eth.c b/drivers/net/pic32_eth.c
index bbc305f81dbe..5627b5d2d1a5 100644
--- a/drivers/net/pic32_eth.c
+++ b/drivers/net/pic32_eth.c
@@ -12,6 +12,7 @@
 #include <net.h>
 #include <miiphy.h>
 #include <console.h>
+#include <stdio.h>
 #include <time.h>
 #include <wait_bit.h>
 #include <asm/global_data.h>
diff --git a/drivers/net/pic32_mdio.c b/drivers/net/pic32_mdio.c
index 802563960a16..963b9e7fc8fc 100644
--- a/drivers/net/pic32_mdio.c
+++ b/drivers/net/pic32_mdio.c
@@ -9,6 +9,7 @@
 #include <phy.h>
 #include <miiphy.h>
 #include <errno.h>
+#include <stdio.h>
 #include <wait_bit.h>
 #include <asm/io.h>
 #include <linux/delay.h>
diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c
index f52fa66a4eb2..42169e996832 100644
--- a/drivers/net/rtl8139.c
+++ b/drivers/net/rtl8139.c
@@ -75,6 +75,7 @@
 #include <malloc.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <pci.h>
 #include <asm/u-boot.h>
diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c
index 683e5d5d9e94..c64888be4904 100644
--- a/drivers/net/rtl8169.c
+++ b/drivers/net/rtl8169.c
@@ -50,6 +50,7 @@
 #ifndef CONFIG_DM_ETH
 #include <netdev.h>
 #endif
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <asm/io.h>
diff --git a/drivers/net/sandbox-raw.c b/drivers/net/sandbox-raw.c
index bda3ffd003b4..cc358428a366 100644
--- a/drivers/net/sandbox-raw.c
+++ b/drivers/net/sandbox-raw.c
@@ -7,6 +7,7 @@
  */
 
 #include <log.h>
+#include <stdio.h>
 #include <asm/eth-raw-os.h>
 #include <common.h>
 #include <dm.h>
diff --git a/drivers/net/sandbox.c b/drivers/net/sandbox.c
index b63b3aaebcff..0551d0670b13 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 <stdio.h>
 #include <time.h>
 #include <asm/eth.h>
 #include <asm/global_data.h>
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c
index 5ea0adb6b102..84f3fa473c75 100644
--- a/drivers/net/sh_eth.c
+++ b/drivers/net/sh_eth.c
@@ -17,6 +17,7 @@
 #include <net.h>
 #include <netdev.h>
 #include <miiphy.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
diff --git a/drivers/net/smc91111.c b/drivers/net/smc91111.c
index a341bca51cf1..9b279d48002c 100644
--- a/drivers/net/smc91111.c
+++ b/drivers/net/smc91111.c
@@ -51,6 +51,7 @@
 #include <command.h>
 #include <config.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index 6f3521651171..a28ccc8c18ab 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -10,6 +10,7 @@
 #include <malloc.h>
 #include <net.h>
 #include <miiphy.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/io.h>
 #include <linux/delay.h>
diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c
index 77c03cbf3012..b0d83de8cbd8 100644
--- a/drivers/net/sun8i_emac.c
+++ b/drivers/net/sun8i_emac.c
@@ -12,6 +12,7 @@
 
 #include <cpu_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_emac.c
index e1176454f2eb..009d0de48454 100644
--- a/drivers/net/sunxi_emac.c
+++ b/drivers/net/sunxi_emac.c
@@ -9,6 +9,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <dm/device_compat.h>
 #include <linux/delay.h>
 #include <linux/err.h>
diff --git a/drivers/net/ti/am65-cpsw-nuss.c b/drivers/net/ti/am65-cpsw-nuss.c
index 08cd26b3c4bc..571f1ebfc46c 100644
--- a/drivers/net/ti/am65-cpsw-nuss.c
+++ b/drivers/net/ti/am65-cpsw-nuss.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/processor.h>
diff --git a/drivers/net/ti/cpsw.c b/drivers/net/ti/cpsw.c
index 921d56394267..02dd3bc984fe 100644
--- a/drivers/net/ti/cpsw.c
+++ b/drivers/net/ti/cpsw.c
@@ -15,6 +15,7 @@
 #include <net.h>
 #include <netdev.h>
 #include <cpsw.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
diff --git a/drivers/net/ti/davinci_emac.c b/drivers/net/ti/davinci_emac.c
index c2df17d3a6f7..b4647554bcec 100644
--- a/drivers/net/ti/davinci_emac.c
+++ b/drivers/net/ti/davinci_emac.c
@@ -28,6 +28,7 @@
 #include <net.h>
 #include <miiphy.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <linux/compiler.h>
 #include <asm/arch/emac_defs.h>
diff --git a/drivers/net/ti/keystone_net.c b/drivers/net/ti/keystone_net.c
index 5e44215e2238..4dd205c1507f 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 <stdio.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
 #include <linux/printk.h>
diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c
index 5ab450cf8a4f..17ce68baffe5 100644
--- a/drivers/net/tsec.c
+++ b/drivers/net/tsec.c
@@ -13,6 +13,7 @@
 #include <malloc.h>
 #include <net.h>
 #include <command.h>
+#include <stdio.h>
 #include <tsec.h>
 #include <fsl_mdio.h>
 #include <asm/u-boot.h>
diff --git a/drivers/net/uli526x.c b/drivers/net/uli526x.c
index d6bc29c0c102..0a8369f96e39 100644
--- a/drivers/net/uli526x.c
+++ b/drivers/net/uli526x.c
@@ -13,6 +13,7 @@
 #include <malloc.h>
 #include <net.h>
 #include <netdev.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <pci.h>
 #include <miiphy.h>
diff --git a/drivers/net/vsc7385.c b/drivers/net/vsc7385.c
index af8d99cefbef..ba4793122ea8 100644
--- a/drivers/net/vsc7385.c
+++ b/drivers/net/vsc7385.c
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <console.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
diff --git a/drivers/net/vsc9953.c b/drivers/net/vsc9953.c
index a4c701e86a30..b1bb27fb7f80 100644
--- a/drivers/net/vsc9953.c
+++ b/drivers/net/vsc9953.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <command.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/fsl_serdes.h>
 #include <fm_eth.h>
diff --git a/drivers/net/xilinx_axi_emac.c b/drivers/net/xilinx_axi_emac.c
index da571efde4e0..f6cf8df44fff 100644
--- a/drivers/net/xilinx_axi_emac.c
+++ b/drivers/net/xilinx_axi_emac.c
@@ -13,6 +13,7 @@
 #include <log.h>
 #include <net.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <phy.h>
diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c
index 321429090f62..5334b61c7aad 100644
--- a/drivers/net/xilinx_emaclite.c
+++ b/drivers/net/xilinx_emaclite.c
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <console.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c
index 9d19e89090c5..8e3a96c51efb 100644
--- a/drivers/net/zynq_gem.c
+++ b/drivers/net/zynq_gem.c
@@ -18,6 +18,7 @@
 #include <config.h>
 #include <console.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <phy.h>
diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c
index 6d8ab8bf786f..8b3b60570d73 100644
--- a/drivers/nvme/nvme.c
+++ b/drivers/nvme/nvme.c
@@ -13,6 +13,7 @@
 #include <malloc.h>
 #include <memalign.h>
 #include <pci.h>
+#include <stdio.h>
 #include <time.h>
 #include <dm/device-internal.h>
 #include <linux/compat.h>
diff --git a/drivers/nvme/nvme_show.c b/drivers/nvme/nvme_show.c
index 15e459da1acd..5a0bb4a223ee 100644
--- a/drivers/nvme/nvme_show.c
+++ b/drivers/nvme/nvme_show.c
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <memalign.h>
 #include <nvme.h>
+#include <stdio.h>
 #include "nvme.h"
 
 static void print_optional_admin_cmd(u16 oacs, int devnum)
diff --git a/drivers/pci/fsl_pci_init.c b/drivers/pci/fsl_pci_init.c
index 4f3f21e72936..ba4ce355b729 100644
--- a/drivers/pci/fsl_pci_init.c
+++ b/drivers/pci/fsl_pci_init.c
@@ -8,6 +8,7 @@
 #include <init.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/fsl_serdes.h>
 #include <asm/global_data.h>
 #include <asm/ppc.h>
diff --git a/drivers/pci/pci-aardvark.c b/drivers/pci/pci-aardvark.c
index 711b930d0f9f..76234ea61c46 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 <stdio.h>
 #include <asm/io.h>
 #include <asm-generic/gpio.h>
 #include <dm/device_compat.h>
diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c
index ccf842781479..72f47321b7e6 100644
--- a/drivers/pci/pci-uclass.c
+++ b/drivers/pci/pci-uclass.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/u-boot.h>
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 25a755627c0c..b6a147ec1f51 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -17,6 +17,7 @@
 #include <common.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
 
diff --git a/drivers/pci/pci_auto.c b/drivers/pci/pci_auto.c
index 3f46b7697d7c..e0e325755e18 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 <stdio.h>
 
 /* the user can define CONFIG_SYS_PCI_CACHE_LINE_SIZE to avoid problems */
 #ifndef CONFIG_SYS_PCI_CACHE_LINE_SIZE
diff --git a/drivers/pci/pci_common.c b/drivers/pci/pci_common.c
index 5231b69dc9ad..e7469d88d826 100644
--- a/drivers/pci/pci_common.c
+++ b/drivers/pci/pci_common.c
@@ -14,6 +14,7 @@
 #include <env.h>
 #include <errno.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/io.h>
 
 const char *pci_class_str(u8 class)
diff --git a/drivers/pci/pci_ftpci100.c b/drivers/pci/pci_ftpci100.c
index f7a601726725..b3d928ac1fe1 100644
--- a/drivers/pci/pci_ftpci100.c
+++ b/drivers/pci/pci_ftpci100.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <pci.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #include <faraday/ftpci100.h>
diff --git a/drivers/pci/pci_mpc85xx.c b/drivers/pci/pci_mpc85xx.c
index 6576f53f52a5..d7073a496940 100644
--- a/drivers/pci/pci_mpc85xx.c
+++ b/drivers/pci/pci_mpc85xx.c
@@ -5,6 +5,7 @@
  *
  */
 #include <common.h>
+#include <stdio.h>
 #include <asm/bitops.h>
 #include <asm/cpm_85xx.h>
 #include <pci.h>
diff --git a/drivers/pci/pci_mvebu.c b/drivers/pci/pci_mvebu.c
index 95ed17303585..07c34fe74daf 100644
--- a/drivers/pci/pci_mvebu.c
+++ b/drivers/pci/pci_mvebu.c
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c
index 68b9949ba1e2..3a046df743d5 100644
--- a/drivers/pci/pci_rom.c
+++ b/drivers/pci/pci_rom.c
@@ -34,6 +34,7 @@
 #include <malloc.h>
 #include <pci.h>
 #include <pci_rom.h>
+#include <stdio.h>
 #include <time.h>
 #include <vbe.h>
 #include <video.h>
diff --git a/drivers/pci/pci_sh4.c b/drivers/pci/pci_sh4.c
index aac9be055e2c..c6609d58e898 100644
--- a/drivers/pci/pci_sh4.c
+++ b/drivers/pci/pci_sh4.c
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/delay.h>
 
 #include <asm/processor.h>
diff --git a/drivers/pci/pci_sh7751.c b/drivers/pci/pci_sh7751.c
index e110550c71c8..62d098d378f5 100644
--- a/drivers/pci/pci_sh7751.c
+++ b/drivers/pci/pci_sh7751.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/pci.h>
diff --git a/drivers/pci/pci_sh7780.c b/drivers/pci/pci_sh7780.c
index 06d711a6cb9e..ed0834a984ec 100644
--- a/drivers/pci/pci_sh7780.c
+++ b/drivers/pci/pci_sh7780.c
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/delay.h>
 
 #include <pci.h>
diff --git a/drivers/pci/pcie_brcmstb.c b/drivers/pci/pcie_brcmstb.c
index dade79e9c867..4fd4d4dfbd1e 100644
--- a/drivers/pci/pcie_brcmstb.c
+++ b/drivers/pci/pcie_brcmstb.c
@@ -15,6 +15,7 @@
 #include <common.h>
 #include <errno.h>
 #include <dm.h>
+#include <stdio.h>
 #include <dm/ofnode.h>
 #include <pci.h>
 #include <asm/io.h>
diff --git a/drivers/pci/pcie_dw_mvebu.c b/drivers/pci/pcie_dw_mvebu.c
index dbc8bb81a7cd..b1f2750888cc 100644
--- a/drivers/pci/pcie_dw_mvebu.c
+++ b/drivers/pci/pcie_dw_mvebu.c
@@ -14,6 +14,7 @@
 #include <dm.h>
 #include <log.h>
 #include <pci.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/pci/pcie_dw_ti.c b/drivers/pci/pcie_dw_ti.c
index eed5e4289724..3d86bdaaafb7 100644
--- a/drivers/pci/pcie_dw_ti.c
+++ b/drivers/pci/pcie_dw_ti.c
@@ -10,6 +10,7 @@
 #include <generic-phy.h>
 #include <power-domain.h>
 #include <regmap.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <time.h>
 #include <asm/global_data.h>
diff --git a/drivers/pci/pcie_fsl.c b/drivers/pci/pcie_fsl.c
index 80786e68cb3b..e609ac58d40f 100644
--- a/drivers/pci/pcie_fsl.c
+++ b/drivers/pci/pcie_fsl.c
@@ -11,6 +11,7 @@
 #include <malloc.h>
 #include <mapmem.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/immap_85xx.h>
 #include <asm/fsl_pci.h>
 #include <asm/fsl_serdes.h>
diff --git a/drivers/pci/pcie_imx.c b/drivers/pci/pcie_imx.c
index 16468e733640..ab3d96efc533 100644
--- a/drivers/pci/pcie_imx.c
+++ b/drivers/pci/pcie_imx.c
@@ -14,6 +14,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <pci.h>
+#include <stdio.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/crm_regs.h>
diff --git a/drivers/pci/pcie_layerscape_ep.c b/drivers/pci/pcie_layerscape_ep.c
index 6de93fac997f..0661834c1102 100644
--- a/drivers/pci/pcie_layerscape_ep.c
+++ b/drivers/pci/pcie_layerscape_ep.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/devres.h>
 #include <errno.h>
diff --git a/drivers/pci/pcie_layerscape_gen4.c b/drivers/pci/pcie_layerscape_gen4.c
index 96c6527f806e..369124c2b8be 100644
--- a/drivers/pci/pcie_layerscape_gen4.c
+++ b/drivers/pci/pcie_layerscape_gen4.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/fsl_serdes.h>
 #include <pci.h>
 #include <asm/global_data.h>
diff --git a/drivers/pci/pcie_layerscape_rc.c b/drivers/pci/pcie_layerscape_rc.c
index 7ae5b48bb92c..397c9ea5e603 100644
--- a/drivers/pci/pcie_layerscape_rc.c
+++ b/drivers/pci/pcie_layerscape_rc.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/arch/fsl_serdes.h>
 #include <pci.h>
 #include <asm/global_data.h>
diff --git a/drivers/phy/marvell/comphy_a3700.c b/drivers/phy/marvell/comphy_a3700.c
index e9ba4cfec228..b106fd3e1321 100644
--- a/drivers/phy/marvell/comphy_a3700.c
+++ b/drivers/phy/marvell/comphy_a3700.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fdtdec.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/drivers/phy/marvell/comphy_core.c b/drivers/phy/marvell/comphy_core.c
index 5ef6129f349d..99f68fff12cf 100644
--- a/drivers/phy/marvell/comphy_core.c
+++ b/drivers/phy/marvell/comphy_core.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
diff --git a/drivers/phy/marvell/comphy_core.h b/drivers/phy/marvell/comphy_core.h
index 12ab921d24c3..58c5c2fabdc8 100644
--- a/drivers/phy/marvell/comphy_core.h
+++ b/drivers/phy/marvell/comphy_core.h
@@ -7,6 +7,7 @@
 #define _COMPHY_CORE_H_
 
 #include <fdtdec.h>
+#include <stdio.h>
 #include <mvebu/comphy.h>
 
 #if defined(DEBUG)
diff --git a/drivers/phy/marvell/comphy_cp110.c b/drivers/phy/marvell/comphy_cp110.c
index 35da55c4fee1..90d2d283c0e7 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 <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
diff --git a/drivers/phy/omap-usb2-phy.c b/drivers/phy/omap-usb2-phy.c
index ae0968ab5b2e..a460a0560c3a 100644
--- a/drivers/phy/omap-usb2-phy.c
+++ b/drivers/phy/omap-usb2-phy.c
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm.h>
diff --git a/drivers/phy/ti-pipe3-phy.c b/drivers/phy/ti-pipe3-phy.c
index 5953d118baec..2aa2a90c47c8 100644
--- a/drivers/phy/ti-pipe3-phy.c
+++ b/drivers/phy/ti-pipe3-phy.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/device.h>
 #include <generic-phy.h>
diff --git a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c
index c22d534da9ad..775a8a0a48ae 100644
--- a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c
+++ b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c
@@ -15,6 +15,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <dm/pinctrl.h>
 #include <dm/root.h>
 #include <dm/device-internal.h>
diff --git a/drivers/pinctrl/intel/pinctrl.c b/drivers/pinctrl/intel/pinctrl.c
index ba21c9dcc2e9..933175d2b6c5 100644
--- a/drivers/pinctrl/intel/pinctrl.c
+++ b/drivers/pinctrl/intel/pinctrl.c
@@ -23,6 +23,7 @@
 #include <malloc.h>
 #include <p2sb.h>
 #include <spl.h>
+#include <stdio.h>
 #include <asm-generic/gpio.h>
 #include <asm/intel_pinctrl.h>
 #include <asm/intel_pinctrl_defs.h>
diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c
index 664af76d5848..639eb849db45 100644
--- a/drivers/pinctrl/meson/pinctrl-meson.c
+++ b/drivers/pinctrl/meson/pinctrl-meson.c
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
index 7541898ac46f..0fe1b3488099 100644
--- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
+++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
@@ -20,6 +20,7 @@
 #include <config.h>
 #include <dm.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
diff --git a/drivers/pinctrl/nxp/pinctrl-scu.c b/drivers/pinctrl/nxp/pinctrl-scu.c
index c032be782a15..33bba8696f65 100644
--- a/drivers/pinctrl/nxp/pinctrl-scu.c
+++ b/drivers/pinctrl/nxp/pinctrl-scu.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <asm/io.h>
 #include <asm/arch/sci/sci.h>
diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c
index d325422f8547..4400e8088d89 100644
--- a/drivers/pinctrl/pinctrl-at91-pio4.c
+++ b/drivers/pinctrl/pinctrl-at91-pio4.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/pinctrl.h>
 #include <linux/bitops.h>
diff --git a/drivers/pinctrl/pinctrl_pic32.c b/drivers/pinctrl/pinctrl_pic32.c
index 79c95034985f..2eb80d92b341 100644
--- a/drivers/pinctrl/pinctrl_pic32.c
+++ b/drivers/pinctrl/pinctrl_pic32.c
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/renesas/pfc-r7s72100.c b/drivers/pinctrl/renesas/pfc-r7s72100.c
index b368336c887f..3d0caa9bb777 100644
--- a/drivers/pinctrl/renesas/pfc-r7s72100.c
+++ b/drivers/pinctrl/renesas/pfc-r7s72100.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/lists.h>
 #include <dm/pinctrl.h>
diff --git a/drivers/pinctrl/renesas/pfc.c b/drivers/pinctrl/renesas/pfc.c
index 7183b1180889..6bf8fdff4781 100644
--- a/drivers/pinctrl/renesas/pfc.c
+++ b/drivers/pinctrl/renesas/pfc.c
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <stdio.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/pinctrl.h>
diff --git a/drivers/power/acpi_pmc/acpi-pmc-uclass.c b/drivers/power/acpi_pmc/acpi-pmc-uclass.c
index 828963d8a09a..98d217ca72f1 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 <stdio.h>
 #include <acpi/acpi_s3.h>
 #ifdef CONFIG_X86
 #include <asm/intel_pinctrl.h>
diff --git a/drivers/power/battery/bat_trats.c b/drivers/power/battery/bat_trats.c
index 54b2bf91e5c2..d1545004de31 100644
--- a/drivers/power/battery/bat_trats.c
+++ b/drivers/power/battery/bat_trats.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <console.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/battery.h>
diff --git a/drivers/power/battery/bat_trats2.c b/drivers/power/battery/bat_trats2.c
index 1172970d1e0b..abac714ff346 100644
--- a/drivers/power/battery/bat_trats2.c
+++ b/drivers/power/battery/bat_trats2.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <power/pmic.h>
 #include <power/battery.h>
 #include <power/max77693_pmic.h>
diff --git a/drivers/power/domain/imx8-power-domain-legacy.c b/drivers/power/domain/imx8-power-domain-legacy.c
index 980b946fca1e..61ed7172f285 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 <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/power-domain.h>
diff --git a/drivers/power/domain/imx8-power-domain.c b/drivers/power/domain/imx8-power-domain.c
index 6461ab23d629..b0107dff1f82 100644
--- a/drivers/power/domain/imx8-power-domain.c
+++ b/drivers/power/domain/imx8-power-domain.c
@@ -9,6 +9,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <power-domain-uclass.h>
+#include <stdio.h>
 #include <asm/arch/power-domain.h>
 #include <asm/arch/sci/sci.h>
 
diff --git a/drivers/power/domain/imx8m-power-domain.c b/drivers/power/domain/imx8m-power-domain.c
index f6681c7b0b5c..e50ded8b4c54 100644
--- a/drivers/power/domain/imx8m-power-domain.c
+++ b/drivers/power/domain/imx8m-power-domain.c
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <malloc.h>
 #include <power-domain-uclass.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/power-domain.h>
diff --git a/drivers/power/fuel_gauge/fg_max17042.c b/drivers/power/fuel_gauge/fg_max17042.c
index a395d587a86f..fde4bd195548 100644
--- a/drivers/power/fuel_gauge/fg_max17042.c
+++ b/drivers/power/fuel_gauge/fg_max17042.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/max17042_fg.h>
diff --git a/drivers/power/mfd/fg_max77693.c b/drivers/power/mfd/fg_max77693.c
index 983a6d4a2bde..4633f79bbe74 100644
--- a/drivers/power/mfd/fg_max77693.c
+++ b/drivers/power/mfd/fg_max77693.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <power/pmic.h>
 #include <power/max77693_fg.h>
 #include <i2c.h>
diff --git a/drivers/power/mfd/muic_max77693.c b/drivers/power/mfd/muic_max77693.c
index 36ee44b9a2c9..a021c04ccd4a 100644
--- a/drivers/power/mfd/muic_max77693.c
+++ b/drivers/power/mfd/muic_max77693.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <power/pmic.h>
 #include <power/power_chrg.h>
 #include <power/max77693_muic.h>
diff --git a/drivers/power/mfd/pmic_max77693.c b/drivers/power/mfd/pmic_max77693.c
index e32a9722a408..1955189c239d 100644
--- a/drivers/power/mfd/pmic_max77693.c
+++ b/drivers/power/mfd/pmic_max77693.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <power/pmic.h>
 #include <power/max77693_pmic.h>
 #include <i2c.h>
diff --git a/drivers/power/mt6323.c b/drivers/power/mt6323.c
index 354817a03780..21e627559832 100644
--- a/drivers/power/mt6323.c
+++ b/drivers/power/mt6323.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 
diff --git a/drivers/power/palmas.c b/drivers/power/palmas.c
index d2083a51ac96..c716e4ff10df 100644
--- a/drivers/power/palmas.c
+++ b/drivers/power/palmas.c
@@ -5,6 +5,7 @@
  */
 #include <config.h>
 #include <palmas.h>
+#include <stdio.h>
 #include <linux/printk.h>
 
 void palmas_init_settings(void)
diff --git a/drivers/power/pmic/lp873x.c b/drivers/power/pmic/lp873x.c
index fda5bc151642..c307a9e3024a 100644
--- a/drivers/power/pmic/lp873x.c
+++ b/drivers/power/pmic/lp873x.c
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/pmic/lp87565.c b/drivers/power/pmic/lp87565.c
index 904e02c4d818..ba67a5efc023 100644
--- a/drivers/power/pmic/lp87565.c
+++ b/drivers/power/pmic/lp87565.c
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/pmic/mc34708.c b/drivers/power/pmic/mc34708.c
index 40d732224b6c..d1661f01999a 100644
--- a/drivers/power/pmic/mc34708.c
+++ b/drivers/power/pmic/mc34708.c
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <fsl_pmic.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <power/pmic.h>
 
diff --git a/drivers/power/pmic/muic_max8997.c b/drivers/power/pmic/muic_max8997.c
index 969ce902395f..6184b70e2fd1 100644
--- a/drivers/power/pmic/muic_max8997.c
+++ b/drivers/power/pmic/muic_max8997.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <power/pmic.h>
 #include <power/power_chrg.h>
 #include <power/max8997_muic.h>
diff --git a/drivers/power/pmic/pmic_hi6553.c b/drivers/power/pmic/pmic_hi6553.c
index 80b9078cf8f0..4442f3501f7b 100644
--- a/drivers/power/pmic/pmic_hi6553.c
+++ b/drivers/power/pmic/pmic_hi6553.c
@@ -3,6 +3,7 @@
  *  Copyright (C) 2015 Linaro
  *  Peter Griffin <peter.griffin at linaro.org>
  */
+#include <stdio.h>
 #include <asm/io.h>
 #include <common.h>
 #include <linux/delay.h>
diff --git a/drivers/power/pmic/pmic_ltc3676.c b/drivers/power/pmic/pmic_ltc3676.c
index 00c3e201cd56..5dc0079c2af2 100644
--- a/drivers/power/pmic/pmic_ltc3676.c
+++ b/drivers/power/pmic/pmic_ltc3676.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <errno.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <power/pmic.h>
 #include <power/ltc3676_pmic.h>
 
diff --git a/drivers/power/pmic/pmic_max77696.c b/drivers/power/pmic/pmic_max77696.c
index f3a73d6405f8..de36b4621802 100644
--- a/drivers/power/pmic/pmic_max77696.c
+++ b/drivers/power/pmic/pmic_max77696.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <errno.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <power/pmic.h>
 #include <power/max77696_pmic.h>
 
diff --git a/drivers/power/pmic/pmic_max8997.c b/drivers/power/pmic/pmic_max8997.c
index 1d834ff71304..bf8a015dc8cd 100644
--- a/drivers/power/pmic/pmic_max8997.c
+++ b/drivers/power/pmic/pmic_max8997.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <power/pmic.h>
 #include <power/max8997_pmic.h>
 #include <i2c.h>
diff --git a/drivers/power/pmic/pmic_max8998.c b/drivers/power/pmic/pmic_max8998.c
index f058238c9217..8e2c4b8e02e3 100644
--- a/drivers/power/pmic/pmic_max8998.c
+++ b/drivers/power/pmic/pmic_max8998.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <power/pmic.h>
 #include <power/max8998_pmic.h>
 #include <errno.h>
diff --git a/drivers/power/pmic/pmic_mc34vr500.c b/drivers/power/pmic/pmic_mc34vr500.c
index 9dd1c46ea220..9a3f748538ce 100644
--- a/drivers/power/pmic/pmic_mc34vr500.c
+++ b/drivers/power/pmic/pmic_mc34vr500.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <errno.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <power/pmic.h>
 #include <power/mc34vr500_pmic.h>
 
diff --git a/drivers/power/pmic/pmic_pca9450.c b/drivers/power/pmic/pmic_pca9450.c
index d4f27428bd11..651f3a0c2742 100644
--- a/drivers/power/pmic/pmic_pca9450.c
+++ b/drivers/power/pmic/pmic_pca9450.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <errno.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <power/pmic.h>
 #include <power/pca9450.h>
 
diff --git a/drivers/power/pmic/pmic_pfuze100.c b/drivers/power/pmic/pmic_pfuze100.c
index c646a0c31f82..25a4aa0ed624 100644
--- a/drivers/power/pmic/pmic_pfuze100.c
+++ b/drivers/power/pmic/pmic_pfuze100.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <errno.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <power/pmic.h>
 #include <power/pfuze100_pmic.h>
 
diff --git a/drivers/power/pmic/pmic_pfuze3000.c b/drivers/power/pmic/pmic_pfuze3000.c
index 1077fa5e9d98..82d932cef1bf 100644
--- a/drivers/power/pmic/pmic_pfuze3000.c
+++ b/drivers/power/pmic/pmic_pfuze3000.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <errno.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <power/pmic.h>
 #include <power/pfuze3000_pmic.h>
 
diff --git a/drivers/power/pmic/pmic_tps62362.c b/drivers/power/pmic/pmic_tps62362.c
index c3977fccc3b6..790f1fad0470 100644
--- a/drivers/power/pmic/pmic_tps62362.c
+++ b/drivers/power/pmic/pmic_tps62362.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/tps62362.h>
diff --git a/drivers/power/pmic/pmic_tps65218.c b/drivers/power/pmic/pmic_tps65218.c
index 7c95e5e75809..992838de1b3f 100644
--- a/drivers/power/pmic/pmic_tps65218.c
+++ b/drivers/power/pmic/pmic_tps65218.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <linux/errno.h>
 #include <power/pmic.h>
 #include <power/tps65218.h>
diff --git a/drivers/power/pmic/rk8xx.c b/drivers/power/pmic/rk8xx.c
index 148ee29cca00..71027e8da35b 100644
--- a/drivers/power/pmic/rk8xx.c
+++ b/drivers/power/pmic/rk8xx.c
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
+#include <stdio.h>
 #include <power/rk8xx_pmic.h>
 #include <power/pmic.h>
 
diff --git a/drivers/power/pmic/tps65941.c b/drivers/power/pmic/tps65941.c
index e464d2984e47..fd350b24df28 100644
--- a/drivers/power/pmic/tps65941.c
+++ b/drivers/power/pmic/tps65941.c
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/printk.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/power_core.c b/drivers/power/power_core.c
index 9caa4d72b6de..a7df7965f641 100644
--- a/drivers/power/power_core.c
+++ b/drivers/power/power_core.c
@@ -13,6 +13,7 @@
 #include <command.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include <linux/types.h>
 #include <linux/list.h>
diff --git a/drivers/power/power_dialog.c b/drivers/power/power_dialog.c
index e286dd108f31..62e460bd5812 100644
--- a/drivers/power/power_dialog.c
+++ b/drivers/power/power_dialog.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <power/pmic.h>
 #include <dialog_pmic.h>
 #include <errno.h>
diff --git a/drivers/power/power_fsl.c b/drivers/power/power_fsl.c
index a163300ab6b8..2324815a5bdf 100644
--- a/drivers/power/power_fsl.c
+++ b/drivers/power/power_fsl.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <spi.h>
+#include <stdio.h>
 #include <power/pmic.h>
 #include <fsl_pmic.h>
 #include <errno.h>
diff --git a/drivers/power/power_i2c.c b/drivers/power/power_i2c.c
index 41d7113251d9..ebf078fe7140 100644
--- a/drivers/power/power_i2c.c
+++ b/drivers/power/power_i2c.c
@@ -12,6 +12,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include <linux/types.h>
 #include <power/pmic.h>
diff --git a/drivers/power/regulator/lp873x_regulator.c b/drivers/power/regulator/lp873x_regulator.c
index 5b73f54172c4..9ec23b6f5484 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 <stdio.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/lp873x.h>
diff --git a/drivers/power/regulator/lp87565_regulator.c b/drivers/power/regulator/lp87565_regulator.c
index 4ea6c346d7c7..5b14c07b4ce7 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 <stdio.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <power/lp87565.h>
diff --git a/drivers/power/regulator/palmas_regulator.c b/drivers/power/regulator/palmas_regulator.c
index 9bb8c7ff32a9..adbc921e53a2 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 <stdio.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 185e38e32a4e..2031d882953a 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 <stdio.h>
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
 #include <power/regulator.h>
diff --git a/drivers/power/regulator/regulator-uclass.c b/drivers/power/regulator/regulator-uclass.c
index c20c42b29d03..2f095d57e8e4 100644
--- a/drivers/power/regulator/regulator-uclass.c
+++ b/drivers/power/regulator/regulator-uclass.c
@@ -8,6 +8,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <dm/uclass-internal.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/drivers/power/regulator/tps65941_regulator.c b/drivers/power/regulator/tps65941_regulator.c
index 150c72d7ec4a..c25ca3181004 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 <stdio.h>
 #include <linux/delay.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
diff --git a/drivers/power/twl4030.c b/drivers/power/twl4030.c
index 34e7fa3d7206..c62db5f24f5d 100644
--- a/drivers/power/twl4030.c
+++ b/drivers/power/twl4030.c
@@ -23,6 +23,7 @@
  */
 
 #include <command.h>
+#include <stdio.h>
 #include <twl4030.h>
 #include <linux/delay.h>
 #include <linux/printk.h>
diff --git a/drivers/power/twl6030.c b/drivers/power/twl6030.c
index 2c5e4960e54c..3f9c2550c3dd 100644
--- a/drivers/power/twl6030.c
+++ b/drivers/power/twl6030.c
@@ -4,6 +4,7 @@
  * Texas Instruments, <www.ti.com>
  */
 #include <config.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/printk.h>
 
diff --git a/drivers/pwm/pwm-imx-util.c b/drivers/pwm/pwm-imx-util.c
index 823a9d2d6bfa..3da4cf988a33 100644
--- a/drivers/pwm/pwm-imx-util.c
+++ b/drivers/pwm/pwm-imx-util.c
@@ -12,6 +12,7 @@
 
 #include <common.h>
 #include <div64.h>
+#include <stdio.h>
 #include <asm/arch/imx-regs.h>
 
 /* pwm_id from 0..7 */
diff --git a/drivers/pwm/pwm-mtk.c b/drivers/pwm/pwm-mtk.c
index 7bd82518d67b..48acb6d744e4 100644
--- a/drivers/pwm/pwm-mtk.c
+++ b/drivers/pwm/pwm-mtk.c
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <pwm.h>
 #include <div64.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/io.h>
 
diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c
index cfcc247389af..cd3ef1789677 100644
--- a/drivers/qe/qe.c
+++ b/drivers/qe/qe.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <malloc.h>
 #include <command.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/errno.h>
 #include <asm/io.h>
diff --git a/drivers/qe/uccf.c b/drivers/qe/uccf.c
index 4d5840e77b1b..b4f0a0979c29 100644
--- a/drivers/qe/uccf.c
+++ b/drivers/qe/uccf.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <linux/immap_qe.h>
diff --git a/drivers/qe/uec.c b/drivers/qe/uec.c
index 3d2a37466a50..d765cd1f5958 100644
--- a/drivers/qe/uec.c
+++ b/drivers/qe/uec.c
@@ -9,6 +9,7 @@
 #include <log.h>
 #include <net.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
diff --git a/drivers/qe/uec_phy.c b/drivers/qe/uec_phy.c
index 69a520d4baf9..c9beb852defd 100644
--- a/drivers/qe/uec_phy.c
+++ b/drivers/qe/uec_phy.c
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <net.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/immap_qe.h>
diff --git a/drivers/ram/k3-am654-ddrss.c b/drivers/ram/k3-am654-ddrss.c
index 21e5a6552956..21d5426f5c8a 100644
--- a/drivers/ram/k3-am654-ddrss.c
+++ b/drivers/ram/k3-am654-ddrss.c
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <log.h>
 #include <ram.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <power-domain.h>
 #include <asm/arch/sys_proto.h>
diff --git a/drivers/ram/k3-j721e/k3-j721e-ddrss.c b/drivers/ram/k3-j721e/k3-j721e-ddrss.c
index d647a8a2090c..25cdf83922f9 100644
--- a/drivers/ram/k3-j721e/k3-j721e-ddrss.c
+++ b/drivers/ram/k3-j721e/k3-j721e-ddrss.c
@@ -11,6 +11,7 @@
 #include <hang.h>
 #include <log.h>
 #include <ram.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <power-domain.h>
 #include <wait_bit.h>
diff --git a/drivers/ram/rockchip/dmc-rk3368.c b/drivers/ram/rockchip/dmc-rk3368.c
index faf291e5763f..8795ad1c32cd 100644
--- a/drivers/ram/rockchip/dmc-rk3368.c
+++ b/drivers/ram/rockchip/dmc-rk3368.c
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <hang.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <dt-bindings/memory/rk3368-dmc.h>
 #include <dt-structs.h>
diff --git a/drivers/ram/rockchip/sdram_common.c b/drivers/ram/rockchip/sdram_common.c
index b3e7421d0854..5dd68c976822 100644
--- a/drivers/ram/rockchip/sdram_common.c
+++ b/drivers/ram/rockchip/sdram_common.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <debug_uart.h>
 #include <ram.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/sdram.h>
 #include <asm/arch-rockchip/sdram_common.h>
diff --git a/drivers/ram/rockchip/sdram_rk3188.c b/drivers/ram/rockchip/sdram_rk3188.c
index d3ed9bcc29e2..a2c36fa3cad4 100644
--- a/drivers/ram/rockchip/sdram_rk3188.c
+++ b/drivers/ram/rockchip/sdram_rk3188.c
@@ -16,6 +16,7 @@
 #include <log.h>
 #include <ram.h>
 #include <regmap.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
diff --git a/drivers/ram/rockchip/sdram_rk322x.c b/drivers/ram/rockchip/sdram_rk322x.c
index 4154f0c2642f..51d87e6d29fd 100644
--- a/drivers/ram/rockchip/sdram_rk322x.c
+++ b/drivers/ram/rockchip/sdram_rk322x.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <ram.h>
 #include <regmap.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/ram/rockchip/sdram_rk3288.c b/drivers/ram/rockchip/sdram_rk3288.c
index 01f030e01a16..1063fde3e877 100644
--- a/drivers/ram/rockchip/sdram_rk3288.c
+++ b/drivers/ram/rockchip/sdram_rk3288.c
@@ -16,6 +16,7 @@
 #include <log.h>
 #include <ram.h>
 #include <regmap.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
diff --git a/drivers/ram/rockchip/sdram_rk3328.c b/drivers/ram/rockchip/sdram_rk3328.c
index 586e82e6ebc0..e61972e322c7 100644
--- a/drivers/ram/rockchip/sdram_rk3328.c
+++ b/drivers/ram/rockchip/sdram_rk3328.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <ram.h>
 #include <regmap.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c
index 530c8a2f4013..935bfc97b147 100644
--- a/drivers/ram/rockchip/sdram_rk3399.c
+++ b/drivers/ram/rockchip/sdram_rk3399.c
@@ -13,6 +13,7 @@
 #include <log.h>
 #include <ram.h>
 #include <regmap.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
diff --git a/drivers/ram/sifive/fu540_ddr.c b/drivers/ram/sifive/fu540_ddr.c
index 7208d350f410..eff6da55ad26 100644
--- a/drivers/ram/sifive/fu540_ddr.c
+++ b/drivers/ram/sifive/fu540_ddr.c
@@ -12,6 +12,7 @@
 #include <init.h>
 #include <ram.h>
 #include <regmap.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/ram/stm32mp1/stm32mp1_ddr.c b/drivers/ram/stm32mp1/stm32mp1_ddr.c
index 350681bcfe54..911bc2223db1 100644
--- a/drivers/ram/stm32mp1/stm32mp1_ddr.c
+++ b/drivers/ram/stm32mp1/stm32mp1_ddr.c
@@ -8,6 +8,7 @@
 #include <log.h>
 #include <ram.h>
 #include <reset.h>
+#include <stdio.h>
 #include <timer.h>
 #include <asm/io.h>
 #include <asm/arch/ddr.h>
diff --git a/drivers/ram/stm32mp1/stm32mp1_interactive.c b/drivers/ram/stm32mp1/stm32mp1_interactive.c
index 398018e4c253..e758abe9ee99 100644
--- a/drivers/ram/stm32mp1/stm32mp1_interactive.c
+++ b/drivers/ram/stm32mp1/stm32mp1_interactive.c
@@ -12,6 +12,7 @@
 #include <malloc.h>
 #include <ram.h>
 #include <reset.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
diff --git a/drivers/ram/stm32mp1/stm32mp1_ram.c b/drivers/ram/stm32mp1/stm32mp1_ram.c
index 85e01ffd098d..a24788957dfb 100644
--- a/drivers/ram/stm32mp1/stm32mp1_ram.c
+++ b/drivers/ram/stm32mp1/stm32mp1_ram.c
@@ -10,6 +10,7 @@
 #include <log.h>
 #include <ram.h>
 #include <regmap.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <linux/printk.h>
diff --git a/drivers/ram/stm32mp1/stm32mp1_tests.c b/drivers/ram/stm32mp1/stm32mp1_tests.c
index a5433ac14024..2d73b768b49d 100644
--- a/drivers/ram/stm32mp1/stm32mp1_tests.c
+++ b/drivers/ram/stm32mp1/stm32mp1_tests.c
@@ -7,6 +7,7 @@
 #include <init.h>
 #include <log.h>
 #include <rand.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/ram/stm32mp1/stm32mp1_tuning.c b/drivers/ram/stm32mp1/stm32mp1_tuning.c
index 222777ad3cf3..8707dead754c 100644
--- a/drivers/ram/stm32mp1/stm32mp1_tuning.c
+++ b/drivers/ram/stm32mp1/stm32mp1_tuning.c
@@ -9,6 +9,7 @@
 #include <ram.h>
 #include <rand.h>
 #include <reset.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
diff --git a/drivers/remoteproc/ti_k3_r5f_rproc.c b/drivers/remoteproc/ti_k3_r5f_rproc.c
index c3018d74a47e..964a75309adb 100644
--- a/drivers/remoteproc/ti_k3_r5f_rproc.c
+++ b/drivers/remoteproc/ti_k3_r5f_rproc.c
@@ -14,6 +14,7 @@
 #include <errno.h>
 #include <clk.h>
 #include <reset.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
diff --git a/drivers/reset/reset-socfpga.c b/drivers/reset/reset-socfpga.c
index 830eda9430ec..87daf65d7fe0 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 <stdio.h>
 #include <dm/lists.h>
 #include <dm/of_access.h>
 #include <env.h>
diff --git a/drivers/reset/reset-sunxi.c b/drivers/reset/reset-sunxi.c
index 05f7f599ce30..b9ca80e9b025 100644
--- a/drivers/reset/reset-sunxi.c
+++ b/drivers/reset/reset-sunxi.c
@@ -10,6 +10,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <reset-uclass.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <dm/lists.h>
 #include <linux/bitops.h>
diff --git a/drivers/rng/stm32mp1_rng.c b/drivers/rng/stm32mp1_rng.c
index 4354edd4a1bd..32f8cebb687d 100644
--- a/drivers/rng/stm32mp1_rng.c
+++ b/drivers/rng/stm32mp1_rng.c
@@ -9,6 +9,7 @@
 #include <log.h>
 #include <reset.h>
 #include <rng.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/drivers/rtc/davinci.c b/drivers/rtc/davinci.c
index c446e7a735fd..fe6a21fdf003 100644
--- a/drivers/rtc/davinci.c
+++ b/drivers/rtc/davinci.c
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <log.h>
 #include <rtc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/davinci_rtc.h>
 #include <linux/delay.h>
diff --git a/drivers/rtc/ds1302.c b/drivers/rtc/ds1302.c
index 21655085d1b7..2667f149baf3 100644
--- a/drivers/rtc/ds1302.c
+++ b/drivers/rtc/ds1302.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <command.h>
 #include <rtc.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 
diff --git a/drivers/rtc/ds1307.c b/drivers/rtc/ds1307.c
index 17344d4d4ff2..acdae077c40c 100644
--- a/drivers/rtc/ds1307.c
+++ b/drivers/rtc/ds1307.c
@@ -19,6 +19,7 @@
 #include <log.h>
 #include <rtc.h>
 #include <i2c.h>
+#include <stdio.h>
 
 enum ds_type {
 	ds_1307,
diff --git a/drivers/rtc/ds1337.c b/drivers/rtc/ds1337.c
index 4986c96f8623..9b9a9d6a810d 100644
--- a/drivers/rtc/ds1337.c
+++ b/drivers/rtc/ds1337.c
@@ -17,6 +17,7 @@
 #include <log.h>
 #include <rtc.h>
 #include <i2c.h>
+#include <stdio.h>
 
 /*
  * RTC register addresses
diff --git a/drivers/rtc/ds1374.c b/drivers/rtc/ds1374.c
index 9f2647d707e5..5ca0e32b50c7 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 <stdio.h>
 
 /*---------------------------------------------------------------------*/
 #undef DEBUG_RTC
diff --git a/drivers/rtc/ds1556.c b/drivers/rtc/ds1556.c
index 687b32937a08..27bf42816989 100644
--- a/drivers/rtc/ds1556.c
+++ b/drivers/rtc/ds1556.c
@@ -18,6 +18,7 @@
 #include <common.h>
 #include <command.h>
 #include <rtc.h>
+#include <stdio.h>
 
 #if defined(CONFIG_CMD_DATE)
 
diff --git a/drivers/rtc/ds164x.c b/drivers/rtc/ds164x.c
index f8707892e71f..b363908e79a7 100644
--- a/drivers/rtc/ds164x.c
+++ b/drivers/rtc/ds164x.c
@@ -18,6 +18,7 @@
 #include <common.h>
 #include <command.h>
 #include <rtc.h>
+#include <stdio.h>
 
 
 static uchar    rtc_read(unsigned int addr );
diff --git a/drivers/rtc/ds174x.c b/drivers/rtc/ds174x.c
index 94f943d97a5e..b7ee5b7ba1d5 100644
--- a/drivers/rtc/ds174x.c
+++ b/drivers/rtc/ds174x.c
@@ -15,6 +15,7 @@
 #include <common.h>
 #include <command.h>
 #include <rtc.h>
+#include <stdio.h>
 
 static uchar rtc_read( unsigned int addr );
 static void  rtc_write( unsigned int addr, uchar val);
diff --git a/drivers/rtc/ds3231.c b/drivers/rtc/ds3231.c
index 5b72e86768a1..328b03ed05da 100644
--- a/drivers/rtc/ds3231.c
+++ b/drivers/rtc/ds3231.c
@@ -20,6 +20,7 @@
 #include <log.h>
 #include <rtc.h>
 #include <i2c.h>
+#include <stdio.h>
 
 /*
  * RTC register addresses
diff --git a/drivers/rtc/imxdi.c b/drivers/rtc/imxdi.c
index e3a1393266c3..55def3ac9fd9 100644
--- a/drivers/rtc/imxdi.c
+++ b/drivers/rtc/imxdi.c
@@ -14,6 +14,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 #include <linux/compat.h>
 #include <rtc.h>
 #include <linux/delay.h>
diff --git a/drivers/rtc/isl1208.c b/drivers/rtc/isl1208.c
index 59a60b75b307..47c48bfc11f5 100644
--- a/drivers/rtc/isl1208.c
+++ b/drivers/rtc/isl1208.c
@@ -16,6 +16,7 @@
 #include <dm.h>
 #include <rtc.h>
 #include <i2c.h>
+#include <stdio.h>
 
 /*---------------------------------------------------------------------*/
 #ifdef DEBUG_RTC
diff --git a/drivers/rtc/m41t11.c b/drivers/rtc/m41t11.c
index 706b7188cf83..469551980a90 100644
--- a/drivers/rtc/m41t11.c
+++ b/drivers/rtc/m41t11.c
@@ -16,6 +16,7 @@
 #include <log.h>
 #include <rtc.h>
 #include <i2c.h>
+#include <stdio.h>
 
 /*
 	I Don't have an example config file but this
diff --git a/drivers/rtc/m41t60.c b/drivers/rtc/m41t60.c
index 692042b93519..21775a5aed63 100644
--- a/drivers/rtc/m41t60.c
+++ b/drivers/rtc/m41t60.c
@@ -21,6 +21,7 @@
 #include <log.h>
 #include <rtc.h>
 #include <i2c.h>
+#include <stdio.h>
 
 /*
  * Convert between century and "century bits" (CB1 and CB0).  These routines
diff --git a/drivers/rtc/m41t62.c b/drivers/rtc/m41t62.c
index 94a6b523aab3..23ebaddf9417 100644
--- a/drivers/rtc/m41t62.c
+++ b/drivers/rtc/m41t62.c
@@ -22,6 +22,7 @@
 #include <log.h>
 #include <rtc.h>
 #include <i2c.h>
+#include <stdio.h>
 
 #define M41T62_REG_SSEC	0
 #define M41T62_REG_SEC	1
diff --git a/drivers/rtc/mc146818.c b/drivers/rtc/mc146818.c
index b98c39d8219c..43318e066efc 100644
--- a/drivers/rtc/mc146818.c
+++ b/drivers/rtc/mc146818.c
@@ -12,6 +12,7 @@
 #include <command.h>
 #include <dm.h>
 #include <rtc.h>
+#include <stdio.h>
 
 #if defined(CONFIG_X86) || defined(CONFIG_MALTA)
 #include <asm/io.h>
diff --git a/drivers/rtc/mcfrtc.c b/drivers/rtc/mcfrtc.c
index e10638ec7dd3..f86caae9eb24 100644
--- a/drivers/rtc/mcfrtc.c
+++ b/drivers/rtc/mcfrtc.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 
 #include <command.h>
 #include <rtc.h>
diff --git a/drivers/rtc/mvrtc.c b/drivers/rtc/mvrtc.c
index ed057f7bc4e4..6a0224cad736 100644
--- a/drivers/rtc/mvrtc.c
+++ b/drivers/rtc/mvrtc.c
@@ -12,6 +12,7 @@
 #include <command.h>
 #include <dm.h>
 #include <rtc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include "mvrtc.h"
diff --git a/drivers/rtc/mxsrtc.c b/drivers/rtc/mxsrtc.c
index be899a925408..ec0c631cc499 100644
--- a/drivers/rtc/mxsrtc.c
+++ b/drivers/rtc/mxsrtc.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <rtc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/sys_proto.h>
diff --git a/drivers/rtc/pcf2127.c b/drivers/rtc/pcf2127.c
index 88ff8c52c350..e4ab395f514a 100644
--- a/drivers/rtc/pcf2127.c
+++ b/drivers/rtc/pcf2127.c
@@ -11,6 +11,7 @@
 #include <i2c.h>
 #include <log.h>
 #include <rtc.h>
+#include <stdio.h>
 
 #define PCF2127_REG_CTRL1	0x00
 #define PCF2127_REG_CTRL2	0x01
diff --git a/drivers/rtc/pcf8563.c b/drivers/rtc/pcf8563.c
index 19faefba7c8f..79d1b71a0cfa 100644
--- a/drivers/rtc/pcf8563.c
+++ b/drivers/rtc/pcf8563.c
@@ -16,6 +16,7 @@
 #include <log.h>
 #include <rtc.h>
 #include <i2c.h>
+#include <stdio.h>
 
 #if !CONFIG_IS_ENABLED(DM_RTC)
 static uchar rtc_read  (uchar reg);
diff --git a/drivers/rtc/pt7c4338.c b/drivers/rtc/pt7c4338.c
index c987494b669d..4718229657e6 100644
--- a/drivers/rtc/pt7c4338.c
+++ b/drivers/rtc/pt7c4338.c
@@ -24,6 +24,7 @@
 #include <log.h>
 #include <rtc.h>
 #include <i2c.h>
+#include <stdio.h>
 
 /* RTC register addresses */
 #define RTC_SEC_REG_ADDR        0x0
diff --git a/drivers/rtc/rs5c372.c b/drivers/rtc/rs5c372.c
index 64ff8c89d40e..e9a3329a7315 100644
--- a/drivers/rtc/rs5c372.c
+++ b/drivers/rtc/rs5c372.c
@@ -23,6 +23,7 @@
 #include <command.h>
 #include <rtc.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 /*
diff --git a/drivers/rtc/rv3029.c b/drivers/rtc/rv3029.c
index 188560d3d459..4dddf62aca88 100644
--- a/drivers/rtc/rv3029.c
+++ b/drivers/rtc/rv3029.c
@@ -14,6 +14,7 @@
 #include <i2c.h>
 #include <log.h>
 #include <rtc.h>
+#include <stdio.h>
 #include <time.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
diff --git a/drivers/rtc/rv8803.c b/drivers/rtc/rv8803.c
index acd50c656483..5e16676c04c8 100644
--- a/drivers/rtc/rv8803.c
+++ b/drivers/rtc/rv8803.c
@@ -16,6 +16,7 @@
 #include <log.h>
 #include <rtc.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 
 /*
diff --git a/drivers/rtc/rx8010sj.c b/drivers/rtc/rx8010sj.c
index d513561b8202..1d9b7cd6358c 100644
--- a/drivers/rtc/rx8010sj.c
+++ b/drivers/rtc/rx8010sj.c
@@ -21,6 +21,7 @@
 #include <dm.h>
 #include <i2c.h>
 #include <rtc.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 
 /*---------------------------------------------------------------------*/
diff --git a/drivers/rtc/rx8025.c b/drivers/rtc/rx8025.c
index e717dcbbfe35..7fd04d999b0f 100644
--- a/drivers/rtc/rx8025.c
+++ b/drivers/rtc/rx8025.c
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <i2c.h>
 #include <rtc.h>
+#include <stdio.h>
 
 /*---------------------------------------------------------------------*/
 #undef DEBUG_RTC
diff --git a/drivers/rtc/s35392a.c b/drivers/rtc/s35392a.c
index 80f55c86233a..5d70ed1ecda8 100644
--- a/drivers/rtc/s35392a.c
+++ b/drivers/rtc/s35392a.c
@@ -21,6 +21,7 @@
 #include <common.h>
 #include <dm.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <linux/bitrev.h>
 #include <rtc.h>
 #include <linux/delay.h>
diff --git a/drivers/rtc/s3c24x0_rtc.c b/drivers/rtc/s3c24x0_rtc.c
index 96ea3cf878ee..807347a91495 100644
--- a/drivers/rtc/s3c24x0_rtc.c
+++ b/drivers/rtc/s3c24x0_rtc.c
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <stdio.h>
 
 #include <asm/arch/s3c24x0_cpu.h>
 
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c
index 2492c3394b97..6f940d23e7a2 100644
--- a/drivers/scsi/scsi.c
+++ b/drivers/scsi/scsi.c
@@ -13,6 +13,7 @@
 #include <part.h>
 #include <pci.h>
 #include <scsi.h>
+#include <stdio.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
 #include <linux/string.h>
diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c
index a21aee247415..2ef344a46ecf 100644
--- a/drivers/serial/serial-uclass.c
+++ b/drivers/serial/serial-uclass.c
@@ -10,6 +10,7 @@
 #include <malloc.h>
 #include <os.h>
 #include <serial.h>
+#include <stdio.h>
 #include <stdio_dev.h>
 #include <watchdog.h>
 #include <asm/global_data.h>
diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c
index 2f7d65f72d16..151bba4ab66a 100644
--- a/drivers/serial/serial.c
+++ b/drivers/serial/serial.c
@@ -8,6 +8,7 @@
 #include <env_internal.h>
 #include <hang.h>
 #include <serial.h>
+#include <stdio.h>
 #include <stdio_dev.h>
 #include <post.h>
 #include <asm/global_data.h>
diff --git a/drivers/soc/ti/keystone_serdes.c b/drivers/soc/ti/keystone_serdes.c
index 2ece1a8f6470..f2a5c18b80bd 100644
--- a/drivers/soc/ti/keystone_serdes.c
+++ b/drivers/soc/ti/keystone_serdes.c
@@ -8,6 +8,7 @@
 
 #include <errno.h>
 #include <common.h>
+#include <stdio.h>
 #include <asm/ti-common/keystone_serdes.h>
 #include <linux/bitops.h>
 
diff --git a/drivers/sound/hda_codec.c b/drivers/sound/hda_codec.c
index 4154d2939981..93820d77802f 100644
--- a/drivers/sound/hda_codec.c
+++ b/drivers/sound/hda_codec.c
@@ -13,6 +13,7 @@
 #include <log.h>
 #include <pci.h>
 #include <sound.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <dt-bindings/sound/azalia.h>
 #include <linux/bitops.h>
diff --git a/drivers/spi/atcspi200_spi.c b/drivers/spi/atcspi200_spi.c
index 7ba208baf2e7..79bcd12367b5 100644
--- a/drivers/spi/atcspi200_spi.c
+++ b/drivers/spi/atcspi200_spi.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <spi.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm.h>
diff --git a/drivers/spi/bcm63xx_hsspi.c b/drivers/spi/bcm63xx_hsspi.c
index f30a8a42bd45..f59143802485 100644
--- a/drivers/spi/bcm63xx_hsspi.c
+++ b/drivers/spi/bcm63xx_hsspi.c
@@ -14,6 +14,7 @@
 #include <malloc.h>
 #include <spi.h>
 #include <reset.h>
+#include <stdio.h>
 #include <wait_bit.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
diff --git a/drivers/spi/bcm63xx_spi.c b/drivers/spi/bcm63xx_spi.c
index acc1a493c4eb..a5550a214e8e 100644
--- a/drivers/spi/bcm63xx_spi.c
+++ b/drivers/spi/bcm63xx_spi.c
@@ -14,6 +14,7 @@
 #include <malloc.h>
 #include <spi.h>
 #include <reset.h>
+#include <stdio.h>
 #include <wait_bit.h>
 #include <asm/io.h>
 
diff --git a/drivers/spi/bcmstb_spi.c b/drivers/spi/bcmstb_spi.c
index 40364fbf57c1..5879a7883b1c 100644
--- a/drivers/spi/bcmstb_spi.c
+++ b/drivers/spi/bcmstb_spi.c
@@ -5,6 +5,7 @@
  * Author: Thomas Fitzsimmons <fitzsim at fitzsim.org>
  */
 
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <command.h>
diff --git a/drivers/spi/cadence_qspi.c b/drivers/spi/cadence_qspi.c
index 1e8574920907..4b77a6b4b727 100644
--- a/drivers/spi/cadence_qspi.c
+++ b/drivers/spi/cadence_qspi.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm-generic/io.h>
 #include <dm.h>
 #include <fdtdec.h>
diff --git a/drivers/spi/cadence_qspi_apb.c b/drivers/spi/cadence_qspi_apb.c
index f1f510ef65f6..d97b299a93c8 100644
--- a/drivers/spi/cadence_qspi_apb.c
+++ b/drivers/spi/cadence_qspi_apb.c
@@ -27,6 +27,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 #include <dma.h>
diff --git a/drivers/spi/cf_spi.c b/drivers/spi/cf_spi.c
index 0f39fe843989..a6a5c7f17c99 100644
--- a/drivers/spi/cf_spi.c
+++ b/drivers/spi/cf_spi.c
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/platform_data/spi_coldfire.h>
 #include <spi.h>
diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c
index c1b21a8cd358..3d1c0b58070d 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 <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
diff --git a/drivers/spi/designware_spi.c b/drivers/spi/designware_spi.c
index 2559aac2e942..3838504455ab 100644
--- a/drivers/spi/designware_spi.c
+++ b/drivers/spi/designware_spi.c
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm-generic/gpio.h>
 #include <clk.h>
 #include <dm.h>
diff --git a/drivers/spi/kirkwood_spi.c b/drivers/spi/kirkwood_spi.c
index dc7d2bc1f01c..3659e5e8adec 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 <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/soc.h>
 #ifdef CONFIG_ARCH_KIRKWOOD
diff --git a/drivers/spi/mpc8xx_spi.c b/drivers/spi/mpc8xx_spi.c
index f7981b8638cd..0f9ebc58f297 100644
--- a/drivers/spi/mpc8xx_spi.c
+++ b/drivers/spi/mpc8xx_spi.c
@@ -20,6 +20,7 @@
 #include <dm.h>
 #include <mpc8xx.h>
 #include <spi.h>
+#include <stdio.h>
 #include <linux/delay.h>
 
 #include <asm/cpm_8xx.h>
diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c
index 4f4b7ea22e0e..b7fd47984de7 100644
--- a/drivers/spi/mpc8xxx_spi.c
+++ b/drivers/spi/mpc8xxx_spi.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <spi.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/mpc8xxx_spi.h>
 #include <asm-generic/gpio.h>
diff --git a/drivers/spi/mt7621_spi.c b/drivers/spi/mt7621_spi.c
index f13d21f5b2c5..786afaaa9cda 100644
--- a/drivers/spi/mt7621_spi.c
+++ b/drivers/spi/mt7621_spi.c
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <log.h>
 #include <spi.h>
+#include <stdio.h>
 #include <wait_bit.h>
 #include <linux/bitops.h>
 #include <linux/io.h>
diff --git a/drivers/spi/mtk_snfi_spi.c b/drivers/spi/mtk_snfi_spi.c
index 7f5d78e357e9..bd9b79929a9d 100644
--- a/drivers/spi/mtk_snfi_spi.c
+++ b/drivers/spi/mtk_snfi_spi.c
@@ -12,6 +12,7 @@
 #include <spi.h>
 #include <spi-mem.h>
 #include <stdbool.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <dm/pinctrl.h>
 #include <linux/bitops.h>
diff --git a/drivers/spi/mxc_spi.c b/drivers/spi/mxc_spi.c
index a2dbd8a96de0..00e3b5962279 100644
--- a/drivers/spi/mxc_spi.c
+++ b/drivers/spi/mxc_spi.c
@@ -8,6 +8,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <spi.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
diff --git a/drivers/spi/mxs_spi.c b/drivers/spi/mxs_spi.c
index 8d7bb35d02f9..8c541dc03e69 100644
--- a/drivers/spi/mxs_spi.c
+++ b/drivers/spi/mxs_spi.c
@@ -21,6 +21,7 @@
 #include <malloc.h>
 #include <memalign.h>
 #include <spi.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <linux/bitops.h>
 #include <linux/errno.h>
diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c
index 942db5ca5bab..3cee5a7fccda 100644
--- a/drivers/spi/omap3_spi.c
+++ b/drivers/spi/omap3_spi.c
@@ -20,6 +20,7 @@
 #include <dm.h>
 #include <spi.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/spi/pic32_spi.c b/drivers/spi/pic32_spi.c
index d08c26c8f4fe..4eb039f35793 100644
--- a/drivers/spi/pic32_spi.c
+++ b/drivers/spi/pic32_spi.c
@@ -10,6 +10,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
diff --git a/drivers/spi/renesas_rpc_spi.c b/drivers/spi/renesas_rpc_spi.c
index 1ceb7294bb63..9090667bf0fb 100644
--- a/drivers/spi/renesas_rpc_spi.c
+++ b/drivers/spi/renesas_rpc_spi.c
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <clk.h>
diff --git a/drivers/spi/sandbox_spi.c b/drivers/spi/sandbox_spi.c
index 755f17686149..d7cef659ea4a 100644
--- a/drivers/spi/sandbox_spi.c
+++ b/drivers/spi/sandbox_spi.c
@@ -17,6 +17,7 @@
 #include <spi.h>
 #include <spi_flash.h>
 #include <os.h>
+#include <stdio.h>
 
 #include <linux/errno.h>
 #include <asm/spi.h>
diff --git a/drivers/spi/sh_qspi.c b/drivers/spi/sh_qspi.c
index aa1c03047e28..49f3fdb6928c 100644
--- a/drivers/spi/sh_qspi.c
+++ b/drivers/spi/sh_qspi.c
@@ -10,6 +10,7 @@
 #include <console.h>
 #include <malloc.h>
 #include <spi.h>
+#include <stdio.h>
 #include <wait_bit.h>
 #include <asm/arch/rmobile.h>
 #include <asm/io.h>
diff --git a/drivers/spi/spi-sifive.c b/drivers/spi/spi-sifive.c
index a11728739866..b046792b636e 100644
--- a/drivers/spi/spi-sifive.c
+++ b/drivers/spi/spi-sifive.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <stdio.h>
 #include <dm/device_compat.h>
 #include <malloc.h>
 #include <spi.h>
diff --git a/drivers/spi/spi-sunxi.c b/drivers/spi/spi-sunxi.c
index be6ef1757a07..3b1e9fc22846 100644
--- a/drivers/spi/spi-sunxi.c
+++ b/drivers/spi/spi-sunxi.c
@@ -26,6 +26,7 @@
 #include <errno.h>
 #include <fdt_support.h>
 #include <reset.h>
+#include <stdio.h>
 #include <wait_bit.h>
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c
index 46b5249f5095..56869c125afb 100644
--- a/drivers/spi/spi-uclass.c
+++ b/drivers/spi/spi-uclass.c
@@ -9,6 +9,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <spi.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 426d30c6b21e..7662932d40a9 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -7,6 +7,7 @@
 #include <fdtdec.h>
 #include <malloc.h>
 #include <spi.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 int spi_set_wordlen(struct spi_slave *slave, unsigned int wordlen)
diff --git a/drivers/spi/tegra114_spi.c b/drivers/spi/tegra114_spi.c
index 0e8198c5a022..1b7246af2584 100644
--- a/drivers/spi/tegra114_spi.c
+++ b/drivers/spi/tegra114_spi.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/drivers/spi/tegra20_sflash.c b/drivers/spi/tegra20_sflash.c
index 5066f43ba614..7b81e785215c 100644
--- a/drivers/spi/tegra20_sflash.c
+++ b/drivers/spi/tegra20_sflash.c
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/spi/tegra20_slink.c b/drivers/spi/tegra20_slink.c
index d725a9574854..64485de5d327 100644
--- a/drivers/spi/tegra20_slink.c
+++ b/drivers/spi/tegra20_slink.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/spi/tegra210_qspi.c b/drivers/spi/tegra210_qspi.c
index 90ac21f8ad9b..19e50919f6db 100644
--- a/drivers/spi/tegra210_qspi.c
+++ b/drivers/spi/tegra210_qspi.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c
index 26cd83be76ab..ba97f3ece771 100644
--- a/drivers/spi/ti_qspi.c
+++ b/drivers/spi/ti_qspi.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c
index 348630faf381..6b1cea4519e2 100644
--- a/drivers/spi/xilinx_spi.c
+++ b/drivers/spi/xilinx_spi.c
@@ -19,6 +19,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <spi.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <wait_bit.h>
 #include <linux/bitops.h>
diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c
index 7607c5102490..a1022ad496e7 100644
--- a/drivers/spi/zynq_qspi.c
+++ b/drivers/spi/zynq_qspi.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <spi.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/spi/zynq_spi.c b/drivers/spi/zynq_spi.c
index b4604a4b2020..bbac203e0dd0 100644
--- a/drivers/spi/zynq_spi.c
+++ b/drivers/spi/zynq_spi.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <spi.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c
index 151618a99f41..01186f3c0399 100644
--- a/drivers/spi/zynqmp_gqspi.c
+++ b/drivers/spi/zynqmp_gqspi.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/drivers/spmi/spmi-msm.c b/drivers/spmi/spmi-msm.c
index 6b12a96ee3c0..1f9b3c310086 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 <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
diff --git a/drivers/sysreset/sysreset-uclass.c b/drivers/sysreset/sysreset-uclass.c
index d1b47eebac75..a42c603ff56d 100644
--- a/drivers/sysreset/sysreset-uclass.c
+++ b/drivers/sysreset/sysreset-uclass.c
@@ -11,6 +11,7 @@
 #include <cpu_func.h>
 #include <hang.h>
 #include <log.h>
+#include <stdio.h>
 #include <sysreset.h>
 #include <dm.h>
 #include <errno.h>
diff --git a/drivers/sysreset/sysreset_microblaze.c b/drivers/sysreset/sysreset_microblaze.c
index 514c95817f2f..b45e894440dc 100644
--- a/drivers/sysreset/sysreset_microblaze.c
+++ b/drivers/sysreset/sysreset_microblaze.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <stdio.h>
 #include <sysreset.h>
 #include <linux/err.h>
 
diff --git a/drivers/sysreset/sysreset_mpc83xx.c b/drivers/sysreset/sysreset_mpc83xx.c
index 0da8d5b3a577..2d0abca3200c 100644
--- a/drivers/sysreset/sysreset_mpc83xx.c
+++ b/drivers/sysreset/sysreset_mpc83xx.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <sysreset.h>
 #include <wait_bit.h>
 #include <asm/global_data.h>
diff --git a/drivers/sysreset/sysreset_socfpga_s10.c b/drivers/sysreset/sysreset_socfpga_s10.c
index 9837aadf64b6..b109320eedd0 100644
--- a/drivers/sysreset/sysreset_socfpga_s10.c
+++ b/drivers/sysreset/sysreset_socfpga_s10.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <stdio.h>
 #include <sysreset.h>
 #include <asm/arch/mailbox_s10.h>
 
diff --git a/drivers/tee/sandbox.c b/drivers/tee/sandbox.c
index 2f174fa00f91..00e6f91df987 100644
--- a/drivers/tee/sandbox.c
+++ b/drivers/tee/sandbox.c
@@ -5,6 +5,7 @@
 #include <common.h>
 #include <dm.h>
 #include <sandboxtee.h>
+#include <stdio.h>
 #include <tee.h>
 #include <linux/string.h>
 #include <tee/optee_ta_avb.h>
diff --git a/drivers/thermal/imx_scu_thermal.c b/drivers/thermal/imx_scu_thermal.c
index b3c823ffcb7b..9b2f74636a5f 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 <stdio.h>
 #include <thermal.h>
 #include <asm/global_data.h>
 #include <dm/device-internal.h>
diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c
index 101bd5ef2d74..82e8f8e65126 100644
--- a/drivers/thermal/imx_thermal.c
+++ b/drivers/thermal/imx_thermal.c
@@ -10,6 +10,7 @@
 #include <div64.h>
 #include <fuse.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
diff --git a/drivers/thermal/imx_tmu.c b/drivers/thermal/imx_tmu.c
index b9bdec00c6d9..6ec16a35f278 100644
--- a/drivers/thermal/imx_tmu.c
+++ b/drivers/thermal/imx_tmu.c
@@ -6,6 +6,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/drivers/tpm/cr50_i2c.c b/drivers/tpm/cr50_i2c.c
index 611dd534dc3a..8a1c65bbe8cd 100644
--- a/drivers/tpm/cr50_i2c.c
+++ b/drivers/tpm/cr50_i2c.c
@@ -13,6 +13,7 @@
 #include <irq.h>
 #include <log.h>
 #include <spl.h>
+#include <stdio.h>
 #include <time.h>
 #include <tpm-v2.h>
 #include <asm/gpio.h>
diff --git a/drivers/tpm/tpm2_tis_sandbox.c b/drivers/tpm/tpm2_tis_sandbox.c
index 708d030f5ebf..70e4e258db1b 100644
--- a/drivers/tpm/tpm2_tis_sandbox.c
+++ b/drivers/tpm/tpm2_tis_sandbox.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <stdio.h>
 #include <tpm-v2.h>
 #include <asm/state.h>
 #include <asm/unaligned.h>
diff --git a/drivers/tpm/tpm_atmel_twi.c b/drivers/tpm/tpm_atmel_twi.c
index ade72c056380..c8b597d43cc5 100644
--- a/drivers/tpm/tpm_atmel_twi.c
+++ b/drivers/tpm/tpm_atmel_twi.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <display_options.h>
 #include <dm.h>
+#include <stdio.h>
 #include <time.h>
 #include <tpm-v1.h>
 #include <i2c.h>
diff --git a/drivers/tpm/tpm_tis_lpc.c b/drivers/tpm/tpm_tis_lpc.c
index 8929b269ddf1..9ef0f3347338 100644
--- a/drivers/tpm/tpm_tis_lpc.c
+++ b/drivers/tpm/tpm_tis_lpc.c
@@ -16,6 +16,7 @@
 #include <dm.h>
 #include <log.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <tpm-v1.h>
 #include <asm/io.h>
 #include <linux/delay.h>
diff --git a/drivers/tpm/tpm_tis_sandbox.c b/drivers/tpm/tpm_tis_sandbox.c
index d923e9723ae5..bc96c7354d8c 100644
--- a/drivers/tpm/tpm_tis_sandbox.c
+++ b/drivers/tpm/tpm_tis_sandbox.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <display_options.h>
 #include <dm.h>
+#include <stdio.h>
 #include <tpm-v1.h>
 #include <asm/state.h>
 #include <asm/unaligned.h>
diff --git a/drivers/ufs/ufs.c b/drivers/ufs/ufs.c
index ab17ecf7f131..8509c65171dc 100644
--- a/drivers/ufs/ufs.c
+++ b/drivers/ufs/ufs.c
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c
index ea86a250608b..d5fb8a0edb35 100644
--- a/drivers/usb/cdns3/core.c
+++ b/drivers/usb/cdns3/core.c
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
diff --git a/drivers/usb/common/fsl-dt-fixup.c b/drivers/usb/common/fsl-dt-fixup.c
index bda8885d7cd3..b62b120d96f4 100644
--- a/drivers/usb/common/fsl-dt-fixup.c
+++ b/drivers/usb/common/fsl-dt-fixup.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <usb.h>
 #include <asm/io.h>
 #include <hwconfig.h>
diff --git a/drivers/usb/eth/asix.c b/drivers/usb/eth/asix.c
index c649813600b5..cbf2b12ffb07 100644
--- a/drivers/usb/eth/asix.c
+++ b/drivers/usb/eth/asix.c
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <usb.h>
 #include <malloc.h>
 #include <memalign.h>
diff --git a/drivers/usb/eth/asix88179.c b/drivers/usb/eth/asix88179.c
index f26b47dcb6a3..fa983257f300 100644
--- a/drivers/usb/eth/asix88179.c
+++ b/drivers/usb/eth/asix88179.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <usb.h>
 #include <net.h>
 #include <asm/u-boot.h>
diff --git a/drivers/usb/eth/lan7x.c b/drivers/usb/eth/lan7x.c
index b14836127835..d4fcda1ecd36 100644
--- a/drivers/usb/eth/lan7x.c
+++ b/drivers/usb/eth/lan7x.c
@@ -9,6 +9,7 @@
 #include <miiphy.h>
 #include <memalign.h>
 #include <net.h>
+#include <stdio.h>
 #include <usb.h>
 #include <linux/ethtool.h>
 #include <linux/mii.h>
diff --git a/drivers/usb/eth/lan7x.h b/drivers/usb/eth/lan7x.h
index f71e8c7268c6..feec7427a418 100644
--- a/drivers/usb/eth/lan7x.h
+++ b/drivers/usb/eth/lan7x.h
@@ -4,6 +4,7 @@
  */
 
 #include <console.h>
+#include <stdio.h>
 #include <time.h>
 #include <watchdog.h>
 #include <linux/bitops.h>
diff --git a/drivers/usb/eth/r8152.c b/drivers/usb/eth/r8152.c
index 0f37a5aaea56..d1b51201a35b 100644
--- a/drivers/usb/eth/r8152.c
+++ b/drivers/usb/eth/r8152.c
@@ -11,6 +11,7 @@
 #include <malloc.h>
 #include <memalign.h>
 #include <net.h>
+#include <stdio.h>
 #include <usb.h>
 #include <asm/u-boot.h>
 #include <linux/delay.h>
diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c
index f12e67bf238d..fb645f22e420 100644
--- a/drivers/usb/eth/smsc95xx.c
+++ b/drivers/usb/eth/smsc95xx.c
@@ -13,6 +13,7 @@
 #include <malloc.h>
 #include <memalign.h>
 #include <net.h>
+#include <stdio.h>
 #include <time.h>
 #include <usb.h>
 #include <asm/u-boot.h>
diff --git a/drivers/usb/eth/usb_ether.c b/drivers/usb/eth/usb_ether.c
index 91f34ab175de..097425b7afa2 100644
--- a/drivers/usb/eth/usb_ether.c
+++ b/drivers/usb/eth/usb_ether.c
@@ -9,6 +9,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <net.h>
+#include <stdio.h>
 #include <usb.h>
 #include <asm/cache.h>
 #include <dm/device-internal.h>
diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c
index 8674f3c9f4fa..64682355daa6 100644
--- a/drivers/usb/gadget/at91_udc.c
+++ b/drivers/usb/gadget/at91_udc.c
@@ -14,6 +14,7 @@
 #undef	PACKET_TRACE
 
 #include <common.h>
+#include <stdio.h>
 #include <dm/devres.h>
 #include <linux/bug.h>
 #include <linux/err.h>
diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c
index 23e107b86214..a586e16347d0 100644
--- a/drivers/usb/gadget/atmel_usba_udc.c
+++ b/drivers/usb/gadget/atmel_usba_udc.c
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
diff --git a/drivers/usb/gadget/ci_udc.c b/drivers/usb/gadget/ci_udc.c
index 98a88c102e9f..e119fd6a0337 100644
--- a/drivers/usb/gadget/ci_udc.c
+++ b/drivers/usb/gadget/ci_udc.c
@@ -13,6 +13,7 @@
 #include <cpu_func.h>
 #include <net.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/byteorder.h>
 #include <asm/cache.h>
 #include <linux/delay.h>
diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c
index 8a5edc776ef1..867f31be7b49 100644
--- a/drivers/usb/gadget/dwc2_udc_otg.c
+++ b/drivers/usb/gadget/dwc2_udc_otg.c
@@ -24,6 +24,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <reset.h>
+#include <stdio.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/bug.h>
diff --git a/drivers/usb/gadget/dwc2_udc_otg_phy.c b/drivers/usb/gadget/dwc2_udc_otg_phy.c
index 7f8e9564b9e5..69d712282436 100644
--- a/drivers/usb/gadget/dwc2_udc_otg_phy.c
+++ b/drivers/usb/gadget/dwc2_udc_otg_phy.c
@@ -18,6 +18,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/list.h>
diff --git a/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c b/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c
index 80b7e519978d..84b46709a58a 100644
--- a/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c
+++ b/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c
@@ -20,6 +20,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/bug.h>
 #include <linux/string.h>
 
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
index 4489db3613e1..927495d0b8d7 100644
--- a/drivers/usb/gadget/ether.c
+++ b/drivers/usb/gadget/ether.c
@@ -12,6 +12,7 @@
 #include <env.h>
 #include <log.h>
 #include <part.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/u-boot.h>
 #include <linux/errno.h>
diff --git a/drivers/usb/gadget/f_dfu.c b/drivers/usb/gadget/f_dfu.c
index b7b1e0c1add9..43a342c5afed 100644
--- a/drivers/usb/gadget/f_dfu.c
+++ b/drivers/usb/gadget/f_dfu.c
@@ -19,6 +19,7 @@
 #include <common.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #include <linux/usb/ch9.h>
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index e14262676f33..14a710a52384 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -17,6 +17,7 @@
 #include <fastboot.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 #include <linux/usb/ch9.h>
diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c
index d87701b4a35a..a220d1517615 100644
--- a/drivers/usb/gadget/f_mass_storage.c
+++ b/drivers/usb/gadget/f_mass_storage.c
@@ -246,6 +246,7 @@
 #include <common.h>
 #include <console.h>
 #include <g_dnl.h>
+#include <stdio.h>
 #include <dm/devres.h>
 #include <linux/bug.h>
 #include <linux/string.h>
diff --git a/drivers/usb/gadget/f_rockusb.c b/drivers/usb/gadget/f_rockusb.c
index 2ff3c692edcc..1705b7a611a8 100644
--- a/drivers/usb/gadget/f_rockusb.c
+++ b/drivers/usb/gadget/f_rockusb.c
@@ -13,6 +13,7 @@
 #include <malloc.h>
 #include <memalign.h>
 #include <part.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
diff --git a/drivers/usb/gadget/f_sdp.c b/drivers/usb/gadget/f_sdp.c
index 120aed4d95ec..34c393c9f047 100644
--- a/drivers/usb/gadget/f_sdp.c
+++ b/drivers/usb/gadget/f_sdp.c
@@ -22,6 +22,7 @@
 #include <env.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/drivers/usb/gadget/f_thor.c b/drivers/usb/gadget/f_thor.c
index 4758ccb7c460..11d703eb3320 100644
--- a/drivers/usb/gadget/f_thor.c
+++ b/drivers/usb/gadget/f_thor.c
@@ -22,6 +22,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <stdio.h>
 #include <version.h>
 #include <linux/delay.h>
 #include <linux/printk.h>
diff --git a/drivers/usb/gadget/fotg210.c b/drivers/usb/gadget/fotg210.c
index 1c145eb428e8..ff9e98a7566d 100644
--- a/drivers/usb/gadget/fotg210.c
+++ b/drivers/usb/gadget/fotg210.c
@@ -13,6 +13,7 @@
 #include <log.h>
 #include <net.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 #include <linux/delay.h>
diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget/g_dnl.c
index c6ecbb301929..cd4015f65a00 100644
--- a/drivers/usb/gadget/g_dnl.c
+++ b/drivers/usb/gadget/g_dnl.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #include <mmc.h>
diff --git a/drivers/usb/gadget/pxa25x_udc.c b/drivers/usb/gadget/pxa25x_udc.c
index 4f4d2982f88f..22db49164da8 100644
--- a/drivers/usb/gadget/pxa25x_udc.c
+++ b/drivers/usb/gadget/pxa25x_udc.c
@@ -19,6 +19,7 @@
 #include <common.h>
 #include <errno.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/byteorder.h>
 #include <asm/system.h>
diff --git a/drivers/usb/gadget/udc/udc-core.c b/drivers/usb/gadget/udc/udc-core.c
index 7f73926cb3e1..13c42aabab33 100644
--- a/drivers/usb/gadget/udc/udc-core.c
+++ b/drivers/usb/gadget/udc/udc-core.c
@@ -13,6 +13,7 @@
  *		       usb_
  */
 
+#include <stdio.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/compat.h>
diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c
index 7f04ea81bfcc..62eab821bb67 100644
--- a/drivers/usb/host/dwc2.c
+++ b/drivers/usb/host/dwc2.c
@@ -14,6 +14,7 @@
 #include <malloc.h>
 #include <memalign.h>
 #include <phys2bus.h>
+#include <stdio.h>
 #include <time.h>
 #include <usb.h>
 #include <usbroothubdes.h>
diff --git a/drivers/usb/host/ehci-faraday.c b/drivers/usb/host/ehci-faraday.c
index b61b5382df41..fe28aec8a85c 100644
--- a/drivers/usb/host/ehci-faraday.c
+++ b/drivers/usb/host/ehci-faraday.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <usb.h>
 #include <linux/delay.h>
diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
index 8c5403fbdb3d..45b82da4f4a7 100644
--- a/drivers/usb/host/ehci-fsl.c
+++ b/drivers/usb/host/ehci-fsl.c
@@ -11,6 +11,7 @@
 #include <env.h>
 #include <log.h>
 #include <pci.h>
+#include <stdio.h>
 #include <usb.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 60e5f4e41bca..fe6459e4a314 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/byteorder.h>
 #include <asm/cache.h>
diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c
index dd92808ff7b3..6492769b2a3e 100644
--- a/drivers/usb/host/ehci-msm.c
+++ b/drivers/usb/host/ehci-msm.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <stdio.h>
 #include <usb.h>
 #include <usb/ehci-ci.h>
 #include <usb/ulpi.h>
diff --git a/drivers/usb/host/ehci-mx5.c b/drivers/usb/host/ehci-mx5.c
index ca6cb6b645bb..709cb1cff54d 100644
--- a/drivers/usb/host/ehci-mx5.c
+++ b/drivers/usb/host/ehci-mx5.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <usb.h>
 #include <errno.h>
 #include <asm/global_data.h>
diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c
index f9e72ba0d967..51723fca051a 100644
--- a/drivers/usb/host/ehci-mx6.c
+++ b/drivers/usb/host/ehci-mx6.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <usb.h>
 #include <errno.h>
 #include <wait_bit.h>
diff --git a/drivers/usb/host/ehci-mxs.c b/drivers/usb/host/ehci-mxs.c
index 824c620e6387..05c0f4a196ee 100644
--- a/drivers/usb/host/ehci-mxs.c
+++ b/drivers/usb/host/ehci-mxs.c
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <errno.h>
diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c
index 5aa9eb445afc..4d3b6527ac9a 100644
--- a/drivers/usb/host/ehci-omap.c
+++ b/drivers/usb/host/ehci-omap.c
@@ -12,6 +12,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <usb.h>
 #include <linux/delay.h>
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index 7dd5c33c13df..d8dbd77114ac 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb/host/ehci-pci.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <log.h>
 #include <pci.h>
+#include <stdio.h>
 #include <usb.h>
 #include <asm/io.h>
 
diff --git a/drivers/usb/host/ehci-rmobile.c b/drivers/usb/host/ehci-rmobile.c
index 130b73dfe49d..72ae211d6271 100644
--- a/drivers/usb/host/ehci-rmobile.c
+++ b/drivers/usb/host/ehci-rmobile.c
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/arch/ehci-rmobile.h>
 #include <linux/delay.h>
diff --git a/drivers/usb/host/ehci-spear.c b/drivers/usb/host/ehci-spear.c
index 3e87e0c7fd8a..2e3ea349a726 100644
--- a/drivers/usb/host/ehci-spear.c
+++ b/drivers/usb/host/ehci-spear.c
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <usb.h>
 #include <linux/delay.h>
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c
index 3b9373f2cd64..d71e455446f1 100644
--- a/drivers/usb/host/ehci-tegra.c
+++ b/drivers/usb/host/ehci-tegra.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <asm/io.h>
diff --git a/drivers/usb/host/ehci-zynq.c b/drivers/usb/host/ehci-zynq.c
index 939c30999eeb..6eef3814a149 100644
--- a/drivers/usb/host/ehci-zynq.c
+++ b/drivers/usb/host/ehci-zynq.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <stdio.h>
 #include <usb.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index 89592f0a1143..598567d60477 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -29,6 +29,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <asm/byteorder.h>
 #include <dm.h>
 #include <errno.h>
diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c
index 339e260ea33c..7595813868c6 100644
--- a/drivers/usb/host/r8a66597-hcd.c
+++ b/drivers/usb/host/r8a66597-hcd.c
@@ -9,6 +9,7 @@
 #include <console.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <usb.h>
 #include <asm/io.h>
 #include <dm/device_compat.h>
diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c
index b33d7dc9ac49..c87b02f97471 100644
--- a/drivers/usb/host/sl811-hcd.c
+++ b/drivers/usb/host/sl811-hcd.c
@@ -20,6 +20,7 @@
 
 #include <common.h>
 #include <mpc8xx.h>
+#include <stdio.h>
 #include <time.h>
 #include <usb.h>
 #include <linux/delay.h>
diff --git a/drivers/usb/host/sl811.h b/drivers/usb/host/sl811.h
index c1f9f013bd1c..8eddb456194f 100644
--- a/drivers/usb/host/sl811.h
+++ b/drivers/usb/host/sl811.h
@@ -1,6 +1,7 @@
 #ifndef __UBOOT_SL811_H
 #define __UBOOT_SL811_H
 
+#include <stdio.h>
 #undef SL811_DEBUG
 
 #ifdef SL811_DEBUG
diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c
index 6d772000cde6..eb03956e9105 100644
--- a/drivers/usb/host/usb-uclass.c
+++ b/drivers/usb/host/usb-uclass.c
@@ -11,6 +11,7 @@
 #include <errno.h>
 #include <log.h>
 #include <memalign.h>
+#include <stdio.h>
 #include <usb.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
diff --git a/drivers/usb/host/xhci-dwc3.c b/drivers/usb/host/xhci-dwc3.c
index 44cb31c9c5fb..fdbf2c83b569 100644
--- a/drivers/usb/host/xhci-dwc3.c
+++ b/drivers/usb/host/xhci-dwc3.c
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <generic-phy.h>
 #include <log.h>
+#include <stdio.h>
 #include <usb.h>
 #include <dwc3-uboot.h>
 #include <linux/delay.h>
diff --git a/drivers/usb/host/xhci-exynos5.c b/drivers/usb/host/xhci-exynos5.c
index 77c2534da44c..ee61c88e2aa3 100644
--- a/drivers/usb/host/xhci-exynos5.c
+++ b/drivers/usb/host/xhci-exynos5.c
@@ -16,6 +16,7 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
 #include <linux/libfdt.h>
diff --git a/drivers/usb/host/xhci-fsl.c b/drivers/usb/host/xhci-fsl.c
index 0a2da70e2004..440f17f66d69 100644
--- a/drivers/usb/host/xhci-fsl.c
+++ b/drivers/usb/host/xhci-fsl.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <usb.h>
 #include <linux/errno.h>
 #include <linux/compat.h>
diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c
index f4518e3eac99..aa9063098c2a 100644
--- a/drivers/usb/host/xhci-mem.c
+++ b/drivers/usb/host/xhci-mem.c
@@ -17,6 +17,7 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/byteorder.h>
 #include <usb.h>
 #include <malloc.h>
diff --git a/drivers/usb/host/xhci-mvebu.c b/drivers/usb/host/xhci-mvebu.c
index f2e338f6fbcb..32e00378ab70 100644
--- a/drivers/usb/host/xhci-mvebu.c
+++ b/drivers/usb/host/xhci-mvebu.c
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
+#include <stdio.h>
 #include <usb.h>
 #include <power/regulator.h>
 #include <asm/gpio.h>
diff --git a/drivers/usb/host/xhci-omap.c b/drivers/usb/host/xhci-omap.c
index 501129d769a2..00b7d8571d29 100644
--- a/drivers/usb/host/xhci-omap.c
+++ b/drivers/usb/host/xhci-omap.c
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <usb.h>
 #include <linux/errno.h>
 #include <asm/omap_common.h>
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index e3e8d09bf357..6a8f42a974a1 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/byteorder.h>
 #include <usb.h>
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index 4c752f4ad0ef..4d9ba91da8ce 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -23,6 +23,7 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/byteorder.h>
 #include <usb.h>
 #include <malloc.h>
diff --git a/drivers/usb/musb-new/mt85xx.c b/drivers/usb/musb-new/mt85xx.c
index f826b986ba78..78b4c93e8609 100644
--- a/drivers/usb/musb-new/mt85xx.c
+++ b/drivers/usb/musb-new/mt85xx.c
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <stdio.h>
 #include <dm/lists.h>
 #include <dm/root.h>
 #include <linux/delay.h>
diff --git a/drivers/usb/musb-new/musb_uboot.c b/drivers/usb/musb-new/musb_uboot.c
index 0d18ed919a02..233acc1ea1e5 100644
--- a/drivers/usb/musb-new/musb_uboot.c
+++ b/drivers/usb/musb-new/musb_uboot.c
@@ -2,6 +2,7 @@
 #include <console.h>
 #include <dm.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <time.h>
 #include <watchdog.h>
 #include <linux/delay.h>
diff --git a/drivers/usb/musb-new/pic32.c b/drivers/usb/musb-new/pic32.c
index ce8ec050025b..b3905660c797 100644
--- a/drivers/usb/musb-new/pic32.c
+++ b/drivers/usb/musb-new/pic32.c
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
 #include <linux/bitops.h>
diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c
index 082df93fdd85..20d968f8497e 100644
--- a/drivers/usb/musb-new/sunxi.c
+++ b/drivers/usb/musb-new/sunxi.c
@@ -23,6 +23,7 @@
 #include <malloc.h>
 #include <phy-sun4i-usb.h>
 #include <reset.h>
+#include <stdio.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/gpio.h>
diff --git a/drivers/usb/phy/twl4030.c b/drivers/usb/phy/twl4030.c
index 676868bead36..9bea192fccf0 100644
--- a/drivers/usb/phy/twl4030.c
+++ b/drivers/usb/phy/twl4030.c
@@ -23,6 +23,7 @@
  * ------------------------------------------------------------------------
  */
 
+#include <stdio.h>
 #include <twl4030.h>
 #include <linux/delay.h>
 
diff --git a/drivers/usb/ulpi/ulpi-viewport.c b/drivers/usb/ulpi/ulpi-viewport.c
index 3bb152be8939..5a7f034da1d7 100644
--- a/drivers/usb/ulpi/ulpi-viewport.c
+++ b/drivers/usb/ulpi/ulpi-viewport.c
@@ -14,6 +14,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <usb/ulpi.h>
diff --git a/drivers/usb/ulpi/ulpi.c b/drivers/usb/ulpi/ulpi.c
index dd0da0e841e5..d5045a17959f 100644
--- a/drivers/usb/ulpi/ulpi.c
+++ b/drivers/usb/ulpi/ulpi.c
@@ -22,6 +22,7 @@
 #include <common.h>
 #include <exports.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <usb/ulpi.h>
 
diff --git a/drivers/video/am335x-fb.c b/drivers/video/am335x-fb.c
index b381b147cddf..4e0d9c2b0981 100644
--- a/drivers/video/am335x-fb.c
+++ b/drivers/video/am335x-fb.c
@@ -15,6 +15,7 @@
 #include <dm.h>
 #include <lcd.h>
 #include <log.h>
+#include <stdio.h>
 #include <video.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/hardware.h>
diff --git a/drivers/video/anx9804.c b/drivers/video/anx9804.c
index b050c4292f64..648564bc3e17 100644
--- a/drivers/video/anx9804.c
+++ b/drivers/video/anx9804.c
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include "anx98xx-edp.h"
 #include "anx9804.h"
diff --git a/drivers/video/ati_radeon_fb.c b/drivers/video/ati_radeon_fb.c
index c326722c5500..d7938ac2cbd4 100644
--- a/drivers/video/ati_radeon_fb.c
+++ b/drivers/video/ati_radeon_fb.c
@@ -16,6 +16,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 
diff --git a/drivers/video/ati_radeon_fb.h b/drivers/video/ati_radeon_fb.h
index 9dd638bb9e45..dde2067ef2ed 100644
--- a/drivers/video/ati_radeon_fb.h
+++ b/drivers/video/ati_radeon_fb.h
@@ -8,6 +8,7 @@
 /*
  * Chip families. Must fit in the low 16 bits of a long word
  */
+#include <stdio.h>
 enum radeon_family {
 	CHIP_FAMILY_UNKNOW,
 	CHIP_FAMILY_LEGACY,
diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c
index bfe76349fda4..13dc28412c76 100644
--- a/drivers/video/atmel_hlcdfb.c
+++ b/drivers/video/atmel_hlcdfb.c
@@ -10,6 +10,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <part.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/gpio.h>
diff --git a/drivers/video/broadwell_igd.c b/drivers/video/broadwell_igd.c
index 84b31025f742..7a282be660f9 100644
--- a/drivers/video/broadwell_igd.c
+++ b/drivers/video/broadwell_igd.c
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <init.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <vbe.h>
 #include <video.h>
diff --git a/drivers/video/bus_vcxk.c b/drivers/video/bus_vcxk.c
index 2a72d23eb87b..8f9b607099e1 100644
--- a/drivers/video/bus_vcxk.c
+++ b/drivers/video/bus_vcxk.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <bmp_layout.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/io.h>
 
 vu_char  *vcxk_bws      = ((vu_char *) (CONFIG_SYS_VCXK_BASE));
diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c
index bc1e999b7614..af92a83d6a0b 100644
--- a/drivers/video/cfb_console.c
+++ b/drivers/video/cfb_console.c
@@ -71,6 +71,7 @@
 #include <fdtdec.h>
 #include <gzip.h>
 #include <log.h>
+#include <stdio.h>
 #include <version.h>
 #include <malloc.h>
 #include <video.h>
diff --git a/drivers/video/coreboot.c b/drivers/video/coreboot.c
index c8797a0d9c45..6914162d3acf 100644
--- a/drivers/video/coreboot.c
+++ b/drivers/video/coreboot.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <stdio.h>
 #include <vbe.h>
 #include <video.h>
 #include <asm/arch/sysinfo.h>
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index 994b90a9665f..27234e7adee4 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -16,6 +16,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <stdio.h>
 #include <video_fb.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
diff --git a/drivers/video/efi.c b/drivers/video/efi.c
index 47441a35a64f..489998f3625f 100644
--- a/drivers/video/efi.c
+++ b/drivers/video/efi.c
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <efi_api.h>
 #include <log.h>
+#include <stdio.h>
 #include <vbe.h>
 #include <video.h>
 
diff --git a/drivers/video/exynos/exynos_dp.c b/drivers/video/exynos/exynos_dp.c
index 71dae58f08b3..d63d9effb007 100644
--- a/drivers/video/exynos/exynos_dp.c
+++ b/drivers/video/exynos/exynos_dp.c
@@ -11,6 +11,7 @@
 #include <display.h>
 #include <fdtdec.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
 #include <linux/libfdt.h>
diff --git a/drivers/video/exynos/exynos_dp_lowlevel.c b/drivers/video/exynos/exynos_dp_lowlevel.c
index ae500a702804..efa3b924af16 100644
--- a/drivers/video/exynos/exynos_dp_lowlevel.c
+++ b/drivers/video/exynos/exynos_dp_lowlevel.c
@@ -8,6 +8,7 @@
 #include <config.h>
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/err.h>
 #include <asm/arch/cpu.h>
diff --git a/drivers/video/exynos/exynos_fb.c b/drivers/video/exynos/exynos_fb.c
index 26068ab056f2..42ec0494fa06 100644
--- a/drivers/video/exynos/exynos_fb.c
+++ b/drivers/video/exynos/exynos_fb.c
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/libfdt.h>
 #include <panel.h>
diff --git a/drivers/video/exynos/exynos_mipi_dsi.c b/drivers/video/exynos/exynos_mipi_dsi.c
index 376e6abf2cf6..1d5ed38bf44f 100644
--- a/drivers/video/exynos/exynos_mipi_dsi.c
+++ b/drivers/video/exynos/exynos_mipi_dsi.c
@@ -10,6 +10,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <fdtdec.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/devres.h>
 #include <linux/libfdt.h>
diff --git a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c
index 8111acd9a0b5..d7a8db62fa92 100644
--- a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c
+++ b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/arch/dsim.h>
 #include <asm/arch/mipi_dsim.h>
 #include <asm/arch/power.h>
diff --git a/drivers/video/formike.c b/drivers/video/formike.c
index 5cbe50d4cbd2..14c39b65f5c7 100644
--- a/drivers/video/formike.c
+++ b/drivers/video/formike.c
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <log.h>
 #include <spi.h>
+#include <stdio.h>
 #include <linux/delay.h>
 
 #define TAG_READ	0x80
diff --git a/drivers/video/fsl_dcu_fb.c b/drivers/video/fsl_dcu_fb.c
index bfa4ed3129b2..eaf4892b0484 100644
--- a/drivers/video/fsl_dcu_fb.c
+++ b/drivers/video/fsl_dcu_fb.c
@@ -7,6 +7,7 @@
  */
 
 #include <init.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
diff --git a/drivers/video/fsl_diu_fb.c b/drivers/video/fsl_diu_fb.c
index eb3f2393ec93..426418415afd 100644
--- a/drivers/video/fsl_diu_fb.c
+++ b/drivers/video/fsl_diu_fb.c
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/ppc.h>
 #include <linux/string.h>
diff --git a/drivers/video/hitachi_tx18d42vm_lcd.c b/drivers/video/hitachi_tx18d42vm_lcd.c
index c6c8df6a96e2..752bc62eb68a 100644
--- a/drivers/video/hitachi_tx18d42vm_lcd.c
+++ b/drivers/video/hitachi_tx18d42vm_lcd.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/delay.h>
 
 #include <asm/gpio.h>
diff --git a/drivers/video/imx/ipu_common.c b/drivers/video/imx/ipu_common.c
index da7e5c851836..2d5f47ff4adc 100644
--- a/drivers/video/imx/ipu_common.c
+++ b/drivers/video/imx/ipu_common.c
@@ -13,6 +13,7 @@
 /* #define DEBUG */
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 #include <linux/types.h>
diff --git a/drivers/video/imx/ipu_disp.c b/drivers/video/imx/ipu_disp.c
index 45069897fafc..cc2c57553f6e 100644
--- a/drivers/video/imx/ipu_disp.c
+++ b/drivers/video/imx/ipu_disp.c
@@ -14,6 +14,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/types.h>
 #include <linux/errno.h>
diff --git a/drivers/video/imx/ipu_regs.h b/drivers/video/imx/ipu_regs.h
index deb44002d753..1e29f66e67b0 100644
--- a/drivers/video/imx/ipu_regs.h
+++ b/drivers/video/imx/ipu_regs.h
@@ -13,6 +13,7 @@
 #ifndef __IPU_REGS_INCLUDED__
 #define __IPU_REGS_INCLUDED__
 
+#include <stdio.h>
 #define IPU_DISP0_BASE		0x00000000
 #define IPU_MCU_T_DEFAULT	8
 #define IPU_DISP1_BASE		(IPU_MCU_T_DEFAULT << 25)
diff --git a/drivers/video/imx/mxc_ipuv3_fb.c b/drivers/video/imx/mxc_ipuv3_fb.c
index eb93a4f1fa9d..b06e9f29a56c 100644
--- a/drivers/video/imx/mxc_ipuv3_fb.c
+++ b/drivers/video/imx/mxc_ipuv3_fb.c
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <log.h>
 #include <part.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <linux/errno.h>
 #include <asm/global_data.h>
diff --git a/drivers/video/ivybridge_igd.c b/drivers/video/ivybridge_igd.c
index cd742b2273cd..d4247ee6406d 100644
--- a/drivers/video/ivybridge_igd.c
+++ b/drivers/video/ivybridge_igd.c
@@ -10,6 +10,7 @@
 #include <fdtdec.h>
 #include <log.h>
 #include <pci_rom.h>
+#include <stdio.h>
 #include <vbe.h>
 #include <video.h>
 #include <asm/global_data.h>
diff --git a/drivers/video/lg4573.c b/drivers/video/lg4573.c
index 3e61f7f53ce0..f91ee7363f50 100644
--- a/drivers/video/lg4573.c
+++ b/drivers/video/lg4573.c
@@ -10,6 +10,7 @@
 #include <display.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <dm/read.h>
 #include <dm/uclass-internal.h>
 #include <errno.h>
diff --git a/drivers/video/logicore_dp_tx.c b/drivers/video/logicore_dp_tx.c
index e752f457560c..45eba82c4095 100644
--- a/drivers/video/logicore_dp_tx.c
+++ b/drivers/video/logicore_dp_tx.c
@@ -14,6 +14,7 @@
 #include <display.h>
 #include <dm.h>
 #include <errno.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 
diff --git a/drivers/video/mali_dp.c b/drivers/video/mali_dp.c
index e487d6742a12..778a9a917ddd 100644
--- a/drivers/video/mali_dp.c
+++ b/drivers/video/mali_dp.c
@@ -7,6 +7,7 @@
 #define DEBUG
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <video.h>
 #include <dm.h>
 #ifdef CONFIG_DISPLAY
diff --git a/drivers/video/mb862xx.c b/drivers/video/mb862xx.c
index 04e435f913c7..8b736f9e7375 100644
--- a/drivers/video/mb862xx.c
+++ b/drivers/video/mb862xx.c
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/delay.h>
 
 #include <asm/io.h>
diff --git a/drivers/video/meson/meson_vclk.c b/drivers/video/meson/meson_vclk.c
index e718a0074ed6..e096b437a384 100644
--- a/drivers/video/meson/meson_vclk.c
+++ b/drivers/video/meson/meson_vclk.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <edid.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/printk.h>
 #include "meson_vpu.h"
diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c
index 05b654291879..ff29773170b4 100644
--- a/drivers/video/mx3fb.c
+++ b/drivers/video/mx3fb.c
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <video_fb.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c
index 4bb817669f77..82a94507b2ea 100644
--- a/drivers/video/mxsfb.c
+++ b/drivers/video/mxsfb.c
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <env.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
diff --git a/drivers/video/pxa_lcd.c b/drivers/video/pxa_lcd.c
index 67f5266164fa..79981e99707d 100644
--- a/drivers/video/pxa_lcd.c
+++ b/drivers/video/pxa_lcd.c
@@ -12,6 +12,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/arch/pxa-regs.h>
 #include <asm/io.h>
 #include <lcd.h>
diff --git a/drivers/video/rockchip/rk_edp.c b/drivers/video/rockchip/rk_edp.c
index b5fa492e2530..575aee1cdb19 100644
--- a/drivers/video/rockchip/rk_edp.c
+++ b/drivers/video/rockchip/rk_edp.c
@@ -13,6 +13,7 @@
 #include <malloc.h>
 #include <panel.h>
 #include <regmap.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <time.h>
 #include <asm/gpio.h>
diff --git a/drivers/video/sandbox_sdl.c b/drivers/video/sandbox_sdl.c
index 48470e6f5567..898790c09d57 100644
--- a/drivers/video/sandbox_sdl.c
+++ b/drivers/video/sandbox_sdl.c
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
+#include <stdio.h>
 #include <video.h>
 #include <asm/global_data.h>
 #include <asm/sdl.h>
diff --git a/drivers/video/scf0403_lcd.c b/drivers/video/scf0403_lcd.c
index 54f0f88b4c90..dcf0504ae561 100644
--- a/drivers/video/scf0403_lcd.c
+++ b/drivers/video/scf0403_lcd.c
@@ -15,6 +15,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/gpio.h>
 #include <spi.h>
 #include <linux/delay.h>
diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c
index a45e9aa9e0f2..c545c79ced85 100644
--- a/drivers/video/simplefb.c
+++ b/drivers/video/simplefb.c
@@ -8,6 +8,7 @@
 #include <fdtdec.h>
 #include <fdt_support.h>
 #include <log.h>
+#include <stdio.h>
 #include <video.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
diff --git a/drivers/video/ssd2828.c b/drivers/video/ssd2828.c
index 4cdcbe7755ae..84479b3ded90 100644
--- a/drivers/video/ssd2828.c
+++ b/drivers/video/ssd2828.c
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <malloc.h>
 #include <mipi_display.h>
+#include <stdio.h>
 #include <asm/arch/gpio.h>
 #include <asm/gpio.h>
 #include <linux/delay.h>
diff --git a/drivers/video/sunxi/sunxi_display.c b/drivers/video/sunxi/sunxi_display.c
index d1330314621c..07a63e7570ec 100644
--- a/drivers/video/sunxi/sunxi_display.c
+++ b/drivers/video/sunxi/sunxi_display.c
@@ -10,6 +10,7 @@
 #include <cpu_func.h>
 #include <efi_loader.h>
 #include <init.h>
+#include <stdio.h>
 #include <time.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/drivers/video/sunxi/sunxi_dw_hdmi.c b/drivers/video/sunxi/sunxi_dw_hdmi.c
index 01d4b7a11c96..418b429ce0e8 100644
--- a/drivers/video/sunxi/sunxi_dw_hdmi.c
+++ b/drivers/video/sunxi/sunxi_dw_hdmi.c
@@ -11,6 +11,7 @@
 #include <dw_hdmi.h>
 #include <edid.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
diff --git a/drivers/video/tda19988.c b/drivers/video/tda19988.c
index 191cda3ce763..48c291291923 100644
--- a/drivers/video/tda19988.c
+++ b/drivers/video/tda19988.c
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <display.h>
 #include <i2c.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
 
diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c
index a32478ea6277..5e03aab67bb5 100644
--- a/drivers/video/tegra.c
+++ b/drivers/video/tegra.c
@@ -10,6 +10,7 @@
 #include <panel.h>
 #include <part.h>
 #include <pwm.h>
+#include <stdio.h>
 #include <video.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/drivers/video/tegra124/display.c b/drivers/video/tegra124/display.c
index 4f46b222b44c..1c47b133c856 100644
--- a/drivers/video/tegra124/display.c
+++ b/drivers/video/tegra124/display.c
@@ -15,6 +15,7 @@
 #include <lcd.h>
 #include <log.h>
 #include <part.h>
+#include <stdio.h>
 #include <time.h>
 #include <video.h>
 #include <asm/gpio.h>
diff --git a/drivers/video/tegra124/dp.c b/drivers/video/tegra124/dp.c
index 5fcb03835d11..9c5ce04c3760 100644
--- a/drivers/video/tegra124/dp.c
+++ b/drivers/video/tegra124/dp.c
@@ -10,6 +10,7 @@
 #include <div64.h>
 #include <errno.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <video_bridge.h>
 #include <asm/io.h>
diff --git a/drivers/video/tegra124/sor.c b/drivers/video/tegra124/sor.c
index 119219e18bb0..345974f465b4 100644
--- a/drivers/video/tegra124/sor.c
+++ b/drivers/video/tegra124/sor.c
@@ -9,6 +9,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <panel.h>
+#include <stdio.h>
 #include <syscon.h>
 #include <time.h>
 #include <video_bridge.h>
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c
index 75a4ea17e36d..bb8555000a96 100644
--- a/drivers/video/video-uclass.c
+++ b/drivers/video/video-uclass.c
@@ -10,6 +10,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <stdio_dev.h>
 #include <time.h>
 #include <video.h>
diff --git a/drivers/video/video_bmp.c b/drivers/video/video_bmp.c
index 5a4d12c68d4e..802d84a88603 100644
--- a/drivers/video/video_bmp.c
+++ b/drivers/video/video_bmp.c
@@ -9,6 +9,7 @@
 #include <log.h>
 #include <mapmem.h>
 #include <splash.h>
+#include <stdio.h>
 #include <video.h>
 #include <watchdog.h>
 #include <asm/unaligned.h>
diff --git a/drivers/video/videomodes.c b/drivers/video/videomodes.c
index 8d3aff1a14c1..f1781dbb6661 100644
--- a/drivers/video/videomodes.c
+++ b/drivers/video/videomodes.c
@@ -61,6 +61,7 @@
 #include <env.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <stdio.h>
 #include <linux/ctype.h>
 #include <linux/string.h>
 
diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c
index fa7f2429f1f1..a617fffd7aa6 100644
--- a/drivers/virtio/virtio_pci_legacy.c
+++ b/drivers/virtio/virtio_pci_legacy.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <virtio_types.h>
 #include <virtio.h>
 #include <virtio_ring.h>
diff --git a/drivers/virtio/virtio_pci_modern.c b/drivers/virtio/virtio_pci_modern.c
index 483525872dda..7a5926ebe640 100644
--- a/drivers/virtio/virtio_pci_modern.c
+++ b/drivers/virtio/virtio_pci_modern.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <virtio_types.h>
 #include <virtio.h>
 #include <virtio_ring.h>
diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index dfd0ce8db63a..f058b2f8de8c 100644
--- a/drivers/virtio/virtio_ring.c
+++ b/drivers/virtio/virtio_ring.c
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <virtio_types.h>
 #include <virtio.h>
 #include <virtio_ring.h>
diff --git a/drivers/w1-eeprom/w1-eeprom-uclass.c b/drivers/w1-eeprom/w1-eeprom-uclass.c
index d515b4c53660..8a63f614c58d 100644
--- a/drivers/w1-eeprom/w1-eeprom-uclass.c
+++ b/drivers/w1-eeprom/w1-eeprom-uclass.c
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <w1.h>
 #include <w1-eeprom.h>
 
diff --git a/drivers/w1/w1-gpio.c b/drivers/w1/w1-gpio.c
index 45ad47a5d6bd..ba3dd688e6eb 100644
--- a/drivers/w1/w1-gpio.c
+++ b/drivers/w1/w1-gpio.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <w1.h>
 #include <linux/delay.h>
 
diff --git a/drivers/w1/w1-uclass.c b/drivers/w1/w1-uclass.c
index 9478c93e9b0c..61887bee1dea 100644
--- a/drivers/w1/w1-uclass.c
+++ b/drivers/w1/w1-uclass.c
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <stdio.h>
 #include <w1.h>
 #include <w1-eeprom.h>
 
diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c
index e64831132dc7..a5cbc4309cc3 100644
--- a/drivers/watchdog/at91sam9_wdt.c
+++ b/drivers/watchdog/at91sam9_wdt.c
@@ -15,6 +15,7 @@
  */
 
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/at91_wdt.h>
diff --git a/drivers/watchdog/ftwdt010_wdt.c b/drivers/watchdog/ftwdt010_wdt.c
index 6aed41642de5..c46e610577e0 100644
--- a/drivers/watchdog/ftwdt010_wdt.c
+++ b/drivers/watchdog/ftwdt010_wdt.c
@@ -15,6 +15,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <asm/io.h>
 #include <faraday/ftwdt010_wdt.h>
diff --git a/drivers/watchdog/wdt-uclass.c b/drivers/watchdog/wdt-uclass.c
index 28f7918c4673..0ef303f1f2d1 100644
--- a/drivers/watchdog/wdt-uclass.c
+++ b/drivers/watchdog/wdt-uclass.c
@@ -8,6 +8,7 @@
 #include <errno.h>
 #include <hang.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <wdt.h>
 #include <asm/global_data.h>
diff --git a/env/common.c b/env/common.c
index 1918bfa47ff3..4df445eb2c4f 100644
--- a/env/common.c
+++ b/env/common.c
@@ -14,6 +14,7 @@
 #include <env_internal.h>
 #include <log.h>
 #include <sort.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/printk.h>
 #include <linux/stddef.h>
diff --git a/env/env.c b/env/env.c
index 51f55ec3fe87..c289af4c6a44 100644
--- a/env/env.c
+++ b/env/env.c
@@ -8,6 +8,7 @@
 #include <env.h>
 #include <env_internal.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/bitops.h>
 #include <linux/bug.h>
diff --git a/env/ext4.c b/env/ext4.c
index 03f8e4e027bb..a51c7c6eff38 100644
--- a/env/ext4.c
+++ b/env/ext4.c
@@ -20,6 +20,7 @@
 
 #include <common.h>
 #include <part.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #include <command.h>
diff --git a/env/fat.c b/env/fat.c
index adc5e9259c24..e95af7e19d34 100644
--- a/env/fat.c
+++ b/env/fat.c
@@ -17,6 +17,7 @@
 #include <errno.h>
 #include <fat.h>
 #include <mmc.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <linux/stddef.h>
 #include <linux/string.h>
diff --git a/env/flash.c b/env/flash.c
index 6fb9ba7edefe..7e355d227267 100644
--- a/env/flash.c
+++ b/env/flash.c
@@ -15,6 +15,7 @@
 #include <env_internal.h>
 #include <flash.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/stddef.h>
 #include <malloc.h>
diff --git a/env/mmc.c b/env/mmc.c
index 9c28141858f7..21d3c54d85d6 100644
--- a/env/mmc.c
+++ b/env/mmc.c
@@ -6,6 +6,7 @@
 /* #define DEBUG */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 
diff --git a/env/nand.c b/env/nand.c
index be82e97d69cd..e8d226ee7153 100644
--- a/env/nand.c
+++ b/env/nand.c
@@ -17,6 +17,7 @@
 #include <command.h>
 #include <env.h>
 #include <env_internal.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/stddef.h>
 #include <malloc.h>
diff --git a/env/onenand.c b/env/onenand.c
index c8da3ff8114b..8ef4ca7535eb 100644
--- a/env/onenand.c
+++ b/env/onenand.c
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <command.h>
 #include <env_internal.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/stddef.h>
 #include <malloc.h>
diff --git a/env/remote.c b/env/remote.c
index 166bebf52b5b..131ac83584fc 100644
--- a/env/remote.c
+++ b/env/remote.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <command.h>
 #include <env_internal.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/stddef.h>
 #include <u-boot/crc.h>
diff --git a/env/sata.c b/env/sata.c
index 9442cfcaf3ca..d88771b27e21 100644
--- a/env/sata.c
+++ b/env/sata.c
@@ -6,6 +6,7 @@
 /* #define DEBUG */
 
 #include <common.h>
+#include <stdio.h>
 
 #include <command.h>
 #include <env.h>
diff --git a/env/sf.c b/env/sf.c
index f01d1dbcb216..077d82f8e77f 100644
--- a/env/sf.c
+++ b/env/sf.c
@@ -18,6 +18,7 @@
 #include <spi_flash.h>
 #include <search.h>
 #include <errno.h>
+#include <stdio.h>
 #include <uuid.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/env/ubi.c b/env/ubi.c
index f1e9d42dbf46..12495776609b 100644
--- a/env/ubi.c
+++ b/env/ubi.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 
diff --git a/examples/api/demo.c b/examples/api/demo.c
index 789847c401ea..ce1e07bf4857 100644
--- a/examples/api/demo.c
+++ b/examples/api/demo.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include <linux/types.h>
 #include <api_public.h>
diff --git a/examples/api/libgenwrap.c b/examples/api/libgenwrap.c
index 3aa222866ff5..b69ce054ab2e 100644
--- a/examples/api/libgenwrap.c
+++ b/examples/api/libgenwrap.c
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <command.h>
 #include <hang.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/types.h>
 #include <api_public.h>
diff --git a/examples/standalone/atmel_df_pow2.c b/examples/standalone/atmel_df_pow2.c
index 271561d7d96f..1d32aa90342a 100644
--- a/examples/standalone/atmel_df_pow2.c
+++ b/examples/standalone/atmel_df_pow2.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <exports.h>
 #include <spi.h>
+#include <stdio.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 
diff --git a/examples/standalone/hello_world.c b/examples/standalone/hello_world.c
index 263cd9ca079d..64f2d950be41 100644
--- a/examples/standalone/hello_world.c
+++ b/examples/standalone/hello_world.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <exports.h>
+#include <stdio.h>
 
 int hello_world(int argc, char *const argv[])
 {
diff --git a/examples/standalone/sched.c b/examples/standalone/sched.c
index 1c5296071322..0d734e7c9df5 100644
--- a/examples/standalone/sched.c
+++ b/examples/standalone/sched.c
@@ -2,6 +2,7 @@
 
 #include <common.h>
 #include <exports.h>
+#include <stdio.h>
 
 /*
  * Author: Arun Dharankar <ADharankar at ATTBI.Com>
diff --git a/fs/btrfs/dir-item.c b/fs/btrfs/dir-item.c
index 63b5bf0a860f..9ce2979a758d 100644
--- a/fs/btrfs/dir-item.c
+++ b/fs/btrfs/dir-item.c
@@ -6,6 +6,7 @@
  */
 
 #include "btrfs.h"
+#include <stdio.h>
 
 static int verify_dir_item(struct btrfs_dir_item *item, u32 start, u32 total)
 {
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 991c2f68c3b7..f1e185b2a9ea 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -7,6 +7,7 @@
 
 #include "btrfs.h"
 #include <malloc.h>
+#include <stdio.h>
 
 u64 btrfs_lookup_inode_ref(struct btrfs_root *root, u64 inr,
 			   struct btrfs_inode_ref *refp, char *name)
diff --git a/fs/btrfs/root.c b/fs/btrfs/root.c
index 127b67fd1c89..2c3025069533 100644
--- a/fs/btrfs/root.c
+++ b/fs/btrfs/root.c
@@ -6,6 +6,7 @@
  */
 
 #include "btrfs.h"
+#include <stdio.h>
 
 static void read_root_item(struct btrfs_path *p, struct btrfs_root_item *item)
 {
diff --git a/fs/btrfs/subvolume.c b/fs/btrfs/subvolume.c
index 06e54f331098..72f9b01d3b3c 100644
--- a/fs/btrfs/subvolume.c
+++ b/fs/btrfs/subvolume.c
@@ -7,6 +7,7 @@
 
 #include "btrfs.h"
 #include <malloc.h>
+#include <stdio.h>
 
 static int get_subvol_name(u64 subvolid, char *name, int max_len)
 {
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 477a4ab81733..0b6def086ea2 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -9,6 +9,7 @@
 #include <log.h>
 #include <memalign.h>
 #include <part.h>
+#include <stdio.h>
 #include <linux/compat.h>
 #include <linux/string.h>
 #include "btrfs.h"
diff --git a/fs/cramfs/uncompress.c b/fs/cramfs/uncompress.c
index f431cc46c1f7..a30747f8501e 100644
--- a/fs/cramfs/uncompress.c
+++ b/fs/cramfs/uncompress.c
@@ -22,6 +22,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <u-boot/zlib.h>
 
diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c
index 8022d7376348..a6fbd5a971d7 100644
--- a/fs/ext4/ext4_common.c
+++ b/fs/ext4/ext4_common.c
@@ -27,6 +27,7 @@
 #include <memalign.h>
 #include <part.h>
 #include <stddef.h>
+#include <stdio.h>
 #include <linux/stat.h>
 #include <linux/string.h>
 #include <linux/time.h>
diff --git a/fs/ext4/ext4_journal.c b/fs/ext4/ext4_journal.c
index 82af0784bd85..9f1eb6ad9d1e 100644
--- a/fs/ext4/ext4_journal.c
+++ b/fs/ext4/ext4_journal.c
@@ -19,6 +19,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <ext_common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 #include "ext4_common.h"
diff --git a/fs/ext4/ext4_write.c b/fs/ext4/ext4_write.c
index 7c04c5d3dd62..22bb845f8bf0 100644
--- a/fs/ext4/ext4_write.c
+++ b/fs/ext4/ext4_write.c
@@ -27,6 +27,7 @@
 #include <malloc.h>
 #include <memalign.h>
 #include <part.h>
+#include <stdio.h>
 #include <linux/stat.h>
 #include <div64.h>
 #include <linux/string.h>
diff --git a/fs/ext4/ext4fs.c b/fs/ext4/ext4fs.c
index 44df0f4a4ad8..c004d5facbb2 100644
--- a/fs/ext4/ext4fs.c
+++ b/fs/ext4/ext4fs.c
@@ -27,6 +27,7 @@
 #include <div64.h>
 #include <malloc.h>
 #include <part.h>
+#include <stdio.h>
 #include <uuid.h>
 #include <linux/string.h>
 #include "ext4_common.h"
diff --git a/fs/fat/fat.c b/fs/fat/fat.c
index dfcc4455830e..a16896c8e087 100644
--- a/fs/fat/fat.c
+++ b/fs/fat/fat.c
@@ -15,6 +15,7 @@
 #include <fat.h>
 #include <fs.h>
 #include <log.h>
+#include <stdio.h>
 #include <asm/byteorder.h>
 #include <part.h>
 #include <malloc.h>
diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c
index 9facf7609f2e..bdc604038ad5 100644
--- a/fs/fat/fat_write.c
+++ b/fs/fat/fat_write.c
@@ -11,6 +11,7 @@
 #include <fat.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/byteorder.h>
 #include <part.h>
 #include <asm/cache.h>
diff --git a/fs/fs.c b/fs/fs.c
index 047390227738..cd3bae21e1fd 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -17,6 +17,7 @@
 #include <fat.h>
 #include <fs.h>
 #include <sandboxfs.h>
+#include <stdio.h>
 #include <time.h>
 #include <ubifs_uboot.h>
 #include <btrfs.h>
diff --git a/fs/fs_internal.c b/fs/fs_internal.c
index 55d6d26ba5fa..37223573a7c6 100644
--- a/fs/fs_internal.c
+++ b/fs/fs_internal.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <part.h>
 #include <memalign.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 int fs_devread(struct blk_desc *blk, struct disk_partition *partition,
diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c
index c5b142973985..af3a0fc48aaa 100644
--- a/fs/jffs2/jffs2_1pass.c
+++ b/fs/jffs2/jffs2_1pass.c
@@ -116,6 +116,7 @@
 #include <flash.h>
 #include <malloc.h>
 #include <div64.h>
+#include <stdio.h>
 #include <linux/compiler.h>
 #include <linux/stat.h>
 #include <linux/string.h>
diff --git a/fs/reiserfs/reiserfs.c b/fs/reiserfs/reiserfs.c
index cf053e12d948..37068e295b35 100644
--- a/fs/reiserfs/reiserfs.c
+++ b/fs/reiserfs/reiserfs.c
@@ -17,6 +17,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/ctype.h>
 #include <linux/string.h>
 #include <linux/time.h>
diff --git a/fs/sandbox/sandboxfs.c b/fs/sandbox/sandboxfs.c
index 4ae41d5b4db1..59e18d0c049b 100644
--- a/fs/sandbox/sandboxfs.c
+++ b/fs/sandbox/sandboxfs.c
@@ -8,6 +8,7 @@
 #include <malloc.h>
 #include <os.h>
 #include <sandboxfs.h>
+#include <stdio.h>
 
 int sandbox_fs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info)
 {
diff --git a/fs/squashfs/sqfs_filesystem.h b/fs/squashfs/sqfs_filesystem.h
index d63e3a41adf5..fbd3b3eb59c2 100644
--- a/fs/squashfs/sqfs_filesystem.h
+++ b/fs/squashfs/sqfs_filesystem.h
@@ -10,6 +10,7 @@
 
 #include <asm/unaligned.h>
 #include <stdint.h>
+#include <stdbool.h>
 #include <fs.h>
 
 #define SQFS_UNCOMPRESSED_DATA 0x0002
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index 1ce46ef542d5..ebb0d1c1571f 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -32,6 +32,7 @@
 #include <common.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <stdio.h>
 #include <linux/bitops.h>
 #include <linux/bug.h>
 #include <linux/log2.h>
diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c
index 76ea7a8031e1..deb2d21b0a24 100644
--- a/fs/ubifs/ubifs.c
+++ b/fs/ubifs/ubifs.c
@@ -17,6 +17,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 #include "ubifs.h"
diff --git a/fs/yaffs2/yaffs_uboot_glue.c b/fs/yaffs2/yaffs_uboot_glue.c
index 3528a70dc054..91ed09888e7c 100644
--- a/fs/yaffs2/yaffs_uboot_glue.c
+++ b/fs/yaffs2/yaffs_uboot_glue.c
@@ -22,6 +22,7 @@
 #include <common.h>
 #include <div64.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/printk.h>
 #include <linux/string.h>
 
diff --git a/fs/yaffs2/yaffsfs.c b/fs/yaffs2/yaffsfs.c
index 2643cc51057a..5bf9350c8225 100644
--- a/fs/yaffs2/yaffsfs.c
+++ b/fs/yaffs2/yaffsfs.c
@@ -12,6 +12,7 @@
  */
 
 #include <div64.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include "yaffsfs.h"
 #include "yaffs_guts.h"
diff --git a/fs/yaffs2/ydirectenv.h b/fs/yaffs2/ydirectenv.h
index a68c76378673..cad7a35a4e50 100644
--- a/fs/yaffs2/ydirectenv.h
+++ b/fs/yaffs2/ydirectenv.h
@@ -22,6 +22,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/compat.h>
 #include <linux/string.h>
 
diff --git a/fs/zfs/zfs.c b/fs/zfs/zfs.c
index 8958a2562277..b63022aae32d 100644
--- a/fs/zfs/zfs.c
+++ b/fs/zfs/zfs.c
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/stat.h>
 #include <linux/string.h>
 #include <linux/time.h>
diff --git a/fs/zfs/zfs_lzjb.c b/fs/zfs/zfs_lzjb.c
index b42d4980129f..c2a9ae1ddeff 100644
--- a/fs/zfs/zfs_lzjb.c
+++ b/fs/zfs/zfs_lzjb.c
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/stat.h>
 #include <linux/time.h>
 #include <linux/ctype.h>
diff --git a/include/bootcount.h b/include/bootcount.h
index bb235407e301..a3ce40948540 100644
--- a/include/bootcount.h
+++ b/include/bootcount.h
@@ -7,6 +7,7 @@
 #define _BOOTCOUNT_H__
 
 #include <common.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/byteorder.h>
diff --git a/include/common.h b/include/common.h
index 6407748e53d6..33171360ddb0 100644
--- a/include/common.h
+++ b/include/common.h
@@ -17,7 +17,6 @@
 #include <errno.h>
 #include <linux/types.h>
 #include <stdarg.h>
-#include <stdio.h>
 #include <linux/kernel.h>
 #include <vsprintf.h>
 #endif	/* __ASSEMBLY__ */
diff --git a/include/dfu.h b/include/dfu.h
index 6fa450593605..436057e378ed 100644
--- a/include/dfu.h
+++ b/include/dfu.h
@@ -11,6 +11,7 @@
 #define __DFU_ENTITY_H_
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/list.h>
 #include <mmc.h>
 #include <spi_flash.h>
diff --git a/include/exports.h b/include/exports.h
index 902f8b559b23..5e10fc3bce53 100644
--- a/include/exports.h
+++ b/include/exports.h
@@ -2,6 +2,7 @@
 #define __EXPORTS_H__
 
 #include <irq_func.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <linux/delay.h>
diff --git a/include/i2c.h b/include/i2c.h
index 1d792db454a1..7ea6b9a14cbc 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -17,6 +17,7 @@
 #define _I2C_H_
 
 #include <linker_lists.h>
+#include <stdio.h>
 
 /*
  * For now there are essentially two parts to this file - driver model
diff --git a/include/initcall.h b/include/initcall.h
index 41b74dc52d2f..63098644cd34 100644
--- a/include/initcall.h
+++ b/include/initcall.h
@@ -12,6 +12,7 @@ typedef int (*init_fnc_t)(void);
 #ifdef CONFIG_EFI_APP
 #include <efi.h>
 #endif
+#include <stdio.h>
 
 /*
  * To enable debugging. add #define DEBUG at the top of the including file.
diff --git a/include/spi_flash.h b/include/spi_flash.h
index d9eb9cb3eeb7..e555495da610 100644
--- a/include/spi_flash.h
+++ b/include/spi_flash.h
@@ -9,6 +9,7 @@
 #ifndef _SPI_FLASH_H_
 #define _SPI_FLASH_H_
 
+#include <stdio.h>
 #include <linux/string.h>
 #include <linux/types.h>
 #include <linux/mtd/spi-nor.h>
diff --git a/include/wait_bit.h b/include/wait_bit.h
index dc2ffeb2c249..a9bf4d90a8f9 100644
--- a/include/wait_bit.h
+++ b/include/wait_bit.h
@@ -10,6 +10,7 @@
 
 #include <console.h>
 #include <log.h>
+#include <stdio.h>
 #include <time.h>
 #include <watchdog.h>
 #include <linux/delay.h>
diff --git a/lib/aes.c b/lib/aes.c
index ab1f8d67a53f..204431bcf77c 100644
--- a/lib/aes.c
+++ b/lib/aes.c
@@ -25,6 +25,7 @@
 #include <common.h>
 #include <display_options.h>
 #include <log.h>
+#include <stdio.h>
 #include <linux/string.h>
 #else
 #include <string.h>
diff --git a/lib/aes/aes-decrypt.c b/lib/aes/aes-decrypt.c
index 06b5e0274094..09fdf38df63a 100644
--- a/lib/aes/aes-decrypt.c
+++ b/lib/aes/aes-decrypt.c
@@ -6,6 +6,7 @@
 #ifndef USE_HOSTCC
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/string.h>
 #endif
 #include <image.h>
diff --git a/lib/bzip2/bzlib.c b/lib/bzip2/bzlib.c
index 010ff4d73314..3051b7eb1a5a 100644
--- a/lib/bzip2/bzlib.c
+++ b/lib/bzip2/bzlib.c
@@ -1,6 +1,7 @@
 #include <config.h>
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <linux/string.h>
 
diff --git a/lib/charset.c b/lib/charset.c
index 55a487253fa9..b69e111918a4 100644
--- a/lib/charset.c
+++ b/lib/charset.c
@@ -9,6 +9,7 @@
 #include <charset.h>
 #include <capitalization.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 static struct capitalization_table capitalization_table[] =
diff --git a/lib/dhry/cmd_dhry.c b/lib/dhry/cmd_dhry.c
index bbb02d4ad9ba..ec4b511d492f 100644
--- a/lib/dhry/cmd_dhry.c
+++ b/lib/dhry/cmd_dhry.c
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <command.h>
 #include <div64.h>
+#include <stdio.h>
 #include <time.h>
 #include "dhry.h"
 
diff --git a/lib/dhry/dhry_1.c b/lib/dhry/dhry_1.c
index b36c1672b4a3..3636097ba080 100644
--- a/lib/dhry/dhry_1.c
+++ b/lib/dhry/dhry_1.c
@@ -44,6 +44,7 @@ char SCCSid[] = "@(#) @(#)dhry_1.c:3.4 -- 5/15/91 19:30:21";
 
 #include <common.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <string.h>
 
 #include "dhry.h"
diff --git a/lib/display_options.c b/lib/display_options.c
index 90e8ce547836..14cb3cff0551 100644
--- a/lib/display_options.c
+++ b/lib/display_options.c
@@ -9,6 +9,7 @@
 #include <console.h>
 #include <display_options.h>
 #include <div64.h>
+#include <stdio.h>
 #include <version.h>
 #include <linux/ctype.h>
 #include <asm/io.h>
diff --git a/lib/efi/efi_app.c b/lib/efi/efi_app.c
index 878c1cd6e5cd..c1796f83a59a 100644
--- a/lib/efi/efi_app.c
+++ b/lib/efi/efi_app.c
@@ -15,6 +15,7 @@
 #include <errno.h>
 #include <init.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/err.h>
 #include <linux/string.h>
diff --git a/lib/efi/efi_stub.c b/lib/efi/efi_stub.c
index b19e6d21a799..97a709904dfb 100644
--- a/lib/efi/efi_stub.c
+++ b/lib/efi/efi_stub.c
@@ -16,6 +16,7 @@
 #include <errno.h>
 #include <malloc.h>
 #include <ns16550.h>
+#include <stdio.h>
 #include <asm/cpu.h>
 #include <asm/io.h>
 #include <linux/err.h>
diff --git a/lib/efi_driver/efi_uclass.c b/lib/efi_driver/efi_uclass.c
index 0cf74b0361db..36e7d943a38d 100644
--- a/lib/efi_driver/efi_uclass.c
+++ b/lib/efi_driver/efi_uclass.c
@@ -22,6 +22,7 @@
 #include <efi_driver.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 
 /**
  * check_node_type() - check node type
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index b39ca817dde5..8b057ef18902 100644
--- a/lib/efi_loader/efi_boottime.c
+++ b/lib/efi_loader/efi_boottime.c
@@ -11,6 +11,7 @@
 #include <irq_func.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <linux/libfdt_env.h>
diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c
index 48c7940e5bfe..088e3eacb829 100644
--- a/lib/efi_loader/efi_console.c
+++ b/lib/efi_loader/efi_console.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <charset.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <time.h>
 #include <dm/device.h>
 #include <efi_loader.h>
diff --git a/lib/efi_loader/efi_file.c b/lib/efi_loader/efi_file.c
index 5954397e4daf..0226e65ef54c 100644
--- a/lib/efi_loader/efi_file.c
+++ b/lib/efi_loader/efi_file.c
@@ -13,6 +13,7 @@
 #include <mapmem.h>
 #include <fs.h>
 #include <part.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 /* GUID for file system information */
diff --git a/lib/efi_loader/efi_gop.c b/lib/efi_loader/efi_gop.c
index c26493af6ca0..44ffed05c69f 100644
--- a/lib/efi_loader/efi_gop.c
+++ b/lib/efi_loader/efi_gop.c
@@ -11,6 +11,7 @@
 #include <lcd.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <video.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
diff --git a/lib/efi_loader/efi_image_loader.c b/lib/efi_loader/efi_image_loader.c
index 79338e9a61d3..ba9a4a3505fc 100644
--- a/lib/efi_loader/efi_image_loader.c
+++ b/lib/efi_loader/efi_image_loader.c
@@ -13,6 +13,7 @@
 #include <malloc.h>
 #include <pe.h>
 #include <sort.h>
+#include <stdio.h>
 #include <crypto/pkcs7_parser.h>
 #include <linux/err.h>
 #include <linux/string.h>
diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c
index 302bbcda887a..169f239de8eb 100644
--- a/lib/efi_loader/efi_memory.c
+++ b/lib/efi_loader/efi_memory.c
@@ -10,6 +10,7 @@
 #include <init.h>
 #include <malloc.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
diff --git a/lib/efi_loader/efi_net.c b/lib/efi_loader/efi_net.c
index b056e08b3ecd..51c1bd2f6065 100644
--- a/lib/efi_loader/efi_net.c
+++ b/lib/efi_loader/efi_net.c
@@ -19,6 +19,7 @@
 #include <efi_loader.h>
 #include <malloc.h>
 #include <net.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 static const efi_guid_t efi_net_guid = EFI_SIMPLE_NETWORK_PROTOCOL_GUID;
diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c
index ddc6e6a4cdee..5b6ab297cbb7 100644
--- a/lib/efi_loader/efi_runtime.c
+++ b/lib/efi_loader/efi_runtime.c
@@ -14,6 +14,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <rtc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
diff --git a/lib/efi_loader/efi_setup.c b/lib/efi_loader/efi_setup.c
index 51fc48b780bc..d675b96e64f6 100644
--- a/lib/efi_loader/efi_setup.c
+++ b/lib/efi_loader/efi_setup.c
@@ -9,6 +9,7 @@
 #include <bootm.h>
 #include <efi_loader.h>
 #include <efi_variable.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #define OBJ_LIST_NOT_INITIALIZED 1
diff --git a/lib/efi_loader/efi_var_common.c b/lib/efi_loader/efi_var_common.c
index 1c7459266a38..36860e66e895 100644
--- a/lib/efi_loader/efi_var_common.c
+++ b/lib/efi_loader/efi_var_common.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <efi_loader.h>
 #include <efi_variable.h>
+#include <stdio.h>
 
 enum efi_secure_mode {
 	EFI_MODE_SETUP,
diff --git a/lib/efi_loader/efi_watchdog.c b/lib/efi_loader/efi_watchdog.c
index 61ea0f79260a..4d097929e83e 100644
--- a/lib/efi_loader/efi_watchdog.c
+++ b/lib/efi_loader/efi_watchdog.c
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <efi_loader.h>
+#include <stdio.h>
 
 /* Conversion factor from seconds to multiples of 100ns */
 #define EFI_SECONDS_TO_100NS 10000000ULL
diff --git a/lib/efi_selftest/efi_selftest_devicepath_util.c b/lib/efi_selftest/efi_selftest_devicepath_util.c
index c846e057d353..c82b37258323 100644
--- a/lib/efi_selftest/efi_selftest_devicepath_util.c
+++ b/lib/efi_selftest/efi_selftest_devicepath_util.c
@@ -8,6 +8,7 @@
  */
 
 #include <efi_selftest.h>
+#include <stdio.h>
 
 static struct efi_boot_services *boottime;
 
diff --git a/lib/efi_selftest/efi_selftest_fdt.c b/lib/efi_selftest/efi_selftest_fdt.c
index 94d72d3f6d85..db94bef08038 100644
--- a/lib/efi_selftest/efi_selftest_fdt.c
+++ b/lib/efi_selftest/efi_selftest_fdt.c
@@ -11,6 +11,7 @@
  */
 
 #include <efi_selftest.h>
+#include <stdio.h>
 #include <linux/libfdt.h>
 
 static const struct efi_system_table *systemtab;
diff --git a/lib/efi_selftest/efi_selftest_manageprotocols.c b/lib/efi_selftest/efi_selftest_manageprotocols.c
index f22cad4c1c0f..717774e00f3b 100644
--- a/lib/efi_selftest/efi_selftest_manageprotocols.c
+++ b/lib/efi_selftest/efi_selftest_manageprotocols.c
@@ -12,6 +12,7 @@
  */
 
 #include <efi_selftest.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 /*
diff --git a/lib/elf.c b/lib/elf.c
index 4c5b050da2e1..7b24ca685a49 100644
--- a/lib/elf.c
+++ b/lib/elf.c
@@ -9,6 +9,7 @@
 #include <elf.h>
 #include <env.h>
 #include <net.h>
+#include <stdio.h>
 #include <vxworks.h>
 #ifdef CONFIG_X86
 #include <vbe.h>
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index e938ea5ea303..8370ecd11ea3 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -13,6 +13,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 #include <dm/of_extra.h>
 #include <env.h>
diff --git a/lib/fdtdec_test.c b/lib/fdtdec_test.c
index 28260468e077..897b2d262993 100644
--- a/lib/fdtdec_test.c
+++ b/lib/fdtdec_test.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <command.h>
 #include <fdtdec.h>
+#include <stdio.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
 #include <os.h>
diff --git a/lib/gunzip.c b/lib/gunzip.c
index 1073bebac063..60429e5dd7e6 100644
--- a/lib/gunzip.c
+++ b/lib/gunzip.c
@@ -13,6 +13,7 @@
 #include <image.h>
 #include <malloc.h>
 #include <memalign.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include <u-boot/crc.h>
 #include <watchdog.h>
diff --git a/lib/gzip.c b/lib/gzip.c
index c6c0ec880cfb..db36a3e5680f 100644
--- a/lib/gzip.c
+++ b/lib/gzip.c
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <command.h>
 #include <gzip.h>
diff --git a/lib/hang.c b/lib/hang.c
index 578ac78d4530..875ed55187bb 100644
--- a/lib/hang.c
+++ b/lib/hang.c
@@ -11,6 +11,7 @@
 #include <bootstage.h>
 #include <hang.h>
 #include <os.h>
+#include <stdio.h>
 
 /**
  * hang - stop processing by staying in an endless loop
diff --git a/lib/hashtable.c b/lib/hashtable.c
index 4a8c50b4b8ac..3a7d293aff1b 100644
--- a/lib/hashtable.c
+++ b/lib/hashtable.c
@@ -16,6 +16,7 @@
 #include <log.h>
 #include <malloc.h>
 #include <sort.h>
+#include <stdio.h>
 
 #ifdef USE_HOSTCC		/* HOST build */
 # include <string.h>
diff --git a/lib/hexdump.c b/lib/hexdump.c
index a3f219a87416..3a0861c7d38a 100644
--- a/lib/hexdump.c
+++ b/lib/hexdump.c
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <hexdump.h>
+#include <stdio.h>
 #include <linux/ctype.h>
 #include <linux/compat.h>
 #include <linux/log2.h>
diff --git a/lib/image-sparse.c b/lib/image-sparse.c
index 187ac28cd364..5f985a0aa5c2 100644
--- a/lib/image-sparse.c
+++ b/lib/image-sparse.c
@@ -43,6 +43,7 @@
 #include <malloc.h>
 #include <part.h>
 #include <sparse_format.h>
+#include <stdio.h>
 #include <asm/cache.h>
 
 #include <linux/math64.h>
diff --git a/lib/libavb/avb_sysdeps_posix.c b/lib/libavb/avb_sysdeps_posix.c
index 88135b90850c..a563d397bf55 100644
--- a/lib/libavb/avb_sysdeps_posix.c
+++ b/lib/libavb/avb_sysdeps_posix.c
@@ -6,6 +6,7 @@
 #include <hang.h>
 #include <malloc.h>
 #include <stdarg.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include <linux/string.h>
 
diff --git a/lib/lmb.c b/lib/lmb.c
index a7277dace165..71665332689d 100644
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -11,6 +11,7 @@
 #include <lmb.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/u-boot.h>
 
 #define LMB_ALLOC_ANYWHERE	0
diff --git a/lib/optee/optee.c b/lib/optee/optee.c
index ec1e29cc3f69..c902eee3bc44 100644
--- a/lib/optee/optee.c
+++ b/lib/optee/optee.c
@@ -9,6 +9,7 @@
 #include <image.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <linux/libfdt.h>
 #include <linux/string.h>
 #include <tee/optee.h>
diff --git a/lib/panic.c b/lib/panic.c
index 58382ac4f4cc..eba1d43b7551 100644
--- a/lib/panic.c
+++ b/lib/panic.c
@@ -14,6 +14,7 @@
 #if !defined(CONFIG_PANIC_HANG)
 #include <command.h>
 #endif
+#include <stdio.h>
 #include <linux/delay.h>
 
 static void panic_finish(void) __attribute__ ((noreturn));
diff --git a/lib/rsa/rsa-verify.c b/lib/rsa/rsa-verify.c
index 22ec890b407f..a8f4f089f138 100644
--- a/lib/rsa/rsa-verify.c
+++ b/lib/rsa/rsa-verify.c
@@ -8,6 +8,7 @@
 #include <fdtdec.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/types.h>
 #include <asm/byteorder.h>
 #include <linux/errno.h>
diff --git a/lib/smbios.c b/lib/smbios.c
index 12f0a3a4ffdc..489a0d61ee27 100644
--- a/lib/smbios.c
+++ b/lib/smbios.c
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <mapmem.h>
 #include <smbios.h>
+#include <stdio.h>
 #include <tables_csum.h>
 #include <version.h>
 #ifdef CONFIG_CPU
diff --git a/lib/tiny-printf.c b/lib/tiny-printf.c
index 8fc7e48d9942..4d65bd9eeb5f 100644
--- a/lib/tiny-printf.c
+++ b/lib/tiny-printf.c
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <stdarg.h>
 #include <serial.h>
+#include <stdio.h>
 #include <linux/ctype.h>
 
 struct printf_info {
diff --git a/lib/trace.c b/lib/trace.c
index 1b59e7d1cb96..e6f342872959 100644
--- a/lib/trace.c
+++ b/lib/trace.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <time.h>
 #include <trace.h>
 #include <asm/global_data.h>
diff --git a/lib/uuid.c b/lib/uuid.c
index ec6beedd55a5..63efc114f841 100644
--- a/lib/uuid.c
+++ b/lib/uuid.c
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <env.h>
 #include <rand.h>
+#include <stdio.h>
 #include <time.h>
 #include <uuid.h>
 #include <linux/ctype.h>
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 9dc96c81c624..18d4bc5a27bc 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -19,6 +19,7 @@
 #include <div64.h>
 #include <hexdump.h>
 #include <stdarg.h>
+#include <stdio.h>
 #include <uuid.h>
 #include <vsprintf.h>
 #include <linux/ctype.h>
diff --git a/net/arp.c b/net/arp.c
index 52f4f31e5295..bea265b3674c 100644
--- a/net/arp.c
+++ b/net/arp.c
@@ -13,6 +13,7 @@
 #include <env.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <time.h>
 #include <linux/delay.h>
 #include <linux/string.h>
diff --git a/net/bootp.c b/net/bootp.c
index 6038e7a86c60..f5d4f85fe247 100644
--- a/net/bootp.c
+++ b/net/bootp.c
@@ -16,6 +16,7 @@
 #include <log.h>
 #include <net.h>
 #include <rand.h>
+#include <stdio.h>
 #include <time.h>
 #include <uuid.h>
 #include <linux/delay.h>
diff --git a/net/cdp.c b/net/cdp.c
index af4ea9cd41a2..fe19914659bf 100644
--- a/net/cdp.c
+++ b/net/cdp.c
@@ -14,6 +14,7 @@
 #if defined(CONFIG_CDP_VERSION)
 #include <timestamp.h>
 #endif
+#include <stdio.h>
 #include <linux/string.h>
 
 #include "cdp.h"
diff --git a/net/dns.c b/net/dns.c
index 12182c9501ce..c86e519c3c7c 100644
--- a/net/dns.c
+++ b/net/dns.c
@@ -27,6 +27,7 @@
 #include <env.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/unaligned.h>
 #include <linux/string.h>
diff --git a/net/eth-uclass.c b/net/eth-uclass.c
index 42eb460e833a..6eae0746d4d5 100644
--- a/net/eth-uclass.c
+++ b/net/eth-uclass.c
@@ -11,6 +11,7 @@
 #include <env.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
diff --git a/net/eth_legacy.c b/net/eth_legacy.c
index 4ea2dbbaaf67..13f0f2b850b3 100644
--- a/net/eth_legacy.c
+++ b/net/eth_legacy.c
@@ -13,6 +13,7 @@
 #include <log.h>
 #include <net.h>
 #include <phy.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/u-boot.h>
 #include <linux/bug.h>
diff --git a/net/fastboot.c b/net/fastboot.c
index 4f1fed9e7787..93b4863d476c 100644
--- a/net/fastboot.c
+++ b/net/fastboot.c
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <fastboot.h>
 #include <net.h>
+#include <stdio.h>
 #include <time.h>
 #include <linux/printk.h>
 #include <linux/string.h>
diff --git a/net/link_local.c b/net/link_local.c
index 0ddd1bd061fb..ce49abd0d1fd 100644
--- a/net/link_local.c
+++ b/net/link_local.c
@@ -16,6 +16,7 @@
 #include <log.h>
 #include <net.h>
 #include <rand.h>
+#include <stdio.h>
 #include <time.h>
 #include <linux/string.h>
 #include "arp.h"
diff --git a/net/net.c b/net/net.c
index 02f2ea5be5b3..ce6b55f87def 100644
--- a/net/net.c
+++ b/net/net.c
@@ -97,6 +97,7 @@
 #include <image.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <time.h>
 #include <linux/string.h>
 #include <net/fastboot.h>
diff --git a/net/nfs.c b/net/nfs.c
index 3d7ebeaff09c..c675d8076a56 100644
--- a/net/nfs.c
+++ b/net/nfs.c
@@ -35,6 +35,7 @@
 #include <net.h>
 #include <malloc.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include "nfs.h"
 #include "bootp.h"
diff --git a/net/pcap.c b/net/pcap.c
index 981f8f750e23..31cfc1ca8481 100644
--- a/net/pcap.c
+++ b/net/pcap.c
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <net.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include <net/pcap.h>
 #include <time.h>
diff --git a/net/rarp.c b/net/rarp.c
index 6fd07bc6f14b..28abc8a4bcf2 100644
--- a/net/rarp.c
+++ b/net/rarp.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <log.h>
 #include <net.h>
+#include <stdio.h>
 #include <linux/string.h>
 #include <net/tftp.h>
 #include "nfs.h"
diff --git a/net/sntp.c b/net/sntp.c
index e814af66b794..9968984eece5 100644
--- a/net/sntp.c
+++ b/net/sntp.c
@@ -11,6 +11,7 @@
 #include <log.h>
 #include <net.h>
 #include <rtc.h>
+#include <stdio.h>
 #include <time.h>
 #include <linux/string.h>
 
diff --git a/net/tftp.c b/net/tftp.c
index d52133214858..e2de4a17ff4b 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -15,6 +15,7 @@
 #include <log.h>
 #include <mapmem.h>
 #include <net.h>
+#include <stdio.h>
 #include <time.h>
 #include <asm/global_data.h>
 #include <linux/string.h>
diff --git a/post/cpu/mpc83xx/ecc.c b/post/cpu/mpc83xx/ecc.c
index cc971a890978..9b700fbc9eb9 100644
--- a/post/cpu/mpc83xx/ecc.c
+++ b/post/cpu/mpc83xx/ecc.c
@@ -13,6 +13,7 @@
 #include <irq_func.h>
 #include <log.h>
 #include <mpc83xx.h>
+#include <stdio.h>
 #include <watchdog.h>
 #include <asm/io.h>
 #include <post.h>
diff --git a/post/drivers/flash.c b/post/drivers/flash.c
index 7c6caa4f1977..721d48eb6b31 100644
--- a/post/drivers/flash.c
+++ b/post/drivers/flash.c
@@ -10,6 +10,7 @@
 #include <malloc.h>
 #include <post.h>
 #include <flash.h>
+#include <stdio.h>
 #include <linux/string.h>
 
 #if CONFIG_POST & CONFIG_SYS_POST_FLASH
diff --git a/post/post.c b/post/post.c
index 65162e6d985a..5671da102510 100644
--- a/post/post.c
+++ b/post/post.c
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <stdio_dev.h>
 #include <time.h>
 #include <watchdog.h>
diff --git a/test/cmd_ut.c b/test/cmd_ut.c
index 8f0bc688a223..b49c2e9a1f00 100644
--- a/test/cmd_ut.c
+++ b/test/cmd_ut.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <command.h>
 #include <console.h>
+#include <stdio.h>
 #include <test/suites.h>
 #include <test/test.h>
 
diff --git a/test/command_ut.c b/test/command_ut.c
index 9837d10eb5c9..3379252fd7d6 100644
--- a/test/command_ut.c
+++ b/test/command_ut.c
@@ -9,6 +9,7 @@
 #include <command.h>
 #include <env.h>
 #include <log.h>
+#include <stdio.h>
 
 static const char test_cmd[] = "setenv list 1\n setenv list ${list}2; "
 		"setenv list ${list}3\0"
diff --git a/test/compression.c b/test/compression.c
index a2a4b9ff9e85..4fc7b07fece8 100644
--- a/test/compression.c
+++ b/test/compression.c
@@ -12,6 +12,7 @@
 #include <lz4.h>
 #include <malloc.h>
 #include <mapmem.h>
+#include <stdio.h>
 #include <asm/io.h>
 
 #include <u-boot/zlib.h>
diff --git a/test/dm/core.c b/test/dm/core.c
index 6a77c4fcc83a..cac3c00cd433 100644
--- a/test/dm/core.c
+++ b/test/dm/core.c
@@ -11,6 +11,7 @@
 #include <fdtdec.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <dm/device-internal.h>
 #include <dm/root.h>
diff --git a/test/dm/osd.c b/test/dm/osd.c
index 6279b391ca5e..14823437f20e 100644
--- a/test/dm/osd.c
+++ b/test/dm/osd.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <display_options.h>
 #include <dm.h>
+#include <stdio.h>
 #include <video_osd.h>
 #include <asm/test.h>
 #include <dm/test.h>
diff --git a/test/dm/rtc.c b/test/dm/rtc.c
index 8ab997c87d10..2ef8ff724e78 100644
--- a/test/dm/rtc.c
+++ b/test/dm/rtc.c
@@ -10,6 +10,7 @@
 #include <i2c.h>
 #include <log.h>
 #include <rtc.h>
+#include <stdio.h>
 #include <asm/io.h>
 #include <asm/rtc.h>
 #include <asm/test.h>
diff --git a/test/dm/test-fdt.c b/test/dm/test-fdt.c
index e615a18a01ed..0dc824b938e7 100644
--- a/test/dm/test-fdt.c
+++ b/test/dm/test-fdt.c
@@ -9,6 +9,7 @@
 #include <fdtdec.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <dm/test.h>
diff --git a/test/dm/test-main.c b/test/dm/test-main.c
index 8dc59fc636f1..2bc27c8b9c48 100644
--- a/test/dm/test-main.c
+++ b/test/dm/test-main.c
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <asm/state.h>
 #include <dm/test.h>
diff --git a/test/dm/usb.c b/test/dm/usb.c
index db4b8ba0f7aa..7ad280f215ce 100644
--- a/test/dm/usb.c
+++ b/test/dm/usb.c
@@ -7,6 +7,7 @@
 #include <console.h>
 #include <dm.h>
 #include <part.h>
+#include <stdio.h>
 #include <usb.h>
 #include <asm/io.h>
 #include <asm/state.h>
diff --git a/test/lib/sscanf.c b/test/lib/sscanf.c
index 772e4b920425..0b0d9c179246 100644
--- a/test/lib/sscanf.c
+++ b/test/lib/sscanf.c
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <command.h>
 #include <log.h>
+#include <stdio.h>
 #include <test/lib.h>
 #include <test/test.h>
 #include <test/ut.h>
diff --git a/test/lib/test_aes.c b/test/lib/test_aes.c
index cbc712f7eda3..d287aedbdd10 100644
--- a/test/lib/test_aes.c
+++ b/test/lib/test_aes.c
@@ -9,6 +9,7 @@
 #include <command.h>
 #include <hexdump.h>
 #include <rand.h>
+#include <stdio.h>
 #include <uboot_aes.h>
 #include <test/lib.h>
 #include <test/test.h>
diff --git a/test/log/log_test.c b/test/log/log_test.c
index 4245372d65f6..6b263557945c 100644
--- a/test/log/log_test.c
+++ b/test/log/log_test.c
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <command.h>
 #include <log.h>
+#include <stdio.h>
 
 /* emit some sample log records in different ways, for testing */
 static int log_run(enum uclass_id cat, const char *file)
diff --git a/test/print_ut.c b/test/print_ut.c
index a456a449efab..206a72c789c1 100644
--- a/test/print_ut.c
+++ b/test/print_ut.c
@@ -12,6 +12,7 @@
 #endif
 #include <display_options.h>
 #include <log.h>
+#include <stdio.h>
 #include <version.h>
 
 #define FAKE_BUILD_TAG	"jenkins-u-boot-denx_uboot_dm-master-build-aarch64" \
diff --git a/test/stdint/int-types.c b/test/stdint/int-types.c
index f6d09e8643d6..0cde46dafa0c 100644
--- a/test/stdint/int-types.c
+++ b/test/stdint/int-types.c
@@ -1,4 +1,5 @@
 #include <common.h>
+#include <stdio.h>
 
 int test_types(void)
 {
diff --git a/test/time_ut.c b/test/time_ut.c
index 80b82dbfd833..701b6cb4a7ed 100644
--- a/test/time_ut.c
+++ b/test/time_ut.c
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <command.h>
 #include <errno.h>
+#include <stdio.h>
 #include <time.h>
 #include <linux/delay.h>
 
diff --git a/test/ut.c b/test/ut.c
index 556e9694ee17..a7cd25d1a053 100644
--- a/test/ut.c
+++ b/test/ut.c
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <console.h>
 #include <malloc.h>
+#include <stdio.h>
 #include <asm/global_data.h>
 #include <test/test.h>
 #include <test/ut.h>
-- 
2.17.1



More information about the U-Boot mailing list