summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2021-12-31 08:39:47 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-01-05 17:37:49 +0000
commit5a5ed1fb20eabe19146418fae7e3624b297b4d2d (patch)
treeb69f46e5faadff6f0c4029af6ce8402f17d78e5d /src/soc
parent51b9eb74bf0851d68efaa94a5acf4665cbacbc82 (diff)
soc/intel: Remove unused <string.h>
Found using following command: diff <(git grep -l '#include <string.h>' -- src/) <(git grep -l 'STRINGIFY\|memcpy(\|memmove(\|memset(\|memcmp(\|memchr(\|strdup(\|strconcat(\|strnlen(\|strlen(\|strchr(\|strncpy(\|strcpy(\|strcmp(\|strncmp(\|strspn(\|strcspn(\|strstr(\|strtok_r(\|strtok(\|atol(\|strrchr(\|skip_atoi(\|vsnprintf(\|snprintf(' -- src/) Change-Id: Iae90ff482f534d8de2a519619c20a019d054e700 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60553 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/alderlake/acpi.c1
-rw-r--r--src/soc/intel/cannonlake/acpi.c1
-rw-r--r--src/soc/intel/common/block/irq/irq.c1
-rw-r--r--src/soc/intel/elkhartlake/acpi.c1
-rw-r--r--src/soc/intel/elkhartlake/fsp_params.c1
-rw-r--r--src/soc/intel/elkhartlake/romstage/fsp_params.c1
-rw-r--r--src/soc/intel/icelake/acpi.c1
-rw-r--r--src/soc/intel/jasperlake/acpi.c1
-rw-r--r--src/soc/intel/jasperlake/romstage/fsp_params.c1
-rw-r--r--src/soc/intel/tigerlake/acpi.c1
10 files changed, 0 insertions, 10 deletions
diff --git a/src/soc/intel/alderlake/acpi.c b/src/soc/intel/alderlake/acpi.c
index ab25646f87..159553465a 100644
--- a/src/soc/intel/alderlake/acpi.c
+++ b/src/soc/intel/alderlake/acpi.c
@@ -18,7 +18,6 @@
#include <soc/pm.h>
#include <soc/soc_chip.h>
#include <soc/systemagent.h>
-#include <string.h>
#include <types.h>
/*
diff --git a/src/soc/intel/cannonlake/acpi.c b/src/soc/intel/cannonlake/acpi.c
index fa84ea8ef4..d5a0a17f20 100644
--- a/src/soc/intel/cannonlake/acpi.c
+++ b/src/soc/intel/cannonlake/acpi.c
@@ -17,7 +17,6 @@
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <soc/systemagent.h>
-#include <string.h>
#include "chip.h"
diff --git a/src/soc/intel/common/block/irq/irq.c b/src/soc/intel/common/block/irq/irq.c
index c913c5a4f1..007445116a 100644
--- a/src/soc/intel/common/block/irq/irq.c
+++ b/src/soc/intel/common/block/irq/irq.c
@@ -11,7 +11,6 @@
#include <soc/pci_devs.h>
#include <southbridge/intel/common/acpi_pirq_gen.h>
#include <stdlib.h>
-#include <string.h>
#include <types.h>
#define MIN_SHARED_IRQ 16
diff --git a/src/soc/intel/elkhartlake/acpi.c b/src/soc/intel/elkhartlake/acpi.c
index 44387ea3f4..59a9adba79 100644
--- a/src/soc/intel/elkhartlake/acpi.c
+++ b/src/soc/intel/elkhartlake/acpi.c
@@ -18,7 +18,6 @@
#include <soc/pm.h>
#include <soc/soc_chip.h>
#include <soc/systemagent.h>
-#include <string.h>
/*
* List of supported C-states in this processor.
diff --git a/src/soc/intel/elkhartlake/fsp_params.c b/src/soc/intel/elkhartlake/fsp_params.c
index f30bb1e19c..ff7222db6d 100644
--- a/src/soc/intel/elkhartlake/fsp_params.c
+++ b/src/soc/intel/elkhartlake/fsp_params.c
@@ -14,7 +14,6 @@
#include <soc/pci_devs.h>
#include <soc/ramstage.h>
#include <soc/soc_chip.h>
-#include <string.h>
#include <types.h>
/* SATA DEVSLP idle timeout default values */
diff --git a/src/soc/intel/elkhartlake/romstage/fsp_params.c b/src/soc/intel/elkhartlake/romstage/fsp_params.c
index ecb6304945..402b1342e6 100644
--- a/src/soc/intel/elkhartlake/romstage/fsp_params.c
+++ b/src/soc/intel/elkhartlake/romstage/fsp_params.c
@@ -9,7 +9,6 @@
#include <soc/pci_devs.h>
#include <soc/romstage.h>
#include <soc/soc_chip.h>
-#include <string.h>
static void soc_memory_init_params(FSP_M_CONFIG *m_cfg,
const struct soc_intel_elkhartlake_config *config)
diff --git a/src/soc/intel/icelake/acpi.c b/src/soc/intel/icelake/acpi.c
index d11f3ca8ff..26c5abaa6d 100644
--- a/src/soc/intel/icelake/acpi.c
+++ b/src/soc/intel/icelake/acpi.c
@@ -15,7 +15,6 @@
#include <soc/pm.h>
#include <soc/soc_chip.h>
#include <soc/systemagent.h>
-#include <string.h>
/*
* List of supported C-states in this processor.
diff --git a/src/soc/intel/jasperlake/acpi.c b/src/soc/intel/jasperlake/acpi.c
index ad6a79cba6..a877e1aa2c 100644
--- a/src/soc/intel/jasperlake/acpi.c
+++ b/src/soc/intel/jasperlake/acpi.c
@@ -18,7 +18,6 @@
#include <soc/pm.h>
#include <soc/soc_chip.h>
#include <soc/systemagent.h>
-#include <string.h>
/*
* List of supported C-states in this processor.
diff --git a/src/soc/intel/jasperlake/romstage/fsp_params.c b/src/soc/intel/jasperlake/romstage/fsp_params.c
index fd59e4e89e..43a8c7003f 100644
--- a/src/soc/intel/jasperlake/romstage/fsp_params.c
+++ b/src/soc/intel/jasperlake/romstage/fsp_params.c
@@ -9,7 +9,6 @@
#include <soc/pci_devs.h>
#include <soc/romstage.h>
#include <soc/soc_chip.h>
-#include <string.h>
static void soc_memory_init_params(FSP_M_CONFIG *m_cfg,
const struct soc_intel_jasperlake_config *config)
diff --git a/src/soc/intel/tigerlake/acpi.c b/src/soc/intel/tigerlake/acpi.c
index 36fb679749..6314d1ccd5 100644
--- a/src/soc/intel/tigerlake/acpi.c
+++ b/src/soc/intel/tigerlake/acpi.c
@@ -18,7 +18,6 @@
#include <soc/pm.h>
#include <soc/soc_chip.h>
#include <soc/systemagent.h>
-#include <string.h>
/*
* List of supported C-states in this processor.