From b74f45e9c4ae7bb504986298df8da89b6f017e65 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Mon, 11 May 2020 19:59:14 +0200 Subject: src: Remove unused 'include ' Unused includes found using following commande: diff <(git grep -l '#include ' -- 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/41242 Tested-by: build bot (Jenkins) Reviewed-by: Wim Vervoorn --- src/soc/intel/cannonlake/bootblock/report_platform.c | 1 - src/soc/intel/common/block/cse/cse_lite.c | 1 - src/soc/intel/common/block/cse/disable_heci.c | 1 - src/soc/intel/common/block/smbus/smbuslib.c | 1 - src/soc/qualcomm/sc7180/qupv3_i2c.c | 1 - 5 files changed, 5 deletions(-) (limited to 'src/soc') diff --git a/src/soc/intel/cannonlake/bootblock/report_platform.c b/src/soc/intel/cannonlake/bootblock/report_platform.c index fe52de1d95..b29cf7dd9e 100644 --- a/src/soc/intel/cannonlake/bootblock/report_platform.c +++ b/src/soc/intel/cannonlake/bootblock/report_platform.c @@ -11,7 +11,6 @@ #include #include #include -#include #define BIOS_SIGN_ID 0x8B 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 #include #include -#include /* 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 #include #include -#include #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 #include #include -#include #include "smbuslib.h" static void update_spd_len(struct spd_block *blk) diff --git a/src/soc/qualcomm/sc7180/qupv3_i2c.c b/src/soc/qualcomm/sc7180/qupv3_i2c.c index 7dea694060..b80c3dfcbb 100644 --- a/src/soc/qualcomm/sc7180/qupv3_i2c.c +++ b/src/soc/qualcomm/sc7180/qupv3_i2c.c @@ -10,7 +10,6 @@ #include #include #include -#include static void i2c_clk_configure(unsigned int bus, enum i2c_speed speed) { -- cgit v1.2.3