projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
195466d
)
x86: fix warning
author
Jeremy Fitzhardinge
<
[email protected]
>
Wed, 30 Jan 2008 12:32:58 +0000
(13:32 +0100)
committer
Ingo Molnar
<
[email protected]
>
Wed, 30 Jan 2008 12:32:58 +0000
(13:32 +0100)
&ptep->pte isn't always an unsigned long *, so cast it to avoid a warning.
Signed-off-by: Jeremy Fitzhardinge <
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
Signed-off-by: Thomas Gleixner <
[email protected]
>
include/asm-x86/pgtable.h
patch
|
blob
|
history
diff --git
a/include/asm-x86/pgtable.h
b/include/asm-x86/pgtable.h
index 62fa856c24912a433c5a742b6887532b86371d6d..820db41dbe4c9bd771f2594a8e99e828c94cd4b9 100644
(file)
--- 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
#define __HAVE_ARCH_PTEP_SET_WRPROTECT
static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr, pte_t *ptep)
{
- clear_bit(_PAGE_BIT_RW, &ptep->pte);
+ clear_bit(_PAGE_BIT_RW,
(unsigned long *)
&ptep->pte);
pte_update(mm, addr, ptep);
}