summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/acpi/acpigen.c1
-rw-r--r--src/acpi/acpigen_dptf.c1
-rw-r--r--src/acpi/acpigen_usb.c1
-rw-r--r--src/acpi/device.c1
-rw-r--r--src/arch/arm64/smbios.c1
-rw-r--r--src/arch/x86/smbios.c1
-rw-r--r--src/console/vsprintf.c1
-rw-r--r--src/cpu/x86/smm/smm_module_loader.c1
-rw-r--r--src/device/device_util.c1
-rw-r--r--src/device/pci_rom.c1
-rw-r--r--src/drivers/acpi/thermal_zone/thermal_zone.c1
-rw-r--r--src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c1
-rw-r--r--src/drivers/generic/gpio_keys/gpio_keys.c1
-rw-r--r--src/drivers/i2c/cs35l53/cs35l53.c1
-rw-r--r--src/drivers/i2c/generic/generic.c1
-rw-r--r--src/drivers/i2c/gpiomux/bus/bus.c1
-rw-r--r--src/drivers/i2c/gpiomux/mux/mux.c1
-rw-r--r--src/drivers/i2c/hid/hid.c1
-rw-r--r--src/drivers/i2c/max98390/max98390.c1
-rw-r--r--src/drivers/i2c/max98396/max98396.c1
-rw-r--r--src/drivers/i2c/rt1011/rt1011.c1
-rw-r--r--src/drivers/i2c/rt5645/rt5645.c2
-rw-r--r--src/drivers/i2c/sx9310/sx9310.c1
-rw-r--r--src/drivers/i2c/sx9324/sx9324.c1
-rw-r--r--src/drivers/i2c/sx9360/sx9360.c1
-rw-r--r--src/drivers/intel/dptf/dptf.c1
-rw-r--r--src/drivers/intel/fsp2_0/util.c1
-rw-r--r--src/drivers/intel/gma/acpi.c1
-rw-r--r--src/drivers/intel/mipi_camera/camera.c2
-rw-r--r--src/drivers/intel/pmc_mux/conn/conn.c1
-rw-r--r--src/drivers/intel/usb4/retimer/retimer.c1
-rw-r--r--src/drivers/nxp/uwb/uwb.c1
-rw-r--r--src/drivers/ocp/dmi/smbios.c1
-rw-r--r--src/drivers/spi/acpi/acpi.c1
-rw-r--r--src/drivers/uart/acpi/acpi.c1
-rw-r--r--src/drivers/usb/hub/acpi.c1
-rw-r--r--src/drivers/usb/pci_xhci/pci_xhci.c1
-rw-r--r--src/drivers/wifi/generic/acpi.c1
-rw-r--r--src/ec/clevo/it5570e/ssdt.c1
-rw-r--r--src/ec/google/chromeec/audio_codec/audio_codec.c2
-rw-r--r--src/ec/google/chromeec/ec_dptf_helpers.c1
-rw-r--r--src/ec/google/chromeec/ec_smbios.c1
-rw-r--r--src/ec/google/chromeec/i2c_tunnel/i2c_tunnel.c1
-rw-r--r--src/ec/google/chromeec/mux/conn/conn.c1
-rw-r--r--src/ec/lenovo/h8/h8.c1
-rw-r--r--src/ec/lenovo/h8/ssdt.c1
-rw-r--r--src/include/stdio.h3
-rw-r--r--src/include/string.h1
-rw-r--r--src/lib/device_tree.c1
-rw-r--r--src/lib/fit.c1
-rw-r--r--src/lib/smbios.c1
-rw-r--r--src/lib/smbios_defaults.c1
-rw-r--r--src/lib/ux_locales.c1
-rw-r--r--src/mainboard/google/fizz/mainboard.c1
-rw-r--r--src/mainboard/google/gru/sdram_configs.c1
-rw-r--r--src/mainboard/google/kahlee/mainboard.c1
-rw-r--r--src/mainboard/google/kukui/mainboard.c1
-rw-r--r--src/mainboard/google/poppy/variants/nami/mainboard.c1
-rw-r--r--src/mainboard/google/poppy/variants/nautilus/mainboard.c1
-rw-r--r--src/mainboard/google/poppy/variants/rammus/mainboard.c1
-rw-r--r--src/mainboard/google/reef/mainboard.c1
-rw-r--r--src/mainboard/google/rex/mainboard.c1
-rw-r--r--src/mainboard/google/volteer/mainboard.c1
-rw-r--r--src/mainboard/ibm/sbp1/ramstage.c1
-rw-r--r--src/mainboard/intel/adlrvp/mainboard.c1
-rw-r--r--src/mainboard/intel/mtlrvp/mainboard.c1
-rw-r--r--src/mainboard/intel/tglrvp/mainboard.c1
-rw-r--r--src/mainboard/kontron/986lcd-m/mainboard.c1
-rw-r--r--src/mainboard/lenovo/s230u/mainboard.c1
-rw-r--r--src/mainboard/ocp/deltalake/ramstage.c1
-rw-r--r--src/mainboard/pcengines/apu2/mainboard.c1
-rw-r--r--src/mainboard/prodrive/atlas/mainboard.c1
-rw-r--r--src/mainboard/prodrive/atlas/vpd.c1
-rw-r--r--src/mainboard/prodrive/hermes/mainboard.c1
-rw-r--r--src/mainboard/prodrive/hermes/smbios.c1
-rw-r--r--src/security/tpm/tspi/crtm.c1
-rw-r--r--src/soc/cavium/cn81xx/soc.c1
-rw-r--r--src/soc/intel/common/block/acpi/cpu_hybrid.c1
-rw-r--r--src/soc/intel/xeon_sp/acpi.c1
-rw-r--r--src/soc/mediatek/common/display.c1
-rw-r--r--src/southbridge/intel/common/rcba_pirq.c1
-rw-r--r--src/southbridge/intel/lynxpoint/acpi.c1
-rw-r--r--src/superio/common/ssdt.c1
-rw-r--r--src/vendorcode/amd/opensil/genoa_poc/ramstage.c1
-rw-r--r--src/vendorcode/cavium/bdk/libbdk-dram/bdk-dram-config.c1
-rw-r--r--src/vendorcode/cavium/bdk/libbdk-dram/bdk-dram-test.c1
-rw-r--r--src/vendorcode/cavium/bdk/libbdk-hal/bdk-config.c1
-rw-r--r--src/vendorcode/cavium/bdk/libbdk-hal/device/bdk-device.c1
-rw-r--r--src/vendorcode/cavium/bdk/libdram/dram-init-ddr3.c1
-rw-r--r--src/vendorcode/google/smbios.c1
-rw-r--r--tests/lib/lzma-test.c1
-rw-r--r--tests/stubs/die.c1
-rw-r--r--util/cbfstool/flashmap/kv_pair.c1
93 files changed, 93 insertions, 5 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c
index 9c04e84cd0..4049df0dd6 100644
--- a/src/acpi/acpigen.c
+++ b/src/acpi/acpigen.c
@@ -14,6 +14,7 @@
#include <console/console.h>
#include <device/device.h>
#include <device/soundwire.h>
+#include <stdio.h>
#include <types.h>
static char *gencurrent;
diff --git a/src/acpi/acpigen_dptf.c b/src/acpi/acpigen_dptf.c
index aa8de1e8d2..b28dcc6ec9 100644
--- a/src/acpi/acpigen_dptf.c
+++ b/src/acpi/acpigen_dptf.c
@@ -4,6 +4,7 @@
#include <acpi/acpigen_dptf.h>
#include <stdbool.h>
#include <stdint.h>
+#include <stdio.h>
/* Defaults */
#define DEFAULT_RAW_UNIT "ma"
diff --git a/src/acpi/acpigen_usb.c b/src/acpi/acpigen_usb.c
index 221a215f0d..c285360761 100644
--- a/src/acpi/acpigen_usb.c
+++ b/src/acpi/acpigen_usb.c
@@ -5,6 +5,7 @@
#include <acpi/acpigen.h>
#include <acpi/acpigen_usb.h>
#include <device/device.h>
+#include <stdio.h>
static const char *power_role_to_str(enum usb_typec_power_role power_role)
{
diff --git a/src/acpi/device.c b/src/acpi/device.c
index 7313639afa..af3d262bc7 100644
--- a/src/acpi/device.c
+++ b/src/acpi/device.c
@@ -8,6 +8,7 @@
#include <acpi/acpigen_pci.h>
#include <device/device.h>
#include <stdlib.h>
+#include <stdio.h>
#include <types.h>
#include <crc_byte.h>
diff --git a/src/arch/arm64/smbios.c b/src/arch/arm64/smbios.c
index 291659a4bc..8042057e07 100644
--- a/src/arch/arm64/smbios.c
+++ b/src/arch/arm64/smbios.c
@@ -5,6 +5,7 @@
#include <arch/smc.h>
#include <console/console.h>
#include <smbios.h>
+#include <stdio.h>
#include <string.h>
static void smbios_processor_id(u32 *processor_id)
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c
index 0338b60d1b..f42de71fc7 100644
--- a/src/arch/x86/smbios.c
+++ b/src/arch/x86/smbios.c
@@ -5,6 +5,7 @@
#include <console/console.h>
#include <arch/cpu.h>
#include <cpu/x86/name.h>
+#include <stdio.h>
static int smbios_cpu_vendor(u8 *start)
{
diff --git a/src/console/vsprintf.c b/src/console/vsprintf.c
index 06b9e494a4..4ffc677b33 100644
--- a/src/console/vsprintf.c
+++ b/src/console/vsprintf.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <console/vtxprintf.h>
+#include <stdio.h>
#include <string.h>
struct vsnprintf_context {
diff --git a/src/cpu/x86/smm/smm_module_loader.c b/src/cpu/x86/smm/smm_module_loader.c
index 02debfc0cf..646f3bb551 100644
--- a/src/cpu/x86/smm/smm_module_loader.c
+++ b/src/cpu/x86/smm/smm_module_loader.c
@@ -11,6 +11,7 @@
#include <device/mmio.h>
#include <rmodule.h>
#include <smmstore.h>
+#include <stdio.h>
#include <string.h>
#include <types.h>
diff --git a/src/device/device_util.c b/src/device/device_util.c
index 5d620202ea..6a4577026c 100644
--- a/src/device/device_util.c
+++ b/src/device/device_util.c
@@ -4,6 +4,7 @@
#include <console/console.h>
#include <device/device.h>
#include <device/pci_def.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <types.h>
diff --git a/src/device/pci_rom.c b/src/device/pci_rom.c
index 7679552c59..d60720eb49 100644
--- a/src/device/pci_rom.c
+++ b/src/device/pci_rom.c
@@ -6,6 +6,7 @@
#include <device/pci.h>
#include <device/pci_ids.h>
#include <device/pci_ops.h>
+#include <stdio.h>
#include <string.h>
#include <cbfs.h>
#include <cbmem.h>
diff --git a/src/drivers/acpi/thermal_zone/thermal_zone.c b/src/drivers/acpi/thermal_zone/thermal_zone.c
index ef95bed23a..b1016cd661 100644
--- a/src/drivers/acpi/thermal_zone/thermal_zone.c
+++ b/src/drivers/acpi/thermal_zone/thermal_zone.c
@@ -5,6 +5,7 @@
#include <commonlib/bsd/helpers.h>
#include <console/console.h>
#include <device/device.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c b/src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c
index 16ae48dd4b..28377a17cc 100644
--- a/src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c
+++ b/src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c
@@ -3,6 +3,7 @@
#include <acpi/acpi_device.h>
#include <acpi/acpigen.h>
#include <device/device.h>
+#include <stdio.h>
#include <string.h>
#include "chip.h"
#include <console/console.h>
diff --git a/src/drivers/generic/gpio_keys/gpio_keys.c b/src/drivers/generic/gpio_keys/gpio_keys.c
index 37b90cabd9..97a4e05fad 100644
--- a/src/drivers/generic/gpio_keys/gpio_keys.c
+++ b/src/drivers/generic/gpio_keys/gpio_keys.c
@@ -3,6 +3,7 @@
#include <acpi/acpi_device.h>
#include <acpi/acpigen.h>
#include <device/device.h>
+#include <stdio.h>
#include <string.h>
#include "chip.h"
diff --git a/src/drivers/i2c/cs35l53/cs35l53.c b/src/drivers/i2c/cs35l53/cs35l53.c
index 479ef7fdcd..974a647705 100644
--- a/src/drivers/i2c/cs35l53/cs35l53.c
+++ b/src/drivers/i2c/cs35l53/cs35l53.c
@@ -6,6 +6,7 @@
#include <console/console.h>
#include <device/i2c_simple.h>
#include <device/device.h>
+#include <stdio.h>
#include "chip.h"
diff --git a/src/drivers/i2c/generic/generic.c b/src/drivers/i2c/generic/generic.c
index a2d510bcf2..a3d8ef257e 100644
--- a/src/drivers/i2c/generic/generic.c
+++ b/src/drivers/i2c/generic/generic.c
@@ -7,6 +7,7 @@
#include <device/i2c_simple.h>
#include <device/device.h>
#include <gpio.h>
+#include <stdio.h>
#include <string.h>
#include "chip.h"
diff --git a/src/drivers/i2c/gpiomux/bus/bus.c b/src/drivers/i2c/gpiomux/bus/bus.c
index 5487f6df91..8efcf217fd 100644
--- a/src/drivers/i2c/gpiomux/bus/bus.c
+++ b/src/drivers/i2c/gpiomux/bus/bus.c
@@ -4,6 +4,7 @@
#include <acpi/acpigen.h>
#include <console/console.h>
#include <device/device.h>
+#include <stdio.h>
#include <string.h>
#include "chip.h"
diff --git a/src/drivers/i2c/gpiomux/mux/mux.c b/src/drivers/i2c/gpiomux/mux/mux.c
index 91d4ebf1df..a7dcd64f6d 100644
--- a/src/drivers/i2c/gpiomux/mux/mux.c
+++ b/src/drivers/i2c/gpiomux/mux/mux.c
@@ -4,6 +4,7 @@
#include <acpi/acpigen.h>
#include <console/console.h>
#include <device/device.h>
+#include <stdio.h>
#include <string.h>
#include "chip.h"
diff --git a/src/drivers/i2c/hid/hid.c b/src/drivers/i2c/hid/hid.c
index fb3a439a53..06b31d129d 100644
--- a/src/drivers/i2c/hid/hid.c
+++ b/src/drivers/i2c/hid/hid.c
@@ -4,6 +4,7 @@
#include <acpi/acpi_device.h>
#include <assert.h>
#include <device/device.h>
+#include <stdio.h>
#include <string.h>
#include "chip.h"
#include <gpio.h>
diff --git a/src/drivers/i2c/max98390/max98390.c b/src/drivers/i2c/max98390/max98390.c
index f4912c17df..dced1202ff 100644
--- a/src/drivers/i2c/max98390/max98390.c
+++ b/src/drivers/i2c/max98390/max98390.c
@@ -7,6 +7,7 @@
#include <device/device.h>
#include <identity.h>
#include <stdint.h>
+#include <stdio.h>
#include <vendorcode/google/dsm_calib.h>
#include "chip.h"
diff --git a/src/drivers/i2c/max98396/max98396.c b/src/drivers/i2c/max98396/max98396.c
index ca07dbdd4b..f71873a26d 100644
--- a/src/drivers/i2c/max98396/max98396.c
+++ b/src/drivers/i2c/max98396/max98396.c
@@ -5,6 +5,7 @@
#include <console/console.h>
#include <device/i2c_simple.h>
#include <device/device.h>
+#include <stdio.h>
#include "chip.h"
diff --git a/src/drivers/i2c/rt1011/rt1011.c b/src/drivers/i2c/rt1011/rt1011.c
index e8ee8dfdf9..08a0fac7d3 100644
--- a/src/drivers/i2c/rt1011/rt1011.c
+++ b/src/drivers/i2c/rt1011/rt1011.c
@@ -6,6 +6,7 @@
#include <device/i2c.h>
#include <device/device.h>
#include <stdint.h>
+#include <stdio.h>
#include <vendorcode/google/dsm_calib.h>
#include "chip.h"
diff --git a/src/drivers/i2c/rt5645/rt5645.c b/src/drivers/i2c/rt5645/rt5645.c
index 28434ee456..ea3837f724 100644
--- a/src/drivers/i2c/rt5645/rt5645.c
+++ b/src/drivers/i2c/rt5645/rt5645.c
@@ -4,6 +4,8 @@
#include <acpi/acpigen.h>
#include <console/console.h>
#include <device/device.h>
+#include <stdio.h>
+
#include "chip.h"
#define RT5645_ACPI_NAME "RT58"
diff --git a/src/drivers/i2c/sx9310/sx9310.c b/src/drivers/i2c/sx9310/sx9310.c
index e5142bca36..a4bdb153dc 100644
--- a/src/drivers/i2c/sx9310/sx9310.c
+++ b/src/drivers/i2c/sx9310/sx9310.c
@@ -5,6 +5,7 @@
#include <console/console.h>
#include <device/i2c_simple.h>
#include <device/device.h>
+#include <stdio.h>
#include <string.h>
#include "chip.h"
diff --git a/src/drivers/i2c/sx9324/sx9324.c b/src/drivers/i2c/sx9324/sx9324.c
index 966726fc8d..041991eb4a 100644
--- a/src/drivers/i2c/sx9324/sx9324.c
+++ b/src/drivers/i2c/sx9324/sx9324.c
@@ -5,6 +5,7 @@
#include <console/console.h>
#include <device/i2c_simple.h>
#include <device/device.h>
+#include <stdio.h>
#include <string.h>
#include "chip.h"
diff --git a/src/drivers/i2c/sx9360/sx9360.c b/src/drivers/i2c/sx9360/sx9360.c
index df154f4ab7..d72f28db6f 100644
--- a/src/drivers/i2c/sx9360/sx9360.c
+++ b/src/drivers/i2c/sx9360/sx9360.c
@@ -5,6 +5,7 @@
#include <console/console.h>
#include <device/i2c_simple.h>
#include <device/device.h>
+#include <stdio.h>
#include <string.h>
#include "chip.h"
diff --git a/src/drivers/intel/dptf/dptf.c b/src/drivers/intel/dptf/dptf.c
index 5bbbc1bb7f..b6f5005d72 100644
--- a/src/drivers/intel/dptf/dptf.c
+++ b/src/drivers/intel/dptf/dptf.c
@@ -5,6 +5,7 @@
#include <console/console.h>
#include <device/device.h>
#include <intelblocks/pmc_ipc.h>
+#include <stdio.h>
#include <soc/dptf.h>
#include <soc/pci_devs.h>
#include "chip.h"
diff --git a/src/drivers/intel/fsp2_0/util.c b/src/drivers/intel/fsp2_0/util.c
index 47dc3e8229..d09b39b711 100644
--- a/src/drivers/intel/fsp2_0/util.c
+++ b/src/drivers/intel/fsp2_0/util.c
@@ -8,6 +8,7 @@
#include <commonlib/fsp.h>
#include <console/console.h>
#include <fsp/util.h>
+#include <stdio.h>
#include <string.h>
#include <types.h>
#include <assert.h>
diff --git a/src/drivers/intel/gma/acpi.c b/src/drivers/intel/gma/acpi.c
index 2ee1d63a8e..534c0d8e10 100644
--- a/src/drivers/intel/gma/acpi.c
+++ b/src/drivers/intel/gma/acpi.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include <acpi/acpigen.h>
+#include <stdio.h>
#include <string.h>
#include "i915.h"
diff --git a/src/drivers/intel/mipi_camera/camera.c b/src/drivers/intel/mipi_camera/camera.c
index 190adc7349..63a409a300 100644
--- a/src/drivers/intel/mipi_camera/camera.c
+++ b/src/drivers/intel/mipi_camera/camera.c
@@ -9,6 +9,8 @@
#include <device/i2c_simple.h>
#include <device/device.h>
#include <device/pci_def.h>
+#include <stdio.h>
+
#include "chip.h"
#define CSI2_DATA_STREAM_INTERFACE_GUID \
diff --git a/src/drivers/intel/pmc_mux/conn/conn.c b/src/drivers/intel/pmc_mux/conn/conn.c
index 4b1b08c9aa..dda1fe0e4b 100644
--- a/src/drivers/intel/pmc_mux/conn/conn.c
+++ b/src/drivers/intel/pmc_mux/conn/conn.c
@@ -7,6 +7,7 @@
#include <console/console.h>
#include <drivers/usb/acpi/chip.h>
#include <intelblocks/acpi.h>
+#include <stdio.h>
#include "chip.h"
diff --git a/src/drivers/intel/usb4/retimer/retimer.c b/src/drivers/intel/usb4/retimer/retimer.c
index 9e627de348..3c867d479b 100644
--- a/src/drivers/intel/usb4/retimer/retimer.c
+++ b/src/drivers/intel/usb4/retimer/retimer.c
@@ -7,6 +7,7 @@
#include <device/device.h>
#include <drivers/usb/acpi/chip.h>
#include <gpio.h>
+#include <stdio.h>
#include <string.h>
#include "chip.h"
#include "retimer.h"
diff --git a/src/drivers/nxp/uwb/uwb.c b/src/drivers/nxp/uwb/uwb.c
index 590b3f5154..3c4fac13ff 100644
--- a/src/drivers/nxp/uwb/uwb.c
+++ b/src/drivers/nxp/uwb/uwb.c
@@ -6,6 +6,7 @@
#include <device/device.h>
#include <device/spi.h>
#include <spi-generic.h>
+#include <stdio.h>
#include <string.h>
#include "chip.h"
diff --git a/src/drivers/ocp/dmi/smbios.c b/src/drivers/ocp/dmi/smbios.c
index ead9b4d134..0ac3334751 100644
--- a/src/drivers/ocp/dmi/smbios.c
+++ b/src/drivers/ocp/dmi/smbios.c
@@ -6,6 +6,7 @@
#include <delay.h>
#include <cpu/x86/mp.h>
#include <timer.h>
+#include <stdio.h>
#include <string.h>
#include <soc/soc_util.h>
#include <soc/util.h>
diff --git a/src/drivers/spi/acpi/acpi.c b/src/drivers/spi/acpi/acpi.c
index e87946f31b..75d6dc98dc 100644
--- a/src/drivers/spi/acpi/acpi.c
+++ b/src/drivers/spi/acpi/acpi.c
@@ -6,6 +6,7 @@
#include <device/device.h>
#include <device/spi.h>
#include <spi-generic.h>
+#include <stdio.h>
#include <string.h>
#include "chip.h"
diff --git a/src/drivers/uart/acpi/acpi.c b/src/drivers/uart/acpi/acpi.c
index a245f2cf0e..716d522285 100644
--- a/src/drivers/uart/acpi/acpi.c
+++ b/src/drivers/uart/acpi/acpi.c
@@ -3,6 +3,7 @@
#include <acpi/acpi_device.h>
#include <acpi/acpigen.h>
#include <console/console.h>
+#include <stdio.h>
#include <string.h>
#include "chip.h"
diff --git a/src/drivers/usb/hub/acpi.c b/src/drivers/usb/hub/acpi.c
index ebbe4b2cf5..15732a8616 100644
--- a/src/drivers/usb/hub/acpi.c
+++ b/src/drivers/usb/hub/acpi.c
@@ -2,6 +2,7 @@
#include <acpi/acpigen.h>
#include <acpi/acpi_device.h>
+#include <stdio.h>
#include "chip.h"
diff --git a/src/drivers/usb/pci_xhci/pci_xhci.c b/src/drivers/usb/pci_xhci/pci_xhci.c
index 47f69c046c..b898642f12 100644
--- a/src/drivers/usb/pci_xhci/pci_xhci.c
+++ b/src/drivers/usb/pci_xhci/pci_xhci.c
@@ -7,6 +7,7 @@
#include <device/pci.h>
#include <device/pci_ids.h>
#include <device/xhci.h>
+#include <stdio.h>
#include <stdlib.h>
#define PCI_XHCI_CLASSCODE 0x0c0330 /* USB3.0 xHCI controller */
diff --git a/src/drivers/wifi/generic/acpi.c b/src/drivers/wifi/generic/acpi.c
index 9e2936d037..fd1da06934 100644
--- a/src/drivers/wifi/generic/acpi.c
+++ b/src/drivers/wifi/generic/acpi.c
@@ -7,6 +7,7 @@
#include <device/pci_ids.h>
#include <mtcl.h>
#include <sar.h>
+#include <stdio.h>
#include <stdlib.h>
#include <wrdd.h>
diff --git a/src/ec/clevo/it5570e/ssdt.c b/src/ec/clevo/it5570e/ssdt.c
index a0d746ac00..b5a5774330 100644
--- a/src/ec/clevo/it5570e/ssdt.c
+++ b/src/ec/clevo/it5570e/ssdt.c
@@ -4,6 +4,7 @@
#include <console/console.h>
#include <device/device.h>
#include <device/mmio.h>
+#include <stdio.h>
#include "chip.h"
#include "ec.h"
diff --git a/src/ec/google/chromeec/audio_codec/audio_codec.c b/src/ec/google/chromeec/audio_codec/audio_codec.c
index a8def98da7..fe2a459515 100644
--- a/src/ec/google/chromeec/audio_codec/audio_codec.c
+++ b/src/ec/google/chromeec/audio_codec/audio_codec.c
@@ -5,6 +5,8 @@
#include <console/console.h>
#include <device/device.h>
#include <device/path.h>
+#include <stdio.h>
+
#include "chip.h"
#define CROS_EC_AUDIO_CODEC_HID "GOOG0013"
diff --git a/src/ec/google/chromeec/ec_dptf_helpers.c b/src/ec/google/chromeec/ec_dptf_helpers.c
index c44138f587..3034010e36 100644
--- a/src/ec/google/chromeec/ec_dptf_helpers.c
+++ b/src/ec/google/chromeec/ec_dptf_helpers.c
@@ -4,6 +4,7 @@
#include <acpi/acpigen_dptf.h>
#include <ec/google/common/dptf.h>
#include <drivers/intel/dptf/chip.h>
+#include <stdio.h>
#include "chip.h"
/*
diff --git a/src/ec/google/chromeec/ec_smbios.c b/src/ec/google/chromeec/ec_smbios.c
index cd7ac2e8ba..5205ed30ac 100644
--- a/src/ec/google/chromeec/ec_smbios.c
+++ b/src/ec/google/chromeec/ec_smbios.c
@@ -2,6 +2,7 @@
#include <ec/google/chromeec/ec.h>
#include <console/console.h>
+#include <stdio.h>
#include <string.h>
#include <smbios.h>
diff --git a/src/ec/google/chromeec/i2c_tunnel/i2c_tunnel.c b/src/ec/google/chromeec/i2c_tunnel/i2c_tunnel.c
index 64812d4e8d..fc6b759807 100644
--- a/src/ec/google/chromeec/i2c_tunnel/i2c_tunnel.c
+++ b/src/ec/google/chromeec/i2c_tunnel/i2c_tunnel.c
@@ -5,6 +5,7 @@
#include <console/console.h>
#include <device/device.h>
#include <device/path.h>
+#include <stdio.h>
#include <string.h>
#include "chip.h"
diff --git a/src/ec/google/chromeec/mux/conn/conn.c b/src/ec/google/chromeec/mux/conn/conn.c
index bb3129bfb7..1200b5c904 100644
--- a/src/ec/google/chromeec/mux/conn/conn.c
+++ b/src/ec/google/chromeec/mux/conn/conn.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include <acpi/acpigen.h>
+#include <stdio.h>
#include "chip.h"
diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c
index 35ca1d964e..155a013bac 100644
--- a/src/ec/lenovo/h8/h8.c
+++ b/src/ec/lenovo/h8/h8.c
@@ -5,6 +5,7 @@
#include <device/device.h>
#include <device/pnp.h>
#include <ec/acpi/ec.h>
+#include <stdio.h>
#include <string.h>
#include <smbios.h>
#include <option.h>
diff --git a/src/ec/lenovo/h8/ssdt.c b/src/ec/lenovo/h8/ssdt.c
index 5dc334f107..7d7bfac66c 100644
--- a/src/ec/lenovo/h8/ssdt.c
+++ b/src/ec/lenovo/h8/ssdt.c
@@ -2,6 +2,7 @@
#include <console/console.h>
#include <acpi/acpigen.h>
+#include <stdio.h>
#include <string.h>
#include "h8.h"
diff --git a/src/include/stdio.h b/src/include/stdio.h
index d59b9411ee..fe7cb58668 100644
--- a/src/include/stdio.h
+++ b/src/include/stdio.h
@@ -1,8 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/**
- * Note: This file is only for POSIX compatibility, and is meant to be
- * chain-included via string.h.
+ * Note: This file is only for POSIX compatibility.
*/
#ifndef STDIO_H
diff --git a/src/include/string.h b/src/include/string.h
index 4a06556d6d..33f0dfe196 100644
--- a/src/include/string.h
+++ b/src/include/string.h
@@ -4,7 +4,6 @@
#define STRING_H
#include <stddef.h>
-#include <stdio.h> /* IWYU pragma: export */
void *memcpy(void *dest, const void *src, size_t n);
void *memmove(void *dest, const void *src, size_t n);
diff --git a/src/lib/device_tree.c b/src/lib/device_tree.c
index 2bfd5dd376..aff9e157cd 100644
--- a/src/lib/device_tree.c
+++ b/src/lib/device_tree.c
@@ -8,6 +8,7 @@
#include <endian.h>
#include <stdbool.h>
#include <stdint.h>
+#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include <stdlib.h>
diff --git a/src/lib/fit.c b/src/lib/fit.c
index 46ac972128..7f0fe6773a 100644
--- a/src/lib/fit.c
+++ b/src/lib/fit.c
@@ -12,6 +12,7 @@
#include <memrange.h>
#include <fit.h>
#include <boardid.h>
+#include <stdio.h>
#include <stdlib.h>
#include <types.h>
diff --git a/src/lib/smbios.c b/src/lib/smbios.c
index dcf12bf73c..ca71e3b053 100644
--- a/src/lib/smbios.c
+++ b/src/lib/smbios.c
@@ -16,6 +16,7 @@
#include <device/pci_ids.h>
#include <device/pci.h>
#include <drivers/vpd/vpd.h>
+#include <stdio.h>
#include <stdlib.h>
static u8 smbios_checksum(u8 *p, u32 length)
diff --git a/src/lib/smbios_defaults.c b/src/lib/smbios_defaults.c
index 8b62ebba14..56bddabf25 100644
--- a/src/lib/smbios_defaults.c
+++ b/src/lib/smbios_defaults.c
@@ -3,6 +3,7 @@
#include <memory_info.h>
#include <smbios.h>
#include <stdint.h>
+#include <stdio.h>
#include <string.h>
/* this function will fill the corresponding locator */
diff --git a/src/lib/ux_locales.c b/src/lib/ux_locales.c
index 0a285d9b67..b389548955 100644
--- a/src/lib/ux_locales.c
+++ b/src/lib/ux_locales.c
@@ -4,6 +4,7 @@
#include <console/console.h>
#include <security/vboot/misc.h>
#include <stddef.h>
+#include <stdio.h>
#include <string.h>
#include <ux_locales.h>
#include <vb2_api.h>
diff --git a/src/mainboard/google/fizz/mainboard.c b/src/mainboard/google/fizz/mainboard.c
index 0d631cc5e4..257a27f985 100644
--- a/src/mainboard/google/fizz/mainboard.c
+++ b/src/mainboard/google/fizz/mainboard.c
@@ -14,6 +14,7 @@
#include <smbios.h>
#include <soc/pci_devs.h>
#include <soc/nhlt.h>
+#include <stdio.h>
#include <string.h>
#include <timer.h>
diff --git a/src/mainboard/google/gru/sdram_configs.c b/src/mainboard/google/gru/sdram_configs.c
index 64f45dea9e..971b671d79 100644
--- a/src/mainboard/google/gru/sdram_configs.c
+++ b/src/mainboard/google/gru/sdram_configs.c
@@ -5,6 +5,7 @@
#include <console/console.h>
#include <gpio.h>
#include <soc/sdram.h>
+#include <stdio.h>
#include <string.h>
#include <types.h>
diff --git a/src/mainboard/google/kahlee/mainboard.c b/src/mainboard/google/kahlee/mainboard.c
index 427f094677..1290b97293 100644
--- a/src/mainboard/google/kahlee/mainboard.c
+++ b/src/mainboard/google/kahlee/mainboard.c
@@ -16,6 +16,7 @@
#include <soc/acpi.h>
#include <soc/pci_devs.h>
#include <soc/southbridge.h>
+#include <stdio.h>
#include <amdblocks/acpimmio.h>
#include <variant/ec.h>
#include <variant/thermal.h>
diff --git a/src/mainboard/google/kukui/mainboard.c b/src/mainboard/google/kukui/mainboard.c
index 69047fa4a2..bc70db5bcf 100644
--- a/src/mainboard/google/kukui/mainboard.c
+++ b/src/mainboard/google/kukui/mainboard.c
@@ -19,6 +19,7 @@
#include <soc/mtcmos.h>
#include <soc/spm.h>
#include <soc/usb.h>
+#include <stdio.h>
#include <string.h>
#include "gpio.h"
diff --git a/src/mainboard/google/poppy/variants/nami/mainboard.c b/src/mainboard/google/poppy/variants/nami/mainboard.c
index aaa51dd840..172581fa4a 100644
--- a/src/mainboard/google/poppy/variants/nami/mainboard.c
+++ b/src/mainboard/google/poppy/variants/nami/mainboard.c
@@ -13,6 +13,7 @@
#include <intelblocks/power_limit.h>
#include <smbios.h>
#include <soc/ramstage.h>
+#include <stdio.h>
#include <string.h>
#include <variant/sku.h>
#include <gpio.h>
diff --git a/src/mainboard/google/poppy/variants/nautilus/mainboard.c b/src/mainboard/google/poppy/variants/nautilus/mainboard.c
index 7350fb05c8..d21acd651b 100644
--- a/src/mainboard/google/poppy/variants/nautilus/mainboard.c
+++ b/src/mainboard/google/poppy/variants/nautilus/mainboard.c
@@ -6,6 +6,7 @@
#include <device/device.h>
#include <device/pci_ops.h>
#include <smbios.h>
+#include <stdio.h>
#include <string.h>
#include <variant/sku.h>
diff --git a/src/mainboard/google/poppy/variants/rammus/mainboard.c b/src/mainboard/google/poppy/variants/rammus/mainboard.c
index 90cf7cec61..e8c7e69842 100644
--- a/src/mainboard/google/poppy/variants/rammus/mainboard.c
+++ b/src/mainboard/google/poppy/variants/rammus/mainboard.c
@@ -3,6 +3,7 @@
#include <baseboard/variants.h>
#include <ec/google/chromeec/ec.h>
#include <smbios.h>
+#include <stdio.h>
#include <string.h>
#include <sar.h>
diff --git a/src/mainboard/google/reef/mainboard.c b/src/mainboard/google/reef/mainboard.c
index ff3bb36e09..4b1b32d522 100644
--- a/src/mainboard/google/reef/mainboard.c
+++ b/src/mainboard/google/reef/mainboard.c
@@ -10,6 +10,7 @@
#include <nhlt.h>
#include <smbios.h>
#include <soc/nhlt.h>
+#include <stdio.h>
#include <string.h>
#include <variant/ec.h>
#include <variant/gpio.h>
diff --git a/src/mainboard/google/rex/mainboard.c b/src/mainboard/google/rex/mainboard.c
index bf489ff528..9157abbe38 100644
--- a/src/mainboard/google/rex/mainboard.c
+++ b/src/mainboard/google/rex/mainboard.c
@@ -9,6 +9,7 @@
#include <ec/ec.h>
#include <fw_config.h>
#include <soc/ramstage.h>
+#include <stdio.h>
#include <stdlib.h>
#include <vendorcode/google/chromeos/chromeos.h>
diff --git a/src/mainboard/google/volteer/mainboard.c b/src/mainboard/google/volteer/mainboard.c
index fba96644e5..ae7519e10e 100644
--- a/src/mainboard/google/volteer/mainboard.c
+++ b/src/mainboard/google/volteer/mainboard.c
@@ -12,6 +12,7 @@
#include <intelblocks/tcss.h>
#include <soc/pci_devs.h>
#include <soc/ramstage.h>
+#include <stdio.h>
#include <variant/gpio.h>
#include <vb2_api.h>
diff --git a/src/mainboard/ibm/sbp1/ramstage.c b/src/mainboard/ibm/sbp1/ramstage.c
index d748b1b176..98aa999827 100644
--- a/src/mainboard/ibm/sbp1/ramstage.c
+++ b/src/mainboard/ibm/sbp1/ramstage.c
@@ -2,6 +2,7 @@
#include <cpu/x86/smm.h>
#include <soc/ramstage.h>
#include <soc/smmrelocate.h>
+#include <stdio.h>
#include "include/spr_sbp1_gpio.h"
#include <bootstate.h>
diff --git a/src/mainboard/intel/adlrvp/mainboard.c b/src/mainboard/intel/adlrvp/mainboard.c
index 9ac480d486..f6321e85ab 100644
--- a/src/mainboard/intel/adlrvp/mainboard.c
+++ b/src/mainboard/intel/adlrvp/mainboard.c
@@ -11,6 +11,7 @@
#include <smbios.h>
#include <soc/gpio.h>
#include <stdint.h>
+#include <stdio.h>
#include <string.h>
#include "board_id.h"
diff --git a/src/mainboard/intel/mtlrvp/mainboard.c b/src/mainboard/intel/mtlrvp/mainboard.c
index 2e515f7137..85c2dd4a67 100644
--- a/src/mainboard/intel/mtlrvp/mainboard.c
+++ b/src/mainboard/intel/mtlrvp/mainboard.c
@@ -8,6 +8,7 @@
#include <soc/ramstage.h>
#include <smbios.h>
#include <stdint.h>
+#include <stdio.h>
#include <string.h>
const char *smbios_system_sku(void)
diff --git a/src/mainboard/intel/tglrvp/mainboard.c b/src/mainboard/intel/tglrvp/mainboard.c
index bbce9278df..8f38ca2cb1 100644
--- a/src/mainboard/intel/tglrvp/mainboard.c
+++ b/src/mainboard/intel/tglrvp/mainboard.c
@@ -6,6 +6,7 @@
#include <ec/ec.h>
#include <soc/gpio.h>
#include <smbios.h>
+#include <stdio.h>
#include <string.h>
const char *smbios_system_sku(void)
diff --git a/src/mainboard/kontron/986lcd-m/mainboard.c b/src/mainboard/kontron/986lcd-m/mainboard.c
index dbdd059af9..01815ed2bd 100644
--- a/src/mainboard/kontron/986lcd-m/mainboard.c
+++ b/src/mainboard/kontron/986lcd-m/mainboard.c
@@ -6,6 +6,7 @@
#include <console/console.h>
#include <drivers/intel/gma/int15.h>
#include <option.h>
+#include <stdio.h>
#include <superio/hwm5_conf.h>
#include <superio/nuvoton/common/hwm.h>
diff --git a/src/mainboard/lenovo/s230u/mainboard.c b/src/mainboard/lenovo/s230u/mainboard.c
index b5e3b8786d..f51ec6705f 100644
--- a/src/mainboard/lenovo/s230u/mainboard.c
+++ b/src/mainboard/lenovo/s230u/mainboard.c
@@ -5,6 +5,7 @@
#include <drivers/intel/gma/int15.h>
#include <ec/acpi/ec.h>
#include <southbridge/intel/common/gpio.h>
+#include <stdio.h>
#include <string.h>
#include <smbios.h>
#include "ec.h"
diff --git a/src/mainboard/ocp/deltalake/ramstage.c b/src/mainboard/ocp/deltalake/ramstage.c
index 6dd7c109b3..55a10ad541 100644
--- a/src/mainboard/ocp/deltalake/ramstage.c
+++ b/src/mainboard/ocp/deltalake/ramstage.c
@@ -20,6 +20,7 @@
#include <soc/smmrelocate.h>
#include <soc/soc_util.h>
#include <soc/util.h>
+#include <stdio.h>
#include <string.h>
#include <types.h>
diff --git a/src/mainboard/pcengines/apu2/mainboard.c b/src/mainboard/pcengines/apu2/mainboard.c
index ac5c92871f..b21c7ed2a1 100644
--- a/src/mainboard/pcengines/apu2/mainboard.c
+++ b/src/mainboard/pcengines/apu2/mainboard.c
@@ -16,6 +16,7 @@
#include <southbridge/amd/common/amd_pci_util.h>
#include <superio/nuvoton/nct5104d/nct5104d.h>
#include <smbios.h>
+#include <stdio.h>
#include <string.h>
#include <AGESA.h>
#include "gpio_ftns.h"
diff --git a/src/mainboard/prodrive/atlas/mainboard.c b/src/mainboard/prodrive/atlas/mainboard.c
index 0128670d9c..a70bbae591 100644
--- a/src/mainboard/prodrive/atlas/mainboard.c
+++ b/src/mainboard/prodrive/atlas/mainboard.c
@@ -5,6 +5,7 @@
#include <device/device.h>
#include <gpio.h>
#include <smbios.h>
+#include <stdio.h>
#include <string.h>
#include <types.h>
diff --git a/src/mainboard/prodrive/atlas/vpd.c b/src/mainboard/prodrive/atlas/vpd.c
index ba249a94d7..badbc6e3d1 100644
--- a/src/mainboard/prodrive/atlas/vpd.c
+++ b/src/mainboard/prodrive/atlas/vpd.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <console/console.h>
+#include <stdio.h>
#include <string.h>
#include <types.h>
diff --git a/src/mainboard/prodrive/hermes/mainboard.c b/src/mainboard/prodrive/hermes/mainboard.c
index b0bf0dd986..6d0da8d411 100644
--- a/src/mainboard/prodrive/hermes/mainboard.c
+++ b/src/mainboard/prodrive/hermes/mainboard.c
@@ -16,6 +16,7 @@
#include <intelblocks/pmclib.h>
#include <smbios.h>
#include <soc/pm.h>
+#include <stdio.h>
#include <string.h>
#include <types.h>
diff --git a/src/mainboard/prodrive/hermes/smbios.c b/src/mainboard/prodrive/hermes/smbios.c
index 923ce8170c..96715555be 100644
--- a/src/mainboard/prodrive/hermes/smbios.c
+++ b/src/mainboard/prodrive/hermes/smbios.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <smbios.h>
+#include <stdio.h>
#include <string.h>
#include <types.h>
diff --git a/src/security/tpm/tspi/crtm.c b/src/security/tpm/tspi/crtm.c
index 621d7cd5e0..4e0a9b727a 100644
--- a/src/security/tpm/tspi/crtm.c
+++ b/src/security/tpm/tspi/crtm.c
@@ -6,6 +6,7 @@
#include <cbfs.h>
#include <symbols.h>
#include "crtm.h"
+#include <stdio.h>
#include <string.h>
static int tpm_log_initialized;
diff --git a/src/soc/cavium/cn81xx/soc.c b/src/soc/cavium/cn81xx/soc.c
index 5e606d3d9e..81c9a648e5 100644
--- a/src/soc/cavium/cn81xx/soc.c
+++ b/src/soc/cavium/cn81xx/soc.c
@@ -13,6 +13,7 @@
#include <soc/uart.h>
#include <stddef.h>
#include <stdlib.h>
+#include <stdio.h>
#include <string.h>
#include <symbols.h>
#include <libbdk-boot/bdk-boot.h>
diff --git a/src/soc/intel/common/block/acpi/cpu_hybrid.c b/src/soc/intel/common/block/acpi/cpu_hybrid.c
index f52b68f7e2..68abba7eb8 100644
--- a/src/soc/intel/common/block/acpi/cpu_hybrid.c
+++ b/src/soc/intel/common/block/acpi/cpu_hybrid.c
@@ -9,6 +9,7 @@
#include <device/path.h>
#include <intelblocks/acpi.h>
#include <soc/cpu.h>
+#include <stdio.h>
#include <types.h>
#define CPPC_NOM_FREQ_IDX 22
diff --git a/src/soc/intel/xeon_sp/acpi.c b/src/soc/intel/xeon_sp/acpi.c
index 0d66aec282..1c493afc1c 100644
--- a/src/soc/intel/xeon_sp/acpi.c
+++ b/src/soc/intel/xeon_sp/acpi.c
@@ -6,6 +6,7 @@
#include <soc/pci_devs.h>
#include <soc/util.h>
#include <stdint.h>
+#include <stdio.h>
#include <stdlib.h>
#include "chip.h"
diff --git a/src/soc/mediatek/common/display.c b/src/soc/mediatek/common/display.c
index 0dea58c74f..0c23e49249 100644
--- a/src/soc/mediatek/common/display.c
+++ b/src/soc/mediatek/common/display.c
@@ -10,6 +10,7 @@
#include <soc/dptx.h>
#include <soc/dsi.h>
#include <soc/mtcmos.h>
+#include <stdio.h>
#include <string.h>
static struct panel_serializable_data *get_mipi_cmd_from_cbfs(struct panel_description *desc)
diff --git a/src/southbridge/intel/common/rcba_pirq.c b/src/southbridge/intel/common/rcba_pirq.c
index ce44bc46e3..956fe633da 100644
--- a/src/southbridge/intel/common/rcba_pirq.c
+++ b/src/southbridge/intel/common/rcba_pirq.c
@@ -4,6 +4,7 @@
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
+#include <stdio.h>
#include <stdlib.h>
#include <southbridge/intel/common/acpi_pirq_gen.h>
#include <southbridge/intel/common/rcba_pirq.h>
diff --git a/src/southbridge/intel/lynxpoint/acpi.c b/src/southbridge/intel/lynxpoint/acpi.c
index aa6e6508cb..c3aee1f893 100644
--- a/src/southbridge/intel/lynxpoint/acpi.c
+++ b/src/southbridge/intel/lynxpoint/acpi.c
@@ -3,6 +3,7 @@
#include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h>
#include <acpi/acpigen.h>
+#include <stdio.h>
#include <string.h>
#include <version.h>
#include <soc/nvs.h>
diff --git a/src/superio/common/ssdt.c b/src/superio/common/ssdt.c
index 4fd1eed46e..a63ca9ce9d 100644
--- a/src/superio/common/ssdt.c
+++ b/src/superio/common/ssdt.c
@@ -8,6 +8,7 @@
#include <acpi/acpi.h>
#include <console/console.h>
#include <types.h>
+#include <stdio.h>
#include <string.h>
struct superio_dev {
diff --git a/src/vendorcode/amd/opensil/genoa_poc/ramstage.c b/src/vendorcode/amd/opensil/genoa_poc/ramstage.c
index 758b2841fd..843f073a36 100644
--- a/src/vendorcode/amd/opensil/genoa_poc/ramstage.c
+++ b/src/vendorcode/amd/opensil/genoa_poc/ramstage.c
@@ -9,6 +9,7 @@
#include <cpu/cpu.h>
#include <device/device.h>
#include <soc/soc_chip.h>
+#include <stdio.h>
#include <xSIM-api.h>
#include "opensil_console.h"
#include "opensil.h"
diff --git a/src/vendorcode/cavium/bdk/libbdk-dram/bdk-dram-config.c b/src/vendorcode/cavium/bdk/libbdk-dram/bdk-dram-config.c
index 1cf01a26e0..a2a0b6274a 100644
--- a/src/vendorcode/cavium/bdk/libbdk-dram/bdk-dram-config.c
+++ b/src/vendorcode/cavium/bdk/libbdk-dram/bdk-dram-config.c
@@ -37,6 +37,7 @@
* ARISING OUT OF USE OR PERFORMANCE OF THE SOFTWARE LIES WITH YOU.
***********************license end**************************************/
#include <bdk.h>
+#include <stdio.h>
#include <string.h>
#include <libbdk-hal/bdk-config.h>
#include <libbdk-hal/bdk-l2c.h>
diff --git a/src/vendorcode/cavium/bdk/libbdk-dram/bdk-dram-test.c b/src/vendorcode/cavium/bdk/libbdk-dram/bdk-dram-test.c
index fdca040cb3..0d6bd8643e 100644
--- a/src/vendorcode/cavium/bdk/libbdk-dram/bdk-dram-test.c
+++ b/src/vendorcode/cavium/bdk/libbdk-dram/bdk-dram-test.c
@@ -48,6 +48,7 @@
#include <libbdk-hal/bdk-utils.h>
#include <libbdk-os/bdk-init.h>
#include <libbdk-os/bdk-thread.h>
+#include <stdio.h>
/* This code is an optional part of the BDK. It is only linked in
if BDK_REQUIRE() needs it */
diff --git a/src/vendorcode/cavium/bdk/libbdk-hal/bdk-config.c b/src/vendorcode/cavium/bdk/libbdk-hal/bdk-config.c
index eec44434a5..b0573531c0 100644
--- a/src/vendorcode/cavium/bdk/libbdk-hal/bdk-config.c
+++ b/src/vendorcode/cavium/bdk/libbdk-hal/bdk-config.c
@@ -14,6 +14,7 @@
#include <string.h>
#include <assert.h>
#include <lame_string.h>
+#include <stdio.h>
static struct bdk_devicetree_key_value *config_fdt;
diff --git a/src/vendorcode/cavium/bdk/libbdk-hal/device/bdk-device.c b/src/vendorcode/cavium/bdk/libbdk-hal/device/bdk-device.c
index 21e43a4326..a099345084 100644
--- a/src/vendorcode/cavium/bdk/libbdk-hal/device/bdk-device.c
+++ b/src/vendorcode/cavium/bdk/libbdk-hal/device/bdk-device.c
@@ -38,6 +38,7 @@
***********************license end**************************************/
#include <bdk.h>
#include <stdlib.h>
+#include <stdio.h>
#include <string.h>
#include "libbdk-arch/bdk-csrs-ap.h"
#include "libbdk-arch/bdk-csrs-pccpf.h"
diff --git a/src/vendorcode/cavium/bdk/libdram/dram-init-ddr3.c b/src/vendorcode/cavium/bdk/libdram/dram-init-ddr3.c
index 12d49d8378..ec785dd529 100644
--- a/src/vendorcode/cavium/bdk/libdram/dram-init-ddr3.c
+++ b/src/vendorcode/cavium/bdk/libdram/dram-init-ddr3.c
@@ -43,6 +43,7 @@
#include "dram-internal.h"
#include <stdlib.h>
+#include <stdio.h>
#include <string.h>
#include <libbdk-hal/bdk-config.h>
#include <libbdk-hal/bdk-l2c.h>
diff --git a/src/vendorcode/google/smbios.c b/src/vendorcode/google/smbios.c
index 938a8f1c75..2bcd8dbc64 100644
--- a/src/vendorcode/google/smbios.c
+++ b/src/vendorcode/google/smbios.c
@@ -2,6 +2,7 @@
#include <boardid.h>
#include <smbios.h>
+#include <stdio.h>
#include <string.h>
const char *smbios_mainboard_version(void)
diff --git a/tests/lib/lzma-test.c b/tests/lib/lzma-test.c
index 48d629a179..e4bff5644f 100644
--- a/tests/lib/lzma-test.c
+++ b/tests/lib/lzma-test.c
@@ -4,6 +4,7 @@
#include <helpers/file.h>
#include <lib.h>
#include <lib/lzmadecode.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
diff --git a/tests/stubs/die.c b/tests/stubs/die.c
index 84bb401ab0..86e5056c5b 100644
--- a/tests/stubs/die.c
+++ b/tests/stubs/die.c
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <stdarg.h>
-#include <stdio.h>
#include <tests/test.h>
void die(const char *msg, ...)
diff --git a/util/cbfstool/flashmap/kv_pair.c b/util/cbfstool/flashmap/kv_pair.c
index b711302c0d..5d033b3be1 100644
--- a/util/cbfstool/flashmap/kv_pair.c
+++ b/util/cbfstool/flashmap/kv_pair.c
@@ -1,6 +1,5 @@
/* SPDX-License-Identifier: BSD-3-Clause or GPL-2.0-only */
-#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>