aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/pgtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/pgtable.h')
-rw-r--r--include/asm-x86/pgtable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/pgtable.h b/include/asm-x86/pgtable.h
index 62fa856c2491..820db41dbe4c 100644
--- a/include/asm-x86/pgtable.h
+++ b/include/asm-x86/pgtable.h
@@ -275,7 +275,7 @@ static inline pte_t ptep_get_and_clear_full(struct mm_struct *mm, unsigned long
275#define __HAVE_ARCH_PTEP_SET_WRPROTECT 275#define __HAVE_ARCH_PTEP_SET_WRPROTECT
276static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr, pte_t *ptep) 276static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr, pte_t *ptep)
277{ 277{
278 clear_bit(_PAGE_BIT_RW, &ptep->pte); 278 clear_bit(_PAGE_BIT_RW, (unsigned long *)&ptep->pte);
279 pte_update(mm, addr, ptep); 279 pte_update(mm, addr, ptep);
280} 280}
281 281