summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-07-10 09:48:07 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-07-14 16:09:44 +0000
commit5a8e072020a4cfd77ffd03c9b58c3751370a9978 (patch)
tree363c7831570ce50e21e008bfd9a5155af35792ac /src
parentf0d1c9a42325300fb3da599a14131910a6b7139b (diff)
src: Remove unused 'include <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\|strtok_r\|strtok\|atol\|strrchr\|skip_atoi\|snprintf' -- src/) |grep -v vendorcode |grep '<' Change-Id: I12802d0a6254b2fa39d59f485008bb2012f7b32d Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41913 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/acpi/soundwire.c1
-rw-r--r--src/mainboard/dell/optiplex_9010/sch5545_ec.c1
-rw-r--r--src/mainboard/emulation/qemu-q35/acpi_tables.c1
-rw-r--r--src/southbridge/amd/agesa/hudson/fadt.c1
-rw-r--r--src/southbridge/amd/cimx/sb800/fadt.c2
-rw-r--r--src/southbridge/amd/pi/hudson/fadt.c1
-rw-r--r--src/southbridge/intel/i82371eb/fadt.c1
-rw-r--r--src/southbridge/intel/i82801dx/fadt.c1
-rw-r--r--src/southbridge/intel/i82801gx/fadt.c1
-rw-r--r--src/southbridge/intel/i82801ix/fadt.c1
-rw-r--r--src/southbridge/intel/i82801jx/fadt.c1
11 files changed, 0 insertions, 12 deletions
diff --git a/src/acpi/soundwire.c b/src/acpi/soundwire.c
index 1151a181c1..ed3634de62 100644
--- a/src/acpi/soundwire.c
+++ b/src/acpi/soundwire.c
@@ -7,7 +7,6 @@
#include <device/soundwire.h>
#include <stdbool.h>
#include <stdint.h>
-#include <string.h>
/* Specification-defined prefix for SoundWire properties. */
#define SDW_PFX "mipi-sdw-"
diff --git a/src/mainboard/dell/optiplex_9010/sch5545_ec.c b/src/mainboard/dell/optiplex_9010/sch5545_ec.c
index 401345254d..2719460a9e 100644
--- a/src/mainboard/dell/optiplex_9010/sch5545_ec.c
+++ b/src/mainboard/dell/optiplex_9010/sch5545_ec.c
@@ -2,7 +2,6 @@
#include <cbfs.h>
#include <cf9_reset.h>
-#include <string.h>
#include <option.h>
#include <arch/io.h>
#include <cpu/x86/msr.h>
diff --git a/src/mainboard/emulation/qemu-q35/acpi_tables.c b/src/mainboard/emulation/qemu-q35/acpi_tables.c
index 51baae5135..104e5d0883 100644
--- a/src/mainboard/emulation/qemu-q35/acpi_tables.c
+++ b/src/mainboard/emulation/qemu-q35/acpi_tables.c
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <types.h>
-#include <string.h>
#include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h>
#include <arch/ioapic.h>
diff --git a/src/southbridge/amd/agesa/hudson/fadt.c b/src/southbridge/amd/agesa/hudson/fadt.c
index bb86d5f174..e3b16477a4 100644
--- a/src/southbridge/amd/agesa/hudson/fadt.c
+++ b/src/southbridge/amd/agesa/hudson/fadt.c
@@ -4,7 +4,6 @@
* ACPI - create the Fixed ACPI Description Tables (FADT)
*/
-#include <string.h>
#include <console/console.h>
#include <acpi/acpi.h>
#include <device/device.h>
diff --git a/src/southbridge/amd/cimx/sb800/fadt.c b/src/southbridge/amd/cimx/sb800/fadt.c
index 4bca1364be..379205ab9d 100644
--- a/src/southbridge/amd/cimx/sb800/fadt.c
+++ b/src/southbridge/amd/cimx/sb800/fadt.c
@@ -5,8 +5,6 @@
* ACPI - create the Fixed ACPI Description Tables (FADT)
*/
-
-#include <string.h>
#include <console/console.h>
#include <acpi/acpi.h>
#include <arch/io.h>
diff --git a/src/southbridge/amd/pi/hudson/fadt.c b/src/southbridge/amd/pi/hudson/fadt.c
index a243252c21..a8bc9c2cdc 100644
--- a/src/southbridge/amd/pi/hudson/fadt.c
+++ b/src/southbridge/amd/pi/hudson/fadt.c
@@ -4,7 +4,6 @@
* ACPI - create the Fixed ACPI Description Tables (FADT)
*/
-#include <string.h>
#include <console/console.h>
#include <acpi/acpi.h>
#include <device/device.h>
diff --git a/src/southbridge/intel/i82371eb/fadt.c b/src/southbridge/intel/i82371eb/fadt.c
index 84745a4a7a..5086992ab0 100644
--- a/src/southbridge/intel/i82371eb/fadt.c
+++ b/src/southbridge/intel/i82371eb/fadt.c
@@ -4,7 +4,6 @@
* Based on src/southbridge/via/vt8237r/vt8237_fadt.c
*/
-#include <string.h>
#include <acpi/acpi.h>
#include <device/device.h>
#include <device/pci.h>
diff --git a/src/southbridge/intel/i82801dx/fadt.c b/src/southbridge/intel/i82801dx/fadt.c
index 2da2175f01..4d1a615aca 100644
--- a/src/southbridge/intel/i82801dx/fadt.c
+++ b/src/southbridge/intel/i82801dx/fadt.c
@@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <string.h>
#include <device/pci_ops.h>
#include <acpi/acpi.h>
#include <version.h>
diff --git a/src/southbridge/intel/i82801gx/fadt.c b/src/southbridge/intel/i82801gx/fadt.c
index dca4bb48c3..3ab491127b 100644
--- a/src/southbridge/intel/i82801gx/fadt.c
+++ b/src/southbridge/intel/i82801gx/fadt.c
@@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <string.h>
#include <device/pci_ops.h>
#include <acpi/acpi.h>
#include <cpu/x86/smm.h>
diff --git a/src/southbridge/intel/i82801ix/fadt.c b/src/southbridge/intel/i82801ix/fadt.c
index 7a3840810c..3b657ad126 100644
--- a/src/southbridge/intel/i82801ix/fadt.c
+++ b/src/southbridge/intel/i82801ix/fadt.c
@@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <string.h>
#include <device/pci_ops.h>
#include <acpi/acpi.h>
#include <cpu/x86/smm.h>
diff --git a/src/southbridge/intel/i82801jx/fadt.c b/src/southbridge/intel/i82801jx/fadt.c
index c0a9d53b04..c00aa74b9f 100644
--- a/src/southbridge/intel/i82801jx/fadt.c
+++ b/src/southbridge/intel/i82801jx/fadt.c
@@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <string.h>
#include <device/pci_ops.h>
#include <acpi/acpi.h>
#include <cpu/x86/smm.h>