summaryrefslogtreecommitdiff
path: root/src/soc/intel/common
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-05-11 19:59:14 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-05-18 07:41:24 +0000
commitb74f45e9c4ae7bb504986298df8da89b6f017e65 (patch)
tree04effedb79a947c3bc862181ce3162268e429ed0 /src/soc/intel/common
parentf769ee3e1b060ff94f8f087a810fb2c83e4e99fe (diff)
src: Remove unused 'include <string.h>'
Unused includes found using following commande: diff <(git grep -l '#include <string.h>' -- src/) <(git grep -l 'memcpy\|memmove\|memset\|memcmp\|memchr\|strdup\|strconcat\|strnlen\|strlen\|strchr\|strncpy\|strcpy\|strcmp\|strncmp\|strspn\|strcspn\|atol\|strrchr\|skip_atoi\|STRINGIFY' -- src/) |grep -v vendorcode |grep '<' Change-Id: Ibaeec213b6019dfa9c45e3424b38af0e094d0c51 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41242 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Wim Vervoorn <wvervoorn@eltan.com>
Diffstat (limited to 'src/soc/intel/common')
-rw-r--r--src/soc/intel/common/block/cse/cse_lite.c1
-rw-r--r--src/soc/intel/common/block/cse/disable_heci.c1
-rw-r--r--src/soc/intel/common/block/smbus/smbuslib.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/src/soc/intel/common/block/cse/cse_lite.c b/src/soc/intel/common/block/cse/cse_lite.c
index 9e154f453b..b985a94628 100644
--- a/src/soc/intel/common/block/cse/cse_lite.c
+++ b/src/soc/intel/common/block/cse/cse_lite.c
@@ -4,7 +4,6 @@
#include <soc/intel/common/reset.h>
#include <intelblocks/cse.h>
#include <security/vboot/vboot_common.h>
-#include <string.h>
/* Converts bp index to boot partition string */
#define GET_BP_STR(bp_index) (bp_index ? "RW" : "RO")
diff --git a/src/soc/intel/common/block/cse/disable_heci.c b/src/soc/intel/common/block/cse/disable_heci.c
index e27783a6a7..664a2f7b30 100644
--- a/src/soc/intel/common/block/cse/disable_heci.c
+++ b/src/soc/intel/common/block/cse/disable_heci.c
@@ -10,7 +10,6 @@
#include <intelblocks/pcr.h>
#include <soc/pci_devs.h>
#include <soc/pcr_ids.h>
-#include <string.h>
#define CSME0_FBE 0xf
#define CSME0_BAR 0x0
diff --git a/src/soc/intel/common/block/smbus/smbuslib.c b/src/soc/intel/common/block/smbus/smbuslib.c
index a1a88180f2..8f337c1c1d 100644
--- a/src/soc/intel/common/block/smbus/smbuslib.c
+++ b/src/soc/intel/common/block/smbus/smbuslib.c
@@ -4,7 +4,6 @@
#include <spd_bin.h>
#include <device/smbus_def.h>
#include <device/smbus_host.h>
-#include <string.h>
#include "smbuslib.h"
static void update_spd_len(struct spd_block *blk)