summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-03-18 22:49:36 +0100
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-03-20 20:27:51 +0000
commita1e22b8192d5fc85995a41d0961c25293ba4391f (patch)
tree7b7dbc885d3ac99fe029cf0961eda1052e753dc1 /src/arch
parent0eb4db185cfef44ddfdbd91d4fe69a48c127fa84 (diff)
downloadcoreboot-a1e22b8192d5fc85995a41d0961c25293ba4391f.tar.xz
src: Use 'include <string.h>' when appropriate
Drop 'include <string.h>' when it is not used and add it when it is missing. Also extra lines removed, or added just before local includes. Change-Id: Iccac4dbaa2dd4144fc347af36ecfc9747da3de20 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31966 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/arm64/boot.c1
-rw-r--r--src/arch/riscv/trap_handler.c1
-rw-r--r--src/arch/x86/boot.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/src/arch/arm64/boot.c b/src/arch/arm64/boot.c
index fefc0d305e..d17a20d628 100644
--- a/src/arch/arm64/boot.c
+++ b/src/arch/arm64/boot.c
@@ -19,7 +19,6 @@
#include <arch/transition.h>
#include <arm_tf.h>
#include <program_loading.h>
-#include <string.h>
static void run_payload(struct prog *prog)
{
diff --git a/src/arch/riscv/trap_handler.c b/src/arch/riscv/trap_handler.c
index 6ec8e199f1..6b39faba79 100644
--- a/src/arch/riscv/trap_handler.c
+++ b/src/arch/riscv/trap_handler.c
@@ -17,7 +17,6 @@
#include <arch/encoding.h>
#include <arch/exception.h>
#include <console/console.h>
-#include <string.h>
#include <vm.h>
#include <mcall.h>
#include <sbi.h>
diff --git a/src/arch/x86/boot.c b/src/arch/x86/boot.c
index 7819c0f2db..5f60f1394a 100644
--- a/src/arch/x86/boot.c
+++ b/src/arch/x86/boot.c
@@ -15,7 +15,6 @@
#include <console/console.h>
#include <program_loading.h>
#include <ip_checksum.h>
-#include <string.h>
#include <symbols.h>
int payload_arch_usable_ram_quirk(uint64_t start, uint64_t size)