From: Bin Meng Date: Thu, 22 Jan 2015 03:29:39 +0000 (+0800) Subject: x86: Add missing DECLARE_GLOBAL_DATA_PTR for mtrr.c X-Git-Tag: v2015.04-rc1~37^2~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=566d1754d3a84819d9e2829421898d115ef2c116;p=u-boot x86: Add missing DECLARE_GLOBAL_DATA_PTR for mtrr.c arch/x86/cpu/mtrr.c has access to the U-Boot global data thus DECLARE_GLOBAL_DATA_PTR is needed. Signed-off-by: Bin Meng Acked-by: Simon Glass --- diff --git a/arch/x86/cpu/mtrr.c b/arch/x86/cpu/mtrr.c index d5a825d181..ac8765f3cf 100644 --- a/arch/x86/cpu/mtrr.c +++ b/arch/x86/cpu/mtrr.c @@ -17,6 +17,8 @@ #include #include +DECLARE_GLOBAL_DATA_PTR; + /* Prepare to adjust MTRRs */ void mtrr_open(struct mtrr_state *state) {