diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2019-03-18 22:49:36 +0100 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-03-20 20:27:51 +0000 |
commit | a1e22b8192d5fc85995a41d0961c25293ba4391f (patch) | |
tree | 7b7dbc885d3ac99fe029cf0961eda1052e753dc1 /src/cpu | |
parent | 0eb4db185cfef44ddfdbd91d4fe69a48c127fa84 (diff) |
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/cpu')
-rw-r--r-- | src/cpu/amd/agesa/family12/model_12_init.c | 1 | ||||
-rw-r--r-- | src/cpu/amd/agesa/family14/model_14_init.c | 1 | ||||
-rw-r--r-- | src/cpu/amd/agesa/family15tn/model_15_init.c | 1 | ||||
-rw-r--r-- | src/cpu/amd/agesa/family16kb/model_16_init.c | 1 | ||||
-rw-r--r-- | src/cpu/amd/family_10h-family_15h/model_10xxx_init.c | 1 | ||||
-rw-r--r-- | src/cpu/amd/pi/00630F01/model_15_init.c | 1 | ||||
-rw-r--r-- | src/cpu/amd/pi/00660F01/model_15_init.c | 1 | ||||
-rw-r--r-- | src/cpu/amd/pi/00730F01/model_16_init.c | 1 | ||||
-rw-r--r-- | src/cpu/intel/haswell/haswell_init.c | 1 | ||||
-rw-r--r-- | src/cpu/intel/haswell/romstage.c | 1 | ||||
-rw-r--r-- | src/cpu/intel/model_1067x/model_1067x_init.c | 1 | ||||
-rw-r--r-- | src/cpu/intel/model_106cx/model_106cx_init.c | 1 | ||||
-rw-r--r-- | src/cpu/intel/model_2065x/model_2065x_init.c | 1 | ||||
-rw-r--r-- | src/cpu/intel/model_206ax/model_206ax_init.c | 1 | ||||
-rw-r--r-- | src/cpu/intel/model_6ex/model_6ex_init.c | 1 | ||||
-rw-r--r-- | src/cpu/intel/model_6fx/model_6fx_init.c | 1 | ||||
-rw-r--r-- | src/cpu/intel/speedstep/acpi.c | 1 | ||||
-rw-r--r-- | src/cpu/x86/mp_init.c | 1 |
18 files changed, 1 insertions, 17 deletions
diff --git a/src/cpu/amd/agesa/family12/model_12_init.c b/src/cpu/amd/agesa/family12/model_12_init.c index 0693dedeb8..406d300b21 100644 --- a/src/cpu/amd/agesa/family12/model_12_init.c +++ b/src/cpu/amd/agesa/family12/model_12_init.c @@ -19,7 +19,6 @@ #include <cpu/x86/mtrr.h> #include <cpu/amd/mtrr.h> #include <device/device.h> -#include <string.h> #include <cpu/x86/pae.h> #include <cpu/x86/lapic.h> #include <cpu/cpu.h> diff --git a/src/cpu/amd/agesa/family14/model_14_init.c b/src/cpu/amd/agesa/family14/model_14_init.c index 1516a6b2c6..7f05cd15b6 100644 --- a/src/cpu/amd/agesa/family14/model_14_init.c +++ b/src/cpu/amd/agesa/family14/model_14_init.c @@ -19,7 +19,6 @@ #include <cpu/x86/mtrr.h> #include <cpu/amd/mtrr.h> #include <device/device.h> -#include <string.h> #include <cpu/x86/pae.h> #include <cpu/x86/lapic.h> #include <cpu/cpu.h> diff --git a/src/cpu/amd/agesa/family15tn/model_15_init.c b/src/cpu/amd/agesa/family15tn/model_15_init.c index 26b20dcfd4..b614eedf56 100644 --- a/src/cpu/amd/agesa/family15tn/model_15_init.c +++ b/src/cpu/amd/agesa/family15tn/model_15_init.c @@ -20,7 +20,6 @@ #include <cpu/amd/mtrr.h> #include <cpu/x86/smm.h> #include <device/device.h> -#include <string.h> #include <cpu/x86/pae.h> #include <cpu/x86/lapic.h> #include <cpu/cpu.h> diff --git a/src/cpu/amd/agesa/family16kb/model_16_init.c b/src/cpu/amd/agesa/family16kb/model_16_init.c index e6fb0db6de..6c1309eea4 100644 --- a/src/cpu/amd/agesa/family16kb/model_16_init.c +++ b/src/cpu/amd/agesa/family16kb/model_16_init.c @@ -19,7 +19,6 @@ #include <cpu/x86/mtrr.h> #include <cpu/amd/mtrr.h> #include <device/device.h> -#include <string.h> #include <cpu/x86/pae.h> #include <cpu/x86/lapic.h> #include <cpu/cpu.h> diff --git a/src/cpu/amd/family_10h-family_15h/model_10xxx_init.c b/src/cpu/amd/family_10h-family_15h/model_10xxx_init.c index 9819caf909..ff9c7de1d3 100644 --- a/src/cpu/amd/family_10h-family_15h/model_10xxx_init.c +++ b/src/cpu/amd/family_10h-family_15h/model_10xxx_init.c @@ -22,7 +22,6 @@ #include <device/device.h> #include <device/pci.h> #include <device/pci_ops.h> -#include <string.h> #include <cpu/x86/smm.h> #include <cpu/x86/pae.h> #include <cpu/x86/lapic.h> diff --git a/src/cpu/amd/pi/00630F01/model_15_init.c b/src/cpu/amd/pi/00630F01/model_15_init.c index 3a641bf07f..550f116567 100644 --- a/src/cpu/amd/pi/00630F01/model_15_init.c +++ b/src/cpu/amd/pi/00630F01/model_15_init.c @@ -21,7 +21,6 @@ #include <cpu/x86/smm.h> #include <device/device.h> #include <device/pci.h> -#include <string.h> #include <cpu/x86/pae.h> #include <cpu/x86/lapic.h> #include <cpu/cpu.h> diff --git a/src/cpu/amd/pi/00660F01/model_15_init.c b/src/cpu/amd/pi/00660F01/model_15_init.c index 65d87c22ec..54446f7d96 100644 --- a/src/cpu/amd/pi/00660F01/model_15_init.c +++ b/src/cpu/amd/pi/00660F01/model_15_init.c @@ -20,7 +20,6 @@ #include <cpu/amd/mtrr.h> #include <device/device.h> #include <device/pci.h> -#include <string.h> #include <cpu/x86/pae.h> #include <cpu/x86/lapic.h> #include <cpu/cpu.h> diff --git a/src/cpu/amd/pi/00730F01/model_16_init.c b/src/cpu/amd/pi/00730F01/model_16_init.c index 5678c5f58d..fe828900fc 100644 --- a/src/cpu/amd/pi/00730F01/model_16_init.c +++ b/src/cpu/amd/pi/00730F01/model_16_init.c @@ -20,7 +20,6 @@ #include <cpu/amd/mtrr.h> #include <device/device.h> #include <device/pci.h> -#include <string.h> #include <cpu/x86/pae.h> #include <cpu/x86/lapic.h> #include <cpu/cpu.h> diff --git a/src/cpu/intel/haswell/haswell_init.c b/src/cpu/intel/haswell/haswell_init.c index aa77964f68..25cf243aca 100644 --- a/src/cpu/intel/haswell/haswell_init.c +++ b/src/cpu/intel/haswell/haswell_init.c @@ -17,7 +17,6 @@ #include <console/console.h> #include <device/device.h> -#include <string.h> #include <arch/acpi.h> #include <cpu/cpu.h> #include <cpu/x86/mtrr.h> diff --git a/src/cpu/intel/haswell/romstage.c b/src/cpu/intel/haswell/romstage.c index e64643aa1e..ee87effc87 100644 --- a/src/cpu/intel/haswell/romstage.c +++ b/src/cpu/intel/haswell/romstage.c @@ -14,7 +14,6 @@ */ #include <stdint.h> -#include <string.h> #include <console/console.h> #include <arch/cpu.h> #include <cf9_reset.h> diff --git a/src/cpu/intel/model_1067x/model_1067x_init.c b/src/cpu/intel/model_1067x/model_1067x_init.c index 6068be166d..e47712c020 100644 --- a/src/cpu/intel/model_1067x/model_1067x_init.c +++ b/src/cpu/intel/model_1067x/model_1067x_init.c @@ -17,7 +17,6 @@ #include <console/console.h> #include <device/device.h> -#include <string.h> #include <cpu/cpu.h> #include <cpu/x86/msr.h> #include <cpu/x86/mp.h> diff --git a/src/cpu/intel/model_106cx/model_106cx_init.c b/src/cpu/intel/model_106cx/model_106cx_init.c index e44302606e..f43db16185 100644 --- a/src/cpu/intel/model_106cx/model_106cx_init.c +++ b/src/cpu/intel/model_106cx/model_106cx_init.c @@ -15,7 +15,6 @@ #include <console/console.h> #include <device/device.h> -#include <string.h> #include <cpu/cpu.h> #include <cpu/x86/msr.h> #include <cpu/x86/lapic.h> diff --git a/src/cpu/intel/model_2065x/model_2065x_init.c b/src/cpu/intel/model_2065x/model_2065x_init.c index fd34229688..f08a058a57 100644 --- a/src/cpu/intel/model_2065x/model_2065x_init.c +++ b/src/cpu/intel/model_2065x/model_2065x_init.c @@ -17,7 +17,6 @@ #include <console/console.h> #include <device/device.h> -#include <string.h> #include <arch/acpi.h> #include <cpu/cpu.h> #include <cpu/x86/mtrr.h> diff --git a/src/cpu/intel/model_206ax/model_206ax_init.c b/src/cpu/intel/model_206ax/model_206ax_init.c index e7462088a9..85b0937b9c 100644 --- a/src/cpu/intel/model_206ax/model_206ax_init.c +++ b/src/cpu/intel/model_206ax/model_206ax_init.c @@ -18,7 +18,6 @@ #include <assert.h> #include <console/console.h> #include <device/device.h> -#include <string.h> #include <arch/acpi.h> #include <arch/cpu.h> #include <cpu/cpu.h> diff --git a/src/cpu/intel/model_6ex/model_6ex_init.c b/src/cpu/intel/model_6ex/model_6ex_init.c index 19a22f1839..740af4237a 100644 --- a/src/cpu/intel/model_6ex/model_6ex_init.c +++ b/src/cpu/intel/model_6ex/model_6ex_init.c @@ -16,7 +16,6 @@ #include <console/console.h> #include <device/device.h> -#include <string.h> #include <cpu/cpu.h> #include <cpu/x86/msr.h> #include <cpu/x86/lapic.h> diff --git a/src/cpu/intel/model_6fx/model_6fx_init.c b/src/cpu/intel/model_6fx/model_6fx_init.c index 4e198961ce..26d0c9d206 100644 --- a/src/cpu/intel/model_6fx/model_6fx_init.c +++ b/src/cpu/intel/model_6fx/model_6fx_init.c @@ -16,7 +16,6 @@ #include <console/console.h> #include <device/device.h> -#include <string.h> #include <cpu/cpu.h> #include <cpu/x86/msr.h> #include <cpu/x86/lapic.h> diff --git a/src/cpu/intel/speedstep/acpi.c b/src/cpu/intel/speedstep/acpi.c index b5e2c9e9e2..5cff4125ae 100644 --- a/src/cpu/intel/speedstep/acpi.c +++ b/src/cpu/intel/speedstep/acpi.c @@ -23,7 +23,6 @@ #include <cpu/x86/msr.h> #include <cpu/intel/speedstep.h> #include <device/device.h> -#include <string.h> static int determine_total_number_of_cores(void) { diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c index 2057df011f..138f194ee2 100644 --- a/src/cpu/x86/mp_init.c +++ b/src/cpu/x86/mp_init.c @@ -16,6 +16,7 @@ #include <console/console.h> #include <stdint.h> +#include <string.h> #include <rmodule.h> #include <arch/cpu.h> #include <commonlib/helpers.h> |