env: Move TOTAL_MALLOC_LEN to environment.h
authorSimon Glass <sjg@chromium.org>
Thu, 1 Aug 2019 15:47:11 +0000 (09:47 -0600)
committerTom Rini <trini@konsulko.com>
Sun, 11 Aug 2019 20:43:41 +0000 (16:43 -0400)
commitf030b7b2607013a1b05a696e7f010d5f8dbe4fcd
tree5421db4a03b2a0fff3f53358ce416aee6008fefe
parentcb2ba9db5f2ab575d40d95e76a0ab94c7ccb9bac
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 <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
arch/x86/cpu/qemu/e820.c
include/common.h
include/environment.h