aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2012-12-18 03:03:23 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-18 12:49:03 -0500
commitc36e0501ee91d7616a188efbf9714b1fce150032 (patch)
tree7f5a03ce5f6a969703a6cf3839239fb44f1f9544 /arch/x86/include/asm
parentea77d73c464c1fae250486c3ab0908500ba96558 (diff)
x86, paravirt: fix build error when thp is disabled
With CONFIG_PARAVIRT=y and CONFIG_TRANSPARENT_HUGEPAGE=n, the build breaks because set_pmd_at() is undeclared: mm/memory.c: In function 'do_pmd_numa_page': mm/memory.c:3520: error: implicit declaration of function 'set_pmd_at' mm/mprotect.c: In function 'change_pmd_protnuma': mm/mprotect.c:120: error: implicit declaration of function 'set_pmd_at' This is because paravirt defines set_pmd_at() only when CONFIG_TRANSPARENT_HUGEPAGE=y and such a restriction is unneeded. The fix is to define it for all CONFIG_PARAVIRT configurations. Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r--arch/x86/include/asm/paravirt.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h
index a0facf3908d..5edd1742cfd 100644
--- a/arch/x86/include/asm/paravirt.h
+++ b/arch/x86/include/asm/paravirt.h
@@ -528,7 +528,6 @@ static inline void set_pte_at(struct mm_struct *mm, unsigned long addr,
528 PVOP_VCALL4(pv_mmu_ops.set_pte_at, mm, addr, ptep, pte.pte); 528 PVOP_VCALL4(pv_mmu_ops.set_pte_at, mm, addr, ptep, pte.pte);
529} 529}
530 530
531#ifdef CONFIG_TRANSPARENT_HUGEPAGE
532static inline void set_pmd_at(struct mm_struct *mm, unsigned long addr, 531static inline void set_pmd_at(struct mm_struct *mm, unsigned long addr,
533 pmd_t *pmdp, pmd_t pmd) 532 pmd_t *pmdp, pmd_t pmd)
534{ 533{
@@ -539,7 +538,6 @@ static inline void set_pmd_at(struct mm_struct *mm, unsigned long addr,
539 PVOP_VCALL4(pv_mmu_ops.set_pmd_at, mm, addr, pmdp, 538 PVOP_VCALL4(pv_mmu_ops.set_pmd_at, mm, addr, pmdp,
540 native_pmd_val(pmd)); 539 native_pmd_val(pmd));
541} 540}
542#endif
543 541
544static inline void set_pmd(pmd_t *pmdp, pmd_t pmd) 542static inline void set_pmd(pmd_t *pmdp, pmd_t pmd)
545{ 543{