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>
This commit is contained in:
Elyes HAOUAS 2019-03-18 22:49:36 +01:00 committed by Kyösti Mälkki
parent 0eb4db185c
commit a1e22b8192
478 changed files with 59 additions and 507 deletions

View File

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

View File

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

View File

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

View File

@ -22,8 +22,10 @@
#include <commonlib/sdhci.h>
#include <device/pci.h>
#include <device/pci_ops.h>
#include "sd_mmc.h"
#include <stdint.h>
#include <string.h>
#include "sd_mmc.h"
#include "storage.h"
/* Initialize an SDHCI port */

View File

@ -26,7 +26,6 @@
#include <endian.h>
#include "sd_mmc.h"
#include "storage.h"
#include <string.h>
#include <timer.h>
int sd_send_if_cond(struct storage_media *media)

View File

@ -27,7 +27,6 @@
#include "sdhci.h"
#include "sd_mmc.h"
#include "storage.h"
#include <string.h>
#include <timer.h>
#include <commonlib/stdlib.h>

View File

@ -19,9 +19,10 @@
* GNU General Public License for more details.
*/
#include <stdlib.h>
#include "sd_mmc.h"
#include "storage.h"
#include <string.h>
static uint32_t storage_write(struct storage_media *media, uint32_t start,
uint64_t block_count, const void *src)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -14,7 +14,6 @@
*/
#include <stdint.h>
#include <string.h>
#include <console/console.h>
#include <arch/cpu.h>
#include <cf9_reset.h>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -22,7 +22,6 @@
#include <console/console.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <arch/io.h>
#include <device/device.h>
#include <device/pnp.h>

View File

@ -14,7 +14,6 @@
*/
#include <delay.h>
#include <stdlib.h>
#include <string.h>
#include <arch/io.h>
#include <edid.h>

View File

@ -15,7 +15,6 @@
#include <delay.h>
#include <edid.h>
#include <stdlib.h>
#include <string.h>
#include <arch/io.h>
#include <boot/coreboot_tables.h>

View File

@ -18,7 +18,6 @@
#include <delay.h>
#include <edid.h>
#include <stdlib.h>
#include <string.h>
#include <boot/coreboot_tables.h>
#include <console/console.h>

View File

@ -19,7 +19,6 @@
#include <device/device.h>
#include <device/path.h>
#include <stdint.h>
#include <string.h>
#include "chip.h"
#if CONFIG(HAVE_ACPI_TABLES)

View File

@ -20,7 +20,6 @@
#include <device/path.h>
#include <gpio.h>
#include <stdint.h>
#include <string.h>
#include "chip.h"
#if CONFIG(HAVE_ACPI_TABLES)

View File

@ -14,7 +14,6 @@
*/
#include <types.h>
#include <string.h>
#include <device/device.h>
#include <device/smbus.h>
#include <smbios.h>

View File

@ -21,7 +21,7 @@
#include <device/device.h>
#include <device/path.h>
#include <stdint.h>
#include <string.h>
#include "chip.h"
#if CONFIG(HAVE_ACPI_TABLES)

View File

@ -21,7 +21,6 @@
#include <device/device.h>
#include <device/path.h>
#include <stdint.h>
#include <string.h>
#include "chip.h"
#define MAX98373_ACPI_NAME "MAXI"

View File

@ -21,7 +21,6 @@
#include <device/device.h>
#include <device/path.h>
#include <stdint.h>
#include <string.h>
#include "chip.h"
#define MAX98927_ACPI_NAME "MAXI"

View File

@ -21,7 +21,6 @@
#include <device/device.h>
#include <device/path.h>
#include <stdint.h>
#include <string.h>
#include "chip.h"
#if CONFIG(HAVE_ACPI_TABLES)

View File

@ -21,7 +21,6 @@
#include <device/device.h>
#include <device/path.h>
#include <stdint.h>
#include <string.h>
#include "chip.h"
#define RT5663_ACPI_NAME "RT53"

View File

