Skip to content

Commit 3e761a4

Browse files
davejiangtorvalds
authored andcommitted
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. Fixes: a00cc7d ("mm, x86: add support for PUD-sized transparent hugepages") Link: http://lkml.kernel.org/r/148823188084.56076.17451228917824355200.stgit@djiang5-desk3.ch.intel.com Signed-off-by: Dave Jiang <[email protected]> Reported-by: Laura Abbott <[email protected]> Reported-by: Boris Ostrovsky <[email protected]> Cc: Matthew Wilcox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 2959a5f commit 3e761a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/x86/include/asm/pgtable-3level.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ static inline void native_pmd_clear(pmd_t *pmd)
121121
*(tmp + 1) = 0;
122122
}
123123

124-
#ifndef CONFIG_SMP
124+
#if !defined(CONFIG_SMP) || (defined(CONFIG_HIGHMEM64G) && \
125+
defined(CONFIG_PARAVIRT))
125126
static inline void native_pud_clear(pud_t *pudp)
126127
{
127128
}

0 commit comments

Comments
 (0)