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:
committed by
Kyösti Mälkki
parent
0eb4db185c
commit
a1e22b8192
@@ -14,7 +14,6 @@
|
||||
*/
|
||||
#include <delay.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <arch/io.h>
|
||||
#include <edid.h>
|
||||
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
|
@@ -14,7 +14,6 @@
|
||||
*/
|
||||
|
||||
#include <types.h>
|
||||
#include <string.h>
|
||||
#include <device/device.h>
|
||||
#include <device/smbus.h>
|
||||
#include <smbios.h>
|
||||
|
@@ -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)
|
||||
|
@@ -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"
|
||||
|
@@ -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"
|
||||
|
@@ -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)
|
||||
|
@@ -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"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#include <device/device.h>
|
||||
#include <device/path.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include "tpm.h"
|
||||
#include "chip.h"
|
||||
|
||||
|
@@ -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>
|
||||
|
@@ -14,7 +14,6 @@
|
||||
*/
|
||||
|
||||
#include <types.h>
|
||||
#include <string.h>
|
||||
#include <console/console.h>
|
||||
#include "fsp_util.h"
|
||||
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
|
@@ -26,7 +26,6 @@
|
||||
*
|
||||
*/
|
||||
#include <types.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci_def.h>
|
||||
|
@@ -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)
|
||||
|
@@ -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"
|
||||
|
||||
|
@@ -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>
|
||||
|
@@ -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"
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -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:
|
||||
|
@@ -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
|
||||
|
@@ -6,7 +6,6 @@
|
||||
|
||||
#include <arch/early_variables.h>
|
||||
#include <console/console.h>
|
||||
#include <string.h>
|
||||
#include <security/tpm/tis.h>
|
||||
|
||||
#include "tpm.h"
|
||||
|
@@ -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)
|
||||
|
@@ -17,7 +17,6 @@
|
||||
*/
|
||||
#include <delay.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <vbe.h>
|
||||
|
||||
#include <console/console.h>
|
||||
|
@@ -22,7 +22,6 @@
|
||||
#include <delay.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <arch/io.h>
|
||||
#include <device/mmio.h>
|
||||
|
||||
|
@@ -14,7 +14,6 @@
|
||||
*/
|
||||
#include <delay.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
|
Reference in New Issue
Block a user