diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-01-30 07:32:58 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:32:58 -0500 |
commit | d8d89827fc0c9c2ea6ac4c22e14e30586a856f58 (patch) | |
tree | 9436c9f6d568aa6cba75e74202f034e7b25e9808 /include/asm-x86/pgtable.h | |
parent | 195466dc4b9b8a4cc89d37ea1211746f3afbc941 (diff) |
x86: fix warning
&ptep->pte isn't always an unsigned long *, so cast it to avoid a warning.
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/pgtable.h')
-rw-r--r-- | include/asm-x86/pgtable.h | 2 |
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 |
276 | static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr, pte_t *ptep) | 276 | static 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 | ||