lkml.org 
[lkml]   [2008]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 2 of 4] x86: fix warning
    Date
    From
    &ptep->pte isn't always an unsigned long *, so cast it to avoid a warning.

    Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>

    ---
    include/asm-x86/pgtable.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/include/asm-x86/pgtable.h b/include/asm-x86/pgtable.h
    --- a/include/asm-x86/pgtable.h
    +++ b/include/asm-x86/pgtable.h
    @@ -340,7 +340,7 @@ static inline pte_t ptep_get_and_clear_f
    #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);
    }




    \
     
     \ /
      Last update: 2008-01-15 23:31    [W:0.018 / U:1.548 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site