From: Bin Meng Date: Wed, 18 Jan 2017 11:32:51 +0000 (-0800) Subject: x86: qemu: Add missing DECLARE_GLOBAL_DATA_PTR in e820.c X-Git-Tag: v2017.03-rc2~52 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=45ffa122f2533376d2e58817d69c9149d91afc0f;p=u-boot x86: qemu: Add missing DECLARE_GLOBAL_DATA_PTR in e820.c DECLARE_GLOBAL_DATA_PTR is missing which causes 64-bit build error. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- diff --git a/arch/x86/cpu/qemu/e820.c b/arch/x86/cpu/qemu/e820.c index 63853e4b22..c1c9b89def 100644 --- a/arch/x86/cpu/qemu/e820.c +++ b/arch/x86/cpu/qemu/e820.c @@ -7,6 +7,8 @@ #include #include +DECLARE_GLOBAL_DATA_PTR; + unsigned install_e820_map(unsigned max_entries, struct e820entry *entries) { entries[0].addr = 0;