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:
parent
f769ee3e1b
commit
b74f45e9c4
@ -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)
|
||||
{
|
||||
|
@ -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>
|
||||
|
@ -7,7 +7,6 @@
|
||||
|
||||
#include <console/console.h>
|
||||
#include <commonlib/helpers.h>
|
||||
#include <string.h>
|
||||
#include <spi_flash.h>
|
||||
#include <spi-generic.h>
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <commonlib/helpers.h>
|
||||
#include <spi_flash.h>
|
||||
#include <spi-generic.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "spi_flash_internal.h"
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <commonlib/helpers.h>
|
||||
#include <spi_flash.h>
|
||||
#include <spi-generic.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "spi_flash_internal.h"
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <commonlib/helpers.h>
|
||||
#include <spi_flash.h>
|
||||
#include <spi-generic.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "spi_flash_internal.h"
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <commonlib/helpers.h>
|
||||
#include <spi_flash.h>
|
||||
#include <spi-generic.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "spi_flash_internal.h"
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <commonlib/helpers.h>
|
||||
#include <spi_flash.h>
|
||||
#include <spi-generic.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "spi_flash_internal.h"
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <commonlib/helpers.h>
|
||||
#include <spi_flash.h>
|
||||
#include <spi-generic.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "spi_flash_internal.h"
|
||||
|
||||
|
@ -8,7 +8,6 @@
|
||||
#include <commonlib/helpers.h>
|
||||
#include <spi_flash.h>
|
||||
#include <spi-generic.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "spi_flash_internal.h"
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <commonlib/helpers.h>
|
||||
#include <spi_flash.h>
|
||||
#include <spi-generic.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "spi_flash_internal.h"
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <string.h>
|
||||
#include <acpi/acpigen.h>
|
||||
#include <southbridge/intel/i82801jx/nvs.h>
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -6,7 +6,6 @@
|
||||
#include <edid.h>
|
||||
#include <gpio.h>
|
||||
#include <soc/i2c.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "panel.h"
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
||||
|
@ -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")
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user