HAOUAS Elyes has uploaded this change for review.

View Change

{include,lib}: Use 'include <stdlib.h>' when appropriate

Change-Id: I49762ffee79274c39c0fdd62d127e1d0d57cd686
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
---
M src/include/bootstate.h
M src/include/string.h
M src/lib/coreboot_table.c
M src/lib/hardwaremain.c
M src/lib/thread.c
5 files changed, 1 insertion(+), 5 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/32824/1
diff --git a/src/include/bootstate.h b/src/include/bootstate.h
index 26038c6..c53884e 100644
--- a/src/include/bootstate.h
+++ b/src/include/bootstate.h
@@ -16,7 +16,6 @@
#define BOOTSTATE_H

#include <string.h>
-#include <stdlib.h>
#include <stddef.h>
#include <stdint.h>
/* Only declare main() when in ramstage. */
diff --git a/src/include/string.h b/src/include/string.h
index 4a2f5e9..81afcf0 100644
--- a/src/include/string.h
+++ b/src/include/string.h
@@ -2,7 +2,6 @@
#define STRING_H

#include <stddef.h>
-#include <stdlib.h>

#if !defined(__ROMCC__)
#include <console/vtxprintf.h>
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c
index 6e44f5d..24e10f4 100644
--- a/src/lib/coreboot_table.c
+++ b/src/lib/coreboot_table.c
@@ -27,10 +27,10 @@
#include <boardid.h>
#include <device/device.h>
#include <fmap.h>
-#include <stdlib.h>
#include <cbfs.h>
#include <cbmem.h>
#include <bootmem.h>
+#include <stddef.h>
#include <spi_flash.h>
#include <security/vboot/misc.h>
#include <security/vboot/vbnv_layout.h>
diff --git a/src/lib/hardwaremain.c b/src/lib/hardwaremain.c
index 2881162..608b683 100644
--- a/src/lib/hardwaremain.c
+++ b/src/lib/hardwaremain.c
@@ -28,7 +28,6 @@
#include <device/device.h>
#include <device/pci.h>
#include <delay.h>
-#include <stdlib.h>
#include <boot/tables.h>
#include <program_loading.h>
#if CONFIG(HAVE_ACPI_RESUME)
diff --git a/src/lib/thread.c b/src/lib/thread.c
index 281885f..a786b9f 100644
--- a/src/lib/thread.c
+++ b/src/lib/thread.c
@@ -15,7 +15,6 @@

#include <stddef.h>
#include <stdint.h>
-#include <stdlib.h>
#include <arch/cpu.h>
#include <bootstate.h>
#include <console/console.h>

To view, visit change 32824. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I49762ffee79274c39c0fdd62d127e1d0d57cd686
Gerrit-Change-Number: 32824
Gerrit-PatchSet: 1
Gerrit-Owner: HAOUAS Elyes <ehaouas@noos.fr>
Gerrit-MessageType: newchange