@ -20,7 +20,6 @@
#include <device/device.h>
#include <device/path.h>
#include <stdint.h>
#include <string.h>
#include "tpm.h"
#include "chip.h"

View File

@ -14,7 +14,6 @@
#include <arch/early_variables.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
#include <commonlib/endian.h>
#include <console/console.h>

View File

@ -14,7 +14,6 @@
*/
#include <types.h>
#include <string.h>
#include <console/console.h>
#include "fsp_util.h"

View File

@ -14,7 +14,6 @@
#include <console/console.h>
#include <cpu/x86/mtrr.h>
#include <fsp/util.h>
#include <string.h>
#include <timestamp.h>
static void fsp_notify(enum fsp_notify_phase phase)

View File

@ -14,7 +14,6 @@
#include <fsp/api.h>
#include <fsp/util.h>
#include <memrange.h>
#include <string.h>
#include <cbfs.h>
void fsp_temp_ram_exit(void)

View File

@ -26,7 +26,6 @@
*
*/
#include <types.h>
#include <string.h>
#include <stdlib.h>
#include <device/device.h>
#include <device/pci_def.h>

View File

@ -20,7 +20,6 @@
#include <device/i2c_simple.h>
#include <device/device.h>
#include <device/path.h>
#include <string.h>
#include "chip.h"
static void camera_fill_ssdt(struct device *dev)

View File

@ -17,7 +17,6 @@
#include <console/console.h>
#include <device/device.h>
#include <arch/io.h>
#include <string.h>
#include <delay.h>
#include "ipmi_kcs.h"

View File

@ -23,7 +23,6 @@
#include <device/mmio.h>
#include <device/device.h>
#include <cbfs.h>
#include <string.h>
#include <console/console.h>
#include <device/pci.h>
#include <device/pci_ops.h>

View File

@ -35,7 +35,6 @@ SMC8416 PIO support added by Andrew Bettison (andrewb@zip.com.au) on 4/3/02
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include <stdlib.h>
#include <string.h>
#include <ip_checksum.h>
#include "ns8390.h"

View File

@ -18,7 +18,6 @@
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include <device/pci_def.h>
#include <string.h>
#include <device/mmio.h>
#include <delay.h>
#include <hwilib.h>

View File

@ -16,8 +16,6 @@
#include <delay.h>
#include <stdlib.h>
#include <string.h>
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>

View File

@ -19,7 +19,6 @@
#include <commonlib/region.h>
#include <console/console.h>
#include <smmstore.h>
#include <string.h>
/*
* The region format is still not finalized, but so far it looks like this:

View File

@ -19,7 +19,6 @@
#include <fmap.h>
#include <console/console.h>
#include <console/flash.h>
#include <string.h>
#define LINE_BUFFER_SIZE 128
#define READ_BUFFER_SIZE 0x100

View File

@ -6,7 +6,6 @@
#include <arch/early_variables.h>
#include <console/console.h>
#include <string.h>
#include <security/tpm/tis.h>
#include "tpm.h"

View File

@ -20,7 +20,6 @@
#include <device/device.h>
#include <device/path.h>
#include <stdint.h>
#include <string.h>
#include "chip.h"
static bool usb_acpi_add_gpios_to_crs(struct drivers_usb_acpi_config *cfg)

View File

@ -17,7 +17,6 @@
*/
#include <delay.h>
#include <stdlib.h>
#include <string.h>
#include <vbe.h>
#include <console/console.h>

View File

@ -22,7 +22,6 @@
#include <delay.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <arch/io.h>
#include <device/mmio.h>

View File

@ -14,7 +14,6 @@
*/
#include <delay.h>
#include <stdlib.h>
#include <string.h>
#include <console/console.h>
#include <device/device.h>

View File

@ -17,7 +17,6 @@
#define DEVICE_AZALIA_H
#include <types.h>
#include <string.h>
#include <console/console.h>
#include <arch/acpi.h>
#include <device/mmio.h>

View File

