diff options
Diffstat (limited to 'arch/powerpc/mm/pgtable.c')
-rw-r--r-- | arch/powerpc/mm/pgtable.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/mm/pgtable.c b/arch/powerpc/mm/pgtable.c index 841e0d00863c..c695943a513c 100644 --- a/arch/powerpc/mm/pgtable.c +++ b/arch/powerpc/mm/pgtable.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <linux/kernel.h> | 24 | #include <linux/kernel.h> |
25 | #include <linux/gfp.h> | 25 | #include <linux/gfp.h> |
26 | #include <linux/mm.h> | 26 | #include <linux/mm.h> |
27 | #include <linux/init.h> | ||
28 | #include <linux/percpu.h> | 27 | #include <linux/percpu.h> |
29 | #include <linux/hardirq.h> | 28 | #include <linux/hardirq.h> |
30 | #include <linux/hugetlb.h> | 29 | #include <linux/hugetlb.h> |
@@ -174,7 +173,7 @@ void set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep, | |||
174 | pte_t pte) | 173 | pte_t pte) |
175 | { | 174 | { |
176 | #ifdef CONFIG_DEBUG_VM | 175 | #ifdef CONFIG_DEBUG_VM |
177 | WARN_ON(pte_present(*ptep)); | 176 | WARN_ON(pte_val(*ptep) & _PAGE_PRESENT); |
178 | #endif | 177 | #endif |
179 | /* Note: mm->context.id might not yet have been assigned as | 178 | /* Note: mm->context.id might not yet have been assigned as |
180 | * this context might not have been activated yet when this | 179 | * this context might not have been activated yet when this |