9504d13
From af8071ce3168509e372a2c6108bc0c758f79e49c Mon Sep 17 00:00:00 2001
9504d13
From: Dave Jiang <dave.jiang@intel.com>
9504d13
Date: Mon, 27 Feb 2017 14:44:40 -0700
9504d13
Subject: [PATCH] mm, x86: fix HIGHMEM64 && PARAVIRT build config for
9504d13
 native_pud_clear()
9504d13
9504d13
Looks like I also missed the build config that includes
9504d13
CONFIG_HIGHMEM64G && CONFIG_PARAVIRT to export the native_pud_clear()
9504d13
dummy function.
9504d13
9504d13
Fix: commit e5d56efc ("mm,x86: fix SMP x86 32bit build for native_pud_clear()")
9504d13
9504d13
Reported-by: Laura Abbott <labbott@redhat.com>
9504d13
Reported-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
9504d13
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
9504d13
---
9504d13
 arch/x86/include/asm/pgtable-3level.h | 3 ++-
9504d13
 1 file changed, 2 insertions(+), 1 deletion(-)
9504d13
9504d13
diff --git a/arch/x86/include/asm/pgtable-3level.h b/arch/x86/include/asm/pgtable-3level.h
9504d13
index 8f50fb3..72277b1 100644
9504d13
--- a/arch/x86/include/asm/pgtable-3level.h
9504d13
+++ b/arch/x86/include/asm/pgtable-3level.h
9504d13
@@ -121,7 +121,8 @@ static inline void native_pmd_clear(pmd_t *pmd)
9504d13
 	*(tmp + 1) = 0;
9504d13
 }
9504d13
 
9504d13
-#ifndef CONFIG_SMP
9504d13
+#if !defined(CONFIG_SMP) || (defined(CONFIG_HIGHMEM64G) && \
9504d13
+		defined(CONFIG_PARAVIRT))
9504d13
 static inline void native_pud_clear(pud_t *pudp)
9504d13
 {
9504d13
 }
9504d13
-- 
9504d13
2.7.4
9504d13