summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/arm64/smbios.c1
-rw-r--r--src/arch/riscv/include/vm.h1
-rw-r--r--src/arch/x86/smbios.c1
-rw-r--r--src/console/vsprintf.c1
-rw-r--r--src/drivers/acpi/thermal_zone/thermal_zone.c1
-rw-r--r--src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c2
-rw-r--r--src/drivers/generic/gpio_keys/gpio_keys.c1
-rw-r--r--src/drivers/i2c/generic/generic.c2
-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.c2
-rw-r--r--src/drivers/i2c/sx9310/sx9310.c2
-rw-r--r--src/drivers/i2c/sx9324/sx9324.c2
-rw-r--r--src/drivers/i2c/sx9360/sx9360.c2
-rw-r--r--src/drivers/intel/gma/acpi.c2
-rw-r--r--src/drivers/intel/usb4/retimer/retimer.c2
-rw-r--r--src/drivers/nxp/uwb/uwb.c2
-rw-r--r--src/drivers/spi/acpi/acpi.c2
-rw-r--r--src/drivers/uart/acpi/acpi.c2
-rw-r--r--src/ec/google/chromeec/i2c_tunnel/i2c_tunnel.c2
-rw-r--r--src/include/bootstate.h1
-rw-r--r--src/include/rmodule.h1
-rw-r--r--src/lib/smbios_defaults.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/intel/adlrvp/mainboard.c1
-rw-r--r--src/mainboard/intel/avenuecity_crb/romstage.c1
-rw-r--r--src/mainboard/intel/beechnutcity_crb/romstage.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/pcengines/apu2/mainboard.c1
-rw-r--r--src/mainboard/prodrive/atlas/mainboard.c1
-rw-r--r--src/mainboard/prodrive/hermes/smbios.c1
-rw-r--r--src/soc/mediatek/common/display.c1
41 files changed, 12 insertions, 41 deletions
diff --git a/src/arch/arm64/smbios.c b/src/arch/arm64/smbios.c
index 8042057e07..a8d0523795 100644
--- a/src/arch/arm64/smbios.c
+++ b/src/arch/arm64/smbios.c
@@ -6,7 +6,6 @@
#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/riscv/include/vm.h b/src/arch/riscv/include/vm.h
index c1894c70ca..9219f106cc 100644
--- a/src/arch/riscv/include/vm.h
+++ b/src/arch/riscv/include/vm.h
@@ -3,7 +3,6 @@
#ifndef _VM_H
#define _VM_H
-#include <string.h>
#include <stdint.h>
#include <arch/encoding.h>
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c
index f42de71fc7..ef2c19a7d0 100644
--- a/src/arch/x86/smbios.c
+++ b/src/arch/x86/smbios.c
@@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <string.h>
#include <smbios.h>
#include <console/console.h>
#include <arch/cpu.h>
diff --git a/src/console/vsprintf.c b/src/console/vsprintf.c
index 4ffc677b33..086ed7cc78 100644
--- a/src/console/vsprintf.c
+++ b/src/console/vsprintf.c
@@ -2,7 +2,6 @@
#include <console/vtxprintf.h>
#include <stdio.h>
-#include <string.h>
struct vsnprintf_context {
char *str_buf;
diff --git a/src/drivers/acpi/thermal_zone/thermal_zone.c b/src/drivers/acpi/thermal_zone/thermal_zone.c
index b1016cd661..e491f751ff 100644
--- a/src/drivers/acpi/thermal_zone/thermal_zone.c
+++ b/src/drivers/acpi/thermal_zone/thermal_zone.c
@@ -7,7 +7,6 @@
#include <device/device.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include "chip.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 28377a17cc..5f43e4f515 100644
--- a/src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c
+++ b/src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c
@@ -4,7 +4,7 @@
#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 97a4e05fad..f5df0c45bc 100644
--- a/src/drivers/generic/gpio_keys/gpio_keys.c
+++ b/src/drivers/generic/gpio_keys/gpio_keys.c
@@ -4,7 +4,6 @@
#include <acpi/acpigen.h>
#include <device/device.h>
#include <stdio.h>
-#include <string.h>
#include "chip.h"
diff --git a/src/drivers/i2c/generic/generic.c b/src/drivers/i2c/generic/generic.c
index a3d8ef257e..98c59e6a05 100644
--- a/src/drivers/i2c/generic/generic.c
+++ b/src/drivers/i2c/generic/generic.c
@@ -8,7 +8,7 @@
#include <device/device.h>
#include <gpio.h>
#include <stdio.h>
-#include <string.h>
+
#include "chip.h"
#if CONFIG(HAVE_ACPI_TABLES)
diff --git a/src/drivers/i2c/gpiomux/bus/bus.c b/src/drivers/i2c/gpiomux/bus/bus.c
index 8efcf217fd..2e2d6858d2 100644
--- a/src/drivers/i2c/gpiomux/bus/bus.c
+++ b/src/drivers/i2c/gpiomux/bus/bus.c
@@ -5,7 +5,6 @@
#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 a7dcd64f6d..1e1ea45c74 100644
--- a/src/drivers/i2c/gpiomux/mux/mux.c
+++ b/src/drivers/i2c/gpiomux/mux/mux.c
@@ -5,7 +5,6 @@
#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 06b31d129d..c91b04a922 100644
--- a/src/drivers/i2c/hid/hid.c
+++ b/src/drivers/i2c/hid/hid.c
@@ -5,7 +5,7 @@
#include <assert.h>
#include <device/device.h>
#include <stdio.h>
-#include <string.h>
+
#include "chip.h"
#include <gpio.h>
#include <console/console.h>
diff --git a/src/drivers/i2c/sx9310/sx9310.c b/src/drivers/i2c/sx9310/sx9310.c
index a4bdb153dc..19eda301ee 100644
--- a/src/drivers/i2c/sx9310/sx9310.c
+++ b/src/drivers/i2c/sx9310/sx9310.c
@@ -6,7 +6,7 @@
#include <device/i2c_simple.h>
#include <device/device.h>
#include <stdio.h>
-#include <string.h>
+
#include "chip.h"
#define I2C_SX9310_ACPI_ID "STH9310"
diff --git a/src/drivers/i2c/sx9324/sx9324.c b/src/drivers/i2c/sx9324/sx9324.c
index 041991eb4a..f2753ea524 100644
--- a/src/drivers/i2c/sx9324/sx9324.c
+++ b/src/drivers/i2c/sx9324/sx9324.c
@@ -6,7 +6,7 @@
#include <device/i2c_simple.h>
#include <device/device.h>
#include <stdio.h>
-#include <string.h>
+
#include "chip.h"
#define I2C_SX9324_ACPI_ID "STH9324"
diff --git a/src/drivers/i2c/sx9360/sx9360.c b/src/drivers/i2c/sx9360/sx9360.c
index d72f28db6f..63180c7dc1 100644
--- a/src/drivers/i2c/sx9360/sx9360.c
+++ b/src/drivers/i2c/sx9360/sx9360.c
@@ -6,7 +6,7 @@
#include <device/i2c_simple.h>
#include <device/device.h>
#include <stdio.h>
-#include <string.h>
+
#include "chip.h"
#define I2C_SX9360_ACPI_ID "STH9360"
diff --git a/src/drivers/intel/gma/acpi.c b/src/drivers/intel/gma/acpi.c
index 534c0d8e10..9211100bc4 100644
--- a/src/drivers/intel/gma/acpi.c
+++ b/src/drivers/intel/gma/acpi.c
@@ -2,7 +2,7 @@
#include <acpi/acpigen.h>
#include <stdio.h>
-#include <string.h>
+
#include "i915.h"
void
diff --git a/src/drivers/intel/usb4/retimer/retimer.c b/src/drivers/intel/usb4/retimer/retimer.c
index 3c867d479b..3769fc9193 100644
--- a/src/drivers/intel/usb4/retimer/retimer.c
+++ b/src/drivers/intel/usb4/retimer/retimer.c
@@ -8,7 +8,7 @@
#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 3c4fac13ff..8a451c4103 100644
--- a/src/drivers/nxp/uwb/uwb.c
+++ b/src/drivers/nxp/uwb/uwb.c
@@ -7,7 +7,7 @@
#include <device/spi.h>
#include <spi-generic.h>
#include <stdio.h>
-#include <string.h>
+
#include "chip.h"
static int spi_acpi_get_bus(const struct device *dev)
diff --git a/src/drivers/spi/acpi/acpi.c b/src/drivers/spi/acpi/acpi.c
index 75d6dc98dc..6d92776683 100644
--- a/src/drivers/spi/acpi/acpi.c
+++ b/src/drivers/spi/acpi/acpi.c
@@ -7,7 +7,7 @@
#include <device/spi.h>
#include <spi-generic.h>
#include <stdio.h>
-#include <string.h>
+
#include "chip.h"
static int spi_acpi_get_bus(const struct device *dev)
diff --git a/src/drivers/uart/acpi/acpi.c b/src/drivers/uart/acpi/acpi.c
index 716d522285..bfa50c6ccf 100644
--- a/src/drivers/uart/acpi/acpi.c
+++ b/src/drivers/uart/acpi/acpi.c
@@ -4,7 +4,7 @@
#include <acpi/acpigen.h>
#include <console/console.h>
#include <stdio.h>
-#include <string.h>
+
#include "chip.h"
static bool uart_acpi_add_gpios_to_crs(struct drivers_uart_acpi_config *config)
diff --git a/src/ec/google/chromeec/i2c_tunnel/i2c_tunnel.c b/src/ec/google/chromeec/i2c_tunnel/i2c_tunnel.c
index fc6b759807..4fa32e60da 100644
--- a/src/ec/google/chromeec/i2c_tunnel/i2c_tunnel.c
+++ b/src/ec/google/chromeec/i2c_tunnel/i2c_tunnel.c
@@ -6,7 +6,7 @@
#include <device/device.h>
#include <device/path.h>
#include <stdio.h>
-#include <string.h>
+
#include "chip.h"
#define CROS_EC_I2C_TUNNEL_HID "GOOG0012"
diff --git a/src/include/bootstate.h b/src/include/bootstate.h
index 30231ce568..ab055afae7 100644
--- a/src/include/bootstate.h
+++ b/src/include/bootstate.h
@@ -3,7 +3,6 @@
#define BOOTSTATE_H
#include <assert.h>
-#include <string.h>
#include <stddef.h>
/* Only declare main() when in ramstage. */
#if ENV_RAMSTAGE
diff --git a/src/include/rmodule.h b/src/include/rmodule.h
index bf26ad0b70..72faecced7 100644
--- a/src/include/rmodule.h
+++ b/src/include/rmodule.h
@@ -4,7 +4,6 @@
#include <stdint.h>
#include <stddef.h>
-#include <string.h>
#include <commonlib/rmodule-defs.h>
enum {
diff --git a/src/lib/smbios_defaults.c b/src/lib/smbios_defaults.c
index 56bddabf25..0ad6442a4f 100644
--- a/src/lib/smbios_defaults.c
+++ b/src/lib/smbios_defaults.c
@@ -4,7 +4,6 @@
#include <smbios.h>
#include <stdint.h>
#include <stdio.h>
-#include <string.h>
/* this function will fill the corresponding locator */
__weak void smbios_fill_dimm_locator(const struct dimm_info *dimm, struct smbios_type17 *t)
diff --git a/src/mainboard/google/fizz/mainboard.c b/src/mainboard/google/fizz/mainboard.c
index 257a27f985..795d96ef9b 100644
--- a/src/mainboard/google/fizz/mainboard.c
+++ b/src/mainboard/google/fizz/mainboard.c
@@ -15,7 +15,6 @@
#include <soc/pci_devs.h>
#include <soc/nhlt.h>
#include <stdio.h>
-#include <string.h>
#include <timer.h>
#include <variant/gpio.h>
diff --git a/src/mainboard/google/gru/sdram_configs.c b/src/mainboard/google/gru/sdram_configs.c
index 971b671d79..02790b0762 100644
--- a/src/mainboard/google/gru/sdram_configs.c
+++ b/src/mainboard/google/gru/sdram_configs.c
@@ -6,7 +6,6 @@
#include <gpio.h>
#include <soc/sdram.h>
#include <stdio.h>
-#include <string.h>
#include <types.h>
static const char *sdram_configs[] = {
diff --git a/src/mainboard/google/kahlee/mainboard.c b/src/mainboard/google/kahlee/mainboard.c
index 1290b97293..685414e647 100644
--- a/src/mainboard/google/kahlee/mainboard.c
+++ b/src/mainboard/google/kahlee/mainboard.c
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <amdblocks/acpi.h>
-#include <string.h>
#include <console/console.h>
#include <device/device.h>
#include <device/mmio.h>
diff --git a/src/mainboard/google/kukui/mainboard.c b/src/mainboard/google/kukui/mainboard.c
index bc70db5bcf..22f8150d5e 100644
--- a/src/mainboard/google/kukui/mainboard.c
+++ b/src/mainboard/google/kukui/mainboard.c
@@ -20,7 +20,6 @@
#include <soc/spm.h>
#include <soc/usb.h>
#include <stdio.h>
-#include <string.h>
#include "gpio.h"
#include "panel.h"
diff --git a/src/mainboard/google/poppy/variants/nami/mainboard.c b/src/mainboard/google/poppy/variants/nami/mainboard.c
index 172581fa4a..7bdfb5e177 100644
--- a/src/mainboard/google/poppy/variants/nami/mainboard.c
+++ b/src/mainboard/google/poppy/variants/nami/mainboard.c
@@ -14,7 +14,6 @@
#include <smbios.h>
#include <soc/ramstage.h>
#include <stdio.h>
-#include <string.h>
#include <variant/sku.h>
#include <gpio.h>
#include <delay.h>
diff --git a/src/mainboard/google/poppy/variants/nautilus/mainboard.c b/src/mainboard/google/poppy/variants/nautilus/mainboard.c
index d21acd651b..b77513ba56 100644
--- a/src/mainboard/google/poppy/variants/nautilus/mainboard.c
+++ b/src/mainboard/google/poppy/variants/nautilus/mainboard.c
@@ -7,7 +7,6 @@
#include <device/pci_ops.h>
#include <smbios.h>
#include <stdio.h>
-#include <string.h>
#include <variant/sku.h>
#define R_PCH_OC_WDT_CTL 0x54
diff --git a/src/mainboard/google/poppy/variants/rammus/mainboard.c b/src/mainboard/google/poppy/variants/rammus/mainboard.c
index e8c7e69842..7eafebcff0 100644
--- a/src/mainboard/google/poppy/variants/rammus/mainboard.c
+++ b/src/mainboard/google/poppy/variants/rammus/mainboard.c
@@ -4,7 +4,6 @@
#include <ec/google/chromeec/ec.h>
#include <smbios.h>
#include <stdio.h>
-#include <string.h>
#include <sar.h>
#define SKU_UNKNOWN 0xFFFFFFFF
diff --git a/src/mainboard/google/reef/mainboard.c b/src/mainboard/google/reef/mainboard.c
index 4b1b32d522..964fc1ce74 100644
--- a/src/mainboard/google/reef/mainboard.c
+++ b/src/mainboard/google/reef/mainboard.c
@@ -11,7 +11,6 @@
#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/intel/adlrvp/mainboard.c b/src/mainboard/intel/adlrvp/mainboard.c
index f6321e85ab..c02cbf9a58 100644
--- a/src/mainboard/intel/adlrvp/mainboard.c
+++ b/src/mainboard/intel/adlrvp/mainboard.c
@@ -12,7 +12,6 @@
#include <soc/gpio.h>
#include <stdint.h>
#include <stdio.h>
-#include <string.h>
#include "board_id.h"
diff --git a/src/mainboard/intel/avenuecity_crb/romstage.c b/src/mainboard/intel/avenuecity_crb/romstage.c
index 9cd8cccada..f0e67af21e 100644
--- a/src/mainboard/intel/avenuecity_crb/romstage.c
+++ b/src/mainboard/intel/avenuecity_crb/romstage.c
@@ -9,7 +9,6 @@
#include <soc/ddr.h>
#include <soc/iio.h>
#include <soc/romstage.h>
-#include <string.h>
#include "chip.h"
diff --git a/src/mainboard/intel/beechnutcity_crb/romstage.c b/src/mainboard/intel/beechnutcity_crb/romstage.c
index 9cd8cccada..f0e67af21e 100644
--- a/src/mainboard/intel/beechnutcity_crb/romstage.c
+++ b/src/mainboard/intel/beechnutcity_crb/romstage.c
@@ -9,7 +9,6 @@
#include <soc/ddr.h>
#include <soc/iio.h>
#include <soc/romstage.h>
-#include <string.h>
#include "chip.h"
diff --git a/src/mainboard/intel/mtlrvp/mainboard.c b/src/mainboard/intel/mtlrvp/mainboard.c
index 85c2dd4a67..93cec476f6 100644
--- a/src/mainboard/intel/mtlrvp/mainboard.c
+++ b/src/mainboard/intel/mtlrvp/mainboard.c
@@ -9,7 +9,6 @@
#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 8f38ca2cb1..b15f2c14b6 100644
--- a/src/mainboard/intel/tglrvp/mainboard.c
+++ b/src/mainboard/intel/tglrvp/mainboard.c
@@ -7,7 +7,6 @@
#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 01815ed2bd..bd50fc33ca 100644
--- a/src/mainboard/kontron/986lcd-m/mainboard.c
+++ b/src/mainboard/kontron/986lcd-m/mainboard.c
@@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <string.h>
#include <types.h>
#include <device/device.h>
#include <console/console.h>
diff --git a/src/mainboard/pcengines/apu2/mainboard.c b/src/mainboard/pcengines/apu2/mainboard.c
index b21c7ed2a1..242ad9d932 100644
--- a/src/mainboard/pcengines/apu2/mainboard.c
+++ b/src/mainboard/pcengines/apu2/mainboard.c
@@ -17,7 +17,6 @@
#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 a70bbae591..8488836655 100644
--- a/src/mainboard/prodrive/atlas/mainboard.c
+++ b/src/mainboard/prodrive/atlas/mainboard.c
@@ -6,7 +6,6 @@
#include <gpio.h>
#include <smbios.h>
#include <stdio.h>
-#include <string.h>
#include <types.h>
#include "gpio.h"
diff --git a/src/mainboard/prodrive/hermes/smbios.c b/src/mainboard/prodrive/hermes/smbios.c
index 96715555be..2f2869a9d5 100644
--- a/src/mainboard/prodrive/hermes/smbios.c
+++ b/src/mainboard/prodrive/hermes/smbios.c
@@ -2,7 +2,6 @@
#include <smbios.h>
#include <stdio.h>
-#include <string.h>
#include <types.h>
#include "eeprom.h"
diff --git a/src/soc/mediatek/common/display.c b/src/soc/mediatek/common/display.c
index 0c23e49249..a212805b5b 100644
--- a/src/soc/mediatek/common/display.c
+++ b/src/soc/mediatek/common/display.c
@@ -11,7 +11,6 @@
#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)
{