@ -19,7 +19,6 @@
#include <cbmem.h>
#include <arch/early_variables.h>
#include <symbols.h>
#include <string.h>
/*
* Structure describing console buffer. It is overlaid on a flat memory area,

View File

@ -18,7 +18,6 @@
#include <console/console.h>
#include <cbmem.h>
#include <imd.h>
#include <string.h>
#include <stdlib.h>
#include <arch/early_variables.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
#include <string.h>
#include <arch/acpi.h>
#include <arch/ioapic.h>
#include <device/pci.h>

View File

@ -14,7 +14,6 @@
*/
#include <device/pci.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <cpu/amd/multicore.h>

View File

@ -16,7 +16,6 @@
#include <arch/smp/mpspec.h>
#include <device/pci.h>
#include <arch/io.h>
#include <string.h>
#include <stdint.h>
#include <cpu/amd/amdfam10_sysconf.h>

View File

@ -16,7 +16,6 @@
#define SYSTEM_TYPE 1 /* SERVER=0, DESKTOP=1, MOBILE=2 */
#include <stdint.h>
#include <string.h>
#include <device/pci_def.h>
#include <device/pci_ops.h>
#include <cpu/x86/lapic.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
#include <string.h>
#include <arch/acpi.h>
#include <arch/ioapic.h>
#include <device/pci.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
#include <string.h>
#include <arch/acpi.h>
#include <arch/ioapic.h>
#include <device/pci.h>

View File

@ -14,7 +14,6 @@
*/
#include <device/pci.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <cpu/amd/multicore.h>

View File

@ -16,7 +16,6 @@
#include <arch/smp/mpspec.h>
#include <device/pci.h>
#include <arch/io.h>
#include <string.h>
#include <stdint.h>
#include <southbridge/amd/sb800/sb800.h>
#include <cpu/amd/amdfam10_sysconf.h>

View File

@ -16,7 +16,6 @@
#define SYSTEM_TYPE 1 /* SERVER = 0, DESKTOP = 1, MOBILE = 2 */
#include <stdint.h>
#include <string.h>
#include <device/pci_def.h>
#include <arch/io.h>
#include <device/pci_ops.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
#include <string.h>
#include <arch/acpi.h>
#include <arch/ioapic.h>
#include <device/pci.h>

View File

@ -17,7 +17,6 @@
#include <arch/smp/mpspec.h>
#include <device/pci.h>
#include <arch/ioapic.h>
#include <string.h>
#include <stdint.h>
#include <cpu/x86/lapic.h>
#include <southbridge/amd/common/amd_pci_util.h>

View File

@ -14,7 +14,6 @@
*/
#include <stdint.h>
#include <string.h>
#include <device/pci_def.h>
#include <arch/io.h>
#include <arch/cpu.h>

View File

