summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-05-15 22:05:54 +0200
committerMartin Roth <martinroth@google.com>2019-06-22 17:53:39 +0000
commit361f6fff5fd301e69c1678cf20f107df7465aaf6 (patch)
tree68ac728dc27f75d01769252c5c3108133a52b79b /src
parent2195f7af23d7a34d546f1e3f00a0d3a34ee3a8c5 (diff)
src/cpu: Use 'include <stdlib.h>' when appropriate
Change-Id: I44346594bc106eed73a1268b82f026b69e5f4512 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32821 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/cpu/allwinner/a10/clock.c1
-rw-r--r--src/cpu/amd/family_10h-family_15h/init_cpus.h1
-rw-r--r--src/cpu/intel/haswell/finalize.c1
-rw-r--r--src/cpu/intel/model_2065x/finalize.c1
-rw-r--r--src/cpu/intel/model_206ax/finalize.c1
-rw-r--r--src/cpu/ti/am335x/gpio.c1
-rw-r--r--src/cpu/ti/am335x/uart.c1
-rw-r--r--src/cpu/x86/mtrr/mtrr.c1
8 files changed, 0 insertions, 8 deletions
diff --git a/src/cpu/allwinner/a10/clock.c b/src/cpu/allwinner/a10/clock.c
index 76198b76ba..9e4e93dfe1 100644
--- a/src/cpu/allwinner/a10/clock.c
+++ b/src/cpu/allwinner/a10/clock.c
@@ -22,7 +22,6 @@
#include <console/console.h>
#include <delay.h>
#include <lib.h>
-#include <stdlib.h>
static struct a10_ccm *const ccm = (void *)A1X_CCM_BASE;
diff --git a/src/cpu/amd/family_10h-family_15h/init_cpus.h b/src/cpu/amd/family_10h-family_15h/init_cpus.h
index 5d653d123b..cca00496ea 100644
--- a/src/cpu/amd/family_10h-family_15h/init_cpus.h
+++ b/src/cpu/amd/family_10h-family_15h/init_cpus.h
@@ -16,7 +16,6 @@
#ifndef INIT_CPUS_H
#define INIT_CPUS_H
-#include <stdlib.h>
#include <cpu/x86/lapic.h>
#include <cpu/x86/mtrr.h>
#include <cpu/amd/msr.h>
diff --git a/src/cpu/intel/haswell/finalize.c b/src/cpu/intel/haswell/finalize.c
index cc2d1a4c36..16e54d746a 100644
--- a/src/cpu/intel/haswell/finalize.c
+++ b/src/cpu/intel/haswell/finalize.c
@@ -15,7 +15,6 @@
*/
#include <stdint.h>
-#include <stdlib.h>
#include <arch/cpu.h>
#include <cpu/x86/msr.h>
#include "haswell.h"
diff --git a/src/cpu/intel/model_2065x/finalize.c b/src/cpu/intel/model_2065x/finalize.c
index 5b85601182..724e09ca20 100644
--- a/src/cpu/intel/model_2065x/finalize.c
+++ b/src/cpu/intel/model_2065x/finalize.c
@@ -15,7 +15,6 @@
*/
#include <stdint.h>
-#include <stdlib.h>
#include <arch/cpu.h>
#include <cpu/x86/msr.h>
#include <cpu/intel/speedstep.h>
diff --git a/src/cpu/intel/model_206ax/finalize.c b/src/cpu/intel/model_206ax/finalize.c
index 30b00bbaf1..98ce5552da 100644
--- a/src/cpu/intel/model_206ax/finalize.c
+++ b/src/cpu/intel/model_206ax/finalize.c
@@ -15,7 +15,6 @@
*/
#include <stdint.h>
-#include <stdlib.h>
#include <arch/cpu.h>
#include <cpu/x86/msr.h>
#include <cpu/intel/speedstep.h>
diff --git a/src/cpu/ti/am335x/gpio.c b/src/cpu/ti/am335x/gpio.c
index 2685839b23..8660f2ca91 100644
--- a/src/cpu/ti/am335x/gpio.c
+++ b/src/cpu/ti/am335x/gpio.c
@@ -16,7 +16,6 @@
#include <console/console.h>
#include <cpu/ti/am335x/gpio.h>
#include <stdint.h>
-#include <stdlib.h>
static struct am335x_gpio_regs *gpio_regs_and_bit(unsigned int gpio,
uint32_t *bit)
diff --git a/src/cpu/ti/am335x/uart.c b/src/cpu/ti/am335x/uart.c
index c482a85d74..4e9d012037 100644
--- a/src/cpu/ti/am335x/uart.c
+++ b/src/cpu/ti/am335x/uart.c
@@ -12,7 +12,6 @@
* GNU General Public License for more details.
*/
-#include <stdlib.h>
#include <types.h>
#include <console/uart.h>
#include <device/mmio.h>
diff --git a/src/cpu/x86/mtrr/mtrr.c b/src/cpu/x86/mtrr/mtrr.c
index e9efc8b1de..98449d5542 100644
--- a/src/cpu/x86/mtrr/mtrr.c
+++ b/src/cpu/x86/mtrr/mtrr.c
@@ -22,7 +22,6 @@
*/
#include <stddef.h>
-#include <stdlib.h>
#include <string.h>
#include <bootstate.h>
#include <commonlib/helpers.h>