src/{device,drivers}: Use 'include <stdlib.h>' when appropriate
Also, including <types.h>, is supposed to provide stdint and stddef. Change-Id: I99918a5a77e759bc7d4192d2c3fd6ad493c70248 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33681 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
0edf6a59f8
commit
ede8dd0b9c
|
@ -16,6 +16,7 @@
|
||||||
#include <device/path.h>
|
#include <device/path.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <device/resource.h>
|
#include <device/resource.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <pc80/i8259.h>
|
#include <pc80/i8259.h>
|
||||||
#include <pc80/i8254.h>
|
#include <pc80/i8254.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <vbe.h>
|
#include <vbe.h>
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
|
|
||||||
#include <arch/early_variables.h>
|
#include <arch/early_variables.h>
|
||||||
#include <commonlib/endian.h>
|
#include <commonlib/endian.h>
|
||||||
#include <stdint.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <types.h>
|
#include <types.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
|
@ -38,6 +37,8 @@
|
||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
#include <timer.h>
|
#include <timer.h>
|
||||||
#include <security/tpm/tis.h>
|
#include <security/tpm/tis.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "tpm.h"
|
#include "tpm.h"
|
||||||
|
|
||||||
#define CR50_MAX_BUFSIZE 63
|
#define CR50_MAX_BUFSIZE 63
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <arch/early_variables.h>
|
#include <arch/early_variables.h>
|
||||||
#include <stdint.h>
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <commonlib/endian.h>
|
#include <commonlib/endian.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
|
@ -22,7 +21,9 @@
|
||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
#include <lib.h>
|
#include <lib.h>
|
||||||
#include <security/tpm/tis.h>
|
#include <security/tpm/tis.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <timer.h>
|
#include <timer.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
#define RECV_TIMEOUT (1 * 1000) /* 1 second */
|
#define RECV_TIMEOUT (1 * 1000) /* 1 second */
|
||||||
#define XMIT_TIMEOUT (1 * 1000) /* 1 second */
|
#define XMIT_TIMEOUT (1 * 1000) /* 1 second */
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
#include <commonlib/region.h>
|
#include <commonlib/region.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <smmstore.h>
|
#include <smmstore.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The region format is still not finalized, but so far it looks like this:
|
* The region format is still not finalized, but so far it looks like this:
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
#include <fmap.h>
|
#include <fmap.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <console/flash.h>
|
#include <console/flash.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
#define LINE_BUFFER_SIZE 128
|
#define LINE_BUFFER_SIZE 128
|
||||||
#define READ_BUFFER_SIZE 0x100
|
#define READ_BUFFER_SIZE 0x100
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <spi-generic.h>
|
#include <spi-generic.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
int spi_claim_bus(const struct spi_slave *slave)
|
int spi_claim_bus(const struct spi_slave *slave)
|
||||||
|
|
|
@ -18,11 +18,11 @@
|
||||||
#include <boot/coreboot_tables.h>
|
#include <boot/coreboot_tables.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <cpu/x86/smm.h>
|
#include <cpu/x86/smm.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <spi-generic.h>
|
#include <spi-generic.h>
|
||||||
#include <spi_flash.h>
|
#include <spi_flash.h>
|
||||||
#include <timer.h>
|
#include <timer.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
#include "spi_flash_internal.h"
|
#include "spi_flash_internal.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue