summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2019-08-01 09:47:11 -0600
committerTom Rini <[email protected]>2019-08-11 16:43:41 -0400
commitf030b7b2607013a1b05a696e7f010d5f8dbe4fcd (patch)
tree5421db4a03b2a0fff3f53358ce416aee6008fefe /arch
parentcb2ba9db5f2ab575d40d95e76a0ab94c7ccb9bac (diff)
env: Move TOTAL_MALLOC_LEN to environment.h
This declaration is only used in three files. Although it relates to malloc() it is actually only used during malloc() init. It uses CONFIG options including CONFIG_ENV_ADDR which are defined only in environment.h so this header must be included anyway, for TOTAL_MALLOC_LEN to be correct. Nove it to environment.h to simplify the common file. Signed-off-by: Simon Glass <[email protected]> Acked-by: Joe Hershberger <[email protected]> Reviewed-by: Simon Goldschmidt <[email protected]>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/cpu/qemu/e820.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/cpu/qemu/e820.c b/arch/x86/cpu/qemu/e820.c
index 0a690fde685..7b3bc7db5e4 100644
--- a/arch/x86/cpu/qemu/e820.c
+++ b/arch/x86/cpu/qemu/e820.c
@@ -4,6 +4,7 @@
*/
#include <common.h>
+#include <environment.h>
#include <asm/e820.h>
DECLARE_GLOBAL_DATA_PTR;