summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2021-02-14 20:13:59 +0100
committerKyösti Mälkki <kyosti.malkki@gmail.com>2021-02-16 17:30:27 +0000
commit2b04c0c1bdfcc3f18a8137793de94e7403008974 (patch)
tree7172ab5f70c599731c8a25e901d2dfb9121eb66e
parentaeb5268a62f4df610a01beb378c79306c182b29e (diff)
soc/intel/elkhartlake: Remove unused <string.h>
Found using: 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\|snprintf' -- src/)|grep '<' Change-Id: I66a288df5c10c3ee5b9df599edc02aaed9a334e2 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50694 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
-rw-r--r--src/soc/intel/elkhartlake/bootblock/report_platform.c1
-rw-r--r--src/soc/intel/elkhartlake/fsp_params.c1
-rw-r--r--src/soc/intel/elkhartlake/romstage/fsp_params.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/src/soc/intel/elkhartlake/bootblock/report_platform.c b/src/soc/intel/elkhartlake/bootblock/report_platform.c
index b1b7fe8524..1dd31975ac 100644
--- a/src/soc/intel/elkhartlake/bootblock/report_platform.c
+++ b/src/soc/intel/elkhartlake/bootblock/report_platform.c
@@ -12,7 +12,6 @@
#include <soc/bootblock.h>
#include <soc/pch.h>
#include <soc/pci_devs.h>
-#include <string.h>
static struct {
uint32_t cpuid;
diff --git a/src/soc/intel/elkhartlake/fsp_params.c b/src/soc/intel/elkhartlake/fsp_params.c
index 3aed1ac3c7..3ef3b5d638 100644
--- a/src/soc/intel/elkhartlake/fsp_params.c
+++ b/src/soc/intel/elkhartlake/fsp_params.c
@@ -13,7 +13,6 @@
#include <soc/pci_devs.h>
#include <soc/ramstage.h>
#include <soc/soc_chip.h>
-#include <string.h>
/*
* ME End of Post configuration
diff --git a/src/soc/intel/elkhartlake/romstage/fsp_params.c b/src/soc/intel/elkhartlake/romstage/fsp_params.c
index f6c59a6234..464e1d45f0 100644
--- a/src/soc/intel/elkhartlake/romstage/fsp_params.c
+++ b/src/soc/intel/elkhartlake/romstage/fsp_params.c
@@ -6,7 +6,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)