x86: Fix build warning in tables.c when CONFIG_SEABIOS
authorBin Meng <bmeng.cn@gmail.com>
Sat, 7 May 2016 14:46:11 +0000 (07:46 -0700)
committerBin Meng <bmeng.cn@gmail.com>
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 <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Tested-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
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>