Skip to contentSkip to conversation

mm, x86: fix HIGHMEM64 && PARAVIRT build config for native_pud_clear()

PATCH New [email protected] 1 participant 1 message Feb 27, 2017 x86

lore
Share & tools
lore
#0 lore raw

PATCH 78/78 mm, x86: fix HIGHMEM64 && PARAVIRT build config for native_pud_clear()

From: Dave Jiang <[email protected]>
Subject: mm, x86: fix HIGHMEM64 && PARAVIRT build config for native_pud_clear()

Looks like I also missed the build config that includes CONFIG_HIGHMEM64G && CONFIG_PARAVIRT to export the native_pud_clear() dummy function.

---

 arch/x86/include/asm/pgtable-3level.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/x86/include/asm/pgtable-3level.h renamed from arch/x86/include/asm/pgtable-3level.h~mm-x86-fix-highmem64-paravirt-build-config-for-native_pud_clear +2 -1
diff -puN arch/x86/include/asm/pgtable-3level.h~mm-x86-fix-highmem64-paravirt-build-config-for-native_pud_clear arch/x86/include/asm/pgtable-3level.h
@@ -121,7 +121,8 @@ static inline void native_pmd_clear(pmd_
 	*(tmp + 1) = 0;
 }
 
-#ifndef CONFIG_SMP
+#if !defined(CONFIG_SMP) || (defined(CONFIG_HIGHMEM64G) && \
+		defined(CONFIG_PARAVIRT))
 static inline void native_pud_clear(pud_t *pudp)
 {
 }

_