From 566d1754d3a84819d9e2829421898d115ef2c116 Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Thu, 22 Jan 2015 11:29:39 +0800 Subject: [PATCH] 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 --- arch/x86/cpu/mtrr.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.25.1