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>
This commit is contained in:
Elyes HAOUAS 2020-05-11 19:59:14 +02:00 committed by Patrick Georgi
parent f769ee3e1b
commit b74f45e9c4
27 changed files with 0 additions and 27 deletions

View File

@ -4,7 +4,6 @@
#include <fallback.h>
#include <program_loading.h>
#include <stddef.h>
#include <string.h>
static const char *get_fallback(const char *stagelist)
{

View File

@ -9,7 +9,6 @@
#include <option.h>
#include <pc80/mc146818rtc.h>
#include <rtc.h>
#include <string.h>
#include <cbfs.h>
#include <security/vboot/vbnv.h>
#include <security/vboot/vbnv_layout.h>

View File

@ -7,7 +7,6 @@
#include <console/console.h>
#include <commonlib/helpers.h>
#include <string.h>
#include <spi_flash.h>
#include <spi-generic.h>

View File

@ -4,7 +4,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
#include <string.h>
#include "spi_flash_internal.h"

View File

@ -4,7 +4,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
#include <string.h>
#include "spi_flash_internal.h"

View File

@ -4,7 +4,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
#include <string.h>
#include "spi_flash_internal.h"

View File

@ -4,7 +4,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
#include <string.h>
#include "spi_flash_internal.h"

View File

@ -4,7 +4,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
#include <string.h>
#include "spi_flash_internal.h"

View File

@ -4,7 +4,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
#include <string.h>
#include "spi_flash_internal.h"

View File

@ -8,7 +8,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
#include <string.h>
#include "spi_flash_internal.h"

View File

@ -4,7 +4,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
#include <string.h>
#include "spi_flash_internal.h"

View File

@ -4,7 +4,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
#include <string.h>
#include <delay.h>
#include <lib.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <string.h>
#include <acpi/acpigen.h>
#include <southbridge/intel/i82801jx/nvs.h>

View File

@ -4,7 +4,6 @@
#include <console/console.h>
#include <ec/google/chromeec/ec.h>
#include <smbios.h>
#include <string.h>
int board_info_get_fw_config(uint32_t *fw_config)
{

View File

@ -6,7 +6,6 @@
#include <edid.h>
#include <gpio.h>
#include <soc/i2c.h>
#include <string.h>
#include "panel.h"

View File

@ -18,7 +18,6 @@
#include <soc/nhlt.h>
#include <soc/pci_devs.h>
#include <stdint.h>
#include <string.h>
#include <vendorcode/google/chromeos/chromeos.h>
#include <variant/ec.h>
#include <variant/gpio.h>

View File

@ -4,7 +4,6 @@
#include <fsp/api.h>
#include <soc/romstage.h>
#include <spd_bin.h>
#include <string.h>
#include <soc/meminit.h>
#include <baseboard/variants.h>
#include <cbfs.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <string.h>
#include <arch/ioapic.h>
#include <acpi/acpi.h>
#include <arch/smp/mpspec.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <string.h>
#include <arch/ioapic.h>
#include <acpi/acpi.h>
#include <arch/smp/mpspec.h>

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <string.h>
#include <arch/ioapic.h>
#include <acpi/acpi.h>
#include <arch/smp/mpspec.h>

View File

@ -7,7 +7,6 @@
#include <security/tpm/tss.h>
#include <assert.h>
#include <security/vboot/misc.h>
#include <string.h>
#include <vb2_api.h>
#include <vb2_sha.h>

View File

@ -7,7 +7,6 @@
#include <security/vboot/antirollback.h>
#include <security/vboot/tpm_common.h>
#include <string.h>
#include <security/tpm/tspi.h>
#include <security/tpm/tss.h>
#include <security/tpm/tss/tcg-1.2/tss_structures.h>

View File

@ -11,7 +11,6 @@
#include <soc/bootblock.h>
#include <soc/pch.h>
#include <soc/pci_devs.h>
#include <string.h>
#define BIOS_SIGN_ID 0x8B

View File

@ -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")

View File

@ -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

View File

@ -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)

View File

@ -10,7 +10,6 @@
#include <soc/qupv3_config.h>
#include <soc/qupv3_i2c.h>
#include <stdint.h>
#include <string.h>
static void i2c_clk_configure(unsigned int bus, enum i2c_speed speed)
{