src/cpu: Use 'include <stdlib.h>' when appropriate

Also:
 add some missing includes spotted by Jenkins.
 Including <types.h>, is supposed to provide stdint and stddef.

Change-Id: I7bd999b59d1c0bdfa5999bf5805576f94c9a2390
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33680
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Elyes HAOUAS 2019-06-23 06:55:41 +02:00 committed by Patrick Georgi
parent 400f9ca261
commit 845652b8bb
4 changed files with 5 additions and 2 deletions

View File

@ -91,6 +91,7 @@ b.- prep_fid_change(...)
#include <device/pci_ops.h>
#include <stdint.h>
#include <northbridge/amd/amdht/AsPsDefs.h>
#include <stdlib.h>
static inline void print_debug_fv(const char *str, u32 val)
{

View File

@ -27,6 +27,8 @@
#include <device/pci.h>
#include <device/pnp.h>
#include <device/pci_ops.h>
#include <stdlib.h>
#include <types.h>
/* The maximum length of CPU names is 48 bytes, including the final NULL byte.
* If you change these names your BIOS will _NOT_ pass the AMD validation and

View File

@ -28,6 +28,7 @@
#include <smp/spinlock.h>
#include <cpu/cpu.h>
#include <cpu/intel/speedstep.h>
#include <stdlib.h>
#include <thread.h>
/* This is a lot more paranoid now, since Linux can NOT handle

View File

@ -11,13 +11,12 @@
* GNU General Public License for more details.
*/
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <commonlib/helpers.h>
#include <console/console.h>
#include <bootmem.h>
#include <program_loading.h>
#include <types.h>
void mirror_payload(struct prog *payload)
{