x86: Fix build warning in tables.c when CONFIG_SEABIOS
authorBin Meng <[email protected]>
Sat, 7 May 2016 14:46:11 +0000 (07:46 -0700)
committerBin Meng <[email protected]>
Mon, 23 May 2016 07:18:00 +0000 (15:18 +0800)
The following build warning is seen in tables.c:

  warning: implicit declaration of function 'memalign'

Add the missing header file to fix it.

Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Tested-by: Stefan Roese <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
arch/x86/lib/tables.c

index a156f2ce31503cb785c7ef6cf07c568198507a4b..1213a9cd2b8c3c8b1f765a7314c4329d40a8778d 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/sfi.h>
 #include <asm/mpspec.h>
 #include <asm/smbios.h>