@ -17,7 +17,6 @@
#include <amdblocks/BiosCallOuts.h>
#include <soc/southbridge.h>
#include <stdlib.h>
#include <string.h>
void platform_FchParams_env(FCH_DATA_BLOCK *FchParams_env)
{

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
#include <string.h>
#include <arch/acpi.h>
#include <arch/ioapic.h>
#include <device/pci.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
#include <string.h>
#include <arch/acpi.h>
#include <arch/ioapic.h>
#include <device/pci.h>

View File

@ -16,7 +16,6 @@
#include <arch/smp/mpspec.h>
#include <device/pci.h>
#include <arch/ioapic.h>
#include <string.h>
#include <stdint.h>
#include <cpu/x86/lapic.h>
#include <southbridge/amd/common/amd_pci_util.h>

View File

@ -14,7 +14,6 @@
*/
#include <stdint.h>
#include <string.h>
#include <device/pci_def.h>
#include <arch/io.h>
#include <arch/cpu.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
#include <string.h>
#include <arch/acpi.h>
#include <arch/ioapic.h>
#include <device/pci.h>

View File

@ -14,7 +14,6 @@
*/
#include <device/pci.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <cpu/amd/multicore.h>

View File

@ -16,11 +16,9 @@
#include <arch/smp/mpspec.h>
#include <device/pci.h>
#include <device/pci_ops.h>
#include <string.h>
#include <stdint.h>
#include <cpu/amd/amdfam10_sysconf.h>
extern u32 apicid_sb700;

View File

@ -18,7 +18,6 @@
//#define SYSTEM_TYPE 2 /* MOBILE */
#include <stdint.h>
#include <string.h>
#include <device/pci_def.h>
#include <arch/cpu.h>
#include <cpu/x86/lapic.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
#include <string.h>
#include <arch/acpi.h>
#include <arch/ioapic.h>
#include <device/pci.h>

View File

@ -14,7 +14,6 @@
*/
#include <stdint.h>
#include <string.h>
#include <device/pci_def.h>
#include <arch/io.h>
#include <device/pci_ops.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
#include <string.h>
#include <arch/acpi.h>
#include <arch/ioapic.h>
#include <device/pci.h>

View File

@ -14,7 +14,6 @@
*/
#include <stdint.h>
#include <string.h>
#include <device/pci_def.h>
#include <arch/io.h>
#include <arch/cpu.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
#include <string.h>
#include <arch/acpi.h>
#include <arch/ioapic.h>
#include <device/pci.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
#include <string.h>
#include <arch/acpi.h>
#include <arch/ioapic.h>
#include <device/pci.h>

View File

@ -16,7 +16,6 @@
#include <arch/smp/mpspec.h>
#include <device/pci.h>
#include <string.h>
#include <stdint.h>
#include <southbridge/amd/cimx/sb800/SBPLATFORM.h>
#include <southbridge/amd/common/amd_pci_util.h>

View File

@ -16,7 +16,6 @@
#include <console/console.h>
#include <device/pci.h>
#include <device/pci_ops.h>
#include <string.h>
#include <stdint.h>
#include <cpu/amd/multicore.h>

View File

@ -16,7 +16,6 @@
#include <arch/smp/mpspec.h>
#include <arch/ioapic.h>
#include <device/pci.h>
#include <string.h>
#include <stdint.h>
#if CONFIG(LOGICAL_CPUS)
#include <cpu/amd/multicore.h>

View File

@ -16,7 +16,6 @@
#define SYSTEM_TYPE 0 /* SERVER */
#include <stdint.h>
#include <string.h>
#include <device/pci_def.h>
#include <arch/io.h>
#include <arch/cpu.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
#include <string.h>
#include <arch/acpi.h>
#include <arch/ioapic.h>
#include <device/pci.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
#include <string.h>
#include <arch/acpi.h>
#include <arch/ioapic.h>
#include <device/pci.h>

View File

@ -14,7 +14,6 @@
*/
#include <stdint.h>
#include <string.h>
#include <device/pci_def.h>
#include <arch/io.h>
#include <device/pci_ops.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
#include <string.h>
#include <arch/acpi.h>
#include <arch/ioapic.h>
#include <device/pci.h>

View File

@ -14,7 +14,6 @@
*/
#include <device/pci.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <cpu/amd/multicore.h>

View File

@ -16,11 +16,9 @@
#include <arch/smp/mpspec.h>
#include <device/pci.h>
#include <device/pci_ops.h>
#include <string.h>
#include <stdint.h>
#include <cpu/amd/amdfam10_sysconf.h>
extern u32 apicid_sb700;

View File

@ -16,7 +16,6 @@
#define SYSTEM_TYPE 1 /* DESKTOP */
#include <stdint.h>
#include <string.h>
#include <device/pci_def.h>
#include <arch/cpu.h>
#include <cpu/x86/lapic.h>

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
#include <string.h>
#include <arch/acpi.h>
#include <arch/ioapic.h>
#include <device/pci.h>

View File

@ -15,8 +15,6 @@
#include <AGESA.h>
#include <PlatformMemoryConfiguration.h>
#include <string.h>
#include <northbridge/amd/agesa/state_machine.h>
static const PCIe_PORT_DESCRIPTOR PortList[] = {

View File

@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
#include <string.h>
#include <arch/acpi.h>
#include <arch/ioapic.h>
#include <device/pci.h>

Some files were not shown because too many files have changed in this diff